
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i)))
(t_2
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j t_1))))
(if (<= t_2 2e+296)
t_2
(if (<= t_2 INFINITY)
(fma j t_1 (fma t (fma a (- x) (* b i)) (* z (fma c (- b) (* x y)))))
(* i (fma j (- y) (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * c) - (y * i);
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * t_1);
double tmp;
if (t_2 <= 2e+296) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = fma(j, t_1, fma(t, fma(a, -x, (b * i)), (z * fma(c, -b, (x * y)))));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * t_1)) tmp = 0.0 if (t_2 <= 2e+296) tmp = t_2; elseif (t_2 <= Inf) tmp = fma(j, t_1, fma(t, fma(a, Float64(-x), Float64(b * i)), Float64(z * fma(c, Float64(-b), Float64(x * y))))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 2e+296], t$95$2, If[LessEqual[t$95$2, Infinity], N[(j * t$95$1 + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot t\_1\\
\mathbf{if}\;t\_2 \leq 2 \cdot 10^{+296}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 1.99999999999999996e296Initial program 96.5%
if 1.99999999999999996e296 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 82.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites89.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification87.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c)))
(t_2 (- (* a c) (* y i)))
(t_3 (+ (+ (* x (- (* y z) (* t a))) (* b t_1)) (* j t_2))))
(if (<= t_3 5e+290)
(fma a (fma j c (* x (- t))) (fma b t_1 (* y (fma j (- i) (* x z)))))
(if (<= t_3 INFINITY)
(fma j t_2 (fma t (fma a (- x) (* b i)) (* z (fma c (- b) (* x y)))))
(* i (fma j (- y) (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * i) - (z * c);
double t_2 = (a * c) - (y * i);
double t_3 = ((x * ((y * z) - (t * a))) + (b * t_1)) + (j * t_2);
double tmp;
if (t_3 <= 5e+290) {
tmp = fma(a, fma(j, c, (x * -t)), fma(b, t_1, (y * fma(j, -i, (x * z)))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = fma(j, t_2, fma(t, fma(a, -x, (b * i)), (z * fma(c, -b, (x * y)))));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) t_2 = Float64(Float64(a * c) - Float64(y * i)) t_3 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * t_1)) + Float64(j * t_2)) tmp = 0.0 if (t_3 <= 5e+290) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), fma(b, t_1, Float64(y * fma(j, Float64(-i), Float64(x * z))))); elseif (t_3 <= Inf) tmp = fma(j, t_2, fma(t, fma(a, Float64(-x), Float64(b * i)), Float64(z * fma(c, Float64(-b), Float64(x * y))))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 5e+290], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(j * t$95$2 + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
t_2 := a \cdot c - y \cdot i\\
t_3 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot t\_1\right) + j \cdot t\_2\\
\mathbf{if}\;t\_3 \leq 5 \cdot 10^{+290}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), \mathsf{fma}\left(b, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\right)\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 4.9999999999999998e290Initial program 96.5%
Taylor expanded in y around 0
Applied rewrites89.2%
if 4.9999999999999998e290 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 82.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites89.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification83.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c))))
(if (<=
(+ (+ (* x (- (* y z) (* t a))) (* b t_1)) (* j (- (* a c) (* y i))))
INFINITY)
(fma a (fma j c (* x (- t))) (fma b t_1 (* y (fma j (- i) (* x z)))))
(* i (fma j (- y) (* t b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * i) - (z * c);
double tmp;
if ((((x * ((y * z) - (t * a))) + (b * t_1)) + (j * ((a * c) - (y * i)))) <= ((double) INFINITY)) {
tmp = fma(a, fma(j, c, (x * -t)), fma(b, t_1, (y * fma(j, -i, (x * z)))));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * t_1)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) <= Inf) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), fma(b, t_1, Float64(y * fma(j, Float64(-i), Float64(x * z))))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot t\_1\right) + j \cdot \left(a \cdot c - y \cdot i\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), \mathsf{fma}\left(b, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.4%
Taylor expanded in y around 0
Applied rewrites85.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification80.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -4.3e+130)
t_2
(if (<= j -2.3e+22)
t_1
(if (<= j -3.1e-30)
(* y (fma j (- i) (* x z)))
(if (<= j -1e-49)
(* a (fma j c (* x (- t))))
(if (<= j -5.8e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 3e-231)
(fma (* b (- z)) c (* x (* y z)))
(if (<= j 1.15e+80) 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.3e+130) {
tmp = t_2;
} else if (j <= -2.3e+22) {
tmp = t_1;
} else if (j <= -3.1e-30) {
tmp = y * fma(j, -i, (x * z));
} else if (j <= -1e-49) {
tmp = a * fma(j, c, (x * -t));
} else if (j <= -5.8e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 3e-231) {
tmp = fma((b * -z), c, (x * (y * z)));
} else if (j <= 1.15e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.3e+130) tmp = t_2; elseif (j <= -2.3e+22) tmp = t_1; elseif (j <= -3.1e-30) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (j <= -1e-49) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (j <= -5.8e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 3e-231) tmp = fma(Float64(b * Float64(-z)), c, Float64(x * Float64(y * z))); elseif (j <= 1.15e+80) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+130], t$95$2, If[LessEqual[j, -2.3e+22], t$95$1, If[LessEqual[j, -3.1e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1e-49], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.8e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-231], N[(N[(b * (-z)), $MachinePrecision] * c + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot \left(-z\right), c, x \cdot \left(y \cdot z\right)\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -4.29999999999999984e130 or 1.15000000000000002e80 < j Initial program 71.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -4.29999999999999984e130 < j < -2.3000000000000002e22 or 3.0000000000000003e-231 < j < 1.15000000000000002e80Initial program 76.6%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if -2.3000000000000002e22 < j < -3.09999999999999991e-30Initial program 83.4%
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-*.f6475.4
Applied rewrites75.4%
if -3.09999999999999991e-30 < j < -9.99999999999999936e-50Initial program 87.3%
Taylor expanded in a 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.f6487.7
Applied rewrites87.7%
if -9.99999999999999936e-50 < j < -5.8000000000000004e-135Initial program 83.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6475.3
Applied rewrites75.3%
if -5.8000000000000004e-135 < j < 3.0000000000000003e-231Initial program 65.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-*.f6463.6
Applied rewrites63.6%
Applied rewrites64.0%
Final simplification67.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -4.3e+130)
t_2
(if (<= j -2.3e+22)
t_1
(if (<= j -3.1e-30)
(* y (fma j (- i) (* x z)))
(if (<= j -1e-49)
(* a (fma j c (* x (- t))))
(if (<= j -5.8e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 3e-231)
(* z (fma c (- b) (* x y)))
(if (<= j 1.15e+80) 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.3e+130) {
tmp = t_2;
} else if (j <= -2.3e+22) {
tmp = t_1;
} else if (j <= -3.1e-30) {
tmp = y * fma(j, -i, (x * z));
} else if (j <= -1e-49) {
tmp = a * fma(j, c, (x * -t));
} else if (j <= -5.8e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 3e-231) {
tmp = z * fma(c, -b, (x * y));
} else if (j <= 1.15e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.3e+130) tmp = t_2; elseif (j <= -2.3e+22) tmp = t_1; elseif (j <= -3.1e-30) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (j <= -1e-49) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (j <= -5.8e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 3e-231) tmp = Float64(z * fma(c, Float64(-b), Float64(x * y))); elseif (j <= 1.15e+80) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+130], t$95$2, If[LessEqual[j, -2.3e+22], t$95$1, If[LessEqual[j, -3.1e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1e-49], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.8e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-231], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -4.29999999999999984e130 or 1.15000000000000002e80 < j Initial program 71.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -4.29999999999999984e130 < j < -2.3000000000000002e22 or 3.0000000000000003e-231 < j < 1.15000000000000002e80Initial program 76.6%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if -2.3000000000000002e22 < j < -3.09999999999999991e-30Initial program 83.4%
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-*.f6475.4
Applied rewrites75.4%
if -3.09999999999999991e-30 < j < -9.99999999999999936e-50Initial program 87.3%
Taylor expanded in a 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.f6487.7
Applied rewrites87.7%
if -9.99999999999999936e-50 < j < -5.8000000000000004e-135Initial program 83.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6475.3
Applied rewrites75.3%
if -5.8000000000000004e-135 < j < 3.0000000000000003e-231Initial program 65.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-*.f6463.6
Applied rewrites63.6%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -4.3e+130)
t_2
(if (<= j -2.3e+22)
t_1
(if (<= j -3.1e-30)
(* y (fma j (- i) (* x z)))
(if (<= j -1e-49)
(* a (fma j c (* x (- t))))
(if (<= j -5e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 5.4e-204)
(* x (- (* y z) (* t a)))
(if (<= j 1.15e+80) 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.3e+130) {
tmp = t_2;
} else if (j <= -2.3e+22) {
tmp = t_1;
} else if (j <= -3.1e-30) {
tmp = y * fma(j, -i, (x * z));
} else if (j <= -1e-49) {
tmp = a * fma(j, c, (x * -t));
} else if (j <= -5e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 5.4e-204) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 1.15e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.3e+130) tmp = t_2; elseif (j <= -2.3e+22) tmp = t_1; elseif (j <= -3.1e-30) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (j <= -1e-49) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (j <= -5e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 5.4e-204) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 1.15e+80) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+130], t$95$2, If[LessEqual[j, -2.3e+22], t$95$1, If[LessEqual[j, -3.1e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1e-49], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e-204], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 5.4 \cdot 10^{-204}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -4.29999999999999984e130 or 1.15000000000000002e80 < j Initial program 71.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -4.29999999999999984e130 < j < -2.3000000000000002e22 or 5.39999999999999983e-204 < j < 1.15000000000000002e80Initial program 76.9%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6463.5
Applied rewrites63.5%
if -2.3000000000000002e22 < j < -3.09999999999999991e-30Initial program 83.4%
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-*.f6475.4
Applied rewrites75.4%
if -3.09999999999999991e-30 < j < -9.99999999999999936e-50Initial program 87.3%
Taylor expanded in a 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.f6487.7
Applied rewrites87.7%
if -9.99999999999999936e-50 < j < -5.0000000000000002e-135Initial program 83.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6475.3
Applied rewrites75.3%
if -5.0000000000000002e-135 < j < 5.39999999999999983e-204Initial program 66.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites69.9%
Taylor expanded in t around inf
Applied rewrites59.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6455.0
Applied rewrites55.0%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))) (t_2 (* j t_1)))
(if (<= j -1e+111)
(fma j t_1 (* (- x) (* t a)))
(if (<= j -6.5e-135)
(+ t_2 (* i (* t b)))
(if (<= j 8.5e+81)
(fma c (* b (- z)) (* x (fma a (- t) (* y z))))
(+ t_2 (* a (* x (- t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * c) - (y * i);
double t_2 = j * t_1;
double tmp;
if (j <= -1e+111) {
tmp = fma(j, t_1, (-x * (t * a)));
} else if (j <= -6.5e-135) {
tmp = t_2 + (i * (t * b));
} else if (j <= 8.5e+81) {
tmp = fma(c, (b * -z), (x * fma(a, -t, (y * z))));
} else {
tmp = t_2 + (a * (x * -t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = Float64(j * t_1) tmp = 0.0 if (j <= -1e+111) tmp = fma(j, t_1, Float64(Float64(-x) * Float64(t * a))); elseif (j <= -6.5e-135) tmp = Float64(t_2 + Float64(i * Float64(t * b))); elseif (j <= 8.5e+81) tmp = fma(c, Float64(b * Float64(-z)), Float64(x * fma(a, Float64(-t), Float64(y * z)))); else tmp = Float64(t_2 + Float64(a * Float64(x * Float64(-t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1), $MachinePrecision]}, If[LessEqual[j, -1e+111], N[(j * t$95$1 + N[((-x) * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.5e-135], N[(t$95$2 + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+81], N[(c * N[(b * (-z)), $MachinePrecision] + N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 + N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := j \cdot t\_1\\
\mathbf{if}\;j \leq -1 \cdot 10^{+111}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, \left(-x\right) \cdot \left(t \cdot a\right)\right)\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-135}:\\
\;\;\;\;t\_2 + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(c, b \cdot \left(-z\right), x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 + a \cdot \left(x \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if j < -9.99999999999999957e110Initial program 68.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites79.0%
Taylor expanded in a around inf
Applied rewrites77.0%
if -9.99999999999999957e110 < j < -6.50000000000000056e-135Initial program 79.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6461.2
Applied rewrites61.2%
if -6.50000000000000056e-135 < j < 8.49999999999999986e81Initial program 73.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.2%
Taylor expanded in j around 0
Applied rewrites70.4%
if 8.49999999999999986e81 < j Initial program 74.4%
Taylor expanded in a around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.f6478.5
Applied rewrites78.5%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))) (t_2 (fma j t_1 (* (- x) (* t a)))))
(if (<= j -1e+111)
t_2
(if (<= j -6.5e-135)
(+ (* j t_1) (* i (* t b)))
(if (<= j 8.5e+81)
(fma c (* b (- z)) (* x (fma a (- t) (* y z))))
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 = (a * c) - (y * i);
double t_2 = fma(j, t_1, (-x * (t * a)));
double tmp;
if (j <= -1e+111) {
tmp = t_2;
} else if (j <= -6.5e-135) {
tmp = (j * t_1) + (i * (t * b));
} else if (j <= 8.5e+81) {
tmp = fma(c, (b * -z), (x * fma(a, -t, (y * z))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = fma(j, t_1, Float64(Float64(-x) * Float64(t * a))) tmp = 0.0 if (j <= -1e+111) tmp = t_2; elseif (j <= -6.5e-135) tmp = Float64(Float64(j * t_1) + Float64(i * Float64(t * b))); elseif (j <= 8.5e+81) tmp = fma(c, Float64(b * Float64(-z)), Float64(x * fma(a, Float64(-t), Float64(y * z)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1 + N[((-x) * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1e+111], t$95$2, If[LessEqual[j, -6.5e-135], N[(N[(j * t$95$1), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+81], N[(c * N[(b * (-z)), $MachinePrecision] + N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \mathsf{fma}\left(j, t\_1, \left(-x\right) \cdot \left(t \cdot a\right)\right)\\
\mathbf{if}\;j \leq -1 \cdot 10^{+111}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-135}:\\
\;\;\;\;j \cdot t\_1 + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(c, b \cdot \left(-z\right), x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -9.99999999999999957e110 or 8.49999999999999986e81 < j Initial program 71.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites72.7%
Taylor expanded in a around inf
Applied rewrites77.8%
if -9.99999999999999957e110 < j < -6.50000000000000056e-135Initial program 79.3%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6461.2
Applied rewrites61.2%
if -6.50000000000000056e-135 < j < 8.49999999999999986e81Initial program 73.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.2%
Taylor expanded in j around 0
Applied rewrites70.4%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))) (t_2 (fma j t_1 (* (- x) (* t a)))))
(if (<= j -2.65e+110)
t_2
(if (<= j -6.5e-135)
(fma j t_1 (* b (* t i)))
(if (<= j 8.5e+81)
(fma c (* b (- z)) (* x (fma a (- t) (* y z))))
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 = (a * c) - (y * i);
double t_2 = fma(j, t_1, (-x * (t * a)));
double tmp;
if (j <= -2.65e+110) {
tmp = t_2;
} else if (j <= -6.5e-135) {
tmp = fma(j, t_1, (b * (t * i)));
} else if (j <= 8.5e+81) {
tmp = fma(c, (b * -z), (x * fma(a, -t, (y * z))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = fma(j, t_1, Float64(Float64(-x) * Float64(t * a))) tmp = 0.0 if (j <= -2.65e+110) tmp = t_2; elseif (j <= -6.5e-135) tmp = fma(j, t_1, Float64(b * Float64(t * i))); elseif (j <= 8.5e+81) tmp = fma(c, Float64(b * Float64(-z)), Float64(x * fma(a, Float64(-t), Float64(y * z)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1 + N[((-x) * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.65e+110], t$95$2, If[LessEqual[j, -6.5e-135], N[(j * t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+81], N[(c * N[(b * (-z)), $MachinePrecision] + N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \mathsf{fma}\left(j, t\_1, \left(-x\right) \cdot \left(t \cdot a\right)\right)\\
\mathbf{if}\;j \leq -2.65 \cdot 10^{+110}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-135}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, b \cdot \left(t \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(c, b \cdot \left(-z\right), x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.6499999999999999e110 or 8.49999999999999986e81 < j Initial program 71.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites72.7%
Taylor expanded in a around inf
Applied rewrites77.8%
if -2.6499999999999999e110 < j < -6.50000000000000056e-135Initial program 79.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.8%
Taylor expanded in i around inf
Applied rewrites58.0%
if -6.50000000000000056e-135 < j < 8.49999999999999986e81Initial program 73.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.2%
Taylor expanded in j around 0
Applied rewrites70.4%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))))
(if (<= j -5.6e+206)
(fma a (fma t (- x) (* c j)) (* x (* y z)))
(if (<= j -6.5e-135)
(fma j t_1 (* b (* t i)))
(if (<= j 5.2e+100)
(fma c (* b (- z)) (* x (fma a (- t) (* y z))))
(* 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 * c) - (y * i);
double tmp;
if (j <= -5.6e+206) {
tmp = fma(a, fma(t, -x, (c * j)), (x * (y * z)));
} else if (j <= -6.5e-135) {
tmp = fma(j, t_1, (b * (t * i)));
} else if (j <= 5.2e+100) {
tmp = fma(c, (b * -z), (x * fma(a, -t, (y * z))));
} else {
tmp = j * t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (j <= -5.6e+206) tmp = fma(a, fma(t, Float64(-x), Float64(c * j)), Float64(x * Float64(y * z))); elseif (j <= -6.5e-135) tmp = fma(j, t_1, Float64(b * Float64(t * i))); elseif (j <= 5.2e+100) tmp = fma(c, Float64(b * Float64(-z)), Float64(x * fma(a, Float64(-t), Float64(y * z)))); else tmp = Float64(j * t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.6e+206], N[(a * N[(t * (-x) + N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.5e-135], N[(j * t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e+100], N[(c * N[(b * (-z)), $MachinePrecision] + N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -5.6 \cdot 10^{+206}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(t, -x, c \cdot j\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-135}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, b \cdot \left(t \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{+100}:\\
\;\;\;\;\mathsf{fma}\left(c, b \cdot \left(-z\right), x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot t\_1\\
\end{array}
\end{array}
if j < -5.5999999999999996e206Initial program 49.9%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites55.7%
Taylor expanded in y around inf
Applied rewrites28.4%
Taylor expanded in b around 0
Applied rewrites73.1%
if -5.5999999999999996e206 < j < -6.50000000000000056e-135Initial program 80.7%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites78.6%
Taylor expanded in i around inf
Applied rewrites63.4%
if -6.50000000000000056e-135 < j < 5.2000000000000003e100Initial program 74.3%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites73.0%
Taylor expanded in j around 0
Applied rewrites70.3%
if 5.2000000000000003e100 < j Initial program 72.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6477.3
Applied rewrites77.3%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))))
(if (<= j -1.95e+124)
(fma j t_1 (* (- x) (* t a)))
(if (<= j 8.5e+81)
(fma z (fma y x (* b (- c))) (* t (fma a (- x) (* b i))))
(+ (* j t_1) (* a (* x (- t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * c) - (y * i);
double tmp;
if (j <= -1.95e+124) {
tmp = fma(j, t_1, (-x * (t * a)));
} else if (j <= 8.5e+81) {
tmp = fma(z, fma(y, x, (b * -c)), (t * fma(a, -x, (b * i))));
} else {
tmp = (j * t_1) + (a * (x * -t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (j <= -1.95e+124) tmp = fma(j, t_1, Float64(Float64(-x) * Float64(t * a))); elseif (j <= 8.5e+81) tmp = fma(z, fma(y, x, Float64(b * Float64(-c))), Float64(t * fma(a, Float64(-x), Float64(b * i)))); else tmp = Float64(Float64(j * t_1) + Float64(a * Float64(x * Float64(-t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.95e+124], N[(j * t$95$1 + N[((-x) * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+81], N[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * t$95$1), $MachinePrecision] + N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -1.95 \cdot 10^{+124}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, \left(-x\right) \cdot \left(t \cdot a\right)\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right), t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot t\_1 + a \cdot \left(x \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if j < -1.95e124Initial program 65.8%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.5%
Taylor expanded in a around inf
Applied rewrites77.7%
if -1.95e124 < j < 8.49999999999999986e81Initial program 76.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.2%
Taylor expanded in t around inf
Applied rewrites65.6%
Taylor expanded in j around 0
Applied rewrites76.3%
if 8.49999999999999986e81 < j Initial program 74.4%
Taylor expanded in a around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.f6478.5
Applied rewrites78.5%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))))
(if (<= j -1.95e+124)
(fma j t_1 (* (- x) (* t a)))
(if (<= j 8.5e+81)
(fma z (- (* x y) (* b c)) (* t (fma a (- x) (* b i))))
(+ (* j t_1) (* a (* x (- t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * c) - (y * i);
double tmp;
if (j <= -1.95e+124) {
tmp = fma(j, t_1, (-x * (t * a)));
} else if (j <= 8.5e+81) {
tmp = fma(z, ((x * y) - (b * c)), (t * fma(a, -x, (b * i))));
} else {
tmp = (j * t_1) + (a * (x * -t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (j <= -1.95e+124) tmp = fma(j, t_1, Float64(Float64(-x) * Float64(t * a))); elseif (j <= 8.5e+81) tmp = fma(z, Float64(Float64(x * y) - Float64(b * c)), Float64(t * fma(a, Float64(-x), Float64(b * i)))); else tmp = Float64(Float64(j * t_1) + Float64(a * Float64(x * Float64(-t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.95e+124], N[(j * t$95$1 + N[((-x) * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+81], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * t$95$1), $MachinePrecision] + N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -1.95 \cdot 10^{+124}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, \left(-x\right) \cdot \left(t \cdot a\right)\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(z, x \cdot y - b \cdot c, t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot t\_1 + a \cdot \left(x \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if j < -1.95e124Initial program 65.8%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.5%
Taylor expanded in a around inf
Applied rewrites77.7%
if -1.95e124 < j < 8.49999999999999986e81Initial program 76.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.2%
Taylor expanded in j around 0
Applied rewrites76.3%
if 8.49999999999999986e81 < j Initial program 74.4%
Taylor expanded in a around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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.f6478.5
Applied rewrites78.5%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))) (t_2 (* a (fma j c (* x (- t))))))
(if (<= a -4.2e+44)
t_2
(if (<= a -1.1e-167)
t_1
(if (<= a 4.8e-287)
(* j (* y (- i)))
(if (<= a 9.5e-68) (* x (* y z)) (if (<= a 4.6e-38) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double t_2 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -4.2e+44) {
tmp = t_2;
} else if (a <= -1.1e-167) {
tmp = t_1;
} else if (a <= 4.8e-287) {
tmp = j * (y * -i);
} else if (a <= 9.5e-68) {
tmp = x * (y * z);
} else if (a <= 4.6e-38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) t_2 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -4.2e+44) tmp = t_2; elseif (a <= -1.1e-167) tmp = t_1; elseif (a <= 4.8e-287) tmp = Float64(j * Float64(y * Float64(-i))); elseif (a <= 9.5e-68) tmp = Float64(x * Float64(y * z)); elseif (a <= 4.6e-38) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+44], t$95$2, If[LessEqual[a, -1.1e-167], t$95$1, If[LessEqual[a, 4.8e-287], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-68], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.6e-38], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
t_2 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-287}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-68}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.19999999999999974e44 or 4.60000000000000003e-38 < a Initial program 69.9%
Taylor expanded in a 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.f6460.9
Applied rewrites60.9%
if -4.19999999999999974e44 < a < -1.1e-167 or 9.4999999999999997e-68 < a < 4.60000000000000003e-38Initial program 76.9%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6451.2
Applied rewrites51.2%
Taylor expanded in j around 0
Applied rewrites48.6%
if -1.1e-167 < a < 4.79999999999999999e-287Initial program 68.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6444.6
Applied rewrites44.6%
Taylor expanded in a around 0
Applied rewrites41.6%
if 4.79999999999999999e-287 < a < 9.4999999999999997e-68Initial program 83.9%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites65.6%
Taylor expanded in y around inf
Applied rewrites42.4%
Final simplification52.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.22e+124)
t_1
(if (<= j -5e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 5.4e-204)
(* x (- (* y z) (* t a)))
(if (<= j 1.15e+80) (* b (- (* t i) (* z 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.22e+124) {
tmp = t_1;
} else if (j <= -5e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 5.4e-204) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 1.15e+80) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.22e+124) tmp = t_1; elseif (j <= -5e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 5.4e-204) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 1.15e+80) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.22e+124], t$95$1, If[LessEqual[j, -5e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e-204], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.22 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 5.4 \cdot 10^{-204}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.22e124 or 1.15000000000000002e80 < j Initial program 70.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.1
Applied rewrites71.1%
if -1.22e124 < j < -5.0000000000000002e-135Initial program 80.3%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.4
Applied rewrites54.4%
if -5.0000000000000002e-135 < j < 5.39999999999999983e-204Initial program 66.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites69.9%
Taylor expanded in t around inf
Applied rewrites59.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6455.0
Applied rewrites55.0%
if 5.39999999999999983e-204 < j < 1.15000000000000002e80Initial program 81.6%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
Final simplification62.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.22e+124)
t_1
(if (<= j -4.4e-135)
(* i (fma j (- y) (* t b)))
(if (<= j -4.5e-268)
(* y (* x z))
(if (<= j 1.15e+80) (* b (- (* t i) (* z 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.22e+124) {
tmp = t_1;
} else if (j <= -4.4e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= -4.5e-268) {
tmp = y * (x * z);
} else if (j <= 1.15e+80) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.22e+124) tmp = t_1; elseif (j <= -4.4e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= -4.5e-268) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.15e+80) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.22e+124], t$95$1, If[LessEqual[j, -4.4e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.5e-268], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.22 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-268}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.22e124 or 1.15000000000000002e80 < j Initial program 70.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.1
Applied rewrites71.1%
if -1.22e124 < j < -4.3999999999999999e-135Initial program 80.3%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.4
Applied rewrites54.4%
if -4.3999999999999999e-135 < j < -4.5000000000000001e-268Initial program 53.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites77.1%
Taylor expanded in y around inf
Applied rewrites45.8%
Applied rewrites49.5%
if -4.5000000000000001e-268 < j < 1.15000000000000002e80Initial program 80.4%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6455.8
Applied rewrites55.8%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -34000000000000.0)
(* z (* x (- y (* c (/ b x)))))
(if (<= z 1.12e+52)
(fma j (- (* a c) (* y i)) (* b (* t i)))
(* z (* x (- y (/ (* b c) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -34000000000000.0) {
tmp = z * (x * (y - (c * (b / x))));
} else if (z <= 1.12e+52) {
tmp = fma(j, ((a * c) - (y * i)), (b * (t * i)));
} else {
tmp = z * (x * (y - ((b * c) / x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -34000000000000.0) tmp = Float64(z * Float64(x * Float64(y - Float64(c * Float64(b / x))))); elseif (z <= 1.12e+52) tmp = fma(j, Float64(Float64(a * c) - Float64(y * i)), Float64(b * Float64(t * i))); else tmp = Float64(z * Float64(x * Float64(y - Float64(Float64(b * c) / x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -34000000000000.0], N[(z * N[(x * N[(y - N[(c * N[(b / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.12e+52], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * N[(y - N[(N[(b * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -34000000000000:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - c \cdot \frac{b}{x}\right)\right)\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{+52}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, b \cdot \left(t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - \frac{b \cdot c}{x}\right)\right)\\
\end{array}
\end{array}
if z < -3.4e13Initial program 61.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-*.f6465.3
Applied rewrites65.3%
Taylor expanded in x around inf
Applied rewrites65.3%
Applied rewrites67.1%
if -3.4e13 < z < 1.12000000000000002e52Initial program 84.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.9%
Taylor expanded in i around inf
Applied rewrites63.8%
if 1.12000000000000002e52 < z Initial program 60.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-*.f6460.6
Applied rewrites60.6%
Taylor expanded in x around inf
Applied rewrites60.6%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -1.45e+131)
t_1
(if (<= b 1.8e-91) (fma a (fma t (- x) (* c j)) (* x (* y 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.45e+131) {
tmp = t_1;
} else if (b <= 1.8e-91) {
tmp = fma(a, fma(t, -x, (c * j)), (x * (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.45e+131) tmp = t_1; elseif (b <= 1.8e-91) tmp = fma(a, fma(t, Float64(-x), Float64(c * j)), Float64(x * Float64(y * z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e+131], t$95$1, If[LessEqual[b, 1.8e-91], N[(a * N[(t * (-x) + N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.45 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-91}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(t, -x, c \cdot j\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.45000000000000005e131 or 1.8e-91 < b Initial program 72.9%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6464.2
Applied rewrites64.2%
if -1.45000000000000005e131 < b < 1.8e-91Initial program 74.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites65.9%
Taylor expanded in y around inf
Applied rewrites27.3%
Taylor expanded in b around 0
Applied rewrites61.1%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.6e+196)
(* c (* a j))
(if (<= j -9.8e-56)
(* (- i) (* y j))
(if (<= j -4.4e-135)
(* i (* t b))
(if (<= j 3e-205)
(* y (* x z))
(if (<= j 2e+81) (* t (* b i)) (* j (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.6e+196) {
tmp = c * (a * j);
} else if (j <= -9.8e-56) {
tmp = -i * (y * j);
} else if (j <= -4.4e-135) {
tmp = i * (t * b);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.6d+196)) then
tmp = c * (a * j)
else if (j <= (-9.8d-56)) then
tmp = -i * (y * j)
else if (j <= (-4.4d-135)) then
tmp = i * (t * b)
else if (j <= 3d-205) then
tmp = y * (x * z)
else if (j <= 2d+81) then
tmp = t * (b * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.6e+196) {
tmp = c * (a * j);
} else if (j <= -9.8e-56) {
tmp = -i * (y * j);
} else if (j <= -4.4e-135) {
tmp = i * (t * b);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.6e+196: tmp = c * (a * j) elif j <= -9.8e-56: tmp = -i * (y * j) elif j <= -4.4e-135: tmp = i * (t * b) elif j <= 3e-205: tmp = y * (x * z) elif j <= 2e+81: tmp = t * (b * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.6e+196) tmp = Float64(c * Float64(a * j)); elseif (j <= -9.8e-56) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (j <= -4.4e-135) tmp = Float64(i * Float64(t * b)); elseif (j <= 3e-205) tmp = Float64(y * Float64(x * z)); elseif (j <= 2e+81) tmp = Float64(t * Float64(b * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.6e+196) tmp = c * (a * j); elseif (j <= -9.8e-56) tmp = -i * (y * j); elseif (j <= -4.4e-135) tmp = i * (t * b); elseif (j <= 3e-205) tmp = y * (x * z); elseif (j <= 2e+81) tmp = t * (b * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.6e+196], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -9.8e-56], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.4e-135], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.6 \cdot 10^{+196}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -9.8 \cdot 10^{-56}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -1.59999999999999996e196Initial program 51.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.0%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
*-commutativeN/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.f6441.6
Applied rewrites41.6%
Taylor expanded in j around inf
Applied rewrites41.6%
if -1.59999999999999996e196 < j < -9.8e-56Initial program 81.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6450.5
Applied rewrites50.5%
Taylor expanded in a around 0
Applied rewrites36.4%
if -9.8e-56 < j < -4.3999999999999999e-135Initial program 82.1%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6473.1
Applied rewrites73.1%
Taylor expanded in j around 0
Applied rewrites64.0%
if -4.3999999999999999e-135 < j < 3e-205Initial program 66.1%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites74.8%
Taylor expanded in y around inf
Applied rewrites39.6%
Applied rewrites43.2%
if 3e-205 < j < 1.99999999999999984e81Initial program 81.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in j around 0
Applied rewrites43.0%
if 1.99999999999999984e81 < j Initial program 74.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in a around inf
Applied rewrites53.6%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.8e-56)
(* j (* y (- i)))
(if (<= j -4.4e-135)
(* i (* t b))
(if (<= j 3e-205)
(* y (* x z))
(if (<= j 2e+81) (* t (* b i)) (* j (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.8e-56) {
tmp = j * (y * -i);
} else if (j <= -4.4e-135) {
tmp = i * (t * b);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.8d-56)) then
tmp = j * (y * -i)
else if (j <= (-4.4d-135)) then
tmp = i * (t * b)
else if (j <= 3d-205) then
tmp = y * (x * z)
else if (j <= 2d+81) then
tmp = t * (b * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.8e-56) {
tmp = j * (y * -i);
} else if (j <= -4.4e-135) {
tmp = i * (t * b);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.8e-56: tmp = j * (y * -i) elif j <= -4.4e-135: tmp = i * (t * b) elif j <= 3e-205: tmp = y * (x * z) elif j <= 2e+81: tmp = t * (b * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.8e-56) tmp = Float64(j * Float64(y * Float64(-i))); elseif (j <= -4.4e-135) tmp = Float64(i * Float64(t * b)); elseif (j <= 3e-205) tmp = Float64(y * Float64(x * z)); elseif (j <= 2e+81) tmp = Float64(t * Float64(b * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.8e-56) tmp = j * (y * -i); elseif (j <= -4.4e-135) tmp = i * (t * b); elseif (j <= 3e-205) tmp = y * (x * z); elseif (j <= 2e+81) tmp = t * (b * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.8e-56], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.4e-135], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.8 \cdot 10^{-56}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -9.8e-56Initial program 73.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6454.3
Applied rewrites54.3%
Taylor expanded in a around 0
Applied rewrites35.4%
if -9.8e-56 < j < -4.3999999999999999e-135Initial program 82.1%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6473.1
Applied rewrites73.1%
Taylor expanded in j around 0
Applied rewrites64.0%
if -4.3999999999999999e-135 < j < 3e-205Initial program 66.1%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites74.8%
Taylor expanded in y around inf
Applied rewrites39.6%
Applied rewrites43.2%
if 3e-205 < j < 1.99999999999999984e81Initial program 81.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in j around 0
Applied rewrites43.0%
if 1.99999999999999984e81 < j Initial program 74.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in a around inf
Applied rewrites53.6%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2.1e+116)
(* c (* a j))
(if (<= a -5.9e-115)
(* i (* t b))
(if (<= a 9.5e-68)
(* x (* y z))
(if (<= a 2.6e+53) (* t (* b i)) (* j (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.1e+116) {
tmp = c * (a * j);
} else if (a <= -5.9e-115) {
tmp = i * (t * b);
} else if (a <= 9.5e-68) {
tmp = x * (y * z);
} else if (a <= 2.6e+53) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
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 (a <= (-2.1d+116)) then
tmp = c * (a * j)
else if (a <= (-5.9d-115)) then
tmp = i * (t * b)
else if (a <= 9.5d-68) then
tmp = x * (y * z)
else if (a <= 2.6d+53) then
tmp = t * (b * i)
else
tmp = j * (a * c)
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 (a <= -2.1e+116) {
tmp = c * (a * j);
} else if (a <= -5.9e-115) {
tmp = i * (t * b);
} else if (a <= 9.5e-68) {
tmp = x * (y * z);
} else if (a <= 2.6e+53) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.1e+116: tmp = c * (a * j) elif a <= -5.9e-115: tmp = i * (t * b) elif a <= 9.5e-68: tmp = x * (y * z) elif a <= 2.6e+53: tmp = t * (b * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.1e+116) tmp = Float64(c * Float64(a * j)); elseif (a <= -5.9e-115) tmp = Float64(i * Float64(t * b)); elseif (a <= 9.5e-68) tmp = Float64(x * Float64(y * z)); elseif (a <= 2.6e+53) tmp = Float64(t * Float64(b * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.1e+116) tmp = c * (a * j); elseif (a <= -5.9e-115) tmp = i * (t * b); elseif (a <= 9.5e-68) tmp = x * (y * z); elseif (a <= 2.6e+53) tmp = t * (b * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.1e+116], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.9e-115], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-68], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e+53], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.1 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq -5.9 \cdot 10^{-115}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-68}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+53}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if a < -2.1000000000000001e116Initial program 72.5%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites70.1%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
*-commutativeN/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.f6454.7
Applied rewrites54.7%
Taylor expanded in j around inf
Applied rewrites49.1%
if -2.1000000000000001e116 < a < -5.89999999999999994e-115Initial program 70.2%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6452.4
Applied rewrites52.4%
Taylor expanded in j around 0
Applied rewrites44.3%
if -5.89999999999999994e-115 < a < 9.4999999999999997e-68Initial program 78.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites60.9%
Taylor expanded in y around inf
Applied rewrites35.0%
if 9.4999999999999997e-68 < a < 2.59999999999999998e53Initial program 76.8%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6450.1
Applied rewrites50.1%
Taylor expanded in j around 0
Applied rewrites38.8%
if 2.59999999999999998e53 < a Initial program 68.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.2
Applied rewrites51.2%
Taylor expanded in a around inf
Applied rewrites45.2%
Final simplification40.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.2e+124)
(* c (* a j))
(if (<= j -4.4e-135)
(* i (* t b))
(if (<= j 3e-205)
(* y (* x z))
(if (<= j 2e+81) (* t (* b i)) (* a (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.2e+124) {
tmp = c * (a * j);
} else if (j <= -4.4e-135) {
tmp = i * (t * b);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.2d+124)) then
tmp = c * (a * j)
else if (j <= (-4.4d-135)) then
tmp = i * (t * b)
else if (j <= 3d-205) then
tmp = y * (x * z)
else if (j <= 2d+81) then
tmp = t * (b * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.2e+124) {
tmp = c * (a * j);
} else if (j <= -4.4e-135) {
tmp = i * (t * b);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.2e+124: tmp = c * (a * j) elif j <= -4.4e-135: tmp = i * (t * b) elif j <= 3e-205: tmp = y * (x * z) elif j <= 2e+81: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.2e+124) tmp = Float64(c * Float64(a * j)); elseif (j <= -4.4e-135) tmp = Float64(i * Float64(t * b)); elseif (j <= 3e-205) tmp = Float64(y * Float64(x * z)); elseif (j <= 2e+81) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.2e+124) tmp = c * (a * j); elseif (j <= -4.4e-135) tmp = i * (t * b); elseif (j <= 3e-205) tmp = y * (x * z); elseif (j <= 2e+81) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.2e+124], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.4e-135], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.2 \cdot 10^{+124}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.20000000000000003e124Initial program 65.8%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
*-commutativeN/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.f6438.2
Applied rewrites38.2%
Taylor expanded in j around inf
Applied rewrites33.2%
if -1.20000000000000003e124 < j < -4.3999999999999999e-135Initial program 80.3%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.4
Applied rewrites54.4%
Taylor expanded in j around 0
Applied rewrites28.7%
if -4.3999999999999999e-135 < j < 3e-205Initial program 66.1%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites74.8%
Taylor expanded in y around inf
Applied rewrites39.6%
Applied rewrites43.2%
if 3e-205 < j < 1.99999999999999984e81Initial program 81.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in j around 0
Applied rewrites43.0%
if 1.99999999999999984e81 < j Initial program 74.4%
Taylor expanded in a 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.f6464.3
Applied rewrites64.3%
Taylor expanded in j around inf
Applied rewrites53.5%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.05e+124)
(* c (* a j))
(if (<= j -4.3e-124)
(* b (* t i))
(if (<= j 3e-205)
(* y (* x z))
(if (<= j 2e+81) (* t (* b i)) (* a (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.05e+124) {
tmp = c * (a * j);
} else if (j <= -4.3e-124) {
tmp = b * (t * i);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-2.05d+124)) then
tmp = c * (a * j)
else if (j <= (-4.3d-124)) then
tmp = b * (t * i)
else if (j <= 3d-205) then
tmp = y * (x * z)
else if (j <= 2d+81) then
tmp = t * (b * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.05e+124) {
tmp = c * (a * j);
} else if (j <= -4.3e-124) {
tmp = b * (t * i);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.05e+124: tmp = c * (a * j) elif j <= -4.3e-124: tmp = b * (t * i) elif j <= 3e-205: tmp = y * (x * z) elif j <= 2e+81: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.05e+124) tmp = Float64(c * Float64(a * j)); elseif (j <= -4.3e-124) tmp = Float64(b * Float64(t * i)); elseif (j <= 3e-205) tmp = Float64(y * Float64(x * z)); elseif (j <= 2e+81) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.05e+124) tmp = c * (a * j); elseif (j <= -4.3e-124) tmp = b * (t * i); elseif (j <= 3e-205) tmp = y * (x * z); elseif (j <= 2e+81) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.05e+124], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.3e-124], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.05 \cdot 10^{+124}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-124}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -2.05000000000000001e124Initial program 65.8%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
*-commutativeN/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.f6438.2
Applied rewrites38.2%
Taylor expanded in j around inf
Applied rewrites33.2%
if -2.05000000000000001e124 < j < -4.3e-124Initial program 81.3%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6452.9
Applied rewrites52.9%
Taylor expanded in j around 0
Applied rewrites24.8%
Applied rewrites28.0%
if -4.3e-124 < j < 3e-205Initial program 65.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.1%
Taylor expanded in y around inf
Applied rewrites38.3%
Applied rewrites41.7%
if 3e-205 < j < 1.99999999999999984e81Initial program 81.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in j around 0
Applied rewrites43.0%
if 1.99999999999999984e81 < j Initial program 74.4%
Taylor expanded in a 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.f6464.3
Applied rewrites64.3%
Taylor expanded in j around inf
Applied rewrites53.5%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -1.2e+124)
t_1
(if (<= j -4.3e-124)
(* b (* t i))
(if (<= j 3e-205) (* y (* x z)) (if (<= j 2e+81) (* t (* 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 = a * (c * j);
double tmp;
if (j <= -1.2e+124) {
tmp = t_1;
} else if (j <= -4.3e-124) {
tmp = b * (t * i);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (j <= (-1.2d+124)) then
tmp = t_1
else if (j <= (-4.3d-124)) then
tmp = b * (t * i)
else if (j <= 3d-205) then
tmp = y * (x * z)
else if (j <= 2d+81) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -1.2e+124) {
tmp = t_1;
} else if (j <= -4.3e-124) {
tmp = b * (t * i);
} else if (j <= 3e-205) {
tmp = y * (x * z);
} else if (j <= 2e+81) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -1.2e+124: tmp = t_1 elif j <= -4.3e-124: tmp = b * (t * i) elif j <= 3e-205: tmp = y * (x * z) elif j <= 2e+81: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -1.2e+124) tmp = t_1; elseif (j <= -4.3e-124) tmp = Float64(b * Float64(t * i)); elseif (j <= 3e-205) tmp = Float64(y * Float64(x * z)); elseif (j <= 2e+81) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -1.2e+124) tmp = t_1; elseif (j <= -4.3e-124) tmp = b * (t * i); elseif (j <= 3e-205) tmp = y * (x * z); elseif (j <= 2e+81) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.2e+124], t$95$1, If[LessEqual[j, -4.3e-124], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -1.2 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-124}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.20000000000000003e124 or 1.99999999999999984e81 < j Initial program 70.4%
Taylor expanded in a 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.1
Applied rewrites57.1%
Taylor expanded in j around inf
Applied rewrites44.1%
if -1.20000000000000003e124 < j < -4.3e-124Initial program 81.3%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6452.9
Applied rewrites52.9%
Taylor expanded in j around 0
Applied rewrites24.8%
Applied rewrites28.0%
if -4.3e-124 < j < 3e-205Initial program 65.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.1%
Taylor expanded in y around inf
Applied rewrites38.3%
Applied rewrites41.7%
if 3e-205 < j < 1.99999999999999984e81Initial program 81.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in j around 0
Applied rewrites43.0%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -1.4e+50)
t_1
(if (<= a 5.4e+53) (* i (fma j (- y) (* t 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 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -1.4e+50) {
tmp = t_1;
} else if (a <= 5.4e+53) {
tmp = i * fma(j, -y, (t * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.4e+50) tmp = t_1; elseif (a <= 5.4e+53) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.4e+50], t$95$1, If[LessEqual[a, 5.4e+53], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.4 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{+53}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.3999999999999999e50 or 5.40000000000000039e53 < a Initial program 69.6%
Taylor expanded in a 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.f6468.3
Applied rewrites68.3%
if -1.3999999999999999e50 < a < 5.40000000000000039e53Initial program 76.7%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6446.1
Applied rewrites46.1%
Final simplification54.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -1.2e+47)
t_1
(if (<= a 1.55e+86) (* b (- (* t i) (* z 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 * fma(j, c, (x * -t));
double tmp;
if (a <= -1.2e+47) {
tmp = t_1;
} else if (a <= 1.55e+86) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.2e+47) tmp = t_1; elseif (a <= 1.55e+86) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e+47], t$95$1, If[LessEqual[a, 1.55e+86], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+86}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.20000000000000009e47 or 1.5500000000000001e86 < a Initial program 68.7%
Taylor expanded in a 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.f6470.3
Applied rewrites70.3%
if -1.20000000000000009e47 < a < 1.5500000000000001e86Initial program 77.0%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6442.3
Applied rewrites42.3%
Final simplification52.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -9.8e+135) (* y (* x z)) (if (<= y 8.2e-41) (* b (* t i)) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -9.8e+135) {
tmp = y * (x * z);
} else if (y <= 8.2e-41) {
tmp = b * (t * i);
} else {
tmp = x * (y * z);
}
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 (y <= (-9.8d+135)) then
tmp = y * (x * z)
else if (y <= 8.2d-41) then
tmp = b * (t * i)
else
tmp = x * (y * z)
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 (y <= -9.8e+135) {
tmp = y * (x * z);
} else if (y <= 8.2e-41) {
tmp = b * (t * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -9.8e+135: tmp = y * (x * z) elif y <= 8.2e-41: tmp = b * (t * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -9.8e+135) tmp = Float64(y * Float64(x * z)); elseif (y <= 8.2e-41) tmp = Float64(b * Float64(t * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -9.8e+135) tmp = y * (x * z); elseif (y <= 8.2e-41) tmp = b * (t * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -9.8e+135], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e-41], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.8 \cdot 10^{+135}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{-41}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -9.8000000000000002e135Initial program 62.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites57.9%
Taylor expanded in y around inf
Applied rewrites54.8%
Applied rewrites57.6%
if -9.8000000000000002e135 < y < 8.20000000000000028e-41Initial program 74.8%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6441.5
Applied rewrites41.5%
Taylor expanded in j around 0
Applied rewrites30.0%
Applied rewrites30.2%
if 8.20000000000000028e-41 < y Initial program 77.7%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites60.0%
Taylor expanded in y around inf
Applied rewrites32.7%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* y z)))) (if (<= y -9.8e+135) t_1 (if (<= y 8.2e-41) (* b (* t i)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -9.8e+135) {
tmp = t_1;
} else if (y <= 8.2e-41) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-9.8d+135)) then
tmp = t_1
else if (y <= 8.2d-41) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -9.8e+135) {
tmp = t_1;
} else if (y <= 8.2e-41) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -9.8e+135: tmp = t_1 elif y <= 8.2e-41: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -9.8e+135) tmp = t_1; elseif (y <= 8.2e-41) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -9.8e+135) tmp = t_1; elseif (y <= 8.2e-41) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.8e+135], t$95$1, If[LessEqual[y, 8.2e-41], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -9.8 \cdot 10^{+135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{-41}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.8000000000000002e135 or 8.20000000000000028e-41 < y Initial program 73.0%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites59.3%
Taylor expanded in y around inf
Applied rewrites39.7%
if -9.8000000000000002e135 < y < 8.20000000000000028e-41Initial program 74.8%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6441.5
Applied rewrites41.5%
Taylor expanded in j around 0
Applied rewrites30.0%
Applied rewrites30.2%
Final simplification34.3%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (t * 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 = b * (t * 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 b * (t * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (t * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(t * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (t * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(t \cdot i\right)
\end{array}
Initial program 74.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
Taylor expanded in j around 0
Applied rewrites21.8%
Applied rewrites22.3%
Final simplification22.3%
(FPCore (x y z t a b c i j) :precision binary64 (* t (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return t * (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 = t * (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 t * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return t * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(t * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = t * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t \cdot \left(b \cdot i\right)
\end{array}
Initial program 74.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
Taylor expanded in j around 0
Applied rewrites21.8%
Final simplification21.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024219
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))