
(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 26 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
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(fma t (fma j c (* x (- a))) (* z (fma c (- b) (* x y)))))))
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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(t, fma(j, c, (x * -a)), (z * fma(c, -b, (x * y))));
}
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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(z * fma(c, Float64(-b), Float64(x * y)))); end return 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\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.5%
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 i around 0
Simplified53.1%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma z (- b) (* t j)))))
(if (<= c -2e+107)
t_1
(if (<= c -1.95e-25)
(* z (fma c (- b) (* x y)))
(if (<= c -3e-155)
(* i (fma y (- j) (* a b)))
(if (<= c 4.3e-47)
(* y (fma x z (* i (- j))))
(if (<= c 1.16e+41)
(fma b (fma c (- z) (* a i)) (* t (* c j)))
(if (<= c 7.2e+132) (* x (- (* y z) (* t 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 * fma(z, -b, (t * j));
double tmp;
if (c <= -2e+107) {
tmp = t_1;
} else if (c <= -1.95e-25) {
tmp = z * fma(c, -b, (x * y));
} else if (c <= -3e-155) {
tmp = i * fma(y, -j, (a * b));
} else if (c <= 4.3e-47) {
tmp = y * fma(x, z, (i * -j));
} else if (c <= 1.16e+41) {
tmp = fma(b, fma(c, -z, (a * i)), (t * (c * j)));
} else if (c <= 7.2e+132) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(z, Float64(-b), Float64(t * j))) tmp = 0.0 if (c <= -2e+107) tmp = t_1; elseif (c <= -1.95e-25) tmp = Float64(z * fma(c, Float64(-b), Float64(x * y))); elseif (c <= -3e-155) tmp = Float64(i * fma(y, Float64(-j), Float64(a * b))); elseif (c <= 4.3e-47) tmp = Float64(y * fma(x, z, Float64(i * Float64(-j)))); elseif (c <= 1.16e+41) tmp = fma(b, fma(c, Float64(-z), Float64(a * i)), Float64(t * Float64(c * j))); elseif (c <= 7.2e+132) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2e+107], t$95$1, If[LessEqual[c, -1.95e-25], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3e-155], N[(i * N[(y * (-j) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.3e-47], N[(y * N[(x * z + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.16e+41], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+132], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(z, -b, t \cdot j\right)\\
\mathbf{if}\;c \leq -2 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.95 \cdot 10^{-25}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{elif}\;c \leq -3 \cdot 10^{-155}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(y, -j, a \cdot b\right)\\
\mathbf{elif}\;c \leq 4.3 \cdot 10^{-47}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 1.16 \cdot 10^{+41}:\\
\;\;\;\;\mathsf{fma}\left(b, \mathsf{fma}\left(c, -z, a \cdot i\right), t \cdot \left(c \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+132}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.9999999999999999e107 or 7.20000000000000031e132 < c Initial program 61.3%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6458.2
Simplified58.2%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6474.7
Simplified74.7%
if -1.9999999999999999e107 < c < -1.95e-25Initial program 89.2%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.4
Simplified78.4%
if -1.95e-25 < c < -2.99999999999999984e-155Initial program 84.3%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
*-commutativeN/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.5
Simplified54.5%
if -2.99999999999999984e-155 < c < 4.2999999999999998e-47Initial program 75.7%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6474.5
Simplified74.5%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6457.9
Simplified57.9%
if 4.2999999999999998e-47 < c < 1.16000000000000007e41Initial program 77.2%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f6473.0
Simplified73.0%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6477.5
Simplified77.5%
if 1.16000000000000007e41 < c < 7.20000000000000031e132Initial program 80.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6467.2
Simplified67.2%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma t (fma j c (* x (- a))) (* z (fma c (- b) (* x y))))))
(if (<= t -1.7e-31)
t_1
(if (<= t 1.1e-35)
(fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* 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 = fma(t, fma(j, c, (x * -a)), (z * fma(c, -b, (x * y))));
double tmp;
if (t <= -1.7e-31) {
tmp = t_1;
} else if (t <= 1.1e-35) {
tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(z * fma(c, Float64(-b), Float64(x * y)))) tmp = 0.0 if (t <= -1.7e-31) tmp = t_1; elseif (t <= 1.1e-35) tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-31], t$95$1, If[LessEqual[t, 1.1e-35], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-35}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.7000000000000001e-31 or 1.09999999999999997e-35 < t Initial program 67.0%
Taylor expanded in i around 0
Simplified77.7%
if -1.7000000000000001e-31 < t < 1.09999999999999997e-35Initial program 81.3%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.1%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))) (t_2 (fma j c (* x (- a)))))
(if (<= b -3.9e+147)
(fma t t_2 t_1)
(if (<= b 2.9e+207) (fma t t_2 (* z (fma c (- b) (* 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 = b * fma(c, -z, (a * i));
double t_2 = fma(j, c, (x * -a));
double tmp;
if (b <= -3.9e+147) {
tmp = fma(t, t_2, t_1);
} else if (b <= 2.9e+207) {
tmp = fma(t, t_2, (z * fma(c, -b, (x * y))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) t_2 = fma(j, c, Float64(x * Float64(-a))) tmp = 0.0 if (b <= -3.9e+147) tmp = fma(t, t_2, t_1); elseif (b <= 2.9e+207) tmp = fma(t, t_2, Float64(z * fma(c, Float64(-b), Float64(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[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.9e+147], N[(t * t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 2.9e+207], N[(t * t$95$2 + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
t_2 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{+147}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_2, t\_1\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+207}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_2, z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.90000000000000016e147Initial program 65.1%
Taylor expanded in y around 0
sub-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
Simplified74.4%
if -3.90000000000000016e147 < b < 2.89999999999999997e207Initial program 73.6%
Taylor expanded in i around 0
Simplified69.7%
if 2.89999999999999997e207 < b Initial program 78.1%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
remove-double-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6499.9
Simplified99.9%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j c (* x (- a))))
(t_2 (fma t t_1 (* y (fma j (- i) (* x z))))))
(if (<= y -5.8e-29)
t_2
(if (<= y 3.5e-40) (fma t t_1 (* b (fma c (- z) (* a i)))) 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(j, c, (x * -a));
double t_2 = fma(t, t_1, (y * fma(j, -i, (x * z))));
double tmp;
if (y <= -5.8e-29) {
tmp = t_2;
} else if (y <= 3.5e-40) {
tmp = fma(t, t_1, (b * fma(c, -z, (a * i))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, c, Float64(x * Float64(-a))) t_2 = fma(t, t_1, Float64(y * fma(j, Float64(-i), Float64(x * z)))) tmp = 0.0 if (y <= -5.8e-29) tmp = t_2; elseif (y <= 3.5e-40) tmp = fma(t, t_1, Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e-29], t$95$2, If[LessEqual[y, 3.5e-40], N[(t * t$95$1 + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
t_2 := \mathsf{fma}\left(t, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{-29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.80000000000000048e-29 or 3.5000000000000002e-40 < y Initial program 69.1%
Taylor expanded in b around 0
Simplified72.1%
if -5.80000000000000048e-29 < y < 3.5000000000000002e-40Initial program 78.7%
Taylor expanded in y around 0
sub-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
Simplified73.6%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (fma j (- i) (* x z)))))
(if (<= y -2.75e+159)
t_1
(if (<= y 6.5e+175)
(fma t (fma j c (* x (- a))) (* b (fma c (- z) (* 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 = y * fma(j, -i, (x * z));
double tmp;
if (y <= -2.75e+159) {
tmp = t_1;
} else if (y <= 6.5e+175) {
tmp = fma(t, fma(j, c, (x * -a)), (b * fma(c, -z, (a * i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * fma(j, Float64(-i), Float64(x * z))) tmp = 0.0 if (y <= -2.75e+159) tmp = t_1; elseif (y <= 6.5e+175) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.75e+159], t$95$1, If[LessEqual[y, 6.5e+175], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{if}\;y \leq -2.75 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+175}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.7499999999999999e159 or 6.49999999999999977e175 < y Initial program 63.7%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6483.1
Simplified83.1%
if -2.7499999999999999e159 < y < 6.49999999999999977e175Initial program 75.7%
Taylor expanded in y around 0
sub-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
Simplified65.7%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -4.5e+22)
(* y (fma x z (* i (- j))))
(if (<= y 6.5e+175)
(fma t (fma j c (* x (- a))) (- (* z (* b c))))
(* y (fma j (- i) (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.5e+22) {
tmp = y * fma(x, z, (i * -j));
} else if (y <= 6.5e+175) {
tmp = fma(t, fma(j, c, (x * -a)), -(z * (b * c)));
} else {
tmp = y * fma(j, -i, (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -4.5e+22) tmp = Float64(y * fma(x, z, Float64(i * Float64(-j)))); elseif (y <= 6.5e+175) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(-Float64(z * Float64(b * c)))); else tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -4.5e+22], N[(y * N[(x * z + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+175], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + (-N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+175}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), -z \cdot \left(b \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -4.4999999999999998e22Initial program 61.0%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6458.1
Simplified58.1%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6469.1
Simplified69.1%
if -4.4999999999999998e22 < y < 6.49999999999999977e175Initial program 77.1%
Taylor expanded in i around 0
Simplified64.8%
Taylor expanded in c around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6460.1
Simplified60.1%
if 6.49999999999999977e175 < y Initial program 77.6%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.8
Simplified77.8%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma x y (* b (- c))))))
(if (<= z -1.9e+21)
t_1
(if (<= z -1.02e-246)
(* i (fma y (- j) (* a b)))
(if (<= z -4.3e-291)
(* t (fma j c (* x (- a))))
(if (<= z 1e+42) (* j (fma i (- y) (* 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 = z * fma(x, y, (b * -c));
double tmp;
if (z <= -1.9e+21) {
tmp = t_1;
} else if (z <= -1.02e-246) {
tmp = i * fma(y, -j, (a * b));
} else if (z <= -4.3e-291) {
tmp = t * fma(j, c, (x * -a));
} else if (z <= 1e+42) {
tmp = j * fma(i, -y, (t * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(x, y, Float64(b * Float64(-c)))) tmp = 0.0 if (z <= -1.9e+21) tmp = t_1; elseif (z <= -1.02e-246) tmp = Float64(i * fma(y, Float64(-j), Float64(a * b))); elseif (z <= -4.3e-291) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); elseif (z <= 1e+42) tmp = Float64(j * fma(i, Float64(-y), Float64(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[(z * N[(x * y + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.9e+21], t$95$1, If[LessEqual[z, -1.02e-246], N[(i * N[(y * (-j) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.3e-291], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+42], N[(j * N[(i * (-y) + N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(x, y, b \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -1.9 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-246}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(y, -j, a \cdot b\right)\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;z \leq 10^{+42}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(i, -y, t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.9e21 or 1.00000000000000004e42 < z Initial program 61.8%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Simplified66.7%
lift-neg.f64N/A
lift-*.f64N/A
lift-fma.f64N/A
*-commutativeN/A
lower-*.f6466.7
lift-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lower-*.f6467.6
Applied egg-rr67.6%
if -1.9e21 < z < -1.02e-246Initial program 80.7%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
*-commutativeN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.6
Simplified51.6%
if -1.02e-246 < z < -4.30000000000000035e-291Initial program 76.8%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6485.4
Simplified85.4%
if -4.30000000000000035e-291 < z < 1.00000000000000004e42Initial program 85.5%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6462.2
Simplified62.2%
Final simplification63.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma c (- b) (* x y)))))
(if (<= z -1.05e-101)
t_1
(if (<= z -1.02e-246)
(* i (fma y (- j) (* a b)))
(if (<= z -4.3e-291)
(* t (fma j c (* x (- a))))
(if (<= z 1e+42) (* j (fma i (- y) (* 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 = z * fma(c, -b, (x * y));
double tmp;
if (z <= -1.05e-101) {
tmp = t_1;
} else if (z <= -1.02e-246) {
tmp = i * fma(y, -j, (a * b));
} else if (z <= -4.3e-291) {
tmp = t * fma(j, c, (x * -a));
} else if (z <= 1e+42) {
tmp = j * fma(i, -y, (t * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(c, Float64(-b), Float64(x * y))) tmp = 0.0 if (z <= -1.05e-101) tmp = t_1; elseif (z <= -1.02e-246) tmp = Float64(i * fma(y, Float64(-j), Float64(a * b))); elseif (z <= -4.3e-291) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); elseif (z <= 1e+42) tmp = Float64(j * fma(i, Float64(-y), Float64(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[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.05e-101], t$95$1, If[LessEqual[z, -1.02e-246], N[(i * N[(y * (-j) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.3e-291], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+42], N[(j * N[(i * (-y) + N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{-101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-246}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(y, -j, a \cdot b\right)\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;z \leq 10^{+42}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(i, -y, t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.05000000000000008e-101 or 1.00000000000000004e42 < z Initial program 67.2%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.0
Simplified63.0%
if -1.05000000000000008e-101 < z < -1.02e-246Initial program 75.5%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
*-commutativeN/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.0
Simplified56.0%
if -1.02e-246 < z < -4.30000000000000035e-291Initial program 76.8%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6485.4
Simplified85.4%
if -4.30000000000000035e-291 < z < 1.00000000000000004e42Initial program 85.5%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6462.2
Simplified62.2%
Final simplification63.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -6.6e+25)
t_1
(if (<= a -1.4e-269)
(- (* c (* z b)))
(if (<= a 3.7e-218)
(* y (* x z))
(if (<= a 1.02e-17) (* 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 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -6.6e+25) {
tmp = t_1;
} else if (a <= -1.4e-269) {
tmp = -(c * (z * b));
} else if (a <= 3.7e-218) {
tmp = y * (x * z);
} else if (a <= 1.02e-17) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -6.6e+25) tmp = t_1; elseif (a <= -1.4e-269) tmp = Float64(-Float64(c * Float64(z * b))); elseif (a <= 3.7e-218) tmp = Float64(y * Float64(x * z)); elseif (a <= 1.02e-17) tmp = Float64(c * Float64(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[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+25], t$95$1, If[LessEqual[a, -1.4e-269], (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 3.7e-218], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.02e-17], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.4 \cdot 10^{-269}:\\
\;\;\;\;-c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{-218}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{-17}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.6000000000000002e25 or 1.01999999999999997e-17 < a Initial program 71.2%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.2
Simplified58.2%
if -6.6000000000000002e25 < a < -1.39999999999999997e-269Initial program 69.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.5
Simplified55.5%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6448.8
Simplified48.8%
Taylor expanded in y around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6441.1
Simplified41.1%
if -1.39999999999999997e-269 < a < 3.7000000000000002e-218Initial program 80.8%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.2
Simplified50.2%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6449.6
Simplified49.6%
Taylor expanded in x around inf
lower-*.f6443.7
Simplified43.7%
if 3.7000000000000002e-218 < a < 1.01999999999999997e-17Initial program 76.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6461.4
Simplified61.4%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6439.3
Simplified39.3%
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6439.4
Applied egg-rr39.4%
Final simplification48.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma t (fma c j (* x (- a))) (* x (* y z)))))
(if (<= x -1.55e-83)
t_1
(if (<= x 1.08e-13) (fma b (fma c (- z) (* a i)) (* t (* c 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(t, fma(c, j, (x * -a)), (x * (y * z)));
double tmp;
if (x <= -1.55e-83) {
tmp = t_1;
} else if (x <= 1.08e-13) {
tmp = fma(b, fma(c, -z, (a * i)), (t * (c * j)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(t, fma(c, j, Float64(x * Float64(-a))), Float64(x * Float64(y * z))) tmp = 0.0 if (x <= -1.55e-83) tmp = t_1; elseif (x <= 1.08e-13) tmp = fma(b, fma(c, Float64(-z), Float64(a * i)), Float64(t * Float64(c * j))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e-83], t$95$1, If[LessEqual[x, 1.08e-13], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, \mathsf{fma}\left(c, j, x \cdot \left(-a\right)\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{-83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-13}:\\
\;\;\;\;\mathsf{fma}\left(b, \mathsf{fma}\left(c, -z, a \cdot i\right), t \cdot \left(c \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.54999999999999996e-83 or 1.0799999999999999e-13 < x Initial program 71.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f6465.5
Simplified65.5%
Taylor expanded in b around 0
sub-negN/A
distribute-rgt-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
associate-*r*N/A
mul-1-negN/A
associate-+l+N/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-+l+N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
Simplified65.1%
if -1.54999999999999996e-83 < x < 1.0799999999999999e-13Initial program 76.2%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f6468.5
Simplified68.5%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6460.3
Simplified60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.3e+63)
(- (* y (* i j)))
(if (<= i -9.8e-183)
(* j (* t c))
(if (<= i 1.15e-167)
(* y (* x z))
(if (<= i 5e+84) (- (* a (* x t))) (* a (* b 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 <= -1.3e+63) {
tmp = -(y * (i * j));
} else if (i <= -9.8e-183) {
tmp = j * (t * c);
} else if (i <= 1.15e-167) {
tmp = y * (x * z);
} else if (i <= 5e+84) {
tmp = -(a * (x * t));
} else {
tmp = a * (b * 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 (i <= (-1.3d+63)) then
tmp = -(y * (i * j))
else if (i <= (-9.8d-183)) then
tmp = j * (t * c)
else if (i <= 1.15d-167) then
tmp = y * (x * z)
else if (i <= 5d+84) then
tmp = -(a * (x * t))
else
tmp = a * (b * 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 (i <= -1.3e+63) {
tmp = -(y * (i * j));
} else if (i <= -9.8e-183) {
tmp = j * (t * c);
} else if (i <= 1.15e-167) {
tmp = y * (x * z);
} else if (i <= 5e+84) {
tmp = -(a * (x * t));
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.3e+63: tmp = -(y * (i * j)) elif i <= -9.8e-183: tmp = j * (t * c) elif i <= 1.15e-167: tmp = y * (x * z) elif i <= 5e+84: tmp = -(a * (x * t)) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.3e+63) tmp = Float64(-Float64(y * Float64(i * j))); elseif (i <= -9.8e-183) tmp = Float64(j * Float64(t * c)); elseif (i <= 1.15e-167) tmp = Float64(y * Float64(x * z)); elseif (i <= 5e+84) tmp = Float64(-Float64(a * Float64(x * t))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.3e+63) tmp = -(y * (i * j)); elseif (i <= -9.8e-183) tmp = j * (t * c); elseif (i <= 1.15e-167) tmp = y * (x * z); elseif (i <= 5e+84) tmp = -(a * (x * t)); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.3e+63], (-N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), If[LessEqual[i, -9.8e-183], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.15e-167], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e+84], (-N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.3 \cdot 10^{+63}:\\
\;\;\;\;-y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;i \leq -9.8 \cdot 10^{-183}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{-167}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+84}:\\
\;\;\;\;-a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -1.3000000000000001e63Initial program 64.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6451.0
Simplified51.0%
Taylor expanded in i around inf
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6440.9
Simplified40.9%
if -1.3000000000000001e63 < i < -9.799999999999999e-183Initial program 87.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6450.6
Simplified50.6%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6443.0
Simplified43.0%
if -9.799999999999999e-183 < i < 1.1500000000000001e-167Initial program 76.4%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.4
Simplified57.4%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6463.4
Simplified63.4%
Taylor expanded in x around inf
lower-*.f6449.8
Simplified49.8%
if 1.1500000000000001e-167 < i < 5.0000000000000001e84Initial program 81.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.5
Simplified41.5%
Taylor expanded in t around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6439.4
Simplified39.4%
if 5.0000000000000001e84 < i Initial program 57.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.9
Simplified42.9%
Taylor expanded in t around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6440.6
Simplified40.6%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* c (* z b)))))
(if (<= z -8e+188)
t_1
(if (<= z -9.5e-8)
(* z (* x y))
(if (<= z 2.05e+42)
(* c (* t j))
(if (<= z 3e+93) (* t (* x (- 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 * (z * b));
double tmp;
if (z <= -8e+188) {
tmp = t_1;
} else if (z <= -9.5e-8) {
tmp = z * (x * y);
} else if (z <= 2.05e+42) {
tmp = c * (t * j);
} else if (z <= 3e+93) {
tmp = t * (x * -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 * (z * b))
if (z <= (-8d+188)) then
tmp = t_1
else if (z <= (-9.5d-8)) then
tmp = z * (x * y)
else if (z <= 2.05d+42) then
tmp = c * (t * j)
else if (z <= 3d+93) then
tmp = t * (x * -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 * (z * b));
double tmp;
if (z <= -8e+188) {
tmp = t_1;
} else if (z <= -9.5e-8) {
tmp = z * (x * y);
} else if (z <= 2.05e+42) {
tmp = c * (t * j);
} else if (z <= 3e+93) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(c * (z * b)) tmp = 0 if z <= -8e+188: tmp = t_1 elif z <= -9.5e-8: tmp = z * (x * y) elif z <= 2.05e+42: tmp = c * (t * j) elif z <= 3e+93: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(c * Float64(z * b))) tmp = 0.0 if (z <= -8e+188) tmp = t_1; elseif (z <= -9.5e-8) tmp = Float64(z * Float64(x * y)); elseif (z <= 2.05e+42) tmp = Float64(c * Float64(t * j)); elseif (z <= 3e+93) tmp = Float64(t * Float64(x * Float64(-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 * (z * b)); tmp = 0.0; if (z <= -8e+188) tmp = t_1; elseif (z <= -9.5e-8) tmp = z * (x * y); elseif (z <= 2.05e+42) tmp = c * (t * j); elseif (z <= 3e+93) tmp = t * (x * -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[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[z, -8e+188], t$95$1, If[LessEqual[z, -9.5e-8], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+42], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+93], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -c \cdot \left(z \cdot b\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-8}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+93}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.0000000000000002e188 or 2.99999999999999978e93 < z Initial program 64.1%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.8
Simplified73.8%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6466.1
Simplified66.1%
Taylor expanded in y around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6454.0
Simplified54.0%
if -8.0000000000000002e188 < z < -9.50000000000000036e-8Initial program 59.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Simplified59.7%
Taylor expanded in c around 0
lower-*.f6441.4
Simplified41.4%
if -9.50000000000000036e-8 < z < 2.05e42Initial program 82.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6452.6
Simplified52.6%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6433.4
Simplified33.4%
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6435.3
Applied egg-rr35.3%
if 2.05e42 < z < 2.99999999999999978e93Initial program 67.1%
Taylor expanded in i around 0
Simplified59.5%
Taylor expanded in a around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6459.8
Simplified59.8%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.2e-25)
(* c (fma j t (* b (- z))))
(if (<= c -3e-155)
(* i (fma y (- j) (* a b)))
(if (<= c 1.4e+77)
(* y (fma x z (* i (- j))))
(* c (fma z (- b) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.2e-25) {
tmp = c * fma(j, t, (b * -z));
} else if (c <= -3e-155) {
tmp = i * fma(y, -j, (a * b));
} else if (c <= 1.4e+77) {
tmp = y * fma(x, z, (i * -j));
} else {
tmp = c * fma(z, -b, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.2e-25) tmp = Float64(c * fma(j, t, Float64(b * Float64(-z)))); elseif (c <= -3e-155) tmp = Float64(i * fma(y, Float64(-j), Float64(a * b))); elseif (c <= 1.4e+77) tmp = Float64(y * fma(x, z, Float64(i * Float64(-j)))); else tmp = Float64(c * fma(z, Float64(-b), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.2e-25], N[(c * N[(j * t + N[(b * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3e-155], N[(i * N[(y * (-j) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.4e+77], N[(y * N[(x * z + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.2 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;c \leq -3 \cdot 10^{-155}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(y, -j, a \cdot b\right)\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{+77}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(z, -b, t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.2000000000000002e-25Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Simplified70.4%
if -2.2000000000000002e-25 < c < -2.99999999999999984e-155Initial program 84.3%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
*-commutativeN/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.5
Simplified54.5%
if -2.99999999999999984e-155 < c < 1.4e77Initial program 76.2%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6473.6
Simplified73.6%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6452.2
Simplified52.2%
if 1.4e77 < c Initial program 58.9%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6455.1
Simplified55.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.4
Simplified69.4%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.2e-25)
(* c (fma j t (* b (- z))))
(if (<= c -1.35e-236)
(* i (fma y (- j) (* a b)))
(if (<= c 7.2e+132)
(* x (- (* y z) (* t a)))
(* c (fma z (- b) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.2e-25) {
tmp = c * fma(j, t, (b * -z));
} else if (c <= -1.35e-236) {
tmp = i * fma(y, -j, (a * b));
} else if (c <= 7.2e+132) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = c * fma(z, -b, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.2e-25) tmp = Float64(c * fma(j, t, Float64(b * Float64(-z)))); elseif (c <= -1.35e-236) tmp = Float64(i * fma(y, Float64(-j), Float64(a * b))); elseif (c <= 7.2e+132) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(c * fma(z, Float64(-b), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.2e-25], N[(c * N[(j * t + N[(b * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.35e-236], N[(i * N[(y * (-j) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+132], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.2 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;c \leq -1.35 \cdot 10^{-236}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(y, -j, a \cdot b\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+132}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(z, -b, t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.2000000000000002e-25Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Simplified70.4%
if -2.2000000000000002e-25 < c < -1.35e-236Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
*-commutativeN/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.4
Simplified54.4%
if -1.35e-236 < c < 7.20000000000000031e132Initial program 76.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6450.9
Simplified50.9%
if 7.20000000000000031e132 < c Initial program 55.4%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6451.1
Simplified51.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.8
Simplified71.8%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.2e-25)
(* c (fma j t (* b (- z))))
(if (<= c -1.7e-237)
(* i (fma y (- j) (* a b)))
(if (<= c 5.6e-11)
(* a (fma t (- x) (* b i)))
(* c (fma z (- b) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.2e-25) {
tmp = c * fma(j, t, (b * -z));
} else if (c <= -1.7e-237) {
tmp = i * fma(y, -j, (a * b));
} else if (c <= 5.6e-11) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = c * fma(z, -b, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.2e-25) tmp = Float64(c * fma(j, t, Float64(b * Float64(-z)))); elseif (c <= -1.7e-237) tmp = Float64(i * fma(y, Float64(-j), Float64(a * b))); elseif (c <= 5.6e-11) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(c * fma(z, Float64(-b), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.2e-25], N[(c * N[(j * t + N[(b * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.7e-237], N[(i * N[(y * (-j) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e-11], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.2 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-237}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(y, -j, a \cdot b\right)\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{-11}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(z, -b, t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.2000000000000002e-25Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Simplified70.4%
if -2.2000000000000002e-25 < c < -1.7000000000000001e-237Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
*-commutativeN/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.4
Simplified54.4%
if -1.7000000000000001e-237 < c < 5.6e-11Initial program 77.4%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.9
Simplified45.9%
if 5.6e-11 < c Initial program 63.3%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6459.3
Simplified59.3%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.8
Simplified60.8%
Final simplification57.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* c (* z b)))))
(if (<= z -8e+188)
t_1
(if (<= z -9.5e-8) (* z (* x y)) (if (<= z 6.5e+69) (* 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 = -(c * (z * b));
double tmp;
if (z <= -8e+188) {
tmp = t_1;
} else if (z <= -9.5e-8) {
tmp = z * (x * y);
} else if (z <= 6.5e+69) {
tmp = c * (t * j);
} 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 * (z * b))
if (z <= (-8d+188)) then
tmp = t_1
else if (z <= (-9.5d-8)) then
tmp = z * (x * y)
else if (z <= 6.5d+69) then
tmp = c * (t * j)
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 * (z * b));
double tmp;
if (z <= -8e+188) {
tmp = t_1;
} else if (z <= -9.5e-8) {
tmp = z * (x * y);
} else if (z <= 6.5e+69) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(c * (z * b)) tmp = 0 if z <= -8e+188: tmp = t_1 elif z <= -9.5e-8: tmp = z * (x * y) elif z <= 6.5e+69: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(c * Float64(z * b))) tmp = 0.0 if (z <= -8e+188) tmp = t_1; elseif (z <= -9.5e-8) tmp = Float64(z * Float64(x * y)); elseif (z <= 6.5e+69) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -(c * (z * b)); tmp = 0.0; if (z <= -8e+188) tmp = t_1; elseif (z <= -9.5e-8) tmp = z * (x * y); elseif (z <= 6.5e+69) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[z, -8e+188], t$95$1, If[LessEqual[z, -9.5e-8], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+69], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -c \cdot \left(z \cdot b\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-8}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+69}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.0000000000000002e188 or 6.5000000000000001e69 < z Initial program 63.6%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.0
Simplified71.0%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6462.7
Simplified62.7%
Taylor expanded in y around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6451.7
Simplified51.7%
if -8.0000000000000002e188 < z < -9.50000000000000036e-8Initial program 59.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Simplified59.7%
Taylor expanded in c around 0
lower-*.f6441.4
Simplified41.4%
if -9.50000000000000036e-8 < z < 6.5000000000000001e69Initial program 82.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6451.5
Simplified51.5%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6432.9
Simplified32.9%
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6434.8
Applied egg-rr34.8%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.1e-95)
(* c (fma j t (* b (- z))))
(if (<= c 5.6e-11)
(* a (fma t (- x) (* b i)))
(* c (fma z (- b) (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.1e-95) {
tmp = c * fma(j, t, (b * -z));
} else if (c <= 5.6e-11) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = c * fma(z, -b, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.1e-95) tmp = Float64(c * fma(j, t, Float64(b * Float64(-z)))); elseif (c <= 5.6e-11) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(c * fma(z, Float64(-b), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.1e-95], N[(c * N[(j * t + N[(b * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e-11], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.1 \cdot 10^{-95}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{-11}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(z, -b, t \cdot j\right)\\
\end{array}
\end{array}
if c < -1.0999999999999999e-95Initial program 73.2%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6461.6
Simplified61.6%
if -1.0999999999999999e-95 < c < 5.6e-11Initial program 80.0%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.9
Simplified44.9%
if 5.6e-11 < c Initial program 63.3%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
neg-mul-1N/A
lower-neg.f6459.3
Simplified59.3%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.8
Simplified60.8%
Final simplification54.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma j t (* b (- z))))))
(if (<= c -1.1e-95)
t_1
(if (<= c 5.6e-11) (* a (fma t (- x) (* b 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 = c * fma(j, t, (b * -z));
double tmp;
if (c <= -1.1e-95) {
tmp = t_1;
} else if (c <= 5.6e-11) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(j, t, Float64(b * Float64(-z)))) tmp = 0.0 if (c <= -1.1e-95) tmp = t_1; elseif (c <= 5.6e-11) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t + N[(b * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.1e-95], t$95$1, If[LessEqual[c, 5.6e-11], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(j, t, b \cdot \left(-z\right)\right)\\
\mathbf{if}\;c \leq -1.1 \cdot 10^{-95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{-11}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.0999999999999999e-95 or 5.6e-11 < c Initial program 68.6%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6460.5
Simplified60.5%
if -1.0999999999999999e-95 < c < 5.6e-11Initial program 80.0%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.9
Simplified44.9%
Final simplification54.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= y -2.7e+126)
t_1
(if (<= y 1.25e+194) (* b (fma c (- z) (* 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 * (x * y);
double tmp;
if (y <= -2.7e+126) {
tmp = t_1;
} else if (y <= 1.25e+194) {
tmp = b * fma(c, -z, (a * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -2.7e+126) tmp = t_1; elseif (y <= 1.25e+194) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.7e+126], t$95$1, If[LessEqual[y, 1.25e+194], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+194}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.70000000000000002e126 or 1.24999999999999997e194 < y Initial program 63.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.0
Simplified65.0%
Taylor expanded in c around 0
lower-*.f6460.2
Simplified60.2%
if -2.70000000000000002e126 < y < 1.24999999999999997e194Initial program 76.2%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
remove-double-negN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.5
Simplified42.5%
Final simplification46.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -2.45e+17) t_1 (if (<= j 1.12e+73) (* 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 = c * (t * j);
double tmp;
if (j <= -2.45e+17) {
tmp = t_1;
} else if (j <= 1.12e+73) {
tmp = z * (x * y);
} 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 (j <= (-2.45d+17)) then
tmp = t_1
else if (j <= 1.12d+73) then
tmp = z * (x * y)
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 (j <= -2.45e+17) {
tmp = t_1;
} else if (j <= 1.12e+73) {
tmp = z * (x * y);
} 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 j <= -2.45e+17: tmp = t_1 elif j <= 1.12e+73: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -2.45e+17) tmp = t_1; elseif (j <= 1.12e+73) tmp = Float64(z * Float64(x * y)); 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 (j <= -2.45e+17) tmp = t_1; elseif (j <= 1.12e+73) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.45e+17], t$95$1, If[LessEqual[j, 1.12e+73], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -2.45 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+73}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.45e17 or 1.12e73 < j Initial program 74.2%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.3
Simplified60.3%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6440.5
Simplified40.5%
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6442.9
Applied egg-rr42.9%
if -2.45e17 < j < 1.12e73Initial program 72.5%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.5
Simplified54.5%
Taylor expanded in c around 0
lower-*.f6434.0
Simplified34.0%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* z (* x y)))) (if (<= y -3.8e-11) t_1 (if (<= y 2.35e+241) (* 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 = z * (x * y);
double tmp;
if (y <= -3.8e-11) {
tmp = t_1;
} else if (y <= 2.35e+241) {
tmp = j * (t * c);
} 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 * (x * y)
if (y <= (-3.8d-11)) then
tmp = t_1
else if (y <= 2.35d+241) then
tmp = j * (t * c)
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 * (x * y);
double tmp;
if (y <= -3.8e-11) {
tmp = t_1;
} else if (y <= 2.35e+241) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if y <= -3.8e-11: tmp = t_1 elif y <= 2.35e+241: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -3.8e-11) tmp = t_1; elseif (y <= 2.35e+241) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (y <= -3.8e-11) tmp = t_1; elseif (y <= 2.35e+241) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e-11], t$95$1, If[LessEqual[y, 2.35e+241], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{+241}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.7999999999999998e-11 or 2.34999999999999991e241 < y Initial program 63.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.3
Simplified60.3%
Taylor expanded in c around 0
lower-*.f6452.1
Simplified52.1%
if -3.7999999999999998e-11 < y < 2.34999999999999991e241Initial program 77.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6442.2
Simplified42.2%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6430.1
Simplified30.1%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* j (* t c)))) (if (<= c -2e+107) t_1 (if (<= c 7e-49) (* 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 = j * (t * c);
double tmp;
if (c <= -2e+107) {
tmp = t_1;
} else if (c <= 7e-49) {
tmp = y * (x * z);
} 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 = j * (t * c)
if (c <= (-2d+107)) then
tmp = t_1
else if (c <= 7d-49) then
tmp = y * (x * z)
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 = j * (t * c);
double tmp;
if (c <= -2e+107) {
tmp = t_1;
} else if (c <= 7e-49) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (t * c) tmp = 0 if c <= -2e+107: tmp = t_1 elif c <= 7e-49: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(t * c)) tmp = 0.0 if (c <= -2e+107) tmp = t_1; elseif (c <= 7e-49) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (t * c); tmp = 0.0; if (c <= -2e+107) tmp = t_1; elseif (c <= 7e-49) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2e+107], t$95$1, If[LessEqual[c, 7e-49], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;c \leq -2 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-49}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.9999999999999999e107 or 7.00000000000000012e-49 < c Initial program 66.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6452.1
Simplified52.1%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6442.2
Simplified42.2%
if -1.9999999999999999e107 < c < 7.00000000000000012e-49Initial program 79.6%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.4
Simplified43.4%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6441.1
Simplified41.1%
Taylor expanded in x around inf
lower-*.f6432.0
Simplified32.0%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* y z)))) (if (<= y -3.8e-11) t_1 (if (<= y 2e+142) (* 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 = x * (y * z);
double tmp;
if (y <= -3.8e-11) {
tmp = t_1;
} else if (y <= 2e+142) {
tmp = j * (t * c);
} 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 = x * (y * z)
if (y <= (-3.8d-11)) then
tmp = t_1
else if (y <= 2d+142) then
tmp = j * (t * c)
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 = x * (y * z);
double tmp;
if (y <= -3.8e-11) {
tmp = t_1;
} else if (y <= 2e+142) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -3.8e-11: tmp = t_1 elif y <= 2e+142: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -3.8e-11) tmp = t_1; elseif (y <= 2e+142) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -3.8e-11) tmp = t_1; elseif (y <= 2e+142) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e-11], t$95$1, If[LessEqual[y, 2e+142], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+142}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.7999999999999998e-11 or 2.0000000000000001e142 < y Initial program 65.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.2
Simplified59.2%
Taylor expanded in c around 0
lower-*.f64N/A
lower-*.f6446.6
Simplified46.6%
if -3.7999999999999998e-11 < y < 2.0000000000000001e142Initial program 77.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6441.5
Simplified41.5%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6429.9
Simplified29.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* b i)))) (if (<= i -1.15e+110) t_1 (if (<= i 1.15e+38) (* 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 = a * (b * i);
double tmp;
if (i <= -1.15e+110) {
tmp = t_1;
} else if (i <= 1.15e+38) {
tmp = j * (t * c);
} 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 = a * (b * i)
if (i <= (-1.15d+110)) then
tmp = t_1
else if (i <= 1.15d+38) then
tmp = j * (t * c)
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 = a * (b * i);
double tmp;
if (i <= -1.15e+110) {
tmp = t_1;
} else if (i <= 1.15e+38) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if i <= -1.15e+110: tmp = t_1 elif i <= 1.15e+38: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -1.15e+110) tmp = t_1; elseif (i <= 1.15e+38) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (i <= -1.15e+110) tmp = t_1; elseif (i <= 1.15e+38) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.15e+110], t$95$1, If[LessEqual[i, 1.15e+38], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.15 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{+38}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.15e110 or 1.1500000000000001e38 < i Initial program 62.3%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.4
Simplified40.4%
Taylor expanded in t around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6433.8
Simplified33.8%
if -1.15e110 < i < 1.1500000000000001e38Initial program 80.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6441.8
Simplified41.8%
Taylor expanded in i around 0
*-commutativeN/A
lower-*.f6433.2
Simplified33.2%
Final simplification33.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
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 = a * (b * i)
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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 73.3%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6432.4
Simplified32.4%
Taylor expanded in t around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6418.9
Simplified18.9%
Final simplification18.9%
(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 2024219
(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)))))