
(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 25 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 (* a (+ (* b i) (* x (- (* y (/ z a)) t)))))))
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 = a * ((b * i) + (x * ((y * (z / a)) - t)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((b * i) + (x * ((y * (z / a)) - t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((b * i) + (x * ((y * (z / a)) - t))) 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 = Float64(a * Float64(Float64(b * i) + Float64(x * Float64(Float64(y * Float64(z / a)) - t)))); 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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((b * i) + (x * ((y * (z / a)) - t))); 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[(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[(a * N[(N[(b * i), $MachinePrecision] + N[(x * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $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}:\\
\;\;\;\;a \cdot \left(b \cdot i + x \cdot \left(y \cdot \frac{z}{a} - t\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.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in a around -inf
Simplified49.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6459.3
Simplified59.3%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma c (- b) (* x y))))
(if (<= z -2e+122)
(fma z t_1 (* a (fma b i (* x (- t)))))
(if (<= z 2.3e+72)
(+
(fma i (fma j (- y) (* a b)) (* x (- (* y z) (* t a))))
(* c (fma b (- z) (* t j))))
(fma z t_1 (* i (fma b a (* y (- j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(c, -b, (x * y));
double tmp;
if (z <= -2e+122) {
tmp = fma(z, t_1, (a * fma(b, i, (x * -t))));
} else if (z <= 2.3e+72) {
tmp = fma(i, fma(j, -y, (a * b)), (x * ((y * z) - (t * a)))) + (c * fma(b, -z, (t * j)));
} else {
tmp = fma(z, t_1, (i * fma(b, a, (y * -j))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(c, Float64(-b), Float64(x * y)) tmp = 0.0 if (z <= -2e+122) tmp = fma(z, t_1, Float64(a * fma(b, i, Float64(x * Float64(-t))))); elseif (z <= 2.3e+72) tmp = Float64(fma(i, fma(j, Float64(-y), Float64(a * b)), Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(c * fma(b, Float64(-z), Float64(t * j)))); else tmp = fma(z, t_1, Float64(i * fma(b, a, Float64(y * Float64(-j))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+122], N[(z * t$95$1 + N[(a * N[(b * i + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+72], N[(N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * t$95$1 + N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{if}\;z \leq -2 \cdot 10^{+122}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_1, a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+72}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, -y, a \cdot b\right), x \cdot \left(y \cdot z - t \cdot a\right)\right) + c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_1, i \cdot \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right)\right)\\
\end{array}
\end{array}
if z < -2.00000000000000003e122Initial program 60.0%
Taylor expanded in i around 0
Simplified58.2%
Taylor expanded in j around 0
Simplified80.1%
if -2.00000000000000003e122 < z < 2.3e72Initial program 82.9%
Taylor expanded in i around 0
Simplified84.8%
if 2.3e72 < z Initial program 60.2%
Taylor expanded in i around 0
Simplified65.2%
Taylor expanded in t around 0
mul-1-negN/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
associate-*r*N/A
distribute-rgt-inN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
Simplified80.3%
Final simplification82.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma c (- b) (* x y))) (t_2 (* j (fma c t (* y (- i))))))
(if (<= j -1.2e+219)
t_2
(if (<= j -8e-190)
(fma z t_1 (* i (fma b a (* y (- j)))))
(if (<= j 5e-92)
(fma z t_1 (* a (fma b i (* x (- t)))))
(if (<= j 1.45e+161)
(fma y (fma j (- i) (* x z)) (* 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(c, -b, (x * y));
double t_2 = j * fma(c, t, (y * -i));
double tmp;
if (j <= -1.2e+219) {
tmp = t_2;
} else if (j <= -8e-190) {
tmp = fma(z, t_1, (i * fma(b, a, (y * -j))));
} else if (j <= 5e-92) {
tmp = fma(z, t_1, (a * fma(b, i, (x * -t))));
} else if (j <= 1.45e+161) {
tmp = fma(y, fma(j, -i, (x * z)), (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(c, Float64(-b), Float64(x * y)) t_2 = Float64(j * fma(c, t, Float64(y * Float64(-i)))) tmp = 0.0 if (j <= -1.2e+219) tmp = t_2; elseif (j <= -8e-190) tmp = fma(z, t_1, Float64(i * fma(b, a, Float64(y * Float64(-j))))); elseif (j <= 5e-92) tmp = fma(z, t_1, Float64(a * fma(b, i, Float64(x * Float64(-t))))); elseif (j <= 1.45e+161) tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), 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[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.2e+219], t$95$2, If[LessEqual[j, -8e-190], N[(z * t$95$1 + N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-92], N[(z * t$95$1 + N[(a * N[(b * i + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+161], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + 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(c, -b, x \cdot y\right)\\
t_2 := j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{if}\;j \leq -1.2 \cdot 10^{+219}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -8 \cdot 10^{-190}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_1, i \cdot \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right)\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-92}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_1, a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{+161}:\\
\;\;\;\;\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\_2\\
\end{array}
\end{array}
if j < -1.2e219 or 1.45000000000000008e161 < j Initial program 67.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6475.6
Simplified75.6%
if -1.2e219 < j < -8.0000000000000002e-190Initial program 74.4%
Taylor expanded in i around 0
Simplified76.9%
Taylor expanded in t around 0
mul-1-negN/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
associate-*r*N/A
distribute-rgt-inN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
Simplified75.8%
if -8.0000000000000002e-190 < j < 5.00000000000000011e-92Initial program 76.4%
Taylor expanded in i around 0
Simplified85.0%
Taylor expanded in j around 0
Simplified79.8%
if 5.00000000000000011e-92 < j < 1.45000000000000008e161Initial program 74.2%
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
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.4%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (fma i (- j) (* c (/ (fma j t (* z (- b))) y)))))
(t_2 (fma c (- b) (* x y))))
(if (<= j -1.5e+45)
t_1
(if (<= j -2.7e-189)
(fma z t_2 (* i (fma b a (* y (- j)))))
(if (<= j 1.6e-31) (fma z t_2 (* a (fma b i (* x (- t))))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * fma(i, -j, (c * (fma(j, t, (z * -b)) / y)));
double t_2 = fma(c, -b, (x * y));
double tmp;
if (j <= -1.5e+45) {
tmp = t_1;
} else if (j <= -2.7e-189) {
tmp = fma(z, t_2, (i * fma(b, a, (y * -j))));
} else if (j <= 1.6e-31) {
tmp = fma(z, t_2, (a * fma(b, i, (x * -t))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * fma(i, Float64(-j), Float64(c * Float64(fma(j, t, Float64(z * Float64(-b))) / y)))) t_2 = fma(c, Float64(-b), Float64(x * y)) tmp = 0.0 if (j <= -1.5e+45) tmp = t_1; elseif (j <= -2.7e-189) tmp = fma(z, t_2, Float64(i * fma(b, a, Float64(y * Float64(-j))))); elseif (j <= 1.6e-31) tmp = fma(z, t_2, Float64(a * fma(b, i, Float64(x * Float64(-t))))); 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[(i * (-j) + N[(c * N[(N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.5e+45], t$95$1, If[LessEqual[j, -2.7e-189], N[(z * t$95$2 + N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.6e-31], N[(z * t$95$2 + N[(a * N[(b * i + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \mathsf{fma}\left(i, -j, c \cdot \frac{\mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)}{y}\right)\\
t_2 := \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.7 \cdot 10^{-189}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_2, i \cdot \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right)\right)\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-31}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_2, a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.50000000000000005e45 or 1.60000000000000009e-31 < j Initial program 72.8%
Taylor expanded in i around 0
Simplified67.3%
Taylor expanded in j around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6463.3
Simplified63.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6472.4
Simplified72.4%
if -1.50000000000000005e45 < j < -2.6999999999999999e-189Initial program 72.3%
Taylor expanded in i around 0
Simplified83.6%
Taylor expanded in t around 0
mul-1-negN/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
associate-*r*N/A
distribute-rgt-inN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
Simplified88.1%
if -2.6999999999999999e-189 < j < 1.60000000000000009e-31Initial program 75.2%
Taylor expanded in i around 0
Simplified83.2%
Taylor expanded in j around 0
Simplified79.2%
Final simplification77.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma c (- b) (* x y)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -4.2e+210)
t_2
(if (<= x -2.3e+63)
t_1
(if (<= x 0.0275)
(+ (* c (fma b (- z) (* t j))) (* a (* b i)))
(if (<= x 7.2e+218) t_2 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 t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.2e+210) {
tmp = t_2;
} else if (x <= -2.3e+63) {
tmp = t_1;
} else if (x <= 0.0275) {
tmp = (c * fma(b, -z, (t * j))) + (a * (b * i));
} else if (x <= 7.2e+218) {
tmp = t_2;
} 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))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -4.2e+210) tmp = t_2; elseif (x <= -2.3e+63) tmp = t_1; elseif (x <= 0.0275) tmp = Float64(Float64(c * fma(b, Float64(-z), Float64(t * j))) + Float64(a * Float64(b * i))); elseif (x <= 7.2e+218) tmp = t_2; 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]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+210], t$95$2, If[LessEqual[x, -2.3e+63], t$95$1, If[LessEqual[x, 0.0275], N[(N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e+218], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+210}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.0275:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+218}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.1999999999999997e210 or 0.0275000000000000001 < x < 7.19999999999999981e218Initial program 77.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.7
Simplified76.7%
if -4.1999999999999997e210 < x < -2.29999999999999993e63 or 7.19999999999999981e218 < x Initial program 68.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6485.6
Simplified85.6%
if -2.29999999999999993e63 < x < 0.0275000000000000001Initial program 73.3%
Taylor expanded in i around 0
Simplified77.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
*-lowering-*.f6460.5
Simplified60.5%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.8e+272)
(* t (fma j c (* x (- a))))
(if (<= t 54000.0)
(fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i))))
(fma z (fma c (- b) (* x y)) (* a (fma b i (* x (- t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.8e+272) {
tmp = t * fma(j, c, (x * -a));
} else if (t <= 54000.0) {
tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
} else {
tmp = fma(z, fma(c, -b, (x * y)), (a * fma(b, i, (x * -t))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.8e+272) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); elseif (t <= 54000.0) tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(a * fma(b, i, Float64(x * Float64(-t))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.8e+272], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 54000.0], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+272}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq 54000:\\
\;\;\;\;\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}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\
\end{array}
\end{array}
if t < -2.7999999999999999e272Initial program 53.7%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6485.0
Simplified85.0%
if -2.7999999999999999e272 < t < 54000Initial program 75.2%
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
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified72.9%
if 54000 < t Initial program 72.2%
Taylor expanded in i around 0
Simplified77.5%
Taylor expanded in j around 0
Simplified70.4%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (fma j c (* x (- a))))))
(if (<= t -2.5e+272)
t_1
(if (<= t 5.6e+60)
(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 = t * fma(j, c, (x * -a));
double tmp;
if (t <= -2.5e+272) {
tmp = t_1;
} else if (t <= 5.6e+60) {
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 = Float64(t * fma(j, c, Float64(x * Float64(-a)))) tmp = 0.0 if (t <= -2.5e+272) tmp = t_1; elseif (t <= 5.6e+60) 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]), $MachinePrecision]}, If[LessEqual[t, -2.5e+272], t$95$1, If[LessEqual[t, 5.6e+60], 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 := t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+60}:\\
\;\;\;\;\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 < -2.49999999999999986e272 or 5.6e60 < t Initial program 66.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6468.7
Simplified68.7%
if -2.49999999999999986e272 < t < 5.6e60Initial program 75.5%
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
accelerator-lowering-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified72.2%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1e+122)
t_1
(if (<= x 0.027)
(- (* c (fma b (- z) (* t j))) (* y (* i j)))
(if (<= x 7.5e+218) t_1 (* 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));
double tmp;
if (x <= -1e+122) {
tmp = t_1;
} else if (x <= 0.027) {
tmp = (c * fma(b, -z, (t * j))) - (y * (i * j));
} else if (x <= 7.5e+218) {
tmp = t_1;
} else {
tmp = z * fma(c, -b, (x * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1e+122) tmp = t_1; elseif (x <= 0.027) tmp = Float64(Float64(c * fma(b, Float64(-z), Float64(t * j))) - Float64(y * Float64(i * j))); elseif (x <= 7.5e+218) tmp = t_1; else tmp = 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1e+122], t$95$1, If[LessEqual[x, 0.027], N[(N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+218], t$95$1, N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.027:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+218}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.00000000000000001e122 or 0.0269999999999999997 < x < 7.4999999999999993e218Initial program 78.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.1
Simplified76.1%
if -1.00000000000000001e122 < x < 0.0269999999999999997Initial program 73.0%
Taylor expanded in i around 0
Simplified76.7%
Taylor expanded in j around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6465.5
Simplified65.5%
if 7.4999999999999993e218 < x Initial program 49.7%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6483.3
Simplified83.3%
Final simplification69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -3.9e+59)
t_1
(if (<= x -2.9e-65)
(* t (* c j))
(if (<= x -1.05e-117)
(* b (* a i))
(if (<= x -9.5e-201)
(* c (* z (- b)))
(if (<= x 0.011) (* j (* y (- i))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -3.9e+59) {
tmp = t_1;
} else if (x <= -2.9e-65) {
tmp = t * (c * j);
} else if (x <= -1.05e-117) {
tmp = b * (a * i);
} else if (x <= -9.5e-201) {
tmp = c * (z * -b);
} else if (x <= 0.011) {
tmp = j * (y * -i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-3.9d+59)) then
tmp = t_1
else if (x <= (-2.9d-65)) then
tmp = t * (c * j)
else if (x <= (-1.05d-117)) then
tmp = b * (a * i)
else if (x <= (-9.5d-201)) then
tmp = c * (z * -b)
else if (x <= 0.011d0) then
tmp = j * (y * -i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -3.9e+59) {
tmp = t_1;
} else if (x <= -2.9e-65) {
tmp = t * (c * j);
} else if (x <= -1.05e-117) {
tmp = b * (a * i);
} else if (x <= -9.5e-201) {
tmp = c * (z * -b);
} else if (x <= 0.011) {
tmp = j * (y * -i);
} 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 x <= -3.9e+59: tmp = t_1 elif x <= -2.9e-65: tmp = t * (c * j) elif x <= -1.05e-117: tmp = b * (a * i) elif x <= -9.5e-201: tmp = c * (z * -b) elif x <= 0.011: tmp = j * (y * -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 (x <= -3.9e+59) tmp = t_1; elseif (x <= -2.9e-65) tmp = Float64(t * Float64(c * j)); elseif (x <= -1.05e-117) tmp = Float64(b * Float64(a * i)); elseif (x <= -9.5e-201) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 0.011) tmp = Float64(j * Float64(y * Float64(-i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -3.9e+59) tmp = t_1; elseif (x <= -2.9e-65) tmp = t * (c * j); elseif (x <= -1.05e-117) tmp = b * (a * i); elseif (x <= -9.5e-201) tmp = c * (z * -b); elseif (x <= 0.011) tmp = j * (y * -i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+59], t$95$1, If[LessEqual[x, -2.9e-65], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.05e-117], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.5e-201], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.011], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-65}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-201}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 0.011:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.90000000000000021e59 or 0.010999999999999999 < x Initial program 74.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6465.4
Simplified65.4%
Taylor expanded in c around 0
*-lowering-*.f6454.7
Simplified54.7%
if -3.90000000000000021e59 < x < -2.8999999999999998e-65Initial program 64.4%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6445.1
Simplified45.1%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6433.7
Simplified33.7%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.2
Applied egg-rr43.2%
if -2.8999999999999998e-65 < x < -1.05e-117Initial program 99.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6465.3
Simplified65.3%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6456.3
Simplified56.3%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.0
Applied egg-rr73.0%
if -1.05e-117 < x < -9.5000000000000001e-201Initial program 72.7%
Taylor expanded in i around 0
Simplified83.2%
Taylor expanded in j around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6483.3
Simplified83.3%
Taylor expanded in j around 0
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-neg-outN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6467.6
Simplified67.6%
if -9.5000000000000001e-201 < x < 0.010999999999999999Initial program 71.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6447.5
Simplified47.5%
Taylor expanded in c around 0
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6430.7
Simplified30.7%
Final simplification45.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -1.5e+62)
t_1
(if (<= x -2.8e-65)
(* t (* c j))
(if (<= x -1.02e-117)
(* b (* a i))
(if (<= x 5.4e-298)
(* c (* z (- b)))
(if (<= x 2.4e-85) (* 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 = z * (x * y);
double tmp;
if (x <= -1.5e+62) {
tmp = t_1;
} else if (x <= -2.8e-65) {
tmp = t * (c * j);
} else if (x <= -1.02e-117) {
tmp = b * (a * i);
} else if (x <= 5.4e-298) {
tmp = c * (z * -b);
} else if (x <= 2.4e-85) {
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 = z * (x * y)
if (x <= (-1.5d+62)) then
tmp = t_1
else if (x <= (-2.8d-65)) then
tmp = t * (c * j)
else if (x <= (-1.02d-117)) then
tmp = b * (a * i)
else if (x <= 5.4d-298) then
tmp = c * (z * -b)
else if (x <= 2.4d-85) 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 = z * (x * y);
double tmp;
if (x <= -1.5e+62) {
tmp = t_1;
} else if (x <= -2.8e-65) {
tmp = t * (c * j);
} else if (x <= -1.02e-117) {
tmp = b * (a * i);
} else if (x <= 5.4e-298) {
tmp = c * (z * -b);
} else if (x <= 2.4e-85) {
tmp = c * (t * j);
} 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 x <= -1.5e+62: tmp = t_1 elif x <= -2.8e-65: tmp = t * (c * j) elif x <= -1.02e-117: tmp = b * (a * i) elif x <= 5.4e-298: tmp = c * (z * -b) elif x <= 2.4e-85: tmp = c * (t * j) 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 (x <= -1.5e+62) tmp = t_1; elseif (x <= -2.8e-65) tmp = Float64(t * Float64(c * j)); elseif (x <= -1.02e-117) tmp = Float64(b * Float64(a * i)); elseif (x <= 5.4e-298) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 2.4e-85) 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 = z * (x * y); tmp = 0.0; if (x <= -1.5e+62) tmp = t_1; elseif (x <= -2.8e-65) tmp = t * (c * j); elseif (x <= -1.02e-117) tmp = b * (a * i); elseif (x <= 5.4e-298) tmp = c * (z * -b); elseif (x <= 2.4e-85) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+62], t$95$1, If[LessEqual[x, -2.8e-65], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.02e-117], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-298], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-65}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq -1.02 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-298}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.5e62 or 2.4000000000000001e-85 < x Initial program 74.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6460.4
Simplified60.4%
Taylor expanded in c around 0
*-lowering-*.f6448.0
Simplified48.0%
if -1.5e62 < x < -2.8e-65Initial program 64.4%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6445.1
Simplified45.1%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6433.7
Simplified33.7%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.2
Applied egg-rr43.2%
if -2.8e-65 < x < -1.01999999999999993e-117Initial program 99.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6465.3
Simplified65.3%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6456.3
Simplified56.3%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.0
Applied egg-rr73.0%
if -1.01999999999999993e-117 < x < 5.4000000000000002e-298Initial program 65.2%
Taylor expanded in i around 0
Simplified75.6%
Taylor expanded in j around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6473.8
Simplified73.8%
Taylor expanded in j around 0
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-neg-outN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6443.9
Simplified43.9%
if 5.4000000000000002e-298 < x < 2.4000000000000001e-85Initial program 76.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.5
Simplified54.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6435.1
Simplified35.1%
Final simplification45.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* a b)))))
(if (<= i -3.5e+137)
t_1
(if (<= i -8.8e-14)
(* j (fma c t (* y (- i))))
(if (<= i 6.5e+69) (* 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 = i * fma(j, -y, (a * b));
double tmp;
if (i <= -3.5e+137) {
tmp = t_1;
} else if (i <= -8.8e-14) {
tmp = j * fma(c, t, (y * -i));
} else if (i <= 6.5e+69) {
tmp = 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(i * fma(j, Float64(-y), Float64(a * b))) tmp = 0.0 if (i <= -3.5e+137) tmp = t_1; elseif (i <= -8.8e-14) tmp = Float64(j * fma(c, t, Float64(y * Float64(-i)))); elseif (i <= 6.5e+69) tmp = 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[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e+137], t$95$1, If[LessEqual[i, -8.8e-14], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.5e+69], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -8.8 \cdot 10^{-14}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{+69}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.5000000000000001e137 or 6.5000000000000001e69 < i Initial program 73.2%
Taylor expanded in i around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6472.5
Simplified72.5%
if -3.5000000000000001e137 < i < -8.8000000000000004e-14Initial program 69.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6452.8
Simplified52.8%
if -8.8000000000000004e-14 < i < 6.5000000000000001e69Initial program 75.0%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6458.0
Simplified58.0%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.08e+122)
t_1
(if (<= x -1.85e-265)
(* c (fma b (- z) (* t j)))
(if (<= x 0.03) (* i (fma j (- y) (* a b))) 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) - (t * a));
double tmp;
if (x <= -1.08e+122) {
tmp = t_1;
} else if (x <= -1.85e-265) {
tmp = c * fma(b, -z, (t * j));
} else if (x <= 0.03) {
tmp = i * fma(j, -y, (a * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.08e+122) tmp = t_1; elseif (x <= -1.85e-265) tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); elseif (x <= 0.03) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.08e+122], t$95$1, If[LessEqual[x, -1.85e-265], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.03], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.08 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.85 \cdot 10^{-265}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{elif}\;x \leq 0.03:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.0800000000000001e122 or 0.029999999999999999 < x Initial program 74.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6471.8
Simplified71.8%
if -1.0800000000000001e122 < x < -1.8499999999999999e-265Initial program 71.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6460.0
Simplified60.0%
if -1.8499999999999999e-265 < x < 0.029999999999999999Initial program 74.5%
Taylor expanded in i around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6451.8
Simplified51.8%
Final simplification61.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -3.05e+172)
t_1
(if (<= a -9e-94)
(* b (fma c (- z) (* a i)))
(if (<= a 3e+109) (* c (fma b (- z) (* 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 <= -3.05e+172) {
tmp = t_1;
} else if (a <= -9e-94) {
tmp = b * fma(c, -z, (a * i));
} else if (a <= 3e+109) {
tmp = c * fma(b, -z, (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 <= -3.05e+172) tmp = t_1; elseif (a <= -9e-94) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); elseif (a <= 3e+109) tmp = Float64(c * fma(b, Float64(-z), 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, -3.05e+172], t$95$1, If[LessEqual[a, -9e-94], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+109], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $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 -3.05 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-94}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+109}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.0499999999999999e172 or 3.00000000000000015e109 < a Initial program 61.9%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6478.5
Simplified78.5%
if -3.0499999999999999e172 < a < -9.0000000000000004e-94Initial program 83.1%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6452.7
Simplified52.7%
if -9.0000000000000004e-94 < a < 3.00000000000000015e109Initial program 74.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6448.0
Simplified48.0%
Final simplification55.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))) (t_2 (* z (* x y))))
(if (<= x -3.5e+58)
t_2
(if (<= x -3.6e-65)
t_1
(if (<= x 4.6e-217) (* i (* a b)) (if (<= x 2.4e-85) 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 = t * (c * j);
double t_2 = z * (x * y);
double tmp;
if (x <= -3.5e+58) {
tmp = t_2;
} else if (x <= -3.6e-65) {
tmp = t_1;
} else if (x <= 4.6e-217) {
tmp = i * (a * b);
} else if (x <= 2.4e-85) {
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 = t * (c * j)
t_2 = z * (x * y)
if (x <= (-3.5d+58)) then
tmp = t_2
else if (x <= (-3.6d-65)) then
tmp = t_1
else if (x <= 4.6d-217) then
tmp = i * (a * b)
else if (x <= 2.4d-85) 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 = t * (c * j);
double t_2 = z * (x * y);
double tmp;
if (x <= -3.5e+58) {
tmp = t_2;
} else if (x <= -3.6e-65) {
tmp = t_1;
} else if (x <= 4.6e-217) {
tmp = i * (a * b);
} else if (x <= 2.4e-85) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) t_2 = z * (x * y) tmp = 0 if x <= -3.5e+58: tmp = t_2 elif x <= -3.6e-65: tmp = t_1 elif x <= 4.6e-217: tmp = i * (a * b) elif x <= 2.4e-85: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -3.5e+58) tmp = t_2; elseif (x <= -3.6e-65) tmp = t_1; elseif (x <= 4.6e-217) tmp = Float64(i * Float64(a * b)); elseif (x <= 2.4e-85) 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 = t * (c * j); t_2 = z * (x * y); tmp = 0.0; if (x <= -3.5e+58) tmp = t_2; elseif (x <= -3.6e-65) tmp = t_1; elseif (x <= 4.6e-217) tmp = i * (a * b); elseif (x <= 2.4e-85) 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[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.5e+58], t$95$2, If[LessEqual[x, -3.6e-65], t$95$1, If[LessEqual[x, 4.6e-217], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-85], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.5 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-217}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -3.4999999999999997e58 or 2.4000000000000001e-85 < x Initial program 74.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6460.4
Simplified60.4%
Taylor expanded in c around 0
*-lowering-*.f6448.0
Simplified48.0%
if -3.4999999999999997e58 < x < -3.5999999999999998e-65 or 4.6000000000000001e-217 < x < 2.4000000000000001e-85Initial program 68.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6453.0
Simplified53.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6438.5
Simplified38.5%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.2
Applied egg-rr42.2%
if -3.5999999999999998e-65 < x < 4.6000000000000001e-217Initial program 75.2%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6431.8
Simplified31.8%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6429.3
Simplified29.3%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6431.8
Applied egg-rr31.8%
Final simplification41.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -4.5e+121)
(* x (* y z))
(if (<= x -1.56e-217)
(* z (* b (- c)))
(if (<= x 0.0073) (* y (* i (- j))) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.5e+121) {
tmp = x * (y * z);
} else if (x <= -1.56e-217) {
tmp = z * (b * -c);
} else if (x <= 0.0073) {
tmp = y * (i * -j);
} else {
tmp = z * (x * y);
}
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 (x <= (-4.5d+121)) then
tmp = x * (y * z)
else if (x <= (-1.56d-217)) then
tmp = z * (b * -c)
else if (x <= 0.0073d0) then
tmp = y * (i * -j)
else
tmp = z * (x * y)
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 (x <= -4.5e+121) {
tmp = x * (y * z);
} else if (x <= -1.56e-217) {
tmp = z * (b * -c);
} else if (x <= 0.0073) {
tmp = y * (i * -j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -4.5e+121: tmp = x * (y * z) elif x <= -1.56e-217: tmp = z * (b * -c) elif x <= 0.0073: tmp = y * (i * -j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -4.5e+121) tmp = Float64(x * Float64(y * z)); elseif (x <= -1.56e-217) tmp = Float64(z * Float64(b * Float64(-c))); elseif (x <= 0.0073) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -4.5e+121) tmp = x * (y * z); elseif (x <= -1.56e-217) tmp = z * (b * -c); elseif (x <= 0.0073) tmp = y * (i * -j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4.5e+121], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.56e-217], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0073], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{+121}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq -1.56 \cdot 10^{-217}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 0.0073:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -4.5000000000000003e121Initial program 68.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6473.3
Simplified73.3%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.6
Simplified70.6%
if -4.5000000000000003e121 < x < -1.56e-217Initial program 73.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6448.3
Simplified48.3%
Taylor expanded in c around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6442.9
Simplified42.9%
if -1.56e-217 < x < 0.00730000000000000007Initial program 72.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6447.8
Simplified47.8%
Taylor expanded in c around 0
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6432.9
Simplified32.9%
if 0.00730000000000000007 < x Initial program 80.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6455.7
Simplified55.7%
Taylor expanded in c around 0
*-lowering-*.f6442.2
Simplified42.2%
Final simplification43.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1e+122)
(* x (* y z))
(if (<= x -1.08e-200)
(* z (* b (- c)))
(if (<= x 0.0073) (* j (* y (- i))) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1e+122) {
tmp = x * (y * z);
} else if (x <= -1.08e-200) {
tmp = z * (b * -c);
} else if (x <= 0.0073) {
tmp = j * (y * -i);
} else {
tmp = z * (x * y);
}
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 (x <= (-1d+122)) then
tmp = x * (y * z)
else if (x <= (-1.08d-200)) then
tmp = z * (b * -c)
else if (x <= 0.0073d0) then
tmp = j * (y * -i)
else
tmp = z * (x * y)
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 (x <= -1e+122) {
tmp = x * (y * z);
} else if (x <= -1.08e-200) {
tmp = z * (b * -c);
} else if (x <= 0.0073) {
tmp = j * (y * -i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1e+122: tmp = x * (y * z) elif x <= -1.08e-200: tmp = z * (b * -c) elif x <= 0.0073: tmp = j * (y * -i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1e+122) tmp = Float64(x * Float64(y * z)); elseif (x <= -1.08e-200) tmp = Float64(z * Float64(b * Float64(-c))); elseif (x <= 0.0073) tmp = Float64(j * Float64(y * Float64(-i))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1e+122) tmp = x * (y * z); elseif (x <= -1.08e-200) tmp = z * (b * -c); elseif (x <= 0.0073) tmp = j * (y * -i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1e+122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.08e-200], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0073], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq -1.08 \cdot 10^{-200}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 0.0073:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.00000000000000001e122Initial program 68.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6473.3
Simplified73.3%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.6
Simplified70.6%
if -1.00000000000000001e122 < x < -1.08000000000000002e-200Initial program 75.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6449.0
Simplified49.0%
Taylor expanded in c around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6443.1
Simplified43.1%
if -1.08000000000000002e-200 < x < 0.00730000000000000007Initial program 71.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6447.5
Simplified47.5%
Taylor expanded in c around 0
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6430.7
Simplified30.7%
if 0.00730000000000000007 < x Initial program 80.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6455.7
Simplified55.7%
Taylor expanded in c around 0
*-lowering-*.f6442.2
Simplified42.2%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (fma c t (* y (- i))))))
(if (<= j -1.5e+59)
t_1
(if (<= j 4.7e+95) (* 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 = j * fma(c, t, (y * -i));
double tmp;
if (j <= -1.5e+59) {
tmp = t_1;
} else if (j <= 4.7e+95) {
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(j * fma(c, t, Float64(y * Float64(-i)))) tmp = 0.0 if (j <= -1.5e+59) tmp = t_1; elseif (j <= 4.7e+95) 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[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.5e+59], t$95$1, If[LessEqual[j, 4.7e+95], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.7 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.5e59 or 4.69999999999999972e95 < j Initial program 73.2%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6469.5
Simplified69.5%
if -1.5e59 < j < 4.69999999999999972e95Initial program 73.7%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6450.7
Simplified50.7%
Final simplification57.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- y) (* a b)))))
(if (<= i -3.5e+134)
t_1
(if (<= i 3.5e+33) (* c (fma b (- z) (* 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 = i * fma(j, -y, (a * b));
double tmp;
if (i <= -3.5e+134) {
tmp = t_1;
} else if (i <= 3.5e+33) {
tmp = c * fma(b, -z, (t * j));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(-y), Float64(a * b))) tmp = 0.0 if (i <= -3.5e+134) tmp = t_1; elseif (i <= 3.5e+33) tmp = Float64(c * fma(b, Float64(-z), 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[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e+134], t$95$1, If[LessEqual[i, 3.5e+33], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+33}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.50000000000000003e134 or 3.5000000000000001e33 < i Initial program 71.7%
Taylor expanded in i around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6470.2
Simplified70.2%
if -3.50000000000000003e134 < i < 3.5000000000000001e33Initial program 74.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6448.9
Simplified48.9%
Final simplification57.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x -3.2e+146) (* x (* y z)) (if (<= x 1.5e+108) (* b (fma c (- z) (* a i))) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -3.2e+146) {
tmp = x * (y * z);
} else if (x <= 1.5e+108) {
tmp = b * fma(c, -z, (a * i));
} else {
tmp = z * (x * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -3.2e+146) tmp = Float64(x * Float64(y * z)); elseif (x <= 1.5e+108) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); else tmp = Float64(z * Float64(x * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -3.2e+146], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e+108], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -3.2e146Initial program 67.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6473.0
Simplified73.0%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.5
Simplified72.5%
if -3.2e146 < x < 1.49999999999999992e108Initial program 74.5%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4
Simplified47.4%
if 1.49999999999999992e108 < x Initial program 75.6%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6459.5
Simplified59.5%
Taylor expanded in c around 0
*-lowering-*.f6445.7
Simplified45.7%
Final simplification51.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -7.5e+191) (* z (* b (- c))) (if (<= z 3.8e+70) (* a (fma t (- x) (* b i))) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7.5e+191) {
tmp = z * (b * -c);
} else if (z <= 3.8e+70) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = x * (y * z);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7.5e+191) tmp = Float64(z * Float64(b * Float64(-c))); elseif (z <= 3.8e+70) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(x * Float64(y * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7.5e+191], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+70], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+191}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+70}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -7.5e191Initial program 53.6%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6479.0
Simplified79.0%
Taylor expanded in c around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.8
Simplified54.8%
if -7.5e191 < z < 3.7999999999999998e70Initial program 82.1%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.5
Simplified41.5%
if 3.7999999999999998e70 < z Initial program 59.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6474.0
Simplified74.0%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.6
Simplified50.6%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -4.2e+59)
t_1
(if (<= x 3.05e-298)
(* i (* a b))
(if (<= x 1.3e-85) (* 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 = z * (x * y);
double tmp;
if (x <= -4.2e+59) {
tmp = t_1;
} else if (x <= 3.05e-298) {
tmp = i * (a * b);
} else if (x <= 1.3e-85) {
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 = z * (x * y)
if (x <= (-4.2d+59)) then
tmp = t_1
else if (x <= 3.05d-298) then
tmp = i * (a * b)
else if (x <= 1.3d-85) 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 = z * (x * y);
double tmp;
if (x <= -4.2e+59) {
tmp = t_1;
} else if (x <= 3.05e-298) {
tmp = i * (a * b);
} else if (x <= 1.3e-85) {
tmp = c * (t * j);
} 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 x <= -4.2e+59: tmp = t_1 elif x <= 3.05e-298: tmp = i * (a * b) elif x <= 1.3e-85: tmp = c * (t * j) 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 (x <= -4.2e+59) tmp = t_1; elseif (x <= 3.05e-298) tmp = Float64(i * Float64(a * b)); elseif (x <= 1.3e-85) 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 = z * (x * y); tmp = 0.0; if (x <= -4.2e+59) tmp = t_1; elseif (x <= 3.05e-298) tmp = i * (a * b); elseif (x <= 1.3e-85) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+59], t$95$1, If[LessEqual[x, 3.05e-298], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e-85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{-298}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.19999999999999968e59 or 1.30000000000000006e-85 < x Initial program 74.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6460.4
Simplified60.4%
Taylor expanded in c around 0
*-lowering-*.f6448.0
Simplified48.0%
if -4.19999999999999968e59 < x < 3.05000000000000006e-298Initial program 69.8%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6435.6
Simplified35.6%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6428.2
Simplified28.2%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6430.5
Applied egg-rr30.5%
if 3.05000000000000006e-298 < x < 1.30000000000000006e-85Initial program 76.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.5
Simplified54.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6435.1
Simplified35.1%
Final simplification40.0%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* z (* x y)))) (if (<= x -3e+58) t_1 (if (<= x 7.2e-59) (* a (* 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 = z * (x * y);
double tmp;
if (x <= -3e+58) {
tmp = t_1;
} else if (x <= 7.2e-59) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-3d+58)) then
tmp = t_1
else if (x <= 7.2d-59) then
tmp = a * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -3e+58) {
tmp = t_1;
} else if (x <= 7.2e-59) {
tmp = a * (b * i);
} 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 x <= -3e+58: tmp = t_1 elif x <= 7.2e-59: tmp = a * (b * 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 (x <= -3e+58) tmp = t_1; elseif (x <= 7.2e-59) tmp = Float64(a * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -3e+58) tmp = t_1; elseif (x <= 7.2e-59) tmp = a * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+58], t$95$1, If[LessEqual[x, 7.2e-59], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.0000000000000002e58 or 7.20000000000000001e-59 < x Initial program 73.7%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6462.6
Simplified62.6%
Taylor expanded in c around 0
*-lowering-*.f6450.9
Simplified50.9%
if -3.0000000000000002e58 < x < 7.20000000000000001e-59Initial program 73.4%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6433.7
Simplified33.7%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6426.5
Simplified26.5%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* y z)))) (if (<= x -4e+59) t_1 (if (<= x 1.2e-57) (* a (* 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 = x * (y * z);
double tmp;
if (x <= -4e+59) {
tmp = t_1;
} else if (x <= 1.2e-57) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (x <= (-4d+59)) then
tmp = t_1
else if (x <= 1.2d-57) then
tmp = a * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (x <= -4e+59) {
tmp = t_1;
} else if (x <= 1.2e-57) {
tmp = a * (b * i);
} 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 x <= -4e+59: tmp = t_1 elif x <= 1.2e-57: tmp = a * (b * i) 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 (x <= -4e+59) tmp = t_1; elseif (x <= 1.2e-57) tmp = Float64(a * Float64(b * i)); 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 (x <= -4e+59) tmp = t_1; elseif (x <= 1.2e-57) tmp = a * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+59], t$95$1, If[LessEqual[x, 1.2e-57], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-57}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.99999999999999989e59 or 1.20000000000000003e-57 < x Initial program 73.7%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6462.6
Simplified62.6%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.0
Simplified50.0%
if -3.99999999999999989e59 < x < 1.20000000000000003e-57Initial program 73.4%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6433.7
Simplified33.7%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6426.5
Simplified26.5%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* b i)))) (if (<= a -1.22e-82) t_1 (if (<= a 5.2e-53) (* 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 * (b * i);
double tmp;
if (a <= -1.22e-82) {
tmp = t_1;
} else if (a <= 5.2e-53) {
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 = a * (b * i)
if (a <= (-1.22d-82)) then
tmp = t_1
else if (a <= 5.2d-53) 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 = a * (b * i);
double tmp;
if (a <= -1.22e-82) {
tmp = t_1;
} else if (a <= 5.2e-53) {
tmp = c * (t * j);
} 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 a <= -1.22e-82: tmp = t_1 elif a <= 5.2e-53: 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 * Float64(b * i)) tmp = 0.0 if (a <= -1.22e-82) tmp = t_1; elseif (a <= 5.2e-53) 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 = a * (b * i); tmp = 0.0; if (a <= -1.22e-82) tmp = t_1; elseif (a <= 5.2e-53) 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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.22e-82], t$95$1, If[LessEqual[a, 5.2e-53], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -1.22 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-53}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.22000000000000001e-82 or 5.19999999999999993e-53 < a Initial program 69.8%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6453.0
Simplified53.0%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6434.1
Simplified34.1%
if -1.22000000000000001e-82 < a < 5.19999999999999993e-53Initial program 78.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6444.0
Simplified44.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6426.3
Simplified26.3%
Final simplification30.6%
(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.5%
Taylor expanded in a around inf
*-lowering-*.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
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6435.3
Simplified35.3%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-lowering-*.f6422.6
Simplified22.6%
(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 2024198
(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)))))