
(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 30 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
(if (<= x 1.28e+123)
(fma
j
(- (* a c) (* y i))
(+ (* z (- (* x y) (* c b))) (* t (fma (- a) x (* i b)))))
(+ (* x (- (* y z) (* a t))) (* b (- (* i t) (* c z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 1.28e+123) {
tmp = fma(j, ((a * c) - (y * i)), ((z * ((x * y) - (c * b))) + (t * fma(-a, x, (i * b)))));
} else {
tmp = (x * ((y * z) - (a * t))) + (b * ((i * t) - (c * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 1.28e+123) tmp = fma(j, Float64(Float64(a * c) - Float64(y * i)), Float64(Float64(z * Float64(Float64(x * y) - Float64(c * b))) + Float64(t * fma(Float64(-a), x, Float64(i * b))))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(a * t))) + Float64(b * Float64(Float64(i * t) - Float64(c * z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 1.28e+123], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.28 \cdot 10^{+123}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, z \cdot \left(x \cdot y - c \cdot b\right) + t \cdot \mathsf{fma}\left(-a, x, i \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - a \cdot t\right) + b \cdot \left(i \cdot t - c \cdot z\right)\\
\end{array}
\end{array}
if x < 1.28000000000000005e123Initial program 73.6%
+-commutative73.6%
fma-define76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in z around 0 80.3%
Simplified84.1%
if 1.28000000000000005e123 < x Initial program 85.4%
Taylor expanded in j around 0 93.3%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i t) (* c z)))
(t_2 (+ (* x (- (* y z) (* a t))) (* b t_1)))
(t_3 (- (* a c) (* y i))))
(if (<= (+ t_2 (* j t_3)) INFINITY)
(fma j t_3 t_2)
(* b (cbrt (pow t_1 3.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * t) - (c * z);
double t_2 = (x * ((y * z) - (a * t))) + (b * t_1);
double t_3 = (a * c) - (y * i);
double tmp;
if ((t_2 + (j * t_3)) <= ((double) INFINITY)) {
tmp = fma(j, t_3, t_2);
} else {
tmp = b * cbrt(pow(t_1, 3.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) - Float64(c * z)) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(a * t))) + Float64(b * t_1)) t_3 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_2 + Float64(j * t_3)) <= Inf) tmp = fma(j, t_3, t_2); else tmp = Float64(b * cbrt((t_1 ^ 3.0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$3 + t$95$2), $MachinePrecision], N[(b * N[Power[N[Power[t$95$1, 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot t - c \cdot z\\
t_2 := x \cdot \left(y \cdot z - a \cdot t\right) + b \cdot t\_1\\
t_3 := a \cdot c - y \cdot i\\
\mathbf{if}\;t\_2 + j \cdot t\_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_3, t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \sqrt[3]{{t\_1}^{3}}\\
\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 90.2%
+-commutative90.2%
fma-define90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.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%
+-commutative0.0%
fma-define16.7%
*-commutative16.7%
*-commutative16.7%
*-commutative16.7%
*-commutative16.7%
*-commutative16.7%
*-commutative16.7%
Simplified16.7%
Taylor expanded in z around 0 35.7%
Simplified52.4%
Taylor expanded in b around inf 43.5%
+-commutative43.5%
mul-1-neg43.5%
sub-neg43.5%
*-commutative43.5%
*-commutative43.5%
Simplified43.5%
add-cbrt-cube57.2%
pow357.2%
*-commutative57.2%
*-commutative57.2%
Applied egg-rr57.2%
Final simplification84.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* a t))) (* b (- (* i t) (* c z)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(- (* i (- (* b t) (* j y))) (* z (* c b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (a * t))) + (b * ((i * t) - (c * z)));
double t_2 = (a * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(a * t))) + Float64(b * Float64(Float64(i * t) - Float64(c * z)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_1 + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(Float64(i * Float64(Float64(b * t) - Float64(j * y))) - Float64(z * Float64(c * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - a \cdot t\right) + b \cdot \left(i \cdot t - c \cdot z\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;t\_1 + j \cdot t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right) - z \cdot \left(c \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 90.2%
+-commutative90.2%
fma-define90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.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 x around 0 28.6%
Taylor expanded in c around -inf 42.9%
associate--l+42.9%
mul-1-neg42.9%
distribute-rgt-neg-in42.9%
associate-*r*42.9%
neg-mul-142.9%
cancel-sign-sub42.9%
+-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
associate-*r*42.9%
neg-mul-142.9%
cancel-sign-sub42.9%
Simplified52.6%
Taylor expanded in a around 0 48.2%
+-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
*-commutative48.2%
*-commutative48.2%
associate-*l*52.9%
Simplified52.9%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* a t))) (* b (- (* i t) (* c z))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (- (* i (- (* b t) (* j y))) (* z (* c b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (a * t))) + (b * ((i * t) - (c * z)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (a * t))) + (b * ((i * t) - (c * z)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (a * t))) + (b * ((i * t) - (c * z)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (i * ((b * t) - (j * y))) - (z * (c * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(a * t))) + Float64(b * Float64(Float64(i * t) - Float64(c * z)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(i * Float64(Float64(b * t) - Float64(j * y))) - Float64(z * Float64(c * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (a * t))) + (b * ((i * t) - (c * z)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (i * ((b * t) - (j * y))) - (z * (c * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - a \cdot t\right) + b \cdot \left(i \cdot t - c \cdot z\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right) - z \cdot \left(c \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 90.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 x around 0 28.6%
Taylor expanded in c around -inf 42.9%
associate--l+42.9%
mul-1-neg42.9%
distribute-rgt-neg-in42.9%
associate-*r*42.9%
neg-mul-142.9%
cancel-sign-sub42.9%
+-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
associate-*r*42.9%
neg-mul-142.9%
cancel-sign-sub42.9%
Simplified52.6%
Taylor expanded in a around 0 48.2%
+-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
*-commutative48.2%
*-commutative48.2%
associate-*l*52.9%
Simplified52.9%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* i b) (* x a))))
(t_2 (* y (- (* x z) (* j i))))
(t_3 (* b (- (* i t) (* c z))))
(t_4 (* c (- (* j a) (* z b)))))
(if (<= c -3.96e+184)
t_4
(if (<= c -1.85)
t_2
(if (<= c -8.6e-57)
(* a (- (* j c) (* x t)))
(if (<= c -1.95e-97)
t_3
(if (<= c -1e-290)
t_1
(if (<= c 3.5e-192)
t_2
(if (<= c 3.8e-5)
t_1
(if (<= c 8.5e+125)
t_2
(if (<= c 1.25e+183) t_3 t_4)))))))))))
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 * b) - (x * a));
double t_2 = y * ((x * z) - (j * i));
double t_3 = b * ((i * t) - (c * z));
double t_4 = c * ((j * a) - (z * b));
double tmp;
if (c <= -3.96e+184) {
tmp = t_4;
} else if (c <= -1.85) {
tmp = t_2;
} else if (c <= -8.6e-57) {
tmp = a * ((j * c) - (x * t));
} else if (c <= -1.95e-97) {
tmp = t_3;
} else if (c <= -1e-290) {
tmp = t_1;
} else if (c <= 3.5e-192) {
tmp = t_2;
} else if (c <= 3.8e-5) {
tmp = t_1;
} else if (c <= 8.5e+125) {
tmp = t_2;
} else if (c <= 1.25e+183) {
tmp = t_3;
} else {
tmp = t_4;
}
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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = t * ((i * b) - (x * a))
t_2 = y * ((x * z) - (j * i))
t_3 = b * ((i * t) - (c * z))
t_4 = c * ((j * a) - (z * b))
if (c <= (-3.96d+184)) then
tmp = t_4
else if (c <= (-1.85d0)) then
tmp = t_2
else if (c <= (-8.6d-57)) then
tmp = a * ((j * c) - (x * t))
else if (c <= (-1.95d-97)) then
tmp = t_3
else if (c <= (-1d-290)) then
tmp = t_1
else if (c <= 3.5d-192) then
tmp = t_2
else if (c <= 3.8d-5) then
tmp = t_1
else if (c <= 8.5d+125) then
tmp = t_2
else if (c <= 1.25d+183) then
tmp = t_3
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (x * a));
double t_2 = y * ((x * z) - (j * i));
double t_3 = b * ((i * t) - (c * z));
double t_4 = c * ((j * a) - (z * b));
double tmp;
if (c <= -3.96e+184) {
tmp = t_4;
} else if (c <= -1.85) {
tmp = t_2;
} else if (c <= -8.6e-57) {
tmp = a * ((j * c) - (x * t));
} else if (c <= -1.95e-97) {
tmp = t_3;
} else if (c <= -1e-290) {
tmp = t_1;
} else if (c <= 3.5e-192) {
tmp = t_2;
} else if (c <= 3.8e-5) {
tmp = t_1;
} else if (c <= 8.5e+125) {
tmp = t_2;
} else if (c <= 1.25e+183) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((i * b) - (x * a)) t_2 = y * ((x * z) - (j * i)) t_3 = b * ((i * t) - (c * z)) t_4 = c * ((j * a) - (z * b)) tmp = 0 if c <= -3.96e+184: tmp = t_4 elif c <= -1.85: tmp = t_2 elif c <= -8.6e-57: tmp = a * ((j * c) - (x * t)) elif c <= -1.95e-97: tmp = t_3 elif c <= -1e-290: tmp = t_1 elif c <= 3.5e-192: tmp = t_2 elif c <= 3.8e-5: tmp = t_1 elif c <= 8.5e+125: tmp = t_2 elif c <= 1.25e+183: tmp = t_3 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(i * b) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(j * i))) t_3 = Float64(b * Float64(Float64(i * t) - Float64(c * z))) t_4 = Float64(c * Float64(Float64(j * a) - Float64(z * b))) tmp = 0.0 if (c <= -3.96e+184) tmp = t_4; elseif (c <= -1.85) tmp = t_2; elseif (c <= -8.6e-57) tmp = Float64(a * Float64(Float64(j * c) - Float64(x * t))); elseif (c <= -1.95e-97) tmp = t_3; elseif (c <= -1e-290) tmp = t_1; elseif (c <= 3.5e-192) tmp = t_2; elseif (c <= 3.8e-5) tmp = t_1; elseif (c <= 8.5e+125) tmp = t_2; elseif (c <= 1.25e+183) tmp = t_3; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((i * b) - (x * a)); t_2 = y * ((x * z) - (j * i)); t_3 = b * ((i * t) - (c * z)); t_4 = c * ((j * a) - (z * b)); tmp = 0.0; if (c <= -3.96e+184) tmp = t_4; elseif (c <= -1.85) tmp = t_2; elseif (c <= -8.6e-57) tmp = a * ((j * c) - (x * t)); elseif (c <= -1.95e-97) tmp = t_3; elseif (c <= -1e-290) tmp = t_1; elseif (c <= 3.5e-192) tmp = t_2; elseif (c <= 3.8e-5) tmp = t_1; elseif (c <= 8.5e+125) tmp = t_2; elseif (c <= 1.25e+183) tmp = t_3; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.96e+184], t$95$4, If[LessEqual[c, -1.85], t$95$2, If[LessEqual[c, -8.6e-57], N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.95e-97], t$95$3, If[LessEqual[c, -1e-290], t$95$1, If[LessEqual[c, 3.5e-192], t$95$2, If[LessEqual[c, 3.8e-5], t$95$1, If[LessEqual[c, 8.5e+125], t$95$2, If[LessEqual[c, 1.25e+183], t$95$3, t$95$4]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - j \cdot i\right)\\
t_3 := b \cdot \left(i \cdot t - c \cdot z\right)\\
t_4 := c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.96 \cdot 10^{+184}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;c \leq -1.85:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -8.6 \cdot 10^{-57}:\\
\;\;\;\;a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{elif}\;c \leq -1.95 \cdot 10^{-97}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-290}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{-192}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{+183}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if c < -3.95999999999999993e184 or 1.25000000000000002e183 < c Initial program 66.4%
Taylor expanded in c around inf 82.1%
if -3.95999999999999993e184 < c < -1.8500000000000001 or -1.0000000000000001e-290 < c < 3.50000000000000014e-192 or 3.8000000000000002e-5 < c < 8.49999999999999974e125Initial program 74.0%
Taylor expanded in y around inf 60.2%
+-commutative60.2%
mul-1-neg60.2%
unsub-neg60.2%
*-commutative60.2%
Simplified60.2%
if -1.8500000000000001 < c < -8.60000000000000043e-57Initial program 86.5%
Taylor expanded in a around inf 73.7%
+-commutative73.7%
mul-1-neg73.7%
unsub-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
if -8.60000000000000043e-57 < c < -1.9499999999999999e-97 or 8.49999999999999974e125 < c < 1.25000000000000002e183Initial program 78.2%
Taylor expanded in b around inf 56.7%
if -1.9499999999999999e-97 < c < -1.0000000000000001e-290 or 3.50000000000000014e-192 < c < 3.8000000000000002e-5Initial program 79.9%
+-commutative79.9%
fma-define82.3%
*-commutative82.3%
*-commutative82.3%
*-commutative82.3%
*-commutative82.3%
*-commutative82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in z around 0 74.9%
Simplified84.5%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
distribute-lft-neg-out65.6%
+-commutative65.6%
distribute-lft-neg-out65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* i t) (* c z)))) (t_2 (* a (- (* j c) (* x t)))))
(if (<= a -1.25e+84)
t_2
(if (<= a -1.06e+14)
t_1
(if (<= a -1.5e-50)
t_2
(if (<= a -9.8e-135)
(* (* j y) (- i))
(if (<= a 7.2e-188)
t_1
(if (<= a 1.52e-120)
(* y (* x z))
(if (<= a 0.000115) 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 * ((i * t) - (c * z));
double t_2 = a * ((j * c) - (x * t));
double tmp;
if (a <= -1.25e+84) {
tmp = t_2;
} else if (a <= -1.06e+14) {
tmp = t_1;
} else if (a <= -1.5e-50) {
tmp = t_2;
} else if (a <= -9.8e-135) {
tmp = (j * y) * -i;
} else if (a <= 7.2e-188) {
tmp = t_1;
} else if (a <= 1.52e-120) {
tmp = y * (x * z);
} else if (a <= 0.000115) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((i * t) - (c * z))
t_2 = a * ((j * c) - (x * t))
if (a <= (-1.25d+84)) then
tmp = t_2
else if (a <= (-1.06d+14)) then
tmp = t_1
else if (a <= (-1.5d-50)) then
tmp = t_2
else if (a <= (-9.8d-135)) then
tmp = (j * y) * -i
else if (a <= 7.2d-188) then
tmp = t_1
else if (a <= 1.52d-120) then
tmp = y * (x * z)
else if (a <= 0.000115d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((i * t) - (c * z));
double t_2 = a * ((j * c) - (x * t));
double tmp;
if (a <= -1.25e+84) {
tmp = t_2;
} else if (a <= -1.06e+14) {
tmp = t_1;
} else if (a <= -1.5e-50) {
tmp = t_2;
} else if (a <= -9.8e-135) {
tmp = (j * y) * -i;
} else if (a <= 7.2e-188) {
tmp = t_1;
} else if (a <= 1.52e-120) {
tmp = y * (x * z);
} else if (a <= 0.000115) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((i * t) - (c * z)) t_2 = a * ((j * c) - (x * t)) tmp = 0 if a <= -1.25e+84: tmp = t_2 elif a <= -1.06e+14: tmp = t_1 elif a <= -1.5e-50: tmp = t_2 elif a <= -9.8e-135: tmp = (j * y) * -i elif a <= 7.2e-188: tmp = t_1 elif a <= 1.52e-120: tmp = y * (x * z) elif a <= 0.000115: 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(i * t) - Float64(c * z))) t_2 = Float64(a * Float64(Float64(j * c) - Float64(x * t))) tmp = 0.0 if (a <= -1.25e+84) tmp = t_2; elseif (a <= -1.06e+14) tmp = t_1; elseif (a <= -1.5e-50) tmp = t_2; elseif (a <= -9.8e-135) tmp = Float64(Float64(j * y) * Float64(-i)); elseif (a <= 7.2e-188) tmp = t_1; elseif (a <= 1.52e-120) tmp = Float64(y * Float64(x * z)); elseif (a <= 0.000115) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((i * t) - (c * z)); t_2 = a * ((j * c) - (x * t)); tmp = 0.0; if (a <= -1.25e+84) tmp = t_2; elseif (a <= -1.06e+14) tmp = t_1; elseif (a <= -1.5e-50) tmp = t_2; elseif (a <= -9.8e-135) tmp = (j * y) * -i; elseif (a <= 7.2e-188) tmp = t_1; elseif (a <= 1.52e-120) tmp = y * (x * z); elseif (a <= 0.000115) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.25e+84], t$95$2, If[LessEqual[a, -1.06e+14], t$95$1, If[LessEqual[a, -1.5e-50], t$95$2, If[LessEqual[a, -9.8e-135], N[(N[(j * y), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[a, 7.2e-188], t$95$1, If[LessEqual[a, 1.52e-120], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.000115], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t - c \cdot z\right)\\
t_2 := a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.25 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.06 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -9.8 \cdot 10^{-135}:\\
\;\;\;\;\left(j \cdot y\right) \cdot \left(-i\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.52 \cdot 10^{-120}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 0.000115:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.25e84 or -1.06e14 < a < -1.49999999999999995e-50 or 1.15e-4 < a Initial program 72.1%
Taylor expanded in a around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
if -1.25e84 < a < -1.06e14 or -9.8000000000000005e-135 < a < 7.1999999999999994e-188 or 1.52e-120 < a < 1.15e-4Initial program 80.1%
Taylor expanded in b around inf 53.8%
if -1.49999999999999995e-50 < a < -9.8000000000000005e-135Initial program 79.6%
Taylor expanded in c around inf 69.9%
*-commutative69.9%
associate-*l*74.8%
Simplified74.8%
Taylor expanded in i around inf 38.5%
if 7.1999999999999994e-188 < a < 1.52e-120Initial program 69.0%
+-commutative69.0%
fma-define69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in z around 0 81.7%
Simplified87.4%
Taylor expanded in y around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in z around inf 56.8%
*-commutative56.8%
Simplified56.8%
Final simplification58.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* i b) (* x a)))) (t_2 (* z (- (* x y) (* c b)))))
(if (<= z -3.5e+41)
t_2
(if (<= z 7.2e-230)
t_1
(if (<= z 1.06e-189)
(* j (- (* a c) (* y i)))
(if (<= z 1.85e-115)
t_1
(if (<= z 5.5e-90)
(* i (- (* b t) (* j y)))
(if (<= z 1.06e+136)
(* x (- (* y z) (* a t)))
(if (<= z 1.06e+154) (* c (- (* j a) (* z b))) 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 * ((i * b) - (x * a));
double t_2 = z * ((x * y) - (c * b));
double tmp;
if (z <= -3.5e+41) {
tmp = t_2;
} else if (z <= 7.2e-230) {
tmp = t_1;
} else if (z <= 1.06e-189) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.85e-115) {
tmp = t_1;
} else if (z <= 5.5e-90) {
tmp = i * ((b * t) - (j * y));
} else if (z <= 1.06e+136) {
tmp = x * ((y * z) - (a * t));
} else if (z <= 1.06e+154) {
tmp = c * ((j * a) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((i * b) - (x * a))
t_2 = z * ((x * y) - (c * b))
if (z <= (-3.5d+41)) then
tmp = t_2
else if (z <= 7.2d-230) then
tmp = t_1
else if (z <= 1.06d-189) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.85d-115) then
tmp = t_1
else if (z <= 5.5d-90) then
tmp = i * ((b * t) - (j * y))
else if (z <= 1.06d+136) then
tmp = x * ((y * z) - (a * t))
else if (z <= 1.06d+154) then
tmp = c * ((j * a) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (x * a));
double t_2 = z * ((x * y) - (c * b));
double tmp;
if (z <= -3.5e+41) {
tmp = t_2;
} else if (z <= 7.2e-230) {
tmp = t_1;
} else if (z <= 1.06e-189) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.85e-115) {
tmp = t_1;
} else if (z <= 5.5e-90) {
tmp = i * ((b * t) - (j * y));
} else if (z <= 1.06e+136) {
tmp = x * ((y * z) - (a * t));
} else if (z <= 1.06e+154) {
tmp = c * ((j * a) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((i * b) - (x * a)) t_2 = z * ((x * y) - (c * b)) tmp = 0 if z <= -3.5e+41: tmp = t_2 elif z <= 7.2e-230: tmp = t_1 elif z <= 1.06e-189: tmp = j * ((a * c) - (y * i)) elif z <= 1.85e-115: tmp = t_1 elif z <= 5.5e-90: tmp = i * ((b * t) - (j * y)) elif z <= 1.06e+136: tmp = x * ((y * z) - (a * t)) elif z <= 1.06e+154: tmp = c * ((j * a) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(i * b) - Float64(x * a))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(c * b))) tmp = 0.0 if (z <= -3.5e+41) tmp = t_2; elseif (z <= 7.2e-230) tmp = t_1; elseif (z <= 1.06e-189) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.85e-115) tmp = t_1; elseif (z <= 5.5e-90) tmp = Float64(i * Float64(Float64(b * t) - Float64(j * y))); elseif (z <= 1.06e+136) tmp = Float64(x * Float64(Float64(y * z) - Float64(a * t))); elseif (z <= 1.06e+154) tmp = Float64(c * Float64(Float64(j * a) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((i * b) - (x * a)); t_2 = z * ((x * y) - (c * b)); tmp = 0.0; if (z <= -3.5e+41) tmp = t_2; elseif (z <= 7.2e-230) tmp = t_1; elseif (z <= 1.06e-189) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.85e-115) tmp = t_1; elseif (z <= 5.5e-90) tmp = i * ((b * t) - (j * y)); elseif (z <= 1.06e+136) tmp = x * ((y * z) - (a * t)); elseif (z <= 1.06e+154) tmp = c * ((j * a) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+41], t$95$2, If[LessEqual[z, 7.2e-230], t$95$1, If[LessEqual[z, 1.06e-189], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e-115], t$95$1, If[LessEqual[z, 5.5e-90], N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+136], N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+154], N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - x \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - c \cdot b\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+41}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-230}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{-189}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-90}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+136}:\\
\;\;\;\;x \cdot \left(y \cdot z - a \cdot t\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+154}:\\
\;\;\;\;c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -3.4999999999999999e41 or 1.06e154 < z Initial program 61.9%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
if -3.4999999999999999e41 < z < 7.1999999999999997e-230 or 1.06e-189 < z < 1.85e-115Initial program 79.0%
+-commutative79.0%
fma-define81.0%
*-commutative81.0%
*-commutative81.0%
*-commutative81.0%
*-commutative81.0%
*-commutative81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 74.9%
Simplified78.9%
Taylor expanded in t around inf 62.4%
mul-1-neg62.4%
distribute-lft-neg-out62.4%
+-commutative62.4%
distribute-lft-neg-out62.4%
unsub-neg62.4%
*-commutative62.4%
Simplified62.4%
if 7.1999999999999997e-230 < z < 1.06e-189Initial program 90.5%
+-commutative90.5%
fma-define90.5%
*-commutative90.5%
*-commutative90.5%
*-commutative90.5%
*-commutative90.5%
*-commutative90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in z around 0 81.6%
Simplified72.5%
Taylor expanded in j around inf 73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if 1.85e-115 < z < 5.5000000000000003e-90Initial program 98.0%
+-commutative98.0%
fma-define98.0%
*-commutative98.0%
*-commutative98.0%
*-commutative98.0%
*-commutative98.0%
*-commutative98.0%
*-commutative98.0%
Simplified98.0%
Taylor expanded in z around 0 80.3%
Simplified90.6%
Taylor expanded in i around inf 80.1%
+-commutative80.1%
mul-1-neg80.1%
unsub-neg80.1%
*-commutative80.1%
Simplified80.1%
if 5.5000000000000003e-90 < z < 1.06000000000000003e136Initial program 85.1%
+-commutative85.1%
fma-define85.1%
*-commutative85.1%
*-commutative85.1%
*-commutative85.1%
*-commutative85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in z around 0 83.1%
Simplified91.6%
Taylor expanded in x around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
if 1.06000000000000003e136 < z < 1.06e154Initial program 49.7%
Taylor expanded in c around inf 83.5%
Final simplification66.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* i b))))
(if (<= x -1.02e+20)
(* z (* x y))
(if (<= x -6.5e-214)
t_1
(if (<= x 3.6e-197)
(* a (* j c))
(if (<= x 2.45e-147)
(* c (- (* z b)))
(if (<= x 1.0)
(* c (* j a))
(if (<= x 4e+47)
t_1
(if (<= x 7e+126) (* y (* x z)) (* x (* a (- t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (x <= -1.02e+20) {
tmp = z * (x * y);
} else if (x <= -6.5e-214) {
tmp = t_1;
} else if (x <= 3.6e-197) {
tmp = a * (j * c);
} else if (x <= 2.45e-147) {
tmp = c * -(z * b);
} else if (x <= 1.0) {
tmp = c * (j * a);
} else if (x <= 4e+47) {
tmp = t_1;
} else if (x <= 7e+126) {
tmp = y * (x * z);
} else {
tmp = x * (a * -t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (i * b)
if (x <= (-1.02d+20)) then
tmp = z * (x * y)
else if (x <= (-6.5d-214)) then
tmp = t_1
else if (x <= 3.6d-197) then
tmp = a * (j * c)
else if (x <= 2.45d-147) then
tmp = c * -(z * b)
else if (x <= 1.0d0) then
tmp = c * (j * a)
else if (x <= 4d+47) then
tmp = t_1
else if (x <= 7d+126) then
tmp = y * (x * z)
else
tmp = x * (a * -t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (x <= -1.02e+20) {
tmp = z * (x * y);
} else if (x <= -6.5e-214) {
tmp = t_1;
} else if (x <= 3.6e-197) {
tmp = a * (j * c);
} else if (x <= 2.45e-147) {
tmp = c * -(z * b);
} else if (x <= 1.0) {
tmp = c * (j * a);
} else if (x <= 4e+47) {
tmp = t_1;
} else if (x <= 7e+126) {
tmp = y * (x * z);
} else {
tmp = x * (a * -t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (i * b) tmp = 0 if x <= -1.02e+20: tmp = z * (x * y) elif x <= -6.5e-214: tmp = t_1 elif x <= 3.6e-197: tmp = a * (j * c) elif x <= 2.45e-147: tmp = c * -(z * b) elif x <= 1.0: tmp = c * (j * a) elif x <= 4e+47: tmp = t_1 elif x <= 7e+126: tmp = y * (x * z) else: tmp = x * (a * -t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(i * b)) tmp = 0.0 if (x <= -1.02e+20) tmp = Float64(z * Float64(x * y)); elseif (x <= -6.5e-214) tmp = t_1; elseif (x <= 3.6e-197) tmp = Float64(a * Float64(j * c)); elseif (x <= 2.45e-147) tmp = Float64(c * Float64(-Float64(z * b))); elseif (x <= 1.0) tmp = Float64(c * Float64(j * a)); elseif (x <= 4e+47) tmp = t_1; elseif (x <= 7e+126) tmp = Float64(y * Float64(x * z)); else tmp = Float64(x * Float64(a * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (i * b); tmp = 0.0; if (x <= -1.02e+20) tmp = z * (x * y); elseif (x <= -6.5e-214) tmp = t_1; elseif (x <= 3.6e-197) tmp = a * (j * c); elseif (x <= 2.45e-147) tmp = c * -(z * b); elseif (x <= 1.0) tmp = c * (j * a); elseif (x <= 4e+47) tmp = t_1; elseif (x <= 7e+126) tmp = y * (x * z); else tmp = x * (a * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.02e+20], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.5e-214], t$95$1, If[LessEqual[x, 3.6e-197], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.45e-147], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, 1.0], N[(c * N[(j * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+47], t$95$1, If[LessEqual[x, 7e+126], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;x \leq -1.02 \cdot 10^{+20}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-214}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-197}:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{elif}\;x \leq 2.45 \cdot 10^{-147}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;x \leq 1:\\
\;\;\;\;c \cdot \left(j \cdot a\right)\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+126}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if x < -1.02e20Initial program 75.6%
Taylor expanded in z around inf 51.6%
*-commutative51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in y around inf 45.6%
if -1.02e20 < x < -6.5000000000000004e-214 or 1 < x < 4.0000000000000002e47Initial program 76.7%
Taylor expanded in t around inf 58.0%
associate-*r*58.0%
neg-mul-158.0%
fma-neg58.0%
mul-1-neg58.0%
remove-double-neg58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in a around 0 42.0%
if -6.5000000000000004e-214 < x < 3.5999999999999998e-197Initial program 67.2%
Taylor expanded in a around inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
unsub-neg41.5%
*-commutative41.5%
*-commutative41.5%
Simplified41.5%
Taylor expanded in j around inf 39.4%
if 3.5999999999999998e-197 < x < 2.45000000000000002e-147Initial program 64.6%
Taylor expanded in z around inf 58.7%
*-commutative58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in y around 0 51.6%
mul-1-neg51.6%
*-commutative51.6%
associate-*r*51.6%
*-commutative51.6%
distribute-rgt-neg-out51.6%
distribute-rgt-neg-in51.6%
Simplified51.6%
if 2.45000000000000002e-147 < x < 1Initial program 78.6%
Taylor expanded in a around inf 30.6%
+-commutative30.6%
mul-1-neg30.6%
unsub-neg30.6%
*-commutative30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in j around inf 18.8%
associate-*r*26.9%
*-commutative26.9%
associate-*r*34.8%
Simplified34.8%
if 4.0000000000000002e47 < x < 7.0000000000000005e126Initial program 74.9%
+-commutative74.9%
fma-define74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in z around 0 68.8%
Simplified69.4%
Taylor expanded in y around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in z around inf 39.2%
*-commutative39.2%
Simplified39.2%
if 7.0000000000000005e126 < x Initial program 85.0%
Taylor expanded in t around inf 68.2%
associate-*r*68.2%
neg-mul-168.2%
fma-neg71.0%
mul-1-neg71.0%
remove-double-neg71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in a around inf 57.9%
mul-1-neg57.9%
*-commutative57.9%
distribute-rgt-neg-in57.9%
associate-*r*57.0%
Simplified57.0%
Taylor expanded in t around 0 57.9%
mul-1-neg57.9%
associate-*r*57.1%
Simplified57.1%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (* a c)) (* b (- (* i t) (* c z)))))
(t_2 (* x (- (* y z) (* a t)))))
(if (<= x -3.7e+161)
t_2
(if (<= x -4.2e+107)
t_1
(if (<= x -2.8e+26)
t_2
(if (<= x -6e-299)
t_1
(if (<= x 1.75e+116)
(- (* i (- (* b t) (* j y))) (* z (* c b)))
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 * (a * c)) + (b * ((i * t) - (c * z)));
double t_2 = x * ((y * z) - (a * t));
double tmp;
if (x <= -3.7e+161) {
tmp = t_2;
} else if (x <= -4.2e+107) {
tmp = t_1;
} else if (x <= -2.8e+26) {
tmp = t_2;
} else if (x <= -6e-299) {
tmp = t_1;
} else if (x <= 1.75e+116) {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
} 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 * (a * c)) + (b * ((i * t) - (c * z)))
t_2 = x * ((y * z) - (a * t))
if (x <= (-3.7d+161)) then
tmp = t_2
else if (x <= (-4.2d+107)) then
tmp = t_1
else if (x <= (-2.8d+26)) then
tmp = t_2
else if (x <= (-6d-299)) then
tmp = t_1
else if (x <= 1.75d+116) then
tmp = (i * ((b * t) - (j * y))) - (z * (c * b))
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 * (a * c)) + (b * ((i * t) - (c * z)));
double t_2 = x * ((y * z) - (a * t));
double tmp;
if (x <= -3.7e+161) {
tmp = t_2;
} else if (x <= -4.2e+107) {
tmp = t_1;
} else if (x <= -2.8e+26) {
tmp = t_2;
} else if (x <= -6e-299) {
tmp = t_1;
} else if (x <= 1.75e+116) {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * (a * c)) + (b * ((i * t) - (c * z))) t_2 = x * ((y * z) - (a * t)) tmp = 0 if x <= -3.7e+161: tmp = t_2 elif x <= -4.2e+107: tmp = t_1 elif x <= -2.8e+26: tmp = t_2 elif x <= -6e-299: tmp = t_1 elif x <= 1.75e+116: tmp = (i * ((b * t) - (j * y))) - (z * (c * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(a * c)) + Float64(b * Float64(Float64(i * t) - Float64(c * z)))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(a * t))) tmp = 0.0 if (x <= -3.7e+161) tmp = t_2; elseif (x <= -4.2e+107) tmp = t_1; elseif (x <= -2.8e+26) tmp = t_2; elseif (x <= -6e-299) tmp = t_1; elseif (x <= 1.75e+116) tmp = Float64(Float64(i * Float64(Float64(b * t) - Float64(j * y))) - Float64(z * Float64(c * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * (a * c)) + (b * ((i * t) - (c * z))); t_2 = x * ((y * z) - (a * t)); tmp = 0.0; if (x <= -3.7e+161) tmp = t_2; elseif (x <= -4.2e+107) tmp = t_1; elseif (x <= -2.8e+26) tmp = t_2; elseif (x <= -6e-299) tmp = t_1; elseif (x <= 1.75e+116) tmp = (i * ((b * t) - (j * y))) - (z * (c * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+161], t$95$2, If[LessEqual[x, -4.2e+107], t$95$1, If[LessEqual[x, -2.8e+26], t$95$2, If[LessEqual[x, -6e-299], t$95$1, If[LessEqual[x, 1.75e+116], N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right) + b \cdot \left(i \cdot t - c \cdot z\right)\\
t_2 := x \cdot \left(y \cdot z - a \cdot t\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+161}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-299}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{+116}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right) - z \cdot \left(c \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -3.69999999999999979e161 or -4.1999999999999999e107 < x < -2.8e26 or 1.74999999999999998e116 < x Initial program 79.7%
+-commutative79.7%
fma-define83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in z around 0 66.7%
Simplified73.1%
Taylor expanded in x around inf 71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
if -3.69999999999999979e161 < x < -4.1999999999999999e107 or -2.8e26 < x < -5.99999999999999969e-299Initial program 72.1%
Taylor expanded in x around 0 69.9%
Taylor expanded in a around inf 70.1%
*-commutative70.1%
Simplified70.1%
if -5.99999999999999969e-299 < x < 1.74999999999999998e116Initial program 73.8%
Taylor expanded in x around 0 62.8%
Taylor expanded in c around -inf 64.7%
associate--l+64.7%
mul-1-neg64.7%
distribute-rgt-neg-in64.7%
associate-*r*64.7%
neg-mul-164.7%
cancel-sign-sub64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
*-commutative64.7%
associate-*r*64.7%
neg-mul-164.7%
cancel-sign-sub64.7%
Simplified67.9%
Taylor expanded in a around 0 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
*-commutative60.1%
associate-*l*64.5%
Simplified64.5%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* a t))))
(t_2 (+ t_1 (* b (- (* i t) (* c z))))))
(if (<= x -2.15e-79)
t_2
(if (<= x 7.8e-154)
(- (* c (- (* j a) (* z b))) (* i (- (* j y) (* b t))))
(if (<= x 5.8e+122)
(+ (* j (- (* a c) (* y i))) (- t_1 (* c (* z b))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double t_2 = t_1 + (b * ((i * t) - (c * z)));
double tmp;
if (x <= -2.15e-79) {
tmp = t_2;
} else if (x <= 7.8e-154) {
tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t)));
} else if (x <= 5.8e+122) {
tmp = (j * ((a * c) - (y * i))) + (t_1 - (c * (z * b)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (a * t))
t_2 = t_1 + (b * ((i * t) - (c * z)))
if (x <= (-2.15d-79)) then
tmp = t_2
else if (x <= 7.8d-154) then
tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t)))
else if (x <= 5.8d+122) then
tmp = (j * ((a * c) - (y * i))) + (t_1 - (c * (z * b)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double t_2 = t_1 + (b * ((i * t) - (c * z)));
double tmp;
if (x <= -2.15e-79) {
tmp = t_2;
} else if (x <= 7.8e-154) {
tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t)));
} else if (x <= 5.8e+122) {
tmp = (j * ((a * c) - (y * i))) + (t_1 - (c * (z * b)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (a * t)) t_2 = t_1 + (b * ((i * t) - (c * z))) tmp = 0 if x <= -2.15e-79: tmp = t_2 elif x <= 7.8e-154: tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t))) elif x <= 5.8e+122: tmp = (j * ((a * c) - (y * i))) + (t_1 - (c * (z * b))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(a * t))) t_2 = Float64(t_1 + Float64(b * Float64(Float64(i * t) - Float64(c * z)))) tmp = 0.0 if (x <= -2.15e-79) tmp = t_2; elseif (x <= 7.8e-154) tmp = Float64(Float64(c * Float64(Float64(j * a) - Float64(z * b))) - Float64(i * Float64(Float64(j * y) - Float64(b * t)))); elseif (x <= 5.8e+122) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t_1 - Float64(c * Float64(z * b)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (a * t)); t_2 = t_1 + (b * ((i * t) - (c * z))); tmp = 0.0; if (x <= -2.15e-79) tmp = t_2; elseif (x <= 7.8e-154) tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t))); elseif (x <= 5.8e+122) tmp = (j * ((a * c) - (y * i))) + (t_1 - (c * (z * b))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.15e-79], t$95$2, If[LessEqual[x, 7.8e-154], N[(N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(j * y), $MachinePrecision] - N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e+122], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - a \cdot t\right)\\
t_2 := t\_1 + b \cdot \left(i \cdot t - c \cdot z\right)\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{-79}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-154}:\\
\;\;\;\;c \cdot \left(j \cdot a - z \cdot b\right) - i \cdot \left(j \cdot y - b \cdot t\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+122}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + \left(t\_1 - c \cdot \left(z \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -2.14999999999999991e-79 or 5.8000000000000002e122 < x Initial program 78.7%
Taylor expanded in j around 0 77.4%
if -2.14999999999999991e-79 < x < 7.80000000000000065e-154Initial program 66.9%
Taylor expanded in x around 0 73.2%
Taylor expanded in c around -inf 76.8%
associate--l+76.8%
mul-1-neg76.8%
distribute-rgt-neg-in76.8%
associate-*r*76.8%
neg-mul-176.8%
cancel-sign-sub76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
associate-*r*76.8%
neg-mul-176.8%
cancel-sign-sub76.8%
Simplified79.3%
if 7.80000000000000065e-154 < x < 5.8000000000000002e122Initial program 81.2%
Taylor expanded in c around inf 72.6%
*-commutative72.6%
associate-*l*72.5%
Simplified72.5%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* b (- (* i t) (* c z))))
(t_3 (* x (- (* y z) (* a t))))
(t_4 (+ t_3 t_2)))
(if (<= x -1.66e-77)
t_4
(if (<= x -2e-299)
(+ t_1 t_2)
(if (<= x 6.5e-155)
(- (* i (- (* b t) (* j y))) (* z (* c b)))
(if (<= x 3.2e-22) (+ t_3 t_1) t_4))))))
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 t_2 = b * ((i * t) - (c * z));
double t_3 = x * ((y * z) - (a * t));
double t_4 = t_3 + t_2;
double tmp;
if (x <= -1.66e-77) {
tmp = t_4;
} else if (x <= -2e-299) {
tmp = t_1 + t_2;
} else if (x <= 6.5e-155) {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
} else if (x <= 3.2e-22) {
tmp = t_3 + t_1;
} else {
tmp = t_4;
}
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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = b * ((i * t) - (c * z))
t_3 = x * ((y * z) - (a * t))
t_4 = t_3 + t_2
if (x <= (-1.66d-77)) then
tmp = t_4
else if (x <= (-2d-299)) then
tmp = t_1 + t_2
else if (x <= 6.5d-155) then
tmp = (i * ((b * t) - (j * y))) - (z * (c * b))
else if (x <= 3.2d-22) then
tmp = t_3 + t_1
else
tmp = t_4
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 * ((a * c) - (y * i));
double t_2 = b * ((i * t) - (c * z));
double t_3 = x * ((y * z) - (a * t));
double t_4 = t_3 + t_2;
double tmp;
if (x <= -1.66e-77) {
tmp = t_4;
} else if (x <= -2e-299) {
tmp = t_1 + t_2;
} else if (x <= 6.5e-155) {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
} else if (x <= 3.2e-22) {
tmp = t_3 + t_1;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = b * ((i * t) - (c * z)) t_3 = x * ((y * z) - (a * t)) t_4 = t_3 + t_2 tmp = 0 if x <= -1.66e-77: tmp = t_4 elif x <= -2e-299: tmp = t_1 + t_2 elif x <= 6.5e-155: tmp = (i * ((b * t) - (j * y))) - (z * (c * b)) elif x <= 3.2e-22: tmp = t_3 + t_1 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(i * t) - Float64(c * z))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(a * t))) t_4 = Float64(t_3 + t_2) tmp = 0.0 if (x <= -1.66e-77) tmp = t_4; elseif (x <= -2e-299) tmp = Float64(t_1 + t_2); elseif (x <= 6.5e-155) tmp = Float64(Float64(i * Float64(Float64(b * t) - Float64(j * y))) - Float64(z * Float64(c * b))); elseif (x <= 3.2e-22) tmp = Float64(t_3 + t_1); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = b * ((i * t) - (c * z)); t_3 = x * ((y * z) - (a * t)); t_4 = t_3 + t_2; tmp = 0.0; if (x <= -1.66e-77) tmp = t_4; elseif (x <= -2e-299) tmp = t_1 + t_2; elseif (x <= 6.5e-155) tmp = (i * ((b * t) - (j * y))) - (z * (c * b)); elseif (x <= 3.2e-22) tmp = t_3 + t_1; else tmp = t_4; end tmp_2 = 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]}, Block[{t$95$2 = N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 + t$95$2), $MachinePrecision]}, If[LessEqual[x, -1.66e-77], t$95$4, If[LessEqual[x, -2e-299], N[(t$95$1 + t$95$2), $MachinePrecision], If[LessEqual[x, 6.5e-155], N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e-22], N[(t$95$3 + t$95$1), $MachinePrecision], t$95$4]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(i \cdot t - c \cdot z\right)\\
t_3 := x \cdot \left(y \cdot z - a \cdot t\right)\\
t_4 := t\_3 + t\_2\\
\mathbf{if}\;x \leq -1.66 \cdot 10^{-77}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-299}:\\
\;\;\;\;t\_1 + t\_2\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-155}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right) - z \cdot \left(c \cdot b\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-22}:\\
\;\;\;\;t\_3 + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if x < -1.66e-77 or 3.19999999999999987e-22 < x Initial program 79.4%
Taylor expanded in j around 0 75.5%
if -1.66e-77 < x < -1.99999999999999998e-299Initial program 69.0%
Taylor expanded in x around 0 77.7%
if -1.99999999999999998e-299 < x < 6.5e-155Initial program 64.1%
Taylor expanded in x around 0 67.3%
Taylor expanded in c around -inf 78.3%
associate--l+78.3%
mul-1-neg78.3%
distribute-rgt-neg-in78.3%
associate-*r*78.3%
neg-mul-178.3%
cancel-sign-sub78.3%
+-commutative78.3%
mul-1-neg78.3%
unsub-neg78.3%
*-commutative78.3%
associate-*r*78.3%
neg-mul-178.3%
cancel-sign-sub78.3%
Simplified86.5%
Taylor expanded in a around 0 73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
*-commutative73.0%
*-commutative73.0%
associate-*l*81.1%
Simplified81.1%
if 6.5e-155 < x < 3.19999999999999987e-22Initial program 79.5%
Taylor expanded in b around 0 68.5%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* i b))))
(if (<= x -1e+20)
(* z (* x y))
(if (<= x -6.5e-214)
t_1
(if (<= x 1.35e-177)
(* a (* j c))
(if (<= x 2.5e-105)
t_1
(if (<= x 0.05)
(* c (* j a))
(if (<= x 8.8e+48) t_1 (* x (* a (- t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (x <= -1e+20) {
tmp = z * (x * y);
} else if (x <= -6.5e-214) {
tmp = t_1;
} else if (x <= 1.35e-177) {
tmp = a * (j * c);
} else if (x <= 2.5e-105) {
tmp = t_1;
} else if (x <= 0.05) {
tmp = c * (j * a);
} else if (x <= 8.8e+48) {
tmp = t_1;
} else {
tmp = x * (a * -t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (i * b)
if (x <= (-1d+20)) then
tmp = z * (x * y)
else if (x <= (-6.5d-214)) then
tmp = t_1
else if (x <= 1.35d-177) then
tmp = a * (j * c)
else if (x <= 2.5d-105) then
tmp = t_1
else if (x <= 0.05d0) then
tmp = c * (j * a)
else if (x <= 8.8d+48) then
tmp = t_1
else
tmp = x * (a * -t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (x <= -1e+20) {
tmp = z * (x * y);
} else if (x <= -6.5e-214) {
tmp = t_1;
} else if (x <= 1.35e-177) {
tmp = a * (j * c);
} else if (x <= 2.5e-105) {
tmp = t_1;
} else if (x <= 0.05) {
tmp = c * (j * a);
} else if (x <= 8.8e+48) {
tmp = t_1;
} else {
tmp = x * (a * -t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (i * b) tmp = 0 if x <= -1e+20: tmp = z * (x * y) elif x <= -6.5e-214: tmp = t_1 elif x <= 1.35e-177: tmp = a * (j * c) elif x <= 2.5e-105: tmp = t_1 elif x <= 0.05: tmp = c * (j * a) elif x <= 8.8e+48: tmp = t_1 else: tmp = x * (a * -t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(i * b)) tmp = 0.0 if (x <= -1e+20) tmp = Float64(z * Float64(x * y)); elseif (x <= -6.5e-214) tmp = t_1; elseif (x <= 1.35e-177) tmp = Float64(a * Float64(j * c)); elseif (x <= 2.5e-105) tmp = t_1; elseif (x <= 0.05) tmp = Float64(c * Float64(j * a)); elseif (x <= 8.8e+48) tmp = t_1; else tmp = Float64(x * Float64(a * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (i * b); tmp = 0.0; if (x <= -1e+20) tmp = z * (x * y); elseif (x <= -6.5e-214) tmp = t_1; elseif (x <= 1.35e-177) tmp = a * (j * c); elseif (x <= 2.5e-105) tmp = t_1; elseif (x <= 0.05) tmp = c * (j * a); elseif (x <= 8.8e+48) tmp = t_1; else tmp = x * (a * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1e+20], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.5e-214], t$95$1, If[LessEqual[x, 1.35e-177], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-105], t$95$1, If[LessEqual[x, 0.05], N[(c * N[(j * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.8e+48], t$95$1, N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;x \leq -1 \cdot 10^{+20}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-214}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-177}:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.05:\\
\;\;\;\;c \cdot \left(j \cdot a\right)\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if x < -1e20Initial program 75.6%
Taylor expanded in z around inf 51.6%
*-commutative51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in y around inf 45.6%
if -1e20 < x < -6.5000000000000004e-214 or 1.3500000000000001e-177 < x < 2.49999999999999982e-105 or 0.050000000000000003 < x < 8.7999999999999997e48Initial program 75.6%
Taylor expanded in t around inf 54.9%
associate-*r*54.9%
neg-mul-154.9%
fma-neg54.9%
mul-1-neg54.9%
remove-double-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in a around 0 40.9%
if -6.5000000000000004e-214 < x < 1.3500000000000001e-177Initial program 67.2%
Taylor expanded in a around inf 39.1%
+-commutative39.1%
mul-1-neg39.1%
unsub-neg39.1%
*-commutative39.1%
*-commutative39.1%
Simplified39.1%
Taylor expanded in j around inf 37.1%
if 2.49999999999999982e-105 < x < 0.050000000000000003Initial program 77.2%
Taylor expanded in a around inf 34.6%
+-commutative34.6%
mul-1-neg34.6%
unsub-neg34.6%
*-commutative34.6%
*-commutative34.6%
Simplified34.6%
Taylor expanded in j around inf 23.9%
associate-*r*29.3%
*-commutative29.3%
associate-*r*40.0%
Simplified40.0%
if 8.7999999999999997e48 < x Initial program 81.6%
Taylor expanded in t around inf 56.8%
associate-*r*56.8%
neg-mul-156.8%
fma-neg58.7%
mul-1-neg58.7%
remove-double-neg58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in a around inf 49.3%
mul-1-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
associate-*r*46.9%
Simplified46.9%
Taylor expanded in t around 0 49.3%
mul-1-neg49.3%
associate-*r*48.7%
Simplified48.7%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* i b))) (t_2 (* a (* j c))) (t_3 (* x (* y z))))
(if (<= z -1.22e+35)
t_3
(if (<= z -3.8e-253)
(* i (* b t))
(if (<= z -6.5e-298)
t_2
(if (<= z 7.8e-230)
t_1
(if (<= z 9e-189) t_2 (if (<= z 3.1e-90) t_1 t_3))))))))
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 * b);
double t_2 = a * (j * c);
double t_3 = x * (y * z);
double tmp;
if (z <= -1.22e+35) {
tmp = t_3;
} else if (z <= -3.8e-253) {
tmp = i * (b * t);
} else if (z <= -6.5e-298) {
tmp = t_2;
} else if (z <= 7.8e-230) {
tmp = t_1;
} else if (z <= 9e-189) {
tmp = t_2;
} else if (z <= 3.1e-90) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = t * (i * b)
t_2 = a * (j * c)
t_3 = x * (y * z)
if (z <= (-1.22d+35)) then
tmp = t_3
else if (z <= (-3.8d-253)) then
tmp = i * (b * t)
else if (z <= (-6.5d-298)) then
tmp = t_2
else if (z <= 7.8d-230) then
tmp = t_1
else if (z <= 9d-189) then
tmp = t_2
else if (z <= 3.1d-90) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double t_2 = a * (j * c);
double t_3 = x * (y * z);
double tmp;
if (z <= -1.22e+35) {
tmp = t_3;
} else if (z <= -3.8e-253) {
tmp = i * (b * t);
} else if (z <= -6.5e-298) {
tmp = t_2;
} else if (z <= 7.8e-230) {
tmp = t_1;
} else if (z <= 9e-189) {
tmp = t_2;
} else if (z <= 3.1e-90) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (i * b) t_2 = a * (j * c) t_3 = x * (y * z) tmp = 0 if z <= -1.22e+35: tmp = t_3 elif z <= -3.8e-253: tmp = i * (b * t) elif z <= -6.5e-298: tmp = t_2 elif z <= 7.8e-230: tmp = t_1 elif z <= 9e-189: tmp = t_2 elif z <= 3.1e-90: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(i * b)) t_2 = Float64(a * Float64(j * c)) t_3 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -1.22e+35) tmp = t_3; elseif (z <= -3.8e-253) tmp = Float64(i * Float64(b * t)); elseif (z <= -6.5e-298) tmp = t_2; elseif (z <= 7.8e-230) tmp = t_1; elseif (z <= 9e-189) tmp = t_2; elseif (z <= 3.1e-90) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (i * b); t_2 = a * (j * c); t_3 = x * (y * z); tmp = 0.0; if (z <= -1.22e+35) tmp = t_3; elseif (z <= -3.8e-253) tmp = i * (b * t); elseif (z <= -6.5e-298) tmp = t_2; elseif (z <= 7.8e-230) tmp = t_1; elseif (z <= 9e-189) tmp = t_2; elseif (z <= 3.1e-90) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.22e+35], t$95$3, If[LessEqual[z, -3.8e-253], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.5e-298], t$95$2, If[LessEqual[z, 7.8e-230], t$95$1, If[LessEqual[z, 9e-189], t$95$2, If[LessEqual[z, 3.1e-90], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b\right)\\
t_2 := a \cdot \left(j \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -1.22 \cdot 10^{+35}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{-253}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-230}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-189}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.21999999999999999e35 or 3.1000000000000001e-90 < z Initial program 69.2%
Taylor expanded in z around inf 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in y around inf 39.6%
*-commutative39.6%
Simplified39.6%
if -1.21999999999999999e35 < z < -3.80000000000000012e-253Initial program 77.9%
Taylor expanded in t around inf 63.2%
associate-*r*63.2%
neg-mul-163.2%
fma-neg63.2%
mul-1-neg63.2%
remove-double-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in a around 0 40.2%
associate-*r*42.1%
*-commutative42.1%
associate-*r*43.8%
Simplified43.8%
if -3.80000000000000012e-253 < z < -6.5000000000000002e-298 or 7.8000000000000004e-230 < z < 8.9999999999999992e-189Initial program 87.4%
Taylor expanded in a around inf 71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in j around inf 51.8%
if -6.5000000000000002e-298 < z < 7.8000000000000004e-230 or 8.9999999999999992e-189 < z < 3.1000000000000001e-90Initial program 85.4%
Taylor expanded in t around inf 59.5%
associate-*r*59.5%
neg-mul-159.5%
fma-neg59.5%
mul-1-neg59.5%
remove-double-neg59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in a around 0 37.1%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* i b))) (t_2 (* a (* j c))))
(if (<= z -2.55e+34)
(* y (* x z))
(if (<= z -3.3e-251)
(* i (* b t))
(if (<= z -1.2e-295)
t_2
(if (<= z 1.65e-231)
t_1
(if (<= z 5.4e-188) t_2 (if (<= z 5.6e-90) t_1 (* x (* y z))))))))))
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 * b);
double t_2 = a * (j * c);
double tmp;
if (z <= -2.55e+34) {
tmp = y * (x * z);
} else if (z <= -3.3e-251) {
tmp = i * (b * t);
} else if (z <= -1.2e-295) {
tmp = t_2;
} else if (z <= 1.65e-231) {
tmp = t_1;
} else if (z <= 5.4e-188) {
tmp = t_2;
} else if (z <= 5.6e-90) {
tmp = t_1;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (i * b)
t_2 = a * (j * c)
if (z <= (-2.55d+34)) then
tmp = y * (x * z)
else if (z <= (-3.3d-251)) then
tmp = i * (b * t)
else if (z <= (-1.2d-295)) then
tmp = t_2
else if (z <= 1.65d-231) then
tmp = t_1
else if (z <= 5.4d-188) then
tmp = t_2
else if (z <= 5.6d-90) then
tmp = t_1
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 t_1 = t * (i * b);
double t_2 = a * (j * c);
double tmp;
if (z <= -2.55e+34) {
tmp = y * (x * z);
} else if (z <= -3.3e-251) {
tmp = i * (b * t);
} else if (z <= -1.2e-295) {
tmp = t_2;
} else if (z <= 1.65e-231) {
tmp = t_1;
} else if (z <= 5.4e-188) {
tmp = t_2;
} else if (z <= 5.6e-90) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (i * b) t_2 = a * (j * c) tmp = 0 if z <= -2.55e+34: tmp = y * (x * z) elif z <= -3.3e-251: tmp = i * (b * t) elif z <= -1.2e-295: tmp = t_2 elif z <= 1.65e-231: tmp = t_1 elif z <= 5.4e-188: tmp = t_2 elif z <= 5.6e-90: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(i * b)) t_2 = Float64(a * Float64(j * c)) tmp = 0.0 if (z <= -2.55e+34) tmp = Float64(y * Float64(x * z)); elseif (z <= -3.3e-251) tmp = Float64(i * Float64(b * t)); elseif (z <= -1.2e-295) tmp = t_2; elseif (z <= 1.65e-231) tmp = t_1; elseif (z <= 5.4e-188) tmp = t_2; elseif (z <= 5.6e-90) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (i * b); t_2 = a * (j * c); tmp = 0.0; if (z <= -2.55e+34) tmp = y * (x * z); elseif (z <= -3.3e-251) tmp = i * (b * t); elseif (z <= -1.2e-295) tmp = t_2; elseif (z <= 1.65e-231) tmp = t_1; elseif (z <= 5.4e-188) tmp = t_2; elseif (z <= 5.6e-90) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.55e+34], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.3e-251], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.2e-295], t$95$2, If[LessEqual[z, 1.65e-231], t$95$1, If[LessEqual[z, 5.4e-188], t$95$2, If[LessEqual[z, 5.6e-90], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b\right)\\
t_2 := a \cdot \left(j \cdot c\right)\\
\mathbf{if}\;z \leq -2.55 \cdot 10^{+34}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{-251}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-295}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-231}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-188}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -2.55000000000000018e34Initial program 56.0%
+-commutative56.0%
fma-define61.5%
*-commutative61.5%
*-commutative61.5%
*-commutative61.5%
*-commutative61.5%
*-commutative61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around 0 70.5%
Simplified77.9%
Taylor expanded in y around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in z around inf 47.3%
*-commutative47.3%
Simplified47.3%
if -2.55000000000000018e34 < z < -3.3e-251Initial program 77.9%
Taylor expanded in t around inf 63.2%
associate-*r*63.2%
neg-mul-163.2%
fma-neg63.2%
mul-1-neg63.2%
remove-double-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in a around 0 40.2%
associate-*r*42.1%
*-commutative42.1%
associate-*r*43.8%
Simplified43.8%
if -3.3e-251 < z < -1.1999999999999999e-295 or 1.65000000000000014e-231 < z < 5.4000000000000002e-188Initial program 87.4%
Taylor expanded in a around inf 71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in j around inf 51.8%
if -1.1999999999999999e-295 < z < 1.65000000000000014e-231 or 5.4000000000000002e-188 < z < 5.5999999999999998e-90Initial program 85.4%
Taylor expanded in t around inf 59.5%
associate-*r*59.5%
neg-mul-159.5%
fma-neg59.5%
mul-1-neg59.5%
remove-double-neg59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in a around 0 37.1%
if 5.5999999999999998e-90 < z Initial program 78.1%
Taylor expanded in z around inf 58.0%
*-commutative58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in y around inf 37.9%
*-commutative37.9%
Simplified37.9%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* a t)))))
(if (<= x -6e+122)
t_1
(if (<= x -2.8e+107)
(* b (- (* i t) (* c z)))
(if (or (<= x -6.8e+18) (not (<= x 3.6e+113)))
t_1
(- (* i (- (* b t) (* j y))) (* z (* c b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double tmp;
if (x <= -6e+122) {
tmp = t_1;
} else if (x <= -2.8e+107) {
tmp = b * ((i * t) - (c * z));
} else if ((x <= -6.8e+18) || !(x <= 3.6e+113)) {
tmp = t_1;
} else {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
}
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) - (a * t))
if (x <= (-6d+122)) then
tmp = t_1
else if (x <= (-2.8d+107)) then
tmp = b * ((i * t) - (c * z))
else if ((x <= (-6.8d+18)) .or. (.not. (x <= 3.6d+113))) then
tmp = t_1
else
tmp = (i * ((b * t) - (j * y))) - (z * (c * b))
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) - (a * t));
double tmp;
if (x <= -6e+122) {
tmp = t_1;
} else if (x <= -2.8e+107) {
tmp = b * ((i * t) - (c * z));
} else if ((x <= -6.8e+18) || !(x <= 3.6e+113)) {
tmp = t_1;
} else {
tmp = (i * ((b * t) - (j * y))) - (z * (c * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (a * t)) tmp = 0 if x <= -6e+122: tmp = t_1 elif x <= -2.8e+107: tmp = b * ((i * t) - (c * z)) elif (x <= -6.8e+18) or not (x <= 3.6e+113): tmp = t_1 else: tmp = (i * ((b * t) - (j * y))) - (z * (c * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(a * t))) tmp = 0.0 if (x <= -6e+122) tmp = t_1; elseif (x <= -2.8e+107) tmp = Float64(b * Float64(Float64(i * t) - Float64(c * z))); elseif ((x <= -6.8e+18) || !(x <= 3.6e+113)) tmp = t_1; else tmp = Float64(Float64(i * Float64(Float64(b * t) - Float64(j * y))) - Float64(z * Float64(c * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (a * t)); tmp = 0.0; if (x <= -6e+122) tmp = t_1; elseif (x <= -2.8e+107) tmp = b * ((i * t) - (c * z)); elseif ((x <= -6.8e+18) || ~((x <= 3.6e+113))) tmp = t_1; else tmp = (i * ((b * t) - (j * y))) - (z * (c * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6e+122], t$95$1, If[LessEqual[x, -2.8e+107], N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -6.8e+18], N[Not[LessEqual[x, 3.6e+113]], $MachinePrecision]], t$95$1, N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - a \cdot t\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{+107}:\\
\;\;\;\;b \cdot \left(i \cdot t - c \cdot z\right)\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{+18} \lor \neg \left(x \leq 3.6 \cdot 10^{+113}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right) - z \cdot \left(c \cdot b\right)\\
\end{array}
\end{array}
if x < -5.99999999999999972e122 or -2.79999999999999985e107 < x < -6.8e18 or 3.59999999999999992e113 < x Initial program 80.6%
+-commutative80.6%
fma-define83.6%
*-commutative83.6%
*-commutative83.6%
*-commutative83.6%
*-commutative83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in z around 0 68.7%
Simplified75.6%
Taylor expanded in x around inf 68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
if -5.99999999999999972e122 < x < -2.79999999999999985e107Initial program 66.7%
Taylor expanded in b around inf 84.1%
if -6.8e18 < x < 3.59999999999999992e113Initial program 72.2%
Taylor expanded in x around 0 66.6%
Taylor expanded in c around -inf 69.0%
associate--l+69.0%
mul-1-neg69.0%
distribute-rgt-neg-in69.0%
associate-*r*69.0%
neg-mul-169.0%
cancel-sign-sub69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
associate-*r*69.0%
neg-mul-169.0%
cancel-sign-sub69.0%
Simplified69.0%
Taylor expanded in a around 0 56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
*-commutative56.7%
*-commutative56.7%
associate-*l*59.6%
Simplified59.6%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* j c) (* x t)))))
(if (<= c -9.2e+124)
(* c (- (* j a) (* z b)))
(if (<= c -8.6e+21)
(* y (* x z))
(if (<= c -1.05e-173)
t_1
(if (<= c 8.5e-34)
(* i (- (* b t) (* j y)))
(if (<= c 4.2e+271) t_1 (* c (- (* z 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 * ((j * c) - (x * t));
double tmp;
if (c <= -9.2e+124) {
tmp = c * ((j * a) - (z * b));
} else if (c <= -8.6e+21) {
tmp = y * (x * z);
} else if (c <= -1.05e-173) {
tmp = t_1;
} else if (c <= 8.5e-34) {
tmp = i * ((b * t) - (j * y));
} else if (c <= 4.2e+271) {
tmp = t_1;
} else {
tmp = c * -(z * b);
}
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 * ((j * c) - (x * t))
if (c <= (-9.2d+124)) then
tmp = c * ((j * a) - (z * b))
else if (c <= (-8.6d+21)) then
tmp = y * (x * z)
else if (c <= (-1.05d-173)) then
tmp = t_1
else if (c <= 8.5d-34) then
tmp = i * ((b * t) - (j * y))
else if (c <= 4.2d+271) then
tmp = t_1
else
tmp = c * -(z * b)
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 * ((j * c) - (x * t));
double tmp;
if (c <= -9.2e+124) {
tmp = c * ((j * a) - (z * b));
} else if (c <= -8.6e+21) {
tmp = y * (x * z);
} else if (c <= -1.05e-173) {
tmp = t_1;
} else if (c <= 8.5e-34) {
tmp = i * ((b * t) - (j * y));
} else if (c <= 4.2e+271) {
tmp = t_1;
} else {
tmp = c * -(z * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((j * c) - (x * t)) tmp = 0 if c <= -9.2e+124: tmp = c * ((j * a) - (z * b)) elif c <= -8.6e+21: tmp = y * (x * z) elif c <= -1.05e-173: tmp = t_1 elif c <= 8.5e-34: tmp = i * ((b * t) - (j * y)) elif c <= 4.2e+271: tmp = t_1 else: tmp = c * -(z * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(j * c) - Float64(x * t))) tmp = 0.0 if (c <= -9.2e+124) tmp = Float64(c * Float64(Float64(j * a) - Float64(z * b))); elseif (c <= -8.6e+21) tmp = Float64(y * Float64(x * z)); elseif (c <= -1.05e-173) tmp = t_1; elseif (c <= 8.5e-34) tmp = Float64(i * Float64(Float64(b * t) - Float64(j * y))); elseif (c <= 4.2e+271) tmp = t_1; else tmp = Float64(c * Float64(-Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((j * c) - (x * t)); tmp = 0.0; if (c <= -9.2e+124) tmp = c * ((j * a) - (z * b)); elseif (c <= -8.6e+21) tmp = y * (x * z); elseif (c <= -1.05e-173) tmp = t_1; elseif (c <= 8.5e-34) tmp = i * ((b * t) - (j * y)); elseif (c <= 4.2e+271) tmp = t_1; else tmp = c * -(z * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.2e+124], N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.6e+21], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.05e-173], t$95$1, If[LessEqual[c, 8.5e-34], N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e+271], t$95$1, N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{if}\;c \leq -9.2 \cdot 10^{+124}:\\
\;\;\;\;c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{elif}\;c \leq -8.6 \cdot 10^{+21}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq -1.05 \cdot 10^{-173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-34}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+271}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\end{array}
\end{array}
if c < -9.19999999999999938e124Initial program 68.5%
Taylor expanded in c around inf 78.7%
if -9.19999999999999938e124 < c < -8.6e21Initial program 73.4%
+-commutative73.4%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 64.1%
Simplified68.7%
Taylor expanded in y around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in z around inf 49.6%
*-commutative49.6%
Simplified49.6%
if -8.6e21 < c < -1.05000000000000001e-173 or 8.5000000000000001e-34 < c < 4.1999999999999999e271Initial program 76.1%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
*-commutative54.0%
*-commutative54.0%
Simplified54.0%
if -1.05000000000000001e-173 < c < 8.5000000000000001e-34Initial program 80.7%
+-commutative80.7%
fma-define82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in z around 0 78.4%
Simplified86.1%
Taylor expanded in i around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
Simplified53.4%
if 4.1999999999999999e271 < c Initial program 50.0%
Taylor expanded in z around inf 100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
mul-1-neg100.0%
*-commutative100.0%
associate-*r*100.0%
*-commutative100.0%
distribute-rgt-neg-out100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Final simplification59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* i b) (* x a)))))
(if (<= t -1.55e+122)
t_1
(if (<= t -4.4e+28)
(* c (- (* j a) (* z b)))
(if (<= t -650.0)
t_1
(if (<= t 5.3e-140)
(* j (- (* a c) (* y i)))
(if (<= t 1.8e-28) (* b (- (* i t) (* c 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 = t * ((i * b) - (x * a));
double tmp;
if (t <= -1.55e+122) {
tmp = t_1;
} else if (t <= -4.4e+28) {
tmp = c * ((j * a) - (z * b));
} else if (t <= -650.0) {
tmp = t_1;
} else if (t <= 5.3e-140) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 1.8e-28) {
tmp = b * ((i * t) - (c * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((i * b) - (x * a))
if (t <= (-1.55d+122)) then
tmp = t_1
else if (t <= (-4.4d+28)) then
tmp = c * ((j * a) - (z * b))
else if (t <= (-650.0d0)) then
tmp = t_1
else if (t <= 5.3d-140) then
tmp = j * ((a * c) - (y * i))
else if (t <= 1.8d-28) then
tmp = b * ((i * t) - (c * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (x * a));
double tmp;
if (t <= -1.55e+122) {
tmp = t_1;
} else if (t <= -4.4e+28) {
tmp = c * ((j * a) - (z * b));
} else if (t <= -650.0) {
tmp = t_1;
} else if (t <= 5.3e-140) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 1.8e-28) {
tmp = b * ((i * t) - (c * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((i * b) - (x * a)) tmp = 0 if t <= -1.55e+122: tmp = t_1 elif t <= -4.4e+28: tmp = c * ((j * a) - (z * b)) elif t <= -650.0: tmp = t_1 elif t <= 5.3e-140: tmp = j * ((a * c) - (y * i)) elif t <= 1.8e-28: tmp = b * ((i * t) - (c * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(i * b) - Float64(x * a))) tmp = 0.0 if (t <= -1.55e+122) tmp = t_1; elseif (t <= -4.4e+28) tmp = Float64(c * Float64(Float64(j * a) - Float64(z * b))); elseif (t <= -650.0) tmp = t_1; elseif (t <= 5.3e-140) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 1.8e-28) tmp = Float64(b * Float64(Float64(i * t) - Float64(c * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((i * b) - (x * a)); tmp = 0.0; if (t <= -1.55e+122) tmp = t_1; elseif (t <= -4.4e+28) tmp = c * ((j * a) - (z * b)); elseif (t <= -650.0) tmp = t_1; elseif (t <= 5.3e-140) tmp = j * ((a * c) - (y * i)); elseif (t <= 1.8e-28) tmp = b * ((i * t) - (c * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e+122], t$95$1, If[LessEqual[t, -4.4e+28], N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -650.0], t$95$1, If[LessEqual[t, 5.3e-140], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-28], N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{+28}:\\
\;\;\;\;c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{elif}\;t \leq -650:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{-140}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-28}:\\
\;\;\;\;b \cdot \left(i \cdot t - c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.54999999999999999e122 or -4.39999999999999973e28 < t < -650 or 1.7999999999999999e-28 < t Initial program 71.2%
+-commutative71.2%
fma-define75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in z around 0 72.5%
Simplified84.3%
Taylor expanded in t around inf 65.7%
mul-1-neg65.7%
distribute-lft-neg-out65.7%
+-commutative65.7%
distribute-lft-neg-out65.7%
unsub-neg65.7%
*-commutative65.7%
Simplified65.7%
if -1.54999999999999999e122 < t < -4.39999999999999973e28Initial program 78.0%
Taylor expanded in c around inf 63.4%
if -650 < t < 5.29999999999999984e-140Initial program 79.6%
+-commutative79.6%
fma-define81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in z around 0 80.7%
Simplified75.4%
Taylor expanded in j around inf 53.2%
*-commutative53.2%
*-commutative53.2%
Simplified53.2%
if 5.29999999999999984e-140 < t < 1.7999999999999999e-28Initial program 80.1%
Taylor expanded in b around inf 49.7%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* a t)))) (t_2 (* c (- (* j a) (* z b)))))
(if (<= c -1.5e+125)
t_2
(if (<= c -1.36e-18)
t_1
(if (<= c -4.2e-291)
(* t (- (* i b) (* x a)))
(if (<= c 9.2e-178)
(* i (- (* b t) (* j y)))
(if (<= c 3.2e+45) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double t_2 = c * ((j * a) - (z * b));
double tmp;
if (c <= -1.5e+125) {
tmp = t_2;
} else if (c <= -1.36e-18) {
tmp = t_1;
} else if (c <= -4.2e-291) {
tmp = t * ((i * b) - (x * a));
} else if (c <= 9.2e-178) {
tmp = i * ((b * t) - (j * y));
} else if (c <= 3.2e+45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (a * t))
t_2 = c * ((j * a) - (z * b))
if (c <= (-1.5d+125)) then
tmp = t_2
else if (c <= (-1.36d-18)) then
tmp = t_1
else if (c <= (-4.2d-291)) then
tmp = t * ((i * b) - (x * a))
else if (c <= 9.2d-178) then
tmp = i * ((b * t) - (j * y))
else if (c <= 3.2d+45) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double t_2 = c * ((j * a) - (z * b));
double tmp;
if (c <= -1.5e+125) {
tmp = t_2;
} else if (c <= -1.36e-18) {
tmp = t_1;
} else if (c <= -4.2e-291) {
tmp = t * ((i * b) - (x * a));
} else if (c <= 9.2e-178) {
tmp = i * ((b * t) - (j * y));
} else if (c <= 3.2e+45) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (a * t)) t_2 = c * ((j * a) - (z * b)) tmp = 0 if c <= -1.5e+125: tmp = t_2 elif c <= -1.36e-18: tmp = t_1 elif c <= -4.2e-291: tmp = t * ((i * b) - (x * a)) elif c <= 9.2e-178: tmp = i * ((b * t) - (j * y)) elif c <= 3.2e+45: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(a * t))) t_2 = Float64(c * Float64(Float64(j * a) - Float64(z * b))) tmp = 0.0 if (c <= -1.5e+125) tmp = t_2; elseif (c <= -1.36e-18) tmp = t_1; elseif (c <= -4.2e-291) tmp = Float64(t * Float64(Float64(i * b) - Float64(x * a))); elseif (c <= 9.2e-178) tmp = Float64(i * Float64(Float64(b * t) - Float64(j * y))); elseif (c <= 3.2e+45) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (a * t)); t_2 = c * ((j * a) - (z * b)); tmp = 0.0; if (c <= -1.5e+125) tmp = t_2; elseif (c <= -1.36e-18) tmp = t_1; elseif (c <= -4.2e-291) tmp = t * ((i * b) - (x * a)); elseif (c <= 9.2e-178) tmp = i * ((b * t) - (j * y)); elseif (c <= 3.2e+45) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.5e+125], t$95$2, If[LessEqual[c, -1.36e-18], t$95$1, If[LessEqual[c, -4.2e-291], N[(t * N[(N[(i * b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e-178], N[(i * N[(N[(b * t), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+45], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - a \cdot t\right)\\
t_2 := c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.5 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.36 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \left(i \cdot b - x \cdot a\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-178}:\\
\;\;\;\;i \cdot \left(b \cdot t - j \cdot y\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.50000000000000008e125 or 3.2000000000000003e45 < c Initial program 67.7%
Taylor expanded in c around inf 69.5%
if -1.50000000000000008e125 < c < -1.3600000000000001e-18 or 9.19999999999999978e-178 < c < 3.2000000000000003e45Initial program 77.4%
+-commutative77.4%
fma-define82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in z around 0 77.4%
Simplified76.1%
Taylor expanded in x around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
*-commutative56.5%
Simplified56.5%
if -1.3600000000000001e-18 < c < -4.1999999999999999e-291Initial program 77.7%
+-commutative77.7%
fma-define77.7%
*-commutative77.7%
*-commutative77.7%
*-commutative77.7%
*-commutative77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in z around 0 74.6%
Simplified84.6%
Taylor expanded in t around inf 62.8%
mul-1-neg62.8%
distribute-lft-neg-out62.8%
+-commutative62.8%
distribute-lft-neg-out62.8%
unsub-neg62.8%
*-commutative62.8%
Simplified62.8%
if -4.1999999999999999e-291 < c < 9.19999999999999978e-178Initial program 84.7%
+-commutative84.7%
fma-define84.7%
*-commutative84.7%
*-commutative84.7%
*-commutative84.7%
*-commutative84.7%
*-commutative84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in z around 0 84.6%
Simplified87.3%
Taylor expanded in i around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
*-commutative56.7%
Simplified56.7%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* a t))))
(t_2 (+ t_1 (* b (- (* i t) (* c z))))))
(if (<= x -1.9e-77)
t_2
(if (<= x 2.4e-153)
(- (* c (- (* j a) (* z b))) (* i (- (* j y) (* b t))))
(if (<= x 4.9e+124) (+ t_1 (* j (- (* a c) (* y i)))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double t_2 = t_1 + (b * ((i * t) - (c * z)));
double tmp;
if (x <= -1.9e-77) {
tmp = t_2;
} else if (x <= 2.4e-153) {
tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t)));
} else if (x <= 4.9e+124) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (a * t))
t_2 = t_1 + (b * ((i * t) - (c * z)))
if (x <= (-1.9d-77)) then
tmp = t_2
else if (x <= 2.4d-153) then
tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t)))
else if (x <= 4.9d+124) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (a * t));
double t_2 = t_1 + (b * ((i * t) - (c * z)));
double tmp;
if (x <= -1.9e-77) {
tmp = t_2;
} else if (x <= 2.4e-153) {
tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t)));
} else if (x <= 4.9e+124) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (a * t)) t_2 = t_1 + (b * ((i * t) - (c * z))) tmp = 0 if x <= -1.9e-77: tmp = t_2 elif x <= 2.4e-153: tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t))) elif x <= 4.9e+124: tmp = t_1 + (j * ((a * c) - (y * i))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(a * t))) t_2 = Float64(t_1 + Float64(b * Float64(Float64(i * t) - Float64(c * z)))) tmp = 0.0 if (x <= -1.9e-77) tmp = t_2; elseif (x <= 2.4e-153) tmp = Float64(Float64(c * Float64(Float64(j * a) - Float64(z * b))) - Float64(i * Float64(Float64(j * y) - Float64(b * t)))); elseif (x <= 4.9e+124) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (a * t)); t_2 = t_1 + (b * ((i * t) - (c * z))); tmp = 0.0; if (x <= -1.9e-77) tmp = t_2; elseif (x <= 2.4e-153) tmp = (c * ((j * a) - (z * b))) - (i * ((j * y) - (b * t))); elseif (x <= 4.9e+124) tmp = t_1 + (j * ((a * c) - (y * i))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e-77], t$95$2, If[LessEqual[x, 2.4e-153], N[(N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(j * y), $MachinePrecision] - N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.9e+124], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - a \cdot t\right)\\
t_2 := t\_1 + b \cdot \left(i \cdot t - c \cdot z\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{-77}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-153}:\\
\;\;\;\;c \cdot \left(j \cdot a - z \cdot b\right) - i \cdot \left(j \cdot y - b \cdot t\right)\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{+124}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.8999999999999999e-77 or 4.90000000000000035e124 < x Initial program 78.7%
Taylor expanded in j around 0 77.4%
if -1.8999999999999999e-77 < x < 2.4000000000000002e-153Initial program 66.9%
Taylor expanded in x around 0 73.2%
Taylor expanded in c around -inf 76.8%
associate--l+76.8%
mul-1-neg76.8%
distribute-rgt-neg-in76.8%
associate-*r*76.8%
neg-mul-176.8%
cancel-sign-sub76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
associate-*r*76.8%
neg-mul-176.8%
cancel-sign-sub76.8%
Simplified79.3%
if 2.4000000000000002e-153 < x < 4.90000000000000035e124Initial program 81.2%
Taylor expanded in b around 0 69.0%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* t (* i b))))
(if (<= i -8.8e+163)
t_2
(if (<= i -2.7e-34)
t_1
(if (<= i -1.12e-246)
(* t (* a (- x)))
(if (<= i 7.4e-128)
(* c (- (* z b)))
(if (<= i 2.2e+156) 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 = z * (x * y);
double t_2 = t * (i * b);
double tmp;
if (i <= -8.8e+163) {
tmp = t_2;
} else if (i <= -2.7e-34) {
tmp = t_1;
} else if (i <= -1.12e-246) {
tmp = t * (a * -x);
} else if (i <= 7.4e-128) {
tmp = c * -(z * b);
} else if (i <= 2.2e+156) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (x * y)
t_2 = t * (i * b)
if (i <= (-8.8d+163)) then
tmp = t_2
else if (i <= (-2.7d-34)) then
tmp = t_1
else if (i <= (-1.12d-246)) then
tmp = t * (a * -x)
else if (i <= 7.4d-128) then
tmp = c * -(z * b)
else if (i <= 2.2d+156) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = t * (i * b);
double tmp;
if (i <= -8.8e+163) {
tmp = t_2;
} else if (i <= -2.7e-34) {
tmp = t_1;
} else if (i <= -1.12e-246) {
tmp = t * (a * -x);
} else if (i <= 7.4e-128) {
tmp = c * -(z * b);
} else if (i <= 2.2e+156) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = t * (i * b) tmp = 0 if i <= -8.8e+163: tmp = t_2 elif i <= -2.7e-34: tmp = t_1 elif i <= -1.12e-246: tmp = t * (a * -x) elif i <= 7.4e-128: tmp = c * -(z * b) elif i <= 2.2e+156: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(t * Float64(i * b)) tmp = 0.0 if (i <= -8.8e+163) tmp = t_2; elseif (i <= -2.7e-34) tmp = t_1; elseif (i <= -1.12e-246) tmp = Float64(t * Float64(a * Float64(-x))); elseif (i <= 7.4e-128) tmp = Float64(c * Float64(-Float64(z * b))); elseif (i <= 2.2e+156) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = t * (i * b); tmp = 0.0; if (i <= -8.8e+163) tmp = t_2; elseif (i <= -2.7e-34) tmp = t_1; elseif (i <= -1.12e-246) tmp = t * (a * -x); elseif (i <= 7.4e-128) tmp = c * -(z * b); elseif (i <= 2.2e+156) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.8e+163], t$95$2, If[LessEqual[i, -2.7e-34], t$95$1, If[LessEqual[i, -1.12e-246], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.4e-128], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 2.2e+156], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;i \leq -8.8 \cdot 10^{+163}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -2.7 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.12 \cdot 10^{-246}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{-128}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -8.79999999999999945e163 or 2.20000000000000004e156 < i Initial program 53.5%
Taylor expanded in t around inf 62.5%
associate-*r*62.5%
neg-mul-162.5%
fma-neg64.4%
mul-1-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around 0 57.1%
if -8.79999999999999945e163 < i < -2.70000000000000017e-34 or 7.4e-128 < i < 2.20000000000000004e156Initial program 80.2%
Taylor expanded in z around inf 44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in y around inf 36.0%
if -2.70000000000000017e-34 < i < -1.11999999999999995e-246Initial program 82.4%
Taylor expanded in t around inf 49.0%
associate-*r*49.0%
neg-mul-149.0%
fma-neg49.0%
mul-1-neg49.0%
remove-double-neg49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in a around inf 37.1%
mul-1-neg37.1%
*-commutative37.1%
distribute-rgt-neg-in37.1%
associate-*r*35.4%
Simplified35.4%
if -1.11999999999999995e-246 < i < 7.4e-128Initial program 80.5%
Taylor expanded in z around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in y around 0 35.8%
mul-1-neg35.8%
*-commutative35.8%
associate-*r*39.1%
*-commutative39.1%
distribute-rgt-neg-out39.1%
distribute-rgt-neg-in39.1%
Simplified39.1%
Final simplification40.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* i b))))
(if (<= i -3.3e+174)
t_1
(if (<= i -0.4)
(* y (* j (- i)))
(if (<= i -5e-247)
(* t (* a (- x)))
(if (<= i 2.3e-131)
(* c (- (* z b)))
(if (<= i 7.8e+155) (* z (* x y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (i <= -3.3e+174) {
tmp = t_1;
} else if (i <= -0.4) {
tmp = y * (j * -i);
} else if (i <= -5e-247) {
tmp = t * (a * -x);
} else if (i <= 2.3e-131) {
tmp = c * -(z * b);
} else if (i <= 7.8e+155) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (i * b)
if (i <= (-3.3d+174)) then
tmp = t_1
else if (i <= (-0.4d0)) then
tmp = y * (j * -i)
else if (i <= (-5d-247)) then
tmp = t * (a * -x)
else if (i <= 2.3d-131) then
tmp = c * -(z * b)
else if (i <= 7.8d+155) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (i <= -3.3e+174) {
tmp = t_1;
} else if (i <= -0.4) {
tmp = y * (j * -i);
} else if (i <= -5e-247) {
tmp = t * (a * -x);
} else if (i <= 2.3e-131) {
tmp = c * -(z * b);
} else if (i <= 7.8e+155) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (i * b) tmp = 0 if i <= -3.3e+174: tmp = t_1 elif i <= -0.4: tmp = y * (j * -i) elif i <= -5e-247: tmp = t * (a * -x) elif i <= 2.3e-131: tmp = c * -(z * b) elif i <= 7.8e+155: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(i * b)) tmp = 0.0 if (i <= -3.3e+174) tmp = t_1; elseif (i <= -0.4) tmp = Float64(y * Float64(j * Float64(-i))); elseif (i <= -5e-247) tmp = Float64(t * Float64(a * Float64(-x))); elseif (i <= 2.3e-131) tmp = Float64(c * Float64(-Float64(z * b))); elseif (i <= 7.8e+155) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (i * b); tmp = 0.0; if (i <= -3.3e+174) tmp = t_1; elseif (i <= -0.4) tmp = y * (j * -i); elseif (i <= -5e-247) tmp = t * (a * -x); elseif (i <= 2.3e-131) tmp = c * -(z * b); elseif (i <= 7.8e+155) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.3e+174], t$95$1, If[LessEqual[i, -0.4], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5e-247], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e-131], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 7.8e+155], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;i \leq -3.3 \cdot 10^{+174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -0.4:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -5 \cdot 10^{-247}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-131}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{+155}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.3000000000000001e174 or 7.7999999999999996e155 < i Initial program 53.5%
Taylor expanded in t around inf 62.5%
associate-*r*62.5%
neg-mul-162.5%
fma-neg64.4%
mul-1-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around 0 57.1%
if -3.3000000000000001e174 < i < -0.40000000000000002Initial program 76.9%
Taylor expanded in c around inf 74.4%
*-commutative74.4%
associate-*l*77.3%
Simplified77.3%
Taylor expanded in i around inf 42.1%
mul-1-neg42.1%
*-commutative42.1%
*-commutative42.1%
associate-*r*47.2%
*-commutative47.2%
distribute-rgt-neg-out47.2%
*-commutative47.2%
distribute-rgt-neg-in47.2%
Simplified47.2%
if -0.40000000000000002 < i < -4.99999999999999978e-247Initial program 82.0%
Taylor expanded in t around inf 47.9%
associate-*r*47.9%
neg-mul-147.9%
fma-neg48.0%
mul-1-neg48.0%
remove-double-neg48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in a around inf 33.3%
mul-1-neg33.3%
*-commutative33.3%
distribute-rgt-neg-in33.3%
associate-*r*32.8%
Simplified32.8%
if -4.99999999999999978e-247 < i < 2.30000000000000022e-131Initial program 80.5%
Taylor expanded in z around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in y around 0 35.8%
mul-1-neg35.8%
*-commutative35.8%
associate-*r*39.1%
*-commutative39.1%
distribute-rgt-neg-out39.1%
distribute-rgt-neg-in39.1%
Simplified39.1%
if 2.30000000000000022e-131 < i < 7.7999999999999996e155Initial program 82.2%
Taylor expanded in z around inf 39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in y around inf 32.2%
Final simplification40.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* i b))))
(if (<= i -1.2e+171)
t_1
(if (<= i -0.0034)
(* y (* j (- i)))
(if (<= i -3.7e-246)
(* t (* a (- x)))
(if (<= i 1.3e-125)
(* z (* c (- b)))
(if (<= i 1e+156) (* z (* x y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (i <= -1.2e+171) {
tmp = t_1;
} else if (i <= -0.0034) {
tmp = y * (j * -i);
} else if (i <= -3.7e-246) {
tmp = t * (a * -x);
} else if (i <= 1.3e-125) {
tmp = z * (c * -b);
} else if (i <= 1e+156) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (i * b)
if (i <= (-1.2d+171)) then
tmp = t_1
else if (i <= (-0.0034d0)) then
tmp = y * (j * -i)
else if (i <= (-3.7d-246)) then
tmp = t * (a * -x)
else if (i <= 1.3d-125) then
tmp = z * (c * -b)
else if (i <= 1d+156) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (i * b);
double tmp;
if (i <= -1.2e+171) {
tmp = t_1;
} else if (i <= -0.0034) {
tmp = y * (j * -i);
} else if (i <= -3.7e-246) {
tmp = t * (a * -x);
} else if (i <= 1.3e-125) {
tmp = z * (c * -b);
} else if (i <= 1e+156) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (i * b) tmp = 0 if i <= -1.2e+171: tmp = t_1 elif i <= -0.0034: tmp = y * (j * -i) elif i <= -3.7e-246: tmp = t * (a * -x) elif i <= 1.3e-125: tmp = z * (c * -b) elif i <= 1e+156: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(i * b)) tmp = 0.0 if (i <= -1.2e+171) tmp = t_1; elseif (i <= -0.0034) tmp = Float64(y * Float64(j * Float64(-i))); elseif (i <= -3.7e-246) tmp = Float64(t * Float64(a * Float64(-x))); elseif (i <= 1.3e-125) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 1e+156) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (i * b); tmp = 0.0; if (i <= -1.2e+171) tmp = t_1; elseif (i <= -0.0034) tmp = y * (j * -i); elseif (i <= -3.7e-246) tmp = t * (a * -x); elseif (i <= 1.3e-125) tmp = z * (c * -b); elseif (i <= 1e+156) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.2e+171], t$95$1, If[LessEqual[i, -0.0034], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.7e-246], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.3e-125], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1e+156], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;i \leq -1.2 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -0.0034:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{-246}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-125}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 10^{+156}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.19999999999999999e171 or 9.9999999999999998e155 < i Initial program 53.5%
Taylor expanded in t around inf 62.5%
associate-*r*62.5%
neg-mul-162.5%
fma-neg64.4%
mul-1-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around 0 57.1%
if -1.19999999999999999e171 < i < -0.00339999999999999981Initial program 76.9%
Taylor expanded in c around inf 74.4%
*-commutative74.4%
associate-*l*77.3%
Simplified77.3%
Taylor expanded in i around inf 42.1%
mul-1-neg42.1%
*-commutative42.1%
*-commutative42.1%
associate-*r*47.2%
*-commutative47.2%
distribute-rgt-neg-out47.2%
*-commutative47.2%
distribute-rgt-neg-in47.2%
Simplified47.2%
if -0.00339999999999999981 < i < -3.7e-246Initial program 82.0%
Taylor expanded in t around inf 47.9%
associate-*r*47.9%
neg-mul-147.9%
fma-neg48.0%
mul-1-neg48.0%
remove-double-neg48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in a around inf 33.3%
mul-1-neg33.3%
*-commutative33.3%
distribute-rgt-neg-in33.3%
associate-*r*32.8%
Simplified32.8%
if -3.7e-246 < i < 1.30000000000000003e-125Initial program 80.5%
Taylor expanded in z around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in y around 0 40.8%
mul-1-neg40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
if 1.30000000000000003e-125 < i < 9.9999999999999998e155Initial program 82.2%
Taylor expanded in z around inf 39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in y around inf 32.2%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* t (* i b))))
(if (<= i -8.8e+163)
t_2
(if (<= i -3.2e-38)
t_1
(if (<= i -1.6e-246)
(* a (* t (- x)))
(if (<= i 3.9e-129)
(* z (* c (- b)))
(if (<= i 7.8e+155) 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 = z * (x * y);
double t_2 = t * (i * b);
double tmp;
if (i <= -8.8e+163) {
tmp = t_2;
} else if (i <= -3.2e-38) {
tmp = t_1;
} else if (i <= -1.6e-246) {
tmp = a * (t * -x);
} else if (i <= 3.9e-129) {
tmp = z * (c * -b);
} else if (i <= 7.8e+155) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (x * y)
t_2 = t * (i * b)
if (i <= (-8.8d+163)) then
tmp = t_2
else if (i <= (-3.2d-38)) then
tmp = t_1
else if (i <= (-1.6d-246)) then
tmp = a * (t * -x)
else if (i <= 3.9d-129) then
tmp = z * (c * -b)
else if (i <= 7.8d+155) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = t * (i * b);
double tmp;
if (i <= -8.8e+163) {
tmp = t_2;
} else if (i <= -3.2e-38) {
tmp = t_1;
} else if (i <= -1.6e-246) {
tmp = a * (t * -x);
} else if (i <= 3.9e-129) {
tmp = z * (c * -b);
} else if (i <= 7.8e+155) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = t * (i * b) tmp = 0 if i <= -8.8e+163: tmp = t_2 elif i <= -3.2e-38: tmp = t_1 elif i <= -1.6e-246: tmp = a * (t * -x) elif i <= 3.9e-129: tmp = z * (c * -b) elif i <= 7.8e+155: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(t * Float64(i * b)) tmp = 0.0 if (i <= -8.8e+163) tmp = t_2; elseif (i <= -3.2e-38) tmp = t_1; elseif (i <= -1.6e-246) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 3.9e-129) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 7.8e+155) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = t * (i * b); tmp = 0.0; if (i <= -8.8e+163) tmp = t_2; elseif (i <= -3.2e-38) tmp = t_1; elseif (i <= -1.6e-246) tmp = a * (t * -x); elseif (i <= 3.9e-129) tmp = z * (c * -b); elseif (i <= 7.8e+155) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.8e+163], t$95$2, If[LessEqual[i, -3.2e-38], t$95$1, If[LessEqual[i, -1.6e-246], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.9e-129], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.8e+155], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;i \leq -8.8 \cdot 10^{+163}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{-246}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{-129}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -8.79999999999999945e163 or 7.7999999999999996e155 < i Initial program 53.5%
Taylor expanded in t around inf 62.5%
associate-*r*62.5%
neg-mul-162.5%
fma-neg64.4%
mul-1-neg64.4%
remove-double-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around 0 57.1%
if -8.79999999999999945e163 < i < -3.19999999999999977e-38 or 3.9000000000000001e-129 < i < 7.7999999999999996e155Initial program 80.2%
Taylor expanded in z around inf 44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in y around inf 36.0%
if -3.19999999999999977e-38 < i < -1.6e-246Initial program 82.4%
Taylor expanded in t around inf 49.0%
associate-*r*49.0%
neg-mul-149.0%
fma-neg49.0%
mul-1-neg49.0%
remove-double-neg49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in a around inf 37.1%
associate-*r*37.1%
neg-mul-137.1%
*-commutative37.1%
Simplified37.1%
if -1.6e-246 < i < 3.9000000000000001e-129Initial program 80.5%
Taylor expanded in z around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in y around 0 40.8%
mul-1-neg40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
Final simplification41.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* i t) (* c z)))))
(if (<= b -4.7e-48)
(+ (* j (* a c)) t_1)
(if (<= b 2.45e+95)
(+ (* x (- (* y z) (* a t))) (* j (- (* a c) (* y i))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((i * t) - (c * z));
double tmp;
if (b <= -4.7e-48) {
tmp = (j * (a * c)) + t_1;
} else if (b <= 2.45e+95) {
tmp = (x * ((y * z) - (a * t))) + (j * ((a * c) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((i * t) - (c * z))
if (b <= (-4.7d-48)) then
tmp = (j * (a * c)) + t_1
else if (b <= 2.45d+95) then
tmp = (x * ((y * z) - (a * t))) + (j * ((a * c) - (y * i)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((i * t) - (c * z));
double tmp;
if (b <= -4.7e-48) {
tmp = (j * (a * c)) + t_1;
} else if (b <= 2.45e+95) {
tmp = (x * ((y * z) - (a * t))) + (j * ((a * c) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((i * t) - (c * z)) tmp = 0 if b <= -4.7e-48: tmp = (j * (a * c)) + t_1 elif b <= 2.45e+95: tmp = (x * ((y * z) - (a * t))) + (j * ((a * c) - (y * i))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(i * t) - Float64(c * z))) tmp = 0.0 if (b <= -4.7e-48) tmp = Float64(Float64(j * Float64(a * c)) + t_1); elseif (b <= 2.45e+95) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(a * t))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((i * t) - (c * z)); tmp = 0.0; if (b <= -4.7e-48) tmp = (j * (a * c)) + t_1; elseif (b <= 2.45e+95) tmp = (x * ((y * z) - (a * t))) + (j * ((a * c) - (y * i))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.7e-48], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 2.45e+95], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t - c \cdot z\right)\\
\mathbf{if}\;b \leq -4.7 \cdot 10^{-48}:\\
\;\;\;\;j \cdot \left(a \cdot c\right) + t\_1\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{+95}:\\
\;\;\;\;x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.6999999999999998e-48Initial program 77.5%
Taylor expanded in x around 0 65.2%
Taylor expanded in a around inf 67.0%
*-commutative67.0%
Simplified67.0%
if -4.6999999999999998e-48 < b < 2.4499999999999999e95Initial program 74.0%
Taylor expanded in b around 0 73.5%
if 2.4499999999999999e95 < b Initial program 76.8%
Taylor expanded in b around inf 73.6%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* i t) (* c z)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= b -5.1e-48)
(+ (* j (* a c)) t_1)
(if (<= b 2.35e+95) (+ (* x (- (* y z) (* a t))) t_2) (+ t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((i * t) - (c * z));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (b <= -5.1e-48) {
tmp = (j * (a * c)) + t_1;
} else if (b <= 2.35e+95) {
tmp = (x * ((y * z) - (a * t))) + t_2;
} else {
tmp = t_2 + 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) :: t_2
real(8) :: tmp
t_1 = b * ((i * t) - (c * z))
t_2 = j * ((a * c) - (y * i))
if (b <= (-5.1d-48)) then
tmp = (j * (a * c)) + t_1
else if (b <= 2.35d+95) then
tmp = (x * ((y * z) - (a * t))) + t_2
else
tmp = t_2 + 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 = b * ((i * t) - (c * z));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (b <= -5.1e-48) {
tmp = (j * (a * c)) + t_1;
} else if (b <= 2.35e+95) {
tmp = (x * ((y * z) - (a * t))) + t_2;
} else {
tmp = t_2 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((i * t) - (c * z)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if b <= -5.1e-48: tmp = (j * (a * c)) + t_1 elif b <= 2.35e+95: tmp = (x * ((y * z) - (a * t))) + t_2 else: tmp = t_2 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(i * t) - Float64(c * z))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (b <= -5.1e-48) tmp = Float64(Float64(j * Float64(a * c)) + t_1); elseif (b <= 2.35e+95) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(a * t))) + t_2); else tmp = Float64(t_2 + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((i * t) - (c * z)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (b <= -5.1e-48) tmp = (j * (a * c)) + t_1; elseif (b <= 2.35e+95) tmp = (x * ((y * z) - (a * t))) + t_2; else tmp = t_2 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.1e-48], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 2.35e+95], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(i \cdot t - c \cdot z\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -5.1 \cdot 10^{-48}:\\
\;\;\;\;j \cdot \left(a \cdot c\right) + t\_1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{+95}:\\
\;\;\;\;x \cdot \left(y \cdot z - a \cdot t\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_2 + t\_1\\
\end{array}
\end{array}
if b < -5.10000000000000011e-48Initial program 77.5%
Taylor expanded in x around 0 65.2%
Taylor expanded in a around inf 67.0%
*-commutative67.0%
Simplified67.0%
if -5.10000000000000011e-48 < b < 2.34999999999999986e95Initial program 74.0%
Taylor expanded in b around 0 73.5%
if 2.34999999999999986e95 < b Initial program 76.8%
Taylor expanded in x around 0 75.7%
Final simplification72.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.7e+51)
(* y (* x z))
(if (<= z 2e+119)
(* a (- (* j c) (* x t)))
(if (<= z 7e+208)
(* c (- (* z b)))
(if (<= z 6.8e+214) (* t (* a (- x))) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.7e+51) {
tmp = y * (x * z);
} else if (z <= 2e+119) {
tmp = a * ((j * c) - (x * t));
} else if (z <= 7e+208) {
tmp = c * -(z * b);
} else if (z <= 6.8e+214) {
tmp = t * (a * -x);
} 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 (z <= (-1.7d+51)) then
tmp = y * (x * z)
else if (z <= 2d+119) then
tmp = a * ((j * c) - (x * t))
else if (z <= 7d+208) then
tmp = c * -(z * b)
else if (z <= 6.8d+214) then
tmp = t * (a * -x)
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 (z <= -1.7e+51) {
tmp = y * (x * z);
} else if (z <= 2e+119) {
tmp = a * ((j * c) - (x * t));
} else if (z <= 7e+208) {
tmp = c * -(z * b);
} else if (z <= 6.8e+214) {
tmp = t * (a * -x);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.7e+51: tmp = y * (x * z) elif z <= 2e+119: tmp = a * ((j * c) - (x * t)) elif z <= 7e+208: tmp = c * -(z * b) elif z <= 6.8e+214: tmp = t * (a * -x) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.7e+51) tmp = Float64(y * Float64(x * z)); elseif (z <= 2e+119) tmp = Float64(a * Float64(Float64(j * c) - Float64(x * t))); elseif (z <= 7e+208) tmp = Float64(c * Float64(-Float64(z * b))); elseif (z <= 6.8e+214) tmp = Float64(t * Float64(a * Float64(-x))); 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 (z <= -1.7e+51) tmp = y * (x * z); elseif (z <= 2e+119) tmp = a * ((j * c) - (x * t)); elseif (z <= 7e+208) tmp = c * -(z * b); elseif (z <= 6.8e+214) tmp = t * (a * -x); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.7e+51], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+119], N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+208], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[z, 6.8e+214], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+51}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+119}:\\
\;\;\;\;a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+208}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+214}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -1.69999999999999992e51Initial program 53.6%
+-commutative53.6%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in z around 0 69.6%
Simplified77.7%
Taylor expanded in y around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in z around inf 49.8%
*-commutative49.8%
Simplified49.8%
if -1.69999999999999992e51 < z < 1.99999999999999989e119Initial program 82.5%
Taylor expanded in a around inf 48.1%
+-commutative48.1%
mul-1-neg48.1%
unsub-neg48.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
if 1.99999999999999989e119 < z < 7.00000000000000033e208Initial program 77.6%
Taylor expanded in z around inf 62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in y around 0 46.1%
mul-1-neg46.1%
*-commutative46.1%
associate-*r*51.4%
*-commutative51.4%
distribute-rgt-neg-out51.4%
distribute-rgt-neg-in51.4%
Simplified51.4%
if 7.00000000000000033e208 < z < 6.7999999999999996e214Initial program 54.7%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
neg-mul-1100.0%
fma-neg100.0%
mul-1-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around inf 99.2%
mul-1-neg99.2%
*-commutative99.2%
distribute-rgt-neg-in99.2%
associate-*r*100.0%
Simplified100.0%
if 6.7999999999999996e214 < z Initial program 67.5%
Taylor expanded in z around inf 83.4%
*-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y around inf 67.0%
*-commutative67.0%
Simplified67.0%
Final simplification50.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -9e+58) (not (<= t 3.4e-105))) (* i (* b t)) (* c (* j a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -9e+58) || !(t <= 3.4e-105)) {
tmp = i * (b * t);
} else {
tmp = c * (j * a);
}
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 ((t <= (-9d+58)) .or. (.not. (t <= 3.4d-105))) then
tmp = i * (b * t)
else
tmp = c * (j * a)
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 ((t <= -9e+58) || !(t <= 3.4e-105)) {
tmp = i * (b * t);
} else {
tmp = c * (j * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -9e+58) or not (t <= 3.4e-105): tmp = i * (b * t) else: tmp = c * (j * a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -9e+58) || !(t <= 3.4e-105)) tmp = Float64(i * Float64(b * t)); else tmp = Float64(c * Float64(j * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -9e+58) || ~((t <= 3.4e-105))) tmp = i * (b * t); else tmp = c * (j * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -9e+58], N[Not[LessEqual[t, 3.4e-105]], $MachinePrecision]], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+58} \lor \neg \left(t \leq 3.4 \cdot 10^{-105}\right):\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot a\right)\\
\end{array}
\end{array}
if t < -8.9999999999999996e58 or 3.39999999999999992e-105 < t Initial program 72.8%
Taylor expanded in t around inf 59.5%
associate-*r*59.5%
neg-mul-159.5%
fma-neg60.2%
mul-1-neg60.2%
remove-double-neg60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in a around 0 35.4%
associate-*r*34.9%
*-commutative34.9%
associate-*r*35.3%
Simplified35.3%
if -8.9999999999999996e58 < t < 3.39999999999999992e-105Initial program 79.1%
Taylor expanded in a around inf 36.6%
+-commutative36.6%
mul-1-neg36.6%
unsub-neg36.6%
*-commutative36.6%
*-commutative36.6%
Simplified36.6%
Taylor expanded in j around inf 28.3%
associate-*r*31.9%
*-commutative31.9%
associate-*r*28.3%
Simplified28.3%
Final simplification32.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.75e+58) (* t (* i b)) (if (<= t 8.4e-109) (* c (* j a)) (* i (* b t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.75e+58) {
tmp = t * (i * b);
} else if (t <= 8.4e-109) {
tmp = c * (j * a);
} else {
tmp = i * (b * t);
}
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 (t <= (-1.75d+58)) then
tmp = t * (i * b)
else if (t <= 8.4d-109) then
tmp = c * (j * a)
else
tmp = i * (b * t)
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 (t <= -1.75e+58) {
tmp = t * (i * b);
} else if (t <= 8.4e-109) {
tmp = c * (j * a);
} else {
tmp = i * (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.75e+58: tmp = t * (i * b) elif t <= 8.4e-109: tmp = c * (j * a) else: tmp = i * (b * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.75e+58) tmp = Float64(t * Float64(i * b)); elseif (t <= 8.4e-109) tmp = Float64(c * Float64(j * a)); else tmp = Float64(i * Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.75e+58) tmp = t * (i * b); elseif (t <= 8.4e-109) tmp = c * (j * a); else tmp = i * (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.75e+58], N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.4e-109], N[(c * N[(j * a), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{+58}:\\
\;\;\;\;t \cdot \left(i \cdot b\right)\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{-109}:\\
\;\;\;\;c \cdot \left(j \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if t < -1.7499999999999999e58Initial program 71.6%
Taylor expanded in t around inf 61.0%
associate-*r*61.0%
neg-mul-161.0%
fma-neg61.0%
mul-1-neg61.0%
remove-double-neg61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in a around 0 38.8%
if -1.7499999999999999e58 < t < 8.39999999999999984e-109Initial program 79.1%
Taylor expanded in a around inf 36.6%
+-commutative36.6%
mul-1-neg36.6%
unsub-neg36.6%
*-commutative36.6%
*-commutative36.6%
Simplified36.6%
Taylor expanded in j around inf 28.3%
associate-*r*31.9%
*-commutative31.9%
associate-*r*28.3%
Simplified28.3%
if 8.39999999999999984e-109 < t Initial program 73.4%
Taylor expanded in t around inf 58.8%
associate-*r*58.8%
neg-mul-158.8%
fma-neg59.8%
mul-1-neg59.8%
remove-double-neg59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in a around 0 32.0%
associate-*r*32.9%
*-commutative32.9%
associate-*r*34.4%
Simplified34.4%
Final simplification32.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x 1.65e-162) (* a (* j c)) (* c (* j a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 1.65e-162) {
tmp = a * (j * c);
} else {
tmp = c * (j * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= 1.65d-162) then
tmp = a * (j * c)
else
tmp = c * (j * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 1.65e-162) {
tmp = a * (j * c);
} else {
tmp = c * (j * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= 1.65e-162: tmp = a * (j * c) else: tmp = c * (j * a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 1.65e-162) tmp = Float64(a * Float64(j * c)); else tmp = Float64(c * Float64(j * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= 1.65e-162) tmp = a * (j * c); else tmp = c * (j * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 1.65e-162], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.65 \cdot 10^{-162}:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot a\right)\\
\end{array}
\end{array}
if x < 1.65000000000000007e-162Initial program 71.2%
Taylor expanded in a around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
*-commutative39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in j around inf 23.5%
if 1.65000000000000007e-162 < x Initial program 82.4%
Taylor expanded in a around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in j around inf 13.8%
associate-*r*19.9%
*-commutative19.9%
associate-*r*18.8%
Simplified18.8%
Final simplification21.7%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* j c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (j * c);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (j * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (j * c);
}
def code(x, y, z, t, a, b, c, i, j): return a * (j * c)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(j * c)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (j * c); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(j \cdot c\right)
\end{array}
Initial program 75.4%
Taylor expanded in a around inf 40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
*-commutative40.9%
*-commutative40.9%
Simplified40.9%
Taylor expanded in j around inf 19.9%
Final simplification19.9%
(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 2024046
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))