
(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 27 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 (* z (* (fma (- x) (/ y b) c) (- b))))))
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 = z * (fma(-x, (y / b), c) * -b);
}
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(z * Float64(fma(Float64(-x), Float64(y / b), c) * Float64(-b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[((-x) * N[(y / b), $MachinePrecision] + c), $MachinePrecision] * (-b)), $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}:\\
\;\;\;\;z \cdot \left(\mathsf{fma}\left(-x, \frac{y}{b}, c\right) \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.4
Applied rewrites49.4%
Taylor expanded in b around -inf
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f6453.3
Applied rewrites53.3%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma c (fma j t (* z (- b))) (* x (- (* y z) (* t a))))))
(if (<= c -6.8e+143)
t_1
(if (<= c 5.8e+74)
(fma
t
(fma j c (* x (- a)))
(fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i)))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(c, fma(j, t, (z * -b)), (x * ((y * z) - (t * a))));
double tmp;
if (c <= -6.8e+143) {
tmp = t_1;
} else if (c <= 5.8e+74) {
tmp = fma(t, fma(j, c, (x * -a)), fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i)))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * Float64(Float64(y * z) - Float64(t * a)))) tmp = 0.0 if (c <= -6.8e+143) tmp = t_1; elseif (c <= 5.8e+74) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), 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[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.8e+143], t$95$1, If[LessEqual[c, 5.8e+74], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{if}\;c \leq -6.8 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{+74}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), \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)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -6.79999999999999964e143 or 5.8000000000000005e74 < c Initial program 64.3%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites80.1%
if -6.79999999999999964e143 < c < 5.8000000000000005e74Initial program 77.8%
Taylor expanded in y around 0
Applied rewrites84.4%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a)))
(t_2 (fma c (fma j t (* z (- b))) (* x t_1))))
(if (<= c -3.5e-25)
t_2
(if (<= c 2.15e-45)
(fma x t_1 (* i (fma j (- y) (* a b))))
(if (<= c 1.02e+41)
(fma t (fma j c (* x (- a))) (* 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 = (y * z) - (t * a);
double t_2 = fma(c, fma(j, t, (z * -b)), (x * t_1));
double tmp;
if (c <= -3.5e-25) {
tmp = t_2;
} else if (c <= 2.15e-45) {
tmp = fma(x, t_1, (i * fma(j, -y, (a * b))));
} else if (c <= 1.02e+41) {
tmp = fma(t, fma(j, c, (x * -a)), (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 = Float64(Float64(y * z) - Float64(t * a)) t_2 = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * t_1)) tmp = 0.0 if (c <= -3.5e-25) tmp = t_2; elseif (c <= 2.15e-45) tmp = fma(x, t_1, Float64(i * fma(j, Float64(-y), Float64(a * b)))); elseif (c <= 1.02e+41) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.5e-25], t$95$2, If[LessEqual[c, 2.15e-45], N[(x * t$95$1 + N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.02e+41], N[(t * N[(j * c + N[(x * (-a)), $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 := y \cdot z - t \cdot a\\
t_2 := \mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot t\_1\right)\\
\mathbf{if}\;c \leq -3.5 \cdot 10^{-25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 2.15 \cdot 10^{-45}:\\
\;\;\;\;\mathsf{fma}\left(x, t\_1, i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\right)\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{+41}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -3.5000000000000002e-25 or 1.01999999999999992e41 < c Initial program 68.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites78.5%
if -3.5000000000000002e-25 < c < 2.1499999999999999e-45Initial program 78.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites72.7%
if 2.1499999999999999e-45 < c < 1.01999999999999992e41Initial program 77.2%
Taylor expanded in y around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites82.5%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- b))))
(if (<= y -2.2e-19)
(* y (fma z x (* i (- j))))
(if (<= y -2.05e-307)
(+ (* i (* a b)) (* c (fma j t t_1)))
(if (<= y 6.8e+176)
(fma t (fma j c (* x (- a))) (* c t_1))
(* y (fma j (- i) (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * -b;
double tmp;
if (y <= -2.2e-19) {
tmp = y * fma(z, x, (i * -j));
} else if (y <= -2.05e-307) {
tmp = (i * (a * b)) + (c * fma(j, t, t_1));
} else if (y <= 6.8e+176) {
tmp = fma(t, fma(j, c, (x * -a)), (c * t_1));
} else {
tmp = y * fma(j, -i, (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(-b)) tmp = 0.0 if (y <= -2.2e-19) tmp = Float64(y * fma(z, x, Float64(i * Float64(-j)))); elseif (y <= -2.05e-307) tmp = Float64(Float64(i * Float64(a * b)) + Float64(c * fma(j, t, t_1))); elseif (y <= 6.8e+176) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(c * t_1)); else tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * (-b)), $MachinePrecision]}, If[LessEqual[y, -2.2e-19], N[(y * N[(z * x + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.05e-307], N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * N[(j * t + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e+176], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(-b\right)\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{-19}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(z, x, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-307}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) + c \cdot \mathsf{fma}\left(j, t, t\_1\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{+176}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), c \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -2.1999999999999998e-19Initial program 64.0%
Taylor expanded in y around 0
Applied rewrites75.5%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6465.7
Applied rewrites65.7%
if -2.1999999999999998e-19 < y < -2.05000000000000016e-307Initial program 80.4%
Taylor expanded in i around 0
Applied rewrites81.9%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6466.5
Applied rewrites66.5%
if -2.05000000000000016e-307 < y < 6.80000000000000028e176Initial program 74.3%
Taylor expanded in y around 0
Applied rewrites75.4%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6464.9
Applied rewrites64.9%
if 6.80000000000000028e176 < y Initial program 77.6%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.8
Applied rewrites77.8%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma z (fma b (- c) (* x y)) (* t (fma a (- x) (* c j))))))
(if (<= t -1.8e-32)
t_1
(if (<= t 5.6e+38)
(fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(z, fma(b, -c, (x * y)), (t * fma(a, -x, (c * j))));
double tmp;
if (t <= -1.8e-32) {
tmp = t_1;
} else if (t <= 5.6e+38) {
tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(z, fma(b, Float64(-c), Float64(x * y)), Float64(t * fma(a, Float64(-x), Float64(c * j)))) tmp = 0.0 if (t <= -1.8e-32) tmp = t_1; elseif (t <= 5.6e+38) 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[(z * N[(b * (-c) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * (-x) + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e-32], t$95$1, If[LessEqual[t, 5.6e+38], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \mathsf{fma}\left(b, -c, x \cdot y\right), t \cdot \mathsf{fma}\left(a, -x, c \cdot j\right)\right)\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+38}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.79999999999999996e-32 or 5.6e38 < t Initial program 66.5%
Taylor expanded in y around 0
Applied rewrites78.6%
Taylor expanded in i around 0
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
Applied rewrites77.6%
if -1.79999999999999996e-32 < t < 5.6e38Initial program 80.3%
Taylor expanded in t around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
Applied rewrites74.6%
Final simplification76.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.5e-25)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= j 5.8e+180)
(fma c (fma j t (* z (- b))) (* x (- (* y z) (* t a))))
(fma t (fma j c (* x (- a))) (* b (fma c (- z) (* a i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.5e-25) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (j <= 5.8e+180) {
tmp = fma(c, fma(j, t, (z * -b)), (x * ((y * z) - (t * a))));
} else {
tmp = fma(t, fma(j, c, (x * -a)), (b * fma(c, -z, (a * i))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.5e-25) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (j <= 5.8e+180) tmp = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(b * fma(c, Float64(-z), Float64(a * i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.5e-25], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e+180], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.5 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{+180}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\end{array}
\end{array}
if j < -2.49999999999999981e-25Initial program 74.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6468.8
Applied rewrites68.8%
if -2.49999999999999981e-25 < j < 5.80000000000000015e180Initial program 72.7%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites73.1%
if 5.80000000000000015e180 < j Initial program 73.2%
Taylor expanded in y around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites76.9%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.5e-25)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= j 2.9e+159)
(fma c (fma j t (* z (- b))) (* x (- (* y z) (* t a))))
(fma t (fma j c (* x (- a))) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.5e-25) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (j <= 2.9e+159) {
tmp = fma(c, fma(j, t, (z * -b)), (x * ((y * z) - (t * a))));
} else {
tmp = fma(t, fma(j, c, (x * -a)), (a * (b * i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.5e-25) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (j <= 2.9e+159) tmp = fma(c, fma(j, t, Float64(z * Float64(-b))), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(a * Float64(b * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.5e-25], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e+159], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.5 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{+159}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), a \cdot \left(b \cdot i\right)\right)\\
\end{array}
\end{array}
if j < -2.49999999999999981e-25Initial program 74.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6468.8
Applied rewrites68.8%
if -2.49999999999999981e-25 < j < 2.90000000000000014e159Initial program 72.5%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites73.5%
if 2.90000000000000014e159 < j Initial program 74.2%
Taylor expanded in y around 0
Applied rewrites55.3%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f6472.2
Applied rewrites72.2%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma y x (* b (- c))))))
(if (<= z -1.1e+33)
t_1
(if (<= z -1.9e-38)
(* y (fma j (- i) (* x z)))
(if (<= z 9.5e+91) (fma t (fma j c (* x (- a))) (* 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 * fma(y, x, (b * -c));
double tmp;
if (z <= -1.1e+33) {
tmp = t_1;
} else if (z <= -1.9e-38) {
tmp = y * fma(j, -i, (x * z));
} else if (z <= 9.5e+91) {
tmp = fma(t, fma(j, c, (x * -a)), (a * (b * i)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(y, x, Float64(b * Float64(-c)))) tmp = 0.0 if (z <= -1.1e+33) tmp = t_1; elseif (z <= -1.9e-38) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (z <= 9.5e+91) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(a * Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+33], t$95$1, If[LessEqual[z, -1.9e-38], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+91], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-38}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+91}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), a \cdot \left(b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.09999999999999997e33 or 9.5000000000000001e91 < z Initial program 59.8%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.2
Applied rewrites69.2%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6470.2
Applied rewrites70.2%
if -1.09999999999999997e33 < z < -1.9e-38Initial program 86.1%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.2
Applied rewrites73.2%
if -1.9e-38 < z < 9.5000000000000001e91Initial program 81.4%
Taylor expanded in y around 0
Applied rewrites77.9%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f6461.4
Applied rewrites61.4%
Final simplification65.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma y x (* b (- c))))))
(if (<= z -2.45e+61)
t_1
(if (<= z 1.7e+45) (+ (* j (- (* t c) (* y i))) (* i (* 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 = z * fma(y, x, (b * -c));
double tmp;
if (z <= -2.45e+61) {
tmp = t_1;
} else if (z <= 1.7e+45) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(y, x, Float64(b * Float64(-c)))) tmp = 0.0 if (z <= -2.45e+61) tmp = t_1; elseif (z <= 1.7e+45) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * 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[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.45e+61], t$95$1, If[LessEqual[z, 1.7e+45], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -2.45 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+45}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.45000000000000013e61 or 1.7e45 < z Initial program 62.4%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.5
Applied rewrites68.5%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6469.4
Applied rewrites69.4%
if -2.45000000000000013e61 < z < 1.7e45Initial program 80.8%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6461.1
Applied rewrites61.1%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -2.35e+42)
t_1
(if (<= a -1.55e-269)
(* c (* z (- b)))
(if (<= a 8.5e-217)
(* y (* x z))
(if (<= a 9e-16) (* c (* t j)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -2.35e+42) {
tmp = t_1;
} else if (a <= -1.55e-269) {
tmp = c * (z * -b);
} else if (a <= 8.5e-217) {
tmp = y * (x * z);
} else if (a <= 9e-16) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -2.35e+42) tmp = t_1; elseif (a <= -1.55e-269) tmp = Float64(c * Float64(z * Float64(-b))); elseif (a <= 8.5e-217) tmp = Float64(y * Float64(x * z)); elseif (a <= 9e-16) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.35e+42], t$95$1, If[LessEqual[a, -1.55e-269], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-217], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e-16], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -2.35 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{-269}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-217}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-16}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.34999999999999993e42 or 9.0000000000000003e-16 < a Initial program 71.2%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.2
Applied rewrites58.2%
if -2.34999999999999993e42 < a < -1.54999999999999983e-269Initial program 69.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.5
Applied rewrites55.5%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6441.1
Applied rewrites41.1%
if -1.54999999999999983e-269 < a < 8.4999999999999994e-217Initial program 80.8%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.2
Applied rewrites50.2%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6453.4
Applied rewrites53.4%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6443.7
Applied rewrites43.7%
if 8.4999999999999994e-217 < a < 9.0000000000000003e-16Initial program 76.7%
Taylor expanded in y around 0
Applied rewrites83.8%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.6
Applied rewrites53.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6439.4
Applied rewrites39.4%
Final simplification48.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.14e+64)
(* y (* i (- j)))
(if (<= i -3.3e-180)
(* j (* t c))
(if (<= i 3.5e-166)
(* y (* x z))
(if (<= i 2.1e+86) (- (* a (* x t))) (* a (* b i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.14e+64) {
tmp = y * (i * -j);
} else if (i <= -3.3e-180) {
tmp = j * (t * c);
} else if (i <= 3.5e-166) {
tmp = y * (x * z);
} else if (i <= 2.1e+86) {
tmp = -(a * (x * t));
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.14d+64)) then
tmp = y * (i * -j)
else if (i <= (-3.3d-180)) then
tmp = j * (t * c)
else if (i <= 3.5d-166) then
tmp = y * (x * z)
else if (i <= 2.1d+86) then
tmp = -(a * (x * t))
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.14e+64) {
tmp = y * (i * -j);
} else if (i <= -3.3e-180) {
tmp = j * (t * c);
} else if (i <= 3.5e-166) {
tmp = y * (x * z);
} else if (i <= 2.1e+86) {
tmp = -(a * (x * t));
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.14e+64: tmp = y * (i * -j) elif i <= -3.3e-180: tmp = j * (t * c) elif i <= 3.5e-166: tmp = y * (x * z) elif i <= 2.1e+86: tmp = -(a * (x * t)) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.14e+64) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= -3.3e-180) tmp = Float64(j * Float64(t * c)); elseif (i <= 3.5e-166) tmp = Float64(y * Float64(x * z)); elseif (i <= 2.1e+86) tmp = Float64(-Float64(a * Float64(x * t))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.14e+64) tmp = y * (i * -j); elseif (i <= -3.3e-180) tmp = j * (t * c); elseif (i <= 3.5e-166) tmp = y * (x * z); elseif (i <= 2.1e+86) tmp = -(a * (x * t)); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.14e+64], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.3e-180], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e-166], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.1e+86], (-N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.14 \cdot 10^{+64}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -3.3 \cdot 10^{-180}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{-166}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 2.1 \cdot 10^{+86}:\\
\;\;\;\;-a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -1.14e64Initial program 64.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6449.4
Applied rewrites49.4%
Taylor expanded in c around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6439.1
Applied rewrites39.1%
lift-neg.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6440.9
Applied rewrites40.9%
if -1.14e64 < i < -3.29999999999999998e-180Initial program 87.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6450.6
Applied rewrites50.6%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6443.0
Applied rewrites43.0%
if -3.29999999999999998e-180 < i < 3.4999999999999999e-166Initial program 76.4%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.4
Applied rewrites57.4%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6457.5
Applied rewrites57.5%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6449.8
Applied rewrites49.8%
if 3.4999999999999999e-166 < i < 2.0999999999999999e86Initial program 81.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.5
Applied rewrites41.5%
Taylor expanded in t around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6439.4
Applied rewrites39.4%
if 2.0999999999999999e86 < i Initial program 57.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.9
Applied rewrites42.9%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6440.6
Applied rewrites40.6%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= z -2.1e+189)
t_1
(if (<= z -0.00018)
(* z (* x y))
(if (<= z 3.6e+40)
(* c (* t j))
(if (<= z 3e+93) (* t (* x (- a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.1e+189) {
tmp = t_1;
} else if (z <= -0.00018) {
tmp = z * (x * y);
} else if (z <= 3.6e+40) {
tmp = c * (t * j);
} else if (z <= 3e+93) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (z <= (-2.1d+189)) then
tmp = t_1
else if (z <= (-0.00018d0)) then
tmp = z * (x * y)
else if (z <= 3.6d+40) then
tmp = c * (t * j)
else if (z <= 3d+93) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.1e+189) {
tmp = t_1;
} else if (z <= -0.00018) {
tmp = z * (x * y);
} else if (z <= 3.6e+40) {
tmp = c * (t * j);
} else if (z <= 3e+93) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if z <= -2.1e+189: tmp = t_1 elif z <= -0.00018: tmp = z * (x * y) elif z <= 3.6e+40: tmp = c * (t * j) elif z <= 3e+93: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (z <= -2.1e+189) tmp = t_1; elseif (z <= -0.00018) tmp = Float64(z * Float64(x * y)); elseif (z <= 3.6e+40) tmp = Float64(c * Float64(t * j)); elseif (z <= 3e+93) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (z <= -2.1e+189) tmp = t_1; elseif (z <= -0.00018) tmp = z * (x * y); elseif (z <= 3.6e+40) tmp = c * (t * j); elseif (z <= 3e+93) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.1e+189], t$95$1, If[LessEqual[z, -0.00018], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e+40], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+93], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -2.1 \cdot 10^{+189}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -0.00018:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+40}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+93}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.09999999999999992e189 or 2.99999999999999978e93 < z Initial program 64.1%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.8
Applied rewrites73.8%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6454.0
Applied rewrites54.0%
if -2.09999999999999992e189 < z < -1.80000000000000011e-4Initial program 59.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Applied rewrites59.7%
Taylor expanded in c around 0
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6441.4
Applied rewrites41.4%
if -1.80000000000000011e-4 < z < 3.59999999999999996e40Initial program 82.8%
Taylor expanded in y around 0
Applied rewrites80.8%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.0
Applied rewrites53.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6435.3
Applied rewrites35.3%
if 3.59999999999999996e40 < z < 2.99999999999999978e93Initial program 67.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in y around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6459.8
Applied rewrites59.8%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma y x (* b (- c))))))
(if (<= z -2.2e+21)
t_1
(if (<= z -3.2e-240)
(* i (fma j (- y) (* a b)))
(if (<= z 9.5e+91) (* t (fma j c (* x (- a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * fma(y, x, (b * -c));
double tmp;
if (z <= -2.2e+21) {
tmp = t_1;
} else if (z <= -3.2e-240) {
tmp = i * fma(j, -y, (a * b));
} else if (z <= 9.5e+91) {
tmp = t * fma(j, c, (x * -a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(y, x, Float64(b * Float64(-c)))) tmp = 0.0 if (z <= -2.2e+21) tmp = t_1; elseif (z <= -3.2e-240) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (z <= 9.5e+91) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); 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[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+21], t$95$1, If[LessEqual[z, -3.2e-240], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+91], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-240}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+91}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.2e21 or 9.5000000000000001e91 < z Initial program 60.0%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.2
Applied rewrites69.2%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6470.2
Applied rewrites70.2%
if -2.2e21 < z < -3.1999999999999999e-240Initial program 80.7%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.6
Applied rewrites51.6%
if -3.1999999999999999e-240 < z < 9.5000000000000001e91Initial program 83.6%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6457.8
Applied rewrites57.8%
Final simplification61.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma c (- b) (* x y)))))
(if (<= z -5.5e-102)
t_1
(if (<= z -3.2e-240)
(* i (fma j (- y) (* a b)))
(if (<= z 9.5e+91) (* t (fma j c (* x (- a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * fma(c, -b, (x * y));
double tmp;
if (z <= -5.5e-102) {
tmp = t_1;
} else if (z <= -3.2e-240) {
tmp = i * fma(j, -y, (a * b));
} else if (z <= 9.5e+91) {
tmp = t * fma(j, c, (x * -a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(c, Float64(-b), Float64(x * y))) tmp = 0.0 if (z <= -5.5e-102) tmp = t_1; elseif (z <= -3.2e-240) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (z <= 9.5e+91) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e-102], t$95$1, If[LessEqual[z, -3.2e-240], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+91], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{-102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-240}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+91}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.4999999999999997e-102 or 9.5000000000000001e91 < z Initial program 66.2%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.6
Applied rewrites64.6%
if -5.4999999999999997e-102 < z < -3.1999999999999999e-240Initial program 75.5%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.0
Applied rewrites56.0%
if -3.1999999999999999e-240 < z < 9.5000000000000001e91Initial program 83.6%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6457.8
Applied rewrites57.8%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3e-25)
(* c (fma j t (* z (- b))))
(if (<= c -3.8e-156)
(* i (fma j (- y) (* a b)))
(if (<= c 2.3e+76)
(* y (fma z x (* i (- j))))
(* c (fma b (- z) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3e-25) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= -3.8e-156) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 2.3e+76) {
tmp = y * fma(z, x, (i * -j));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3e-25) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= -3.8e-156) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 2.3e+76) tmp = Float64(y * fma(z, x, Float64(i * Float64(-j)))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3e-25], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.8e-156], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e+76], N[(y * N[(z * x + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -3.8 \cdot 10^{-156}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+76}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(z, x, i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.9999999999999998e-25Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Applied rewrites70.4%
if -2.9999999999999998e-25 < c < -3.80000000000000008e-156Initial program 84.3%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.5
Applied rewrites54.5%
if -3.80000000000000008e-156 < c < 2.30000000000000001e76Initial program 76.2%
Taylor expanded in y around 0
Applied rewrites84.2%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6452.2
Applied rewrites52.2%
if 2.30000000000000001e76 < c Initial program 58.9%
Taylor expanded in y around 0
Applied rewrites61.3%
Taylor expanded in c around inf
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6469.4
Applied rewrites69.4%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3e-25)
(* c (fma j t (* z (- b))))
(if (<= c -3.8e-237)
(* i (fma j (- y) (* a b)))
(if (<= c 1.16e+133)
(* x (- (* y z) (* t a)))
(* c (fma b (- z) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3e-25) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= -3.8e-237) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 1.16e+133) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3e-25) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= -3.8e-237) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 1.16e+133) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3e-25], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.8e-237], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.16e+133], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -3.8 \cdot 10^{-237}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 1.16 \cdot 10^{+133}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.9999999999999998e-25Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Applied rewrites70.4%
if -2.9999999999999998e-25 < c < -3.80000000000000024e-237Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.4
Applied rewrites54.4%
if -3.80000000000000024e-237 < c < 1.1599999999999999e133Initial program 76.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6450.9
Applied rewrites50.9%
if 1.1599999999999999e133 < c Initial program 55.4%
Taylor expanded in y around 0
Applied rewrites58.1%
Taylor expanded in c around inf
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.8
Applied rewrites71.8%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3e-25)
(* c (fma j t (* z (- b))))
(if (<= c -7.5e-237)
(* i (fma j (- y) (* a b)))
(if (<= c 1.8e-12)
(* a (fma t (- x) (* b i)))
(* c (fma b (- z) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3e-25) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= -7.5e-237) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 1.8e-12) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3e-25) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= -7.5e-237) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 1.8e-12) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3e-25], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.5e-237], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e-12], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-237}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -2.9999999999999998e-25Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Applied rewrites70.4%
if -2.9999999999999998e-25 < c < -7.50000000000000034e-237Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.4
Applied rewrites54.4%
if -7.50000000000000034e-237 < c < 1.8e-12Initial program 77.4%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.9
Applied rewrites45.9%
if 1.8e-12 < c Initial program 63.3%
Taylor expanded in y around 0
Applied rewrites70.6%
Taylor expanded in c around inf
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
Final simplification57.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= z -2.1e+189)
t_1
(if (<= z -0.00018)
(* z (* x y))
(if (<= z 6.5e+69) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.1e+189) {
tmp = t_1;
} else if (z <= -0.00018) {
tmp = z * (x * y);
} else if (z <= 6.5e+69) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (z <= (-2.1d+189)) then
tmp = t_1
else if (z <= (-0.00018d0)) then
tmp = z * (x * y)
else if (z <= 6.5d+69) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.1e+189) {
tmp = t_1;
} else if (z <= -0.00018) {
tmp = z * (x * y);
} else if (z <= 6.5e+69) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if z <= -2.1e+189: tmp = t_1 elif z <= -0.00018: tmp = z * (x * y) elif z <= 6.5e+69: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (z <= -2.1e+189) tmp = t_1; elseif (z <= -0.00018) tmp = Float64(z * Float64(x * y)); elseif (z <= 6.5e+69) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (z <= -2.1e+189) tmp = t_1; elseif (z <= -0.00018) tmp = z * (x * y); elseif (z <= 6.5e+69) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.1e+189], t$95$1, If[LessEqual[z, -0.00018], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+69], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -2.1 \cdot 10^{+189}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -0.00018:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+69}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.09999999999999992e189 or 6.5000000000000001e69 < z Initial program 63.6%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.0
Applied rewrites71.0%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6451.7
Applied rewrites51.7%
if -2.09999999999999992e189 < z < -1.80000000000000011e-4Initial program 59.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Applied rewrites59.7%
Taylor expanded in c around 0
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6441.4
Applied rewrites41.4%
if -1.80000000000000011e-4 < z < 6.5000000000000001e69Initial program 82.7%
Taylor expanded in y around 0
Applied rewrites80.1%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.4
Applied rewrites53.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6434.8
Applied rewrites34.8%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.1e-95)
(* c (fma j t (* z (- b))))
(if (<= c 1.8e-12)
(* a (fma t (- x) (* b i)))
(* c (fma b (- z) (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.1e-95) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= 1.8e-12) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.1e-95) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= 1.8e-12) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.1e-95], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e-12], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.1 \cdot 10^{-95}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -1.0999999999999999e-95Initial program 73.2%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6461.6
Applied rewrites61.6%
if -1.0999999999999999e-95 < c < 1.8e-12Initial program 80.0%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.9
Applied rewrites44.9%
if 1.8e-12 < c Initial program 63.3%
Taylor expanded in y around 0
Applied rewrites70.6%
Taylor expanded in c around inf
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
Final simplification54.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -5800000000.0)
t_1
(if (<= c 1.8e-12) (* a (fma t (- x) (* b i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double tmp;
if (c <= -5800000000.0) {
tmp = t_1;
} else if (c <= 1.8e-12) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -5800000000.0) tmp = t_1; elseif (c <= 1.8e-12) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5800000000.0], t$95$1, If[LessEqual[c, 1.8e-12], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -5800000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -5.8e9 or 1.8e-12 < c Initial program 67.9%
Taylor expanded in y around 0
Applied rewrites70.4%
Taylor expanded in c around inf
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6465.8
Applied rewrites65.8%
if -5.8e9 < c < 1.8e-12Initial program 78.8%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.6
Applied rewrites42.6%
Final simplification54.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= y -4.8e+122)
t_1
(if (<= y 1.55e+177) (* b (fma c (- z) (* a i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (y <= -4.8e+122) {
tmp = t_1;
} else if (y <= 1.55e+177) {
tmp = b * fma(c, -z, (a * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -4.8e+122) tmp = t_1; elseif (y <= 1.55e+177) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+122], t$95$1, If[LessEqual[y, 1.55e+177], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+177}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.8000000000000004e122 or 1.55e177 < y Initial program 63.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.0
Applied rewrites65.0%
Taylor expanded in c around 0
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6460.2
Applied rewrites60.2%
if -4.8000000000000004e122 < y < 1.55e177Initial program 76.2%
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
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.5
Applied rewrites42.5%
Final simplification46.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -2.45e+17) t_1 (if (<= j 1.12e+73) (* z (* x y)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.45e+17) {
tmp = t_1;
} else if (j <= 1.12e+73) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-2.45d+17)) then
tmp = t_1
else if (j <= 1.12d+73) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.45e+17) {
tmp = t_1;
} else if (j <= 1.12e+73) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -2.45e+17: tmp = t_1 elif j <= 1.12e+73: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -2.45e+17) tmp = t_1; elseif (j <= 1.12e+73) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -2.45e+17) tmp = t_1; elseif (j <= 1.12e+73) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.45e+17], t$95$1, If[LessEqual[j, 1.12e+73], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -2.45 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+73}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.45e17 or 1.12e73 < j Initial program 74.2%
Taylor expanded in y around 0
Applied rewrites68.8%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6454.6
Applied rewrites54.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6442.9
Applied rewrites42.9%
if -2.45e17 < j < 1.12e73Initial program 72.5%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.5
Applied rewrites54.5%
Taylor expanded in c around 0
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6434.0
Applied rewrites34.0%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -2.45e+17) t_1 (if (<= j 1.12e+73) (* y (* x z)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.45e+17) {
tmp = t_1;
} else if (j <= 1.12e+73) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-2.45d+17)) then
tmp = t_1
else if (j <= 1.12d+73) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.45e+17) {
tmp = t_1;
} else if (j <= 1.12e+73) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -2.45e+17: tmp = t_1 elif j <= 1.12e+73: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -2.45e+17) tmp = t_1; elseif (j <= 1.12e+73) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -2.45e+17) tmp = t_1; elseif (j <= 1.12e+73) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.45e+17], t$95$1, If[LessEqual[j, 1.12e+73], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -2.45 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+73}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.45e17 or 1.12e73 < j Initial program 74.2%
Taylor expanded in y around 0
Applied rewrites68.8%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6454.6
Applied rewrites54.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6442.9
Applied rewrites42.9%
if -2.45e17 < j < 1.12e73Initial program 72.5%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.5
Applied rewrites54.5%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6454.6
Applied rewrites54.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6433.3
Applied rewrites33.3%
Final simplification37.8%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* y z)))) (if (<= y -5.1e-11) t_1 (if (<= y 7.3e+140) (* 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 = x * (y * z);
double tmp;
if (y <= -5.1e-11) {
tmp = t_1;
} else if (y <= 7.3e+140) {
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 = x * (y * z)
if (y <= (-5.1d-11)) then
tmp = t_1
else if (y <= 7.3d+140) 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 = x * (y * z);
double tmp;
if (y <= -5.1e-11) {
tmp = t_1;
} else if (y <= 7.3e+140) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -5.1e-11: tmp = t_1 elif y <= 7.3e+140: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -5.1e-11) tmp = t_1; elseif (y <= 7.3e+140) 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 = x * (y * z); tmp = 0.0; if (y <= -5.1e-11) tmp = t_1; elseif (y <= 7.3e+140) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e-11], t$95$1, If[LessEqual[y, 7.3e+140], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.3 \cdot 10^{+140}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.09999999999999984e-11 or 7.3000000000000004e140 < y Initial program 65.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6455.4
Applied rewrites55.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f6446.6
Applied rewrites46.6%
if -5.09999999999999984e-11 < y < 7.3000000000000004e140Initial program 77.9%
Taylor expanded in y around 0
Applied rewrites75.0%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6462.2
Applied rewrites62.2%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6431.0
Applied rewrites31.0%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* b i)))) (if (<= i -1.35e+110) t_1 (if (<= i 4e+37) (* j (* t c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (i <= -1.35e+110) {
tmp = t_1;
} else if (i <= 4e+37) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (i <= (-1.35d+110)) then
tmp = t_1
else if (i <= 4d+37) then
tmp = j * (t * c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (i <= -1.35e+110) {
tmp = t_1;
} else if (i <= 4e+37) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if i <= -1.35e+110: tmp = t_1 elif i <= 4e+37: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -1.35e+110) tmp = t_1; elseif (i <= 4e+37) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (i <= -1.35e+110) tmp = t_1; elseif (i <= 4e+37) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.35e+110], t$95$1, If[LessEqual[i, 4e+37], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.35 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4 \cdot 10^{+37}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.35000000000000005e110 or 3.99999999999999982e37 < i Initial program 62.3%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.4
Applied rewrites40.4%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6433.8
Applied rewrites33.8%
if -1.35000000000000005e110 < i < 3.99999999999999982e37Initial program 80.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6441.8
Applied rewrites41.8%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6433.2
Applied rewrites33.2%
Final simplification33.4%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* b i)))) (if (<= i -2.25e+117) t_1 (if (<= i 3.6e+37) (* 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 (i <= -2.25e+117) {
tmp = t_1;
} else if (i <= 3.6e+37) {
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 (i <= (-2.25d+117)) then
tmp = t_1
else if (i <= 3.6d+37) 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 (i <= -2.25e+117) {
tmp = t_1;
} else if (i <= 3.6e+37) {
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 i <= -2.25e+117: tmp = t_1 elif i <= 3.6e+37: 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 (i <= -2.25e+117) tmp = t_1; elseif (i <= 3.6e+37) 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 (i <= -2.25e+117) tmp = t_1; elseif (i <= 3.6e+37) 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[i, -2.25e+117], t$95$1, If[LessEqual[i, 3.6e+37], 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}\;i \leq -2.25 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{+37}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.25e117 or 3.59999999999999998e37 < i Initial program 63.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.5
Applied rewrites41.5%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6434.6
Applied rewrites34.6%
if -2.25e117 < i < 3.59999999999999998e37Initial program 80.0%
Taylor expanded in y around 0
Applied rewrites85.5%
Taylor expanded in c around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6460.0
Applied rewrites60.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6432.4
Applied rewrites32.4%
Final simplification33.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 73.3%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6432.4
Applied rewrites32.4%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6418.9
Applied rewrites18.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024219
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))