
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c t) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i a) (* c z)) b)))))
(if (<= t_1 INFINITY) t_1 (* (* (- (* (/ b x) i) t) x) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (((c * t) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * a) - (c * z)) * b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = ((((b / x) * i) - t) * x) * a;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (((c * t) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * a) - (c * z)) * b));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = ((((b / x) * i) - t) * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (((c * t) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * a) - (c * z)) * b)) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = ((((b / x) * i) - t) * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * t) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * a) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(Float64(Float64(b / x) * i) - t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (((c * t) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * a) - (c * z)) * b)); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = ((((b / x) * i) - t) * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * a), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(N[(N[(b / x), $MachinePrecision] * i), $MachinePrecision] - t), $MachinePrecision] * x), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot t - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot a - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\frac{b}{x} \cdot i - t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.7
Applied rewrites54.7%
Taylor expanded in x around inf
Applied rewrites54.6%
Applied rewrites63.3%
Final simplification86.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(fma
(fma (- z) c (* i a))
b
(fma (fma (- x) a (* j c)) t (* (fma (- i) j (* z x)) y)))))
(if (<= t -7.8e+27)
t_1
(if (<= t 2.1e-111)
(-
(fma (fma (- z) b (* j t)) c (* (fma (- t) a (* z y)) x))
(* (fma (- a) b (* j y)) i))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-z, c, (i * a)), b, fma(fma(-x, a, (j * c)), t, (fma(-i, j, (z * x)) * y)));
double tmp;
if (t <= -7.8e+27) {
tmp = t_1;
} else if (t <= 2.1e-111) {
tmp = fma(fma(-z, b, (j * t)), c, (fma(-t, a, (z * y)) * x)) - (fma(-a, b, (j * y)) * i);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y))) tmp = 0.0 if (t <= -7.8e+27) tmp = t_1; elseif (t <= 2.1e-111) tmp = Float64(fma(fma(Float64(-z), b, Float64(j * t)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)) - Float64(fma(Float64(-a), b, Float64(j * y)) * i)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.8e+27], t$95$1, If[LessEqual[t, 2.1e-111], N[(N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[((-a) * b + N[(j * y), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
\mathbf{if}\;t \leq -7.8 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-111}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right) - \mathsf{fma}\left(-a, b, j \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.7999999999999997e27 or 2.0999999999999999e-111 < t Initial program 68.9%
Taylor expanded in y around 0
Applied rewrites82.9%
if -7.7999999999999997e27 < t < 2.0999999999999999e-111Initial program 83.0%
Taylor expanded in c around 0
Applied rewrites89.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.6e+192)
(fma (fma (- j) y (* b a)) i (* (* j t) c))
(if (<= i 1.75e+268)
(fma
(fma (- z) c (* i a))
b
(fma (fma (- x) a (* j c)) t (* (fma (- i) j (* z x)) y)))
(* (fma (- y) j (* b a)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.6e+192) {
tmp = fma(fma(-j, y, (b * a)), i, ((j * t) * c));
} else if (i <= 1.75e+268) {
tmp = fma(fma(-z, c, (i * a)), b, fma(fma(-x, a, (j * c)), t, (fma(-i, j, (z * x)) * y)));
} else {
tmp = fma(-y, j, (b * a)) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.6e+192) tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(j * t) * c)); elseif (i <= 1.75e+268) tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y))); else tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.6e+192], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75e+268], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.6 \cdot 10^{+192}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(j \cdot t\right) \cdot c\right)\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{+268}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if i < -2.60000000000000003e192Initial program 50.8%
Taylor expanded in y around 0
Applied rewrites42.2%
Taylor expanded in z around 0
Applied rewrites70.8%
Taylor expanded in x around 0
Applied rewrites83.3%
if -2.60000000000000003e192 < i < 1.74999999999999986e268Initial program 79.1%
Taylor expanded in y around 0
Applied rewrites83.6%
if 1.74999999999999986e268 < i Initial program 40.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64100.0
Applied rewrites100.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- z) (* c b) (* (fma (- i) j (* z x)) y)))
(t_2 (fma (fma (- j) y (* b a)) i (* (* j t) c))))
(if (<= i -2.45e+85)
t_2
(if (<= i -5.1e-57)
t_1
(if (<= i 2.6e-280)
(* (fma (- x) a (* j c)) t)
(if (<= i 1.7e-138)
t_1
(if (<= i 4.2e-44) (* (fma (- x) t (* i b)) a) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-z, (c * b), (fma(-i, j, (z * x)) * y));
double t_2 = fma(fma(-j, y, (b * a)), i, ((j * t) * c));
double tmp;
if (i <= -2.45e+85) {
tmp = t_2;
} else if (i <= -5.1e-57) {
tmp = t_1;
} else if (i <= 2.6e-280) {
tmp = fma(-x, a, (j * c)) * t;
} else if (i <= 1.7e-138) {
tmp = t_1;
} else if (i <= 4.2e-44) {
tmp = fma(-x, t, (i * b)) * a;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-z), Float64(c * b), Float64(fma(Float64(-i), j, Float64(z * x)) * y)) t_2 = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(j * t) * c)) tmp = 0.0 if (i <= -2.45e+85) tmp = t_2; elseif (i <= -5.1e-57) tmp = t_1; elseif (i <= 2.6e-280) tmp = Float64(fma(Float64(-x), a, Float64(j * c)) * t); elseif (i <= 1.7e-138) tmp = t_1; elseif (i <= 4.2e-44) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-z) * N[(c * b), $MachinePrecision] + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.45e+85], t$95$2, If[LessEqual[i, -5.1e-57], t$95$1, If[LessEqual[i, 2.6e-280], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[i, 1.7e-138], t$95$1, If[LessEqual[i, 4.2e-44], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, c \cdot b, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(j \cdot t\right) \cdot c\right)\\
\mathbf{if}\;i \leq -2.45 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -5.1 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{-280}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-138}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-44}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.4499999999999998e85 or 4.20000000000000003e-44 < i Initial program 63.8%
Taylor expanded in y around 0
Applied rewrites72.9%
Taylor expanded in z around 0
Applied rewrites77.3%
Taylor expanded in x around 0
Applied rewrites74.0%
if -2.4499999999999998e85 < i < -5.1e-57 or 2.6e-280 < i < 1.7000000000000001e-138Initial program 87.8%
Taylor expanded in a around 0
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.8%
Taylor expanded in t around 0
Applied rewrites72.5%
if -5.1e-57 < i < 2.6e-280Initial program 79.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
if 1.7000000000000001e-138 < i < 4.20000000000000003e-44Initial program 87.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.3
Applied rewrites71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- j) y (* b a)) i (* (* j t) c))))
(if (<= i -1.3e+42)
t_1
(if (<= i -6e-57)
(* (fma (- z) c (* i a)) b)
(if (<= i 7e-280)
(* (fma (- x) a (* j c)) t)
(if (<= i 3.05e-139)
(* (fma (- b) c (* y x)) z)
(if (<= i 4.2e-44) (* (fma (- x) t (* i b)) a) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-j, y, (b * a)), i, ((j * t) * c));
double tmp;
if (i <= -1.3e+42) {
tmp = t_1;
} else if (i <= -6e-57) {
tmp = fma(-z, c, (i * a)) * b;
} else if (i <= 7e-280) {
tmp = fma(-x, a, (j * c)) * t;
} else if (i <= 3.05e-139) {
tmp = fma(-b, c, (y * x)) * z;
} else if (i <= 4.2e-44) {
tmp = fma(-x, t, (i * b)) * a;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(j * t) * c)) tmp = 0.0 if (i <= -1.3e+42) tmp = t_1; elseif (i <= -6e-57) tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b); elseif (i <= 7e-280) tmp = Float64(fma(Float64(-x), a, Float64(j * c)) * t); elseif (i <= 3.05e-139) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (i <= 4.2e-44) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.3e+42], t$95$1, If[LessEqual[i, -6e-57], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[i, 7e-280], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[i, 3.05e-139], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 4.2e-44], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(j \cdot t\right) \cdot c\right)\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -6 \cdot 10^{-57}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
\mathbf{elif}\;i \leq 7 \cdot 10^{-280}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
\mathbf{elif}\;i \leq 3.05 \cdot 10^{-139}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-44}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.29999999999999995e42 or 4.20000000000000003e-44 < i Initial program 65.6%
Taylor expanded in y around 0
Applied rewrites72.5%
Taylor expanded in z around 0
Applied rewrites76.6%
Taylor expanded in x around 0
Applied rewrites72.7%
if -1.29999999999999995e42 < i < -6.00000000000000001e-57Initial program 80.9%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.2
Applied rewrites62.2%
if -6.00000000000000001e-57 < i < 7.0000000000000002e-280Initial program 79.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
if 7.0000000000000002e-280 < i < 3.0499999999999999e-139Initial program 95.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.0
Applied rewrites62.0%
if 3.0499999999999999e-139 < i < 4.20000000000000003e-44Initial program 87.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.3
Applied rewrites71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- b) c (* y x)) z (* (fma (- i) y (* c t)) j))))
(if (<= z -2.9e+52)
t_1
(if (<= z 9.8e+37)
(fma (fma (- j) y (* b a)) i (* (fma (- x) a (* j c)) t))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-b, c, (y * x)), z, (fma(-i, y, (c * t)) * j));
double tmp;
if (z <= -2.9e+52) {
tmp = t_1;
} else if (z <= 9.8e+37) {
tmp = fma(fma(-j, y, (b * a)), i, (fma(-x, a, (j * c)) * t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-i), y, Float64(c * t)) * j)) tmp = 0.0 if (z <= -2.9e+52) tmp = t_1; elseif (z <= 9.8e+37) tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(fma(Float64(-x), a, Float64(j * c)) * t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.9e+52], t$95$1, If[LessEqual[z, 9.8e+37], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\\
\mathbf{if}\;z \leq -2.9 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+37}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.9e52 or 9.8000000000000008e37 < z Initial program 66.5%
Taylor expanded in a around 0
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.7%
if -2.9e52 < z < 9.8000000000000008e37Initial program 80.1%
Taylor expanded in y around 0
Applied rewrites82.7%
Taylor expanded in z around 0
Applied rewrites76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.55e+193)
(* (fma (- b) c (* y x)) z)
(if (<= z 5.5e+14)
(fma (fma (- j) y (* b a)) i (* (fma (- x) a (* j c)) t))
(fma (- z) (* c b) (* (fma (- i) j (* z x)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.55e+193) {
tmp = fma(-b, c, (y * x)) * z;
} else if (z <= 5.5e+14) {
tmp = fma(fma(-j, y, (b * a)), i, (fma(-x, a, (j * c)) * t));
} else {
tmp = fma(-z, (c * b), (fma(-i, j, (z * x)) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.55e+193) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (z <= 5.5e+14) tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(fma(Float64(-x), a, Float64(j * c)) * t)); else tmp = fma(Float64(-z), Float64(c * b), Float64(fma(Float64(-i), j, Float64(z * x)) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.55e+193], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 5.5e+14], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[((-z) * N[(c * b), $MachinePrecision] + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+193}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-z, c \cdot b, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
\end{array}
\end{array}
if z < -1.54999999999999993e193Initial program 65.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.2
Applied rewrites69.2%
if -1.54999999999999993e193 < z < 5.5e14Initial program 79.3%
Taylor expanded in y around 0
Applied rewrites79.9%
Taylor expanded in z around 0
Applied rewrites73.0%
if 5.5e14 < z Initial program 62.3%
Taylor expanded in a around 0
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.1%
Taylor expanded in t around 0
Applied rewrites76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= i -2.65e+85)
(* (* b a) i)
(if (<= i -7.2e-117)
t_1
(if (<= i -2.5e-296)
(* (* (- t) x) a)
(if (<= i 1.15e-45)
t_1
(if (<= i 7.4e+59) (* (* c t) j) (* (* (- y) i) j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (i <= -2.65e+85) {
tmp = (b * a) * i;
} else if (i <= -7.2e-117) {
tmp = t_1;
} else if (i <= -2.5e-296) {
tmp = (-t * x) * a;
} else if (i <= 1.15e-45) {
tmp = t_1;
} else if (i <= 7.4e+59) {
tmp = (c * t) * j;
} else {
tmp = (-y * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (i <= -2.65e+85) tmp = Float64(Float64(b * a) * i); elseif (i <= -7.2e-117) tmp = t_1; elseif (i <= -2.5e-296) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (i <= 1.15e-45) tmp = t_1; elseif (i <= 7.4e+59) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(Float64(-y) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[i, -2.65e+85], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -7.2e-117], t$95$1, If[LessEqual[i, -2.5e-296], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.15e-45], t$95$1, If[LessEqual[i, 7.4e+59], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;i \leq -2.65 \cdot 10^{+85}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;i \leq -7.2 \cdot 10^{-117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.5 \cdot 10^{-296}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{-45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{+59}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if i < -2.65e85Initial program 65.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.2
Applied rewrites75.2%
Taylor expanded in y around 0
Applied rewrites51.1%
if -2.65e85 < i < -7.2000000000000001e-117 or -2.50000000000000015e-296 < i < 1.14999999999999996e-45Initial program 89.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.6
Applied rewrites48.6%
if -7.2000000000000001e-117 < i < -2.50000000000000015e-296Initial program 74.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.6
Applied rewrites59.6%
Taylor expanded in x around inf
Applied rewrites57.3%
if 1.14999999999999996e-45 < i < 7.39999999999999995e59Initial program 68.7%
Taylor expanded in y around 0
Applied rewrites82.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6442.5
Applied rewrites42.5%
Taylor expanded in y around 0
Applied rewrites42.0%
if 7.39999999999999995e59 < i Initial program 59.5%
Taylor expanded in y around 0
Applied rewrites76.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6450.0
Applied rewrites50.0%
Taylor expanded in y around inf
Applied rewrites41.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- y) j (* b a)) i)))
(if (<= i -7.2e-57)
t_1
(if (<= i 7e-280)
(* (fma (- x) a (* j c)) t)
(if (<= i 3.05e-139)
(* (fma (- b) c (* y x)) z)
(if (<= i 3.1e+114) (* (fma (- x) t (* i b)) a) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-y, j, (b * a)) * i;
double tmp;
if (i <= -7.2e-57) {
tmp = t_1;
} else if (i <= 7e-280) {
tmp = fma(-x, a, (j * c)) * t;
} else if (i <= 3.05e-139) {
tmp = fma(-b, c, (y * x)) * z;
} else if (i <= 3.1e+114) {
tmp = fma(-x, t, (i * b)) * a;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-y), j, Float64(b * a)) * i) tmp = 0.0 if (i <= -7.2e-57) tmp = t_1; elseif (i <= 7e-280) tmp = Float64(fma(Float64(-x), a, Float64(j * c)) * t); elseif (i <= 3.05e-139) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (i <= 3.1e+114) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -7.2e-57], t$95$1, If[LessEqual[i, 7e-280], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[i, 3.05e-139], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 3.1e+114], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{if}\;i \leq -7.2 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7 \cdot 10^{-280}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
\mathbf{elif}\;i \leq 3.05 \cdot 10^{-139}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{+114}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.2000000000000005e-57 or 3.1e114 < i Initial program 68.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.3
Applied rewrites68.3%
if -7.2000000000000005e-57 < i < 7.0000000000000002e-280Initial program 79.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
if 7.0000000000000002e-280 < i < 3.0499999999999999e-139Initial program 95.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.0
Applied rewrites62.0%
if 3.0499999999999999e-139 < i < 3.1e114Initial program 75.9%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.8
Applied rewrites58.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)))
(if (<= i -2.25e+175)
(* (* b a) i)
(if (<= i -7.4e-134)
t_1
(if (<= i -2.5e-296)
(* (* (- t) x) a)
(if (<= i 1.4e-23) (* (fma (- b) c (* y x)) z) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (i <= -2.25e+175) {
tmp = (b * a) * i;
} else if (i <= -7.4e-134) {
tmp = t_1;
} else if (i <= -2.5e-296) {
tmp = (-t * x) * a;
} else if (i <= 1.4e-23) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (i <= -2.25e+175) tmp = Float64(Float64(b * a) * i); elseif (i <= -7.4e-134) tmp = t_1; elseif (i <= -2.5e-296) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (i <= 1.4e-23) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[i, -2.25e+175], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -7.4e-134], t$95$1, If[LessEqual[i, -2.5e-296], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.4e-23], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;i \leq -2.25 \cdot 10^{+175}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;i \leq -7.4 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.5 \cdot 10^{-296}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{-23}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.24999999999999995e175Initial program 56.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.8
Applied rewrites77.8%
Taylor expanded in y around 0
Applied rewrites60.1%
if -2.24999999999999995e175 < i < -7.3999999999999999e-134 or 1.3999999999999999e-23 < i Initial program 70.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.4
Applied rewrites49.4%
if -7.3999999999999999e-134 < i < -2.50000000000000015e-296Initial program 75.9%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.1
Applied rewrites60.1%
Taylor expanded in x around inf
Applied rewrites60.2%
if -2.50000000000000015e-296 < i < 1.3999999999999999e-23Initial program 91.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.1
Applied rewrites48.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- (* (/ b x) i) t) x) a)))
(if (<= x -1.02e+90)
t_1
(if (<= x 1.66e+97) (fma (fma (- j) y (* b a)) i (* (* j t) c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((((b / x) * i) - t) * x) * a;
double tmp;
if (x <= -1.02e+90) {
tmp = t_1;
} else if (x <= 1.66e+97) {
tmp = fma(fma(-j, y, (b * a)), i, ((j * t) * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(Float64(b / x) * i) - t) * x) * a) tmp = 0.0 if (x <= -1.02e+90) tmp = t_1; elseif (x <= 1.66e+97) tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(j * t) * c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(N[(b / x), $MachinePrecision] * i), $MachinePrecision] - t), $MachinePrecision] * x), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.02e+90], t$95$1, If[LessEqual[x, 1.66e+97], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\frac{b}{x} \cdot i - t\right) \cdot x\right) \cdot a\\
\mathbf{if}\;x \leq -1.02 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.66 \cdot 10^{+97}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(j \cdot t\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.02000000000000005e90 or 1.6599999999999999e97 < x Initial program 75.7%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.0
Applied rewrites68.0%
Taylor expanded in x around inf
Applied rewrites68.0%
Applied rewrites71.5%
if -1.02000000000000005e90 < x < 1.6599999999999999e97Initial program 74.6%
Taylor expanded in y around 0
Applied rewrites83.7%
Taylor expanded in z around 0
Applied rewrites68.8%
Taylor expanded in x around 0
Applied rewrites62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- t) x) a)))
(if (<= x -5.2e-34)
t_1
(if (<= x 6.2e-294)
(* (* (- y) j) i)
(if (<= x 3600000.0) (* (* b a) i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-t * x) * a;
double tmp;
if (x <= -5.2e-34) {
tmp = t_1;
} else if (x <= 6.2e-294) {
tmp = (-y * j) * i;
} else if (x <= 3600000.0) {
tmp = (b * a) * i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (-t * x) * a
if (x <= (-5.2d-34)) then
tmp = t_1
else if (x <= 6.2d-294) then
tmp = (-y * j) * i
else if (x <= 3600000.0d0) then
tmp = (b * a) * i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-t * x) * a;
double tmp;
if (x <= -5.2e-34) {
tmp = t_1;
} else if (x <= 6.2e-294) {
tmp = (-y * j) * i;
} else if (x <= 3600000.0) {
tmp = (b * a) * i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-t * x) * a tmp = 0 if x <= -5.2e-34: tmp = t_1 elif x <= 6.2e-294: tmp = (-y * j) * i elif x <= 3600000.0: tmp = (b * a) * i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-t) * x) * a) tmp = 0.0 if (x <= -5.2e-34) tmp = t_1; elseif (x <= 6.2e-294) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (x <= 3600000.0) tmp = Float64(Float64(b * a) * i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-t * x) * a; tmp = 0.0; if (x <= -5.2e-34) tmp = t_1; elseif (x <= 6.2e-294) tmp = (-y * j) * i; elseif (x <= 3600000.0) tmp = (b * a) * i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -5.2e-34], t$95$1, If[LessEqual[x, 6.2e-294], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 3600000.0], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-294}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;x \leq 3600000:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.1999999999999999e-34 or 3.6e6 < x Initial program 74.7%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.1
Applied rewrites59.1%
Taylor expanded in x around inf
Applied rewrites50.8%
if -5.1999999999999999e-34 < x < 6.20000000000000007e-294Initial program 71.9%
Taylor expanded in y around 0
Applied rewrites83.8%
Taylor expanded in z around 0
Applied rewrites69.2%
Taylor expanded in y around inf
Applied rewrites39.1%
if 6.20000000000000007e-294 < x < 3.6e6Initial program 78.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.2
Applied rewrites56.2%
Taylor expanded in y around 0
Applied rewrites38.8%
Final simplification44.4%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (fma (- i) j (* z x)) y))) (if (<= y -5.5e-32) t_1 (if (<= y 2e+73) (* (fma (- x) t (* i b)) a) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double tmp;
if (y <= -5.5e-32) {
tmp = t_1;
} else if (y <= 2e+73) {
tmp = fma(-x, t, (i * b)) * a;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) tmp = 0.0 if (y <= -5.5e-32) tmp = t_1; elseif (y <= 2e+73) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.5e-32], t$95$1, If[LessEqual[y, 2e+73], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+73}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.50000000000000024e-32 or 1.99999999999999997e73 < y Initial program 70.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.7
Applied rewrites62.7%
if -5.50000000000000024e-32 < y < 1.99999999999999997e73Initial program 78.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.1
Applied rewrites59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* j c)) t)))
(if (<= t -8.8e+46)
t_1
(if (<= t 3.6e+81) (* (fma (- i) j (* z x)) y) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, a, (j * c)) * t;
double tmp;
if (t <= -8.8e+46) {
tmp = t_1;
} else if (t <= 3.6e+81) {
tmp = fma(-i, j, (z * x)) * y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), a, Float64(j * c)) * t) tmp = 0.0 if (t <= -8.8e+46) tmp = t_1; elseif (t <= 3.6e+81) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -8.8e+46], t$95$1, If[LessEqual[t, 3.6e+81], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
\mathbf{if}\;t \leq -8.8 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.8000000000000001e46 or 3.60000000000000005e81 < t Initial program 69.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.2
Applied rewrites66.2%
if -8.8000000000000001e46 < t < 3.60000000000000005e81Initial program 79.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.7
Applied rewrites47.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -9.5e+114)
t_1
(if (<= z 1.06e+99) (* (fma (- i) y (* c t)) j) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -9.5e+114) {
tmp = t_1;
} else if (z <= 1.06e+99) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -9.5e+114) tmp = t_1; elseif (z <= 1.06e+99) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -9.5e+114], t$95$1, If[LessEqual[z, 1.06e+99], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{+114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+99}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.5000000000000001e114 or 1.05999999999999999e99 < z Initial program 66.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.8
Applied rewrites63.8%
if -9.5000000000000001e114 < z < 1.05999999999999999e99Initial program 78.6%
Taylor expanded in y around 0
Applied rewrites81.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6445.7
Applied rewrites45.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* c t) j)))
(if (<= t -1.15e+78)
t_1
(if (<= t -6.8) (* (* z y) x) (if (<= t 4.5e+89) (* (* i b) a) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * t) * j;
double tmp;
if (t <= -1.15e+78) {
tmp = t_1;
} else if (t <= -6.8) {
tmp = (z * y) * x;
} else if (t <= 4.5e+89) {
tmp = (i * b) * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (c * t) * j
if (t <= (-1.15d+78)) then
tmp = t_1
else if (t <= (-6.8d0)) then
tmp = (z * y) * x
else if (t <= 4.5d+89) then
tmp = (i * b) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * t) * j;
double tmp;
if (t <= -1.15e+78) {
tmp = t_1;
} else if (t <= -6.8) {
tmp = (z * y) * x;
} else if (t <= 4.5e+89) {
tmp = (i * b) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * t) * j tmp = 0 if t <= -1.15e+78: tmp = t_1 elif t <= -6.8: tmp = (z * y) * x elif t <= 4.5e+89: tmp = (i * b) * a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * t) * j) tmp = 0.0 if (t <= -1.15e+78) tmp = t_1; elseif (t <= -6.8) tmp = Float64(Float64(z * y) * x); elseif (t <= 4.5e+89) tmp = Float64(Float64(i * b) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * t) * j; tmp = 0.0; if (t <= -1.15e+78) tmp = t_1; elseif (t <= -6.8) tmp = (z * y) * x; elseif (t <= 4.5e+89) tmp = (i * b) * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[t, -1.15e+78], t$95$1, If[LessEqual[t, -6.8], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t, 4.5e+89], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot t\right) \cdot j\\
\mathbf{if}\;t \leq -1.15 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -6.8:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+89}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.1500000000000001e78 or 4.5e89 < t Initial program 66.2%
Taylor expanded in y around 0
Applied rewrites81.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6445.4
Applied rewrites45.4%
Taylor expanded in y around 0
Applied rewrites40.3%
if -1.1500000000000001e78 < t < -6.79999999999999982Initial program 85.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.8
Applied rewrites47.8%
Taylor expanded in x around inf
Applied rewrites37.4%
if -6.79999999999999982 < t < 4.5e89Initial program 79.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.7
Applied rewrites44.7%
Taylor expanded in x around 0
Applied rewrites33.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -1.12e+129) (* (* c t) j) (if (<= j 380000.0) (* (* b a) i) (* (* (- y) i) j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e+129) {
tmp = (c * t) * j;
} else if (j <= 380000.0) {
tmp = (b * a) * i;
} else {
tmp = (-y * i) * j;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.12d+129)) then
tmp = (c * t) * j
else if (j <= 380000.0d0) then
tmp = (b * a) * i
else
tmp = (-y * i) * j
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e+129) {
tmp = (c * t) * j;
} else if (j <= 380000.0) {
tmp = (b * a) * i;
} else {
tmp = (-y * i) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.12e+129: tmp = (c * t) * j elif j <= 380000.0: tmp = (b * a) * i else: tmp = (-y * i) * j return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.12e+129) tmp = Float64(Float64(c * t) * j); elseif (j <= 380000.0) tmp = Float64(Float64(b * a) * i); else tmp = Float64(Float64(Float64(-y) * i) * j); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.12e+129) tmp = (c * t) * j; elseif (j <= 380000.0) tmp = (b * a) * i; else tmp = (-y * i) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.12e+129], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 380000.0], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.12 \cdot 10^{+129}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{elif}\;j \leq 380000:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if j < -1.11999999999999993e129Initial program 66.1%
Taylor expanded in y around 0
Applied rewrites70.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6468.7
Applied rewrites68.7%
Taylor expanded in y around 0
Applied rewrites41.8%
if -1.11999999999999993e129 < j < 3.8e5Initial program 77.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.2
Applied rewrites40.2%
Taylor expanded in y around 0
Applied rewrites32.9%
if 3.8e5 < j Initial program 74.2%
Taylor expanded in y around 0
Applied rewrites69.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.1
Applied rewrites60.1%
Taylor expanded in y around inf
Applied rewrites47.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -1.12e+129) (* (* c t) j) (if (<= j 380000.0) (* (* b a) i) (* (* (- y) j) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e+129) {
tmp = (c * t) * j;
} else if (j <= 380000.0) {
tmp = (b * a) * i;
} else {
tmp = (-y * j) * i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.12d+129)) then
tmp = (c * t) * j
else if (j <= 380000.0d0) then
tmp = (b * a) * i
else
tmp = (-y * j) * i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e+129) {
tmp = (c * t) * j;
} else if (j <= 380000.0) {
tmp = (b * a) * i;
} else {
tmp = (-y * j) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.12e+129: tmp = (c * t) * j elif j <= 380000.0: tmp = (b * a) * i else: tmp = (-y * j) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.12e+129) tmp = Float64(Float64(c * t) * j); elseif (j <= 380000.0) tmp = Float64(Float64(b * a) * i); else tmp = Float64(Float64(Float64(-y) * j) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.12e+129) tmp = (c * t) * j; elseif (j <= 380000.0) tmp = (b * a) * i; else tmp = (-y * j) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.12e+129], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 380000.0], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.12 \cdot 10^{+129}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{elif}\;j \leq 380000:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\end{array}
\end{array}
if j < -1.11999999999999993e129Initial program 66.1%
Taylor expanded in y around 0
Applied rewrites70.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6468.7
Applied rewrites68.7%
Taylor expanded in y around 0
Applied rewrites41.8%
if -1.11999999999999993e129 < j < 3.8e5Initial program 77.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.2
Applied rewrites40.2%
Taylor expanded in y around 0
Applied rewrites32.9%
if 3.8e5 < j Initial program 74.2%
Taylor expanded in y around 0
Applied rewrites69.9%
Taylor expanded in z around 0
Applied rewrites70.3%
Taylor expanded in y around inf
Applied rewrites46.1%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* z y) x))) (if (<= z -5.5e+176) t_1 (if (<= z 1.08e+39) (* (* b a) i) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -5.5e+176) {
tmp = t_1;
} else if (z <= 1.08e+39) {
tmp = (b * a) * i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (z <= (-5.5d+176)) then
tmp = t_1
else if (z <= 1.08d+39) then
tmp = (b * a) * i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -5.5e+176) {
tmp = t_1;
} else if (z <= 1.08e+39) {
tmp = (b * a) * i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if z <= -5.5e+176: tmp = t_1 elif z <= 1.08e+39: tmp = (b * a) * i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (z <= -5.5e+176) tmp = t_1; elseif (z <= 1.08e+39) tmp = Float64(Float64(b * a) * i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (z <= -5.5e+176) tmp = t_1; elseif (z <= 1.08e+39) tmp = (b * a) * i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -5.5e+176], t$95$1, If[LessEqual[z, 1.08e+39], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{+39}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.4999999999999995e176 or 1.07999999999999998e39 < z Initial program 67.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.4
Applied rewrites63.4%
Taylor expanded in x around inf
Applied rewrites42.5%
if -5.4999999999999995e176 < z < 1.07999999999999998e39Initial program 78.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.7
Applied rewrites50.7%
Taylor expanded in y around 0
Applied rewrites32.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -3.7e+44) (* (* z x) y) (if (<= z 3.4e+94) (* (* c t) j) (* (* z y) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.7e+44) {
tmp = (z * x) * y;
} else if (z <= 3.4e+94) {
tmp = (c * t) * j;
} else {
tmp = (z * y) * x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-3.7d+44)) then
tmp = (z * x) * y
else if (z <= 3.4d+94) then
tmp = (c * t) * j
else
tmp = (z * y) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.7e+44) {
tmp = (z * x) * y;
} else if (z <= 3.4e+94) {
tmp = (c * t) * j;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.7e+44: tmp = (z * x) * y elif z <= 3.4e+94: tmp = (c * t) * j else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.7e+44) tmp = Float64(Float64(z * x) * y); elseif (z <= 3.4e+94) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(z * y) * x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.7e+44) tmp = (z * x) * y; elseif (z <= 3.4e+94) tmp = (c * t) * j; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.7e+44], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 3.4e+94], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+44}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+94}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if z < -3.7000000000000001e44Initial program 68.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.6
Applied rewrites52.6%
Taylor expanded in x around inf
Applied rewrites27.2%
Applied rewrites30.8%
if -3.7000000000000001e44 < z < 3.4000000000000002e94Initial program 78.1%
Taylor expanded in y around 0
Applied rewrites82.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6446.9
Applied rewrites46.9%
Taylor expanded in y around 0
Applied rewrites23.3%
if 3.4000000000000002e94 < z Initial program 69.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.7
Applied rewrites67.7%
Taylor expanded in x around inf
Applied rewrites46.1%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z x) y))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (z * x) * y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
def code(x, y, z, t, a, b, c, i, j): return (z * x) * y
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * x) * y) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * x) * y; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot x\right) \cdot y
\end{array}
Initial program 75.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6430.9
Applied rewrites30.9%
Taylor expanded in x around inf
Applied rewrites17.0%
Applied rewrites18.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024296
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))