
(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 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (- (* a c) (* y i))))
(if (<= (+ (+ t_1 (* b (- (* t i) (* z c)))) (* j t_2)) INFINITY)
(fma b (fma i t (* z (- c))) (fma j t_2 t_1))
(cbrt (pow (* a (- (* c j) (* x t))) 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 = x * ((y * z) - (t * a));
double t_2 = (a * c) - (y * i);
double tmp;
if (((t_1 + (b * ((t * i) - (z * c)))) + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(b, fma(i, t, (z * -c)), fma(j, t_2, t_1));
} else {
tmp = cbrt(pow((a * ((c * j) - (x * t))), 3.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * t_2)) <= Inf) tmp = fma(b, fma(i, t, Float64(z * Float64(-c))), fma(j, t_2, t_1)); else tmp = cbrt((Float64(a * Float64(Float64(c * j) - Float64(x * t))) ^ 3.0)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * N[(i * t + N[(z * (-c)), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2 + t$95$1), $MachinePrecision]), $MachinePrecision], N[Power[N[Power[N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;\left(t_1 + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot t_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(b, \mathsf{fma}\left(i, t, z \cdot \left(-c\right)\right), \mathsf{fma}\left(j, t_2, t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(a \cdot \left(c \cdot j - x \cdot t\right)\right)}^{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 89.0%
Taylor expanded in x around 0 89.0%
*-commutative89.0%
cancel-sign-sub-inv89.0%
*-commutative89.0%
+-commutative89.0%
distribute-rgt-neg-out89.0%
*-commutative89.0%
distribute-rgt-neg-in89.0%
fma-udef89.0%
Simplified89.0%
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 a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
add-cbrt-cube61.0%
pow361.0%
*-commutative61.0%
Applied egg-rr61.0%
Final simplification82.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(cbrt (pow (* a (- (* c j) (* x t))) 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 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
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 = cbrt(pow((a * ((c * j) - (x * t))), 3.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) 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 = cbrt((Float64(a * Float64(Float64(c * j) - Float64(x * t))) ^ 3.0)); 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[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $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[Power[N[Power[N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\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}:\\
\;\;\;\;\sqrt[3]{{\left(a \cdot \left(c \cdot j - x \cdot t\right)\right)}^{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 89.0%
+-commutative89.0%
fma-def89.0%
*-commutative89.0%
sub-neg89.0%
sub-neg89.0%
*-commutative89.0%
Simplified89.0%
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 a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
add-cbrt-cube61.0%
pow361.0%
*-commutative61.0%
Applied egg-rr61.0%
Final simplification82.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(* a (- (* c j) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
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 = a * ((c * j) - (x * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) 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(a * Float64(Float64(c * j) - Float64(x * t))); 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[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\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}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 89.0%
+-commutative89.0%
fma-def89.0%
*-commutative89.0%
sub-neg89.0%
sub-neg89.0%
*-commutative89.0%
Simplified89.0%
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 a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
Final simplification81.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* c j) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 89.0%
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 a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
Final simplification81.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.8e+118)
t_2
(if (<= b -7.8e+39)
t_1
(if (<= b -3e-41)
(* i (* j (- y)))
(if (<= b 9e-182)
t_1
(if (<= b 3.5e-56)
(* x (* y z))
(if (<= b 2.75e+16)
t_1
(if (<= b 6.6e+65)
t_2
(if (<= b 2.7e+115)
t_1
(if (<= b 2.4e+178) (* 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 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e+118) {
tmp = t_2;
} else if (b <= -7.8e+39) {
tmp = t_1;
} else if (b <= -3e-41) {
tmp = i * (j * -y);
} else if (b <= 9e-182) {
tmp = t_1;
} else if (b <= 3.5e-56) {
tmp = x * (y * z);
} else if (b <= 2.75e+16) {
tmp = t_1;
} else if (b <= 6.6e+65) {
tmp = t_2;
} else if (b <= 2.7e+115) {
tmp = t_1;
} else if (b <= 2.4e+178) {
tmp = 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 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.8d+118)) then
tmp = t_2
else if (b <= (-7.8d+39)) then
tmp = t_1
else if (b <= (-3d-41)) then
tmp = i * (j * -y)
else if (b <= 9d-182) then
tmp = t_1
else if (b <= 3.5d-56) then
tmp = x * (y * z)
else if (b <= 2.75d+16) then
tmp = t_1
else if (b <= 6.6d+65) then
tmp = t_2
else if (b <= 2.7d+115) then
tmp = t_1
else if (b <= 2.4d+178) then
tmp = 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 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e+118) {
tmp = t_2;
} else if (b <= -7.8e+39) {
tmp = t_1;
} else if (b <= -3e-41) {
tmp = i * (j * -y);
} else if (b <= 9e-182) {
tmp = t_1;
} else if (b <= 3.5e-56) {
tmp = x * (y * z);
} else if (b <= 2.75e+16) {
tmp = t_1;
} else if (b <= 6.6e+65) {
tmp = t_2;
} else if (b <= 2.7e+115) {
tmp = t_1;
} else if (b <= 2.4e+178) {
tmp = c * (z * -b);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.8e+118: tmp = t_2 elif b <= -7.8e+39: tmp = t_1 elif b <= -3e-41: tmp = i * (j * -y) elif b <= 9e-182: tmp = t_1 elif b <= 3.5e-56: tmp = x * (y * z) elif b <= 2.75e+16: tmp = t_1 elif b <= 6.6e+65: tmp = t_2 elif b <= 2.7e+115: tmp = t_1 elif b <= 2.4e+178: tmp = c * (z * -b) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e+118) tmp = t_2; elseif (b <= -7.8e+39) tmp = t_1; elseif (b <= -3e-41) tmp = Float64(i * Float64(j * Float64(-y))); elseif (b <= 9e-182) tmp = t_1; elseif (b <= 3.5e-56) tmp = Float64(x * Float64(y * z)); elseif (b <= 2.75e+16) tmp = t_1; elseif (b <= 6.6e+65) tmp = t_2; elseif (b <= 2.7e+115) tmp = t_1; elseif (b <= 2.4e+178) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.8e+118) tmp = t_2; elseif (b <= -7.8e+39) tmp = t_1; elseif (b <= -3e-41) tmp = i * (j * -y); elseif (b <= 9e-182) tmp = t_1; elseif (b <= 3.5e-56) tmp = x * (y * z); elseif (b <= 2.75e+16) tmp = t_1; elseif (b <= 6.6e+65) tmp = t_2; elseif (b <= 2.7e+115) tmp = t_1; elseif (b <= 2.4e+178) tmp = 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+118], t$95$2, If[LessEqual[b, -7.8e+39], t$95$1, If[LessEqual[b, -3e-41], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-182], t$95$1, If[LessEqual[b, 3.5e-56], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.75e+16], t$95$1, If[LessEqual[b, 6.6e+65], t$95$2, If[LessEqual[b, 2.7e+115], t$95$1, If[LessEqual[b, 2.4e+178], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -7.8 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-41}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-182}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 2.75 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{+65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+178}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -5.80000000000000032e118 or 2.75e16 < b < 6.60000000000000046e65 or 2.4e178 < b Initial program 74.3%
Taylor expanded in b around inf 77.5%
if -5.80000000000000032e118 < b < -7.8000000000000002e39 or -2.99999999999999989e-41 < b < 8.9999999999999998e-182 or 3.4999999999999998e-56 < b < 2.75e16 or 6.60000000000000046e65 < b < 2.70000000000000004e115Initial program 63.0%
Taylor expanded in a around inf 58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
if -7.8000000000000002e39 < b < -2.99999999999999989e-41Initial program 77.6%
Taylor expanded in y around inf 65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in z around 0 48.1%
associate-*r*48.1%
neg-mul-148.1%
Simplified48.1%
if 8.9999999999999998e-182 < b < 3.4999999999999998e-56Initial program 85.7%
Taylor expanded in x around inf 58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in z around inf 48.0%
*-commutative48.0%
Simplified48.0%
if 2.70000000000000004e115 < b < 2.4e178Initial program 58.1%
Taylor expanded in x around 0 42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around inf 42.9%
associate-*r*42.9%
neg-mul-142.9%
*-commutative42.9%
Simplified42.9%
distribute-lft-neg-out42.9%
add-sqr-sqrt42.7%
sqrt-unprod35.0%
sqr-neg35.0%
sqrt-unprod0.0%
add-sqr-sqrt25.4%
associate-*r*25.4%
add-sqr-sqrt0.0%
sqrt-unprod43.0%
sqr-neg43.0%
sqrt-unprod58.3%
add-sqr-sqrt58.6%
Applied egg-rr58.6%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* y i) (* a c))))
(t_2 (- (* x (- (* y z) (* t a))) t_1))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -7.2e+120)
t_3
(if (<= b 2.4e+37)
t_2
(if (<= b 4.7e+138) (- t_3 t_1) (if (<= b 1.1e+172) t_2 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 = j * ((y * i) - (a * c));
double t_2 = (x * ((y * z) - (t * a))) - t_1;
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7.2e+120) {
tmp = t_3;
} else if (b <= 2.4e+37) {
tmp = t_2;
} else if (b <= 4.7e+138) {
tmp = t_3 - t_1;
} else if (b <= 1.1e+172) {
tmp = t_2;
} 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 = j * ((y * i) - (a * c))
t_2 = (x * ((y * z) - (t * a))) - t_1
t_3 = b * ((t * i) - (z * c))
if (b <= (-7.2d+120)) then
tmp = t_3
else if (b <= 2.4d+37) then
tmp = t_2
else if (b <= 4.7d+138) then
tmp = t_3 - t_1
else if (b <= 1.1d+172) then
tmp = t_2
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 = j * ((y * i) - (a * c));
double t_2 = (x * ((y * z) - (t * a))) - t_1;
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7.2e+120) {
tmp = t_3;
} else if (b <= 2.4e+37) {
tmp = t_2;
} else if (b <= 4.7e+138) {
tmp = t_3 - t_1;
} else if (b <= 1.1e+172) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((y * i) - (a * c)) t_2 = (x * ((y * z) - (t * a))) - t_1 t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -7.2e+120: tmp = t_3 elif b <= 2.4e+37: tmp = t_2 elif b <= 4.7e+138: tmp = t_3 - t_1 elif b <= 1.1e+172: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(y * i) - Float64(a * c))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.2e+120) tmp = t_3; elseif (b <= 2.4e+37) tmp = t_2; elseif (b <= 4.7e+138) tmp = Float64(t_3 - t_1); elseif (b <= 1.1e+172) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((y * i) - (a * c)); t_2 = (x * ((y * z) - (t * a))) - t_1; t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -7.2e+120) tmp = t_3; elseif (b <= 2.4e+37) tmp = t_2; elseif (b <= 4.7e+138) tmp = t_3 - t_1; elseif (b <= 1.1e+172) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+120], t$95$3, If[LessEqual[b, 2.4e+37], t$95$2, If[LessEqual[b, 4.7e+138], N[(t$95$3 - t$95$1), $MachinePrecision], If[LessEqual[b, 1.1e+172], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot i - a \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) - t_1\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+120}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{+138}:\\
\;\;\;\;t_3 - t_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+172}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -7.20000000000000031e120 or 1.1000000000000001e172 < b Initial program 73.9%
Taylor expanded in b around inf 82.0%
if -7.20000000000000031e120 < b < 2.4e37 or 4.6999999999999998e138 < b < 1.1000000000000001e172Initial program 68.3%
Taylor expanded in b around 0 74.8%
if 2.4e37 < b < 4.6999999999999998e138Initial program 64.1%
Taylor expanded in x around 0 69.3%
*-commutative69.3%
Simplified69.3%
Final simplification76.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.8e+118)
t_2
(if (<= b -6.6e+38)
t_1
(if (<= b -3e-41)
(* i (* j (- y)))
(if (<= b 7e-182)
t_1
(if (<= b 3.9e-56)
(* x (* y z))
(if (<= b 5e+16)
t_1
(if (or (<= b 6.9e+65) (not (<= b 1e+172)))
t_2
(* c (- (* a j) (* 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 * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e+118) {
tmp = t_2;
} else if (b <= -6.6e+38) {
tmp = t_1;
} else if (b <= -3e-41) {
tmp = i * (j * -y);
} else if (b <= 7e-182) {
tmp = t_1;
} else if (b <= 3.9e-56) {
tmp = x * (y * z);
} else if (b <= 5e+16) {
tmp = t_1;
} else if ((b <= 6.9e+65) || !(b <= 1e+172)) {
tmp = t_2;
} else {
tmp = c * ((a * j) - (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) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.8d+118)) then
tmp = t_2
else if (b <= (-6.6d+38)) then
tmp = t_1
else if (b <= (-3d-41)) then
tmp = i * (j * -y)
else if (b <= 7d-182) then
tmp = t_1
else if (b <= 3.9d-56) then
tmp = x * (y * z)
else if (b <= 5d+16) then
tmp = t_1
else if ((b <= 6.9d+65) .or. (.not. (b <= 1d+172))) then
tmp = t_2
else
tmp = c * ((a * j) - (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 * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.8e+118) {
tmp = t_2;
} else if (b <= -6.6e+38) {
tmp = t_1;
} else if (b <= -3e-41) {
tmp = i * (j * -y);
} else if (b <= 7e-182) {
tmp = t_1;
} else if (b <= 3.9e-56) {
tmp = x * (y * z);
} else if (b <= 5e+16) {
tmp = t_1;
} else if ((b <= 6.9e+65) || !(b <= 1e+172)) {
tmp = t_2;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.8e+118: tmp = t_2 elif b <= -6.6e+38: tmp = t_1 elif b <= -3e-41: tmp = i * (j * -y) elif b <= 7e-182: tmp = t_1 elif b <= 3.9e-56: tmp = x * (y * z) elif b <= 5e+16: tmp = t_1 elif (b <= 6.9e+65) or not (b <= 1e+172): tmp = t_2 else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e+118) tmp = t_2; elseif (b <= -6.6e+38) tmp = t_1; elseif (b <= -3e-41) tmp = Float64(i * Float64(j * Float64(-y))); elseif (b <= 7e-182) tmp = t_1; elseif (b <= 3.9e-56) tmp = Float64(x * Float64(y * z)); elseif (b <= 5e+16) tmp = t_1; elseif ((b <= 6.9e+65) || !(b <= 1e+172)) tmp = t_2; else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.8e+118) tmp = t_2; elseif (b <= -6.6e+38) tmp = t_1; elseif (b <= -3e-41) tmp = i * (j * -y); elseif (b <= 7e-182) tmp = t_1; elseif (b <= 3.9e-56) tmp = x * (y * z); elseif (b <= 5e+16) tmp = t_1; elseif ((b <= 6.9e+65) || ~((b <= 1e+172))) tmp = t_2; else tmp = c * ((a * j) - (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[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+118], t$95$2, If[LessEqual[b, -6.6e+38], t$95$1, If[LessEqual[b, -3e-41], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-182], t$95$1, If[LessEqual[b, 3.9e-56], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e+16], t$95$1, If[Or[LessEqual[b, 6.9e+65], N[Not[LessEqual[b, 1e+172]], $MachinePrecision]], t$95$2, N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-41}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-182}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.9 \cdot 10^{+65} \lor \neg \left(b \leq 10^{+172}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if b < -5.80000000000000032e118 or 5e16 < b < 6.9e65 or 1.0000000000000001e172 < b Initial program 73.7%
Taylor expanded in b around inf 78.1%
if -5.80000000000000032e118 < b < -6.5999999999999998e38 or -2.99999999999999989e-41 < b < 6.99999999999999966e-182 or 3.9e-56 < b < 5e16Initial program 62.8%
Taylor expanded in a around inf 57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
if -6.5999999999999998e38 < b < -2.99999999999999989e-41Initial program 77.6%
Taylor expanded in y around inf 65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in z around 0 48.1%
associate-*r*48.1%
neg-mul-148.1%
Simplified48.1%
if 6.99999999999999966e-182 < b < 3.9e-56Initial program 85.7%
Taylor expanded in x around inf 58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in z around inf 48.0%
*-commutative48.0%
Simplified48.0%
if 6.9e65 < b < 1.0000000000000001e172Initial program 62.2%
Taylor expanded in c around inf 56.1%
*-commutative56.1%
Simplified56.1%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -3e+95)
t_3
(if (<= b -1.32e-41)
t_1
(if (<= b -1.4e-296)
(* a (- (* c j) (* x t)))
(if (<= b 4.8e-226)
t_2
(if (<= b 5e-194)
t_1
(if (<= b 3.1e-31)
t_2
(if (<= b 1.95e+68)
t_1
(if (<= b 9.5e+171) (* c (- (* a j) (* z b))) 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 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3e+95) {
tmp = t_3;
} else if (b <= -1.32e-41) {
tmp = t_1;
} else if (b <= -1.4e-296) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 4.8e-226) {
tmp = t_2;
} else if (b <= 5e-194) {
tmp = t_1;
} else if (b <= 3.1e-31) {
tmp = t_2;
} else if (b <= 1.95e+68) {
tmp = t_1;
} else if (b <= 9.5e+171) {
tmp = c * ((a * j) - (z * b));
} 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 = j * ((a * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = b * ((t * i) - (z * c))
if (b <= (-3d+95)) then
tmp = t_3
else if (b <= (-1.32d-41)) then
tmp = t_1
else if (b <= (-1.4d-296)) then
tmp = a * ((c * j) - (x * t))
else if (b <= 4.8d-226) then
tmp = t_2
else if (b <= 5d-194) then
tmp = t_1
else if (b <= 3.1d-31) then
tmp = t_2
else if (b <= 1.95d+68) then
tmp = t_1
else if (b <= 9.5d+171) then
tmp = c * ((a * j) - (z * b))
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 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3e+95) {
tmp = t_3;
} else if (b <= -1.32e-41) {
tmp = t_1;
} else if (b <= -1.4e-296) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 4.8e-226) {
tmp = t_2;
} else if (b <= 5e-194) {
tmp = t_1;
} else if (b <= 3.1e-31) {
tmp = t_2;
} else if (b <= 1.95e+68) {
tmp = t_1;
} else if (b <= 9.5e+171) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3e+95: tmp = t_3 elif b <= -1.32e-41: tmp = t_1 elif b <= -1.4e-296: tmp = a * ((c * j) - (x * t)) elif b <= 4.8e-226: tmp = t_2 elif b <= 5e-194: tmp = t_1 elif b <= 3.1e-31: tmp = t_2 elif b <= 1.95e+68: tmp = t_1 elif b <= 9.5e+171: tmp = c * ((a * j) - (z * b)) else: tmp = t_3 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(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3e+95) tmp = t_3; elseif (b <= -1.32e-41) tmp = t_1; elseif (b <= -1.4e-296) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 4.8e-226) tmp = t_2; elseif (b <= 5e-194) tmp = t_1; elseif (b <= 3.1e-31) tmp = t_2; elseif (b <= 1.95e+68) tmp = t_1; elseif (b <= 9.5e+171) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_3; 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 = x * ((y * z) - (t * a)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3e+95) tmp = t_3; elseif (b <= -1.32e-41) tmp = t_1; elseif (b <= -1.4e-296) tmp = a * ((c * j) - (x * t)); elseif (b <= 4.8e-226) tmp = t_2; elseif (b <= 5e-194) tmp = t_1; elseif (b <= 3.1e-31) tmp = t_2; elseif (b <= 1.95e+68) tmp = t_1; elseif (b <= 9.5e+171) tmp = c * ((a * j) - (z * b)); else tmp = t_3; 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3e+95], t$95$3, If[LessEqual[b, -1.32e-41], t$95$1, If[LessEqual[b, -1.4e-296], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.8e-226], t$95$2, If[LessEqual[b, 5e-194], t$95$1, If[LessEqual[b, 3.1e-31], t$95$2, If[LessEqual[b, 1.95e+68], t$95$1, If[LessEqual[b, 9.5e+171], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3 \cdot 10^{+95}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{-41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-296}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-226}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+171}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.99999999999999991e95 or 9.49999999999999924e171 < b Initial program 74.7%
Taylor expanded in b around inf 79.6%
if -2.99999999999999991e95 < b < -1.3200000000000001e-41 or 4.7999999999999999e-226 < b < 5.0000000000000002e-194 or 3.1e-31 < b < 1.95000000000000009e68Initial program 64.6%
Taylor expanded in j around inf 58.2%
*-commutative58.2%
Simplified58.2%
if -1.3200000000000001e-41 < b < -1.4e-296Initial program 63.9%
Taylor expanded in a around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
Simplified64.3%
if -1.4e-296 < b < 4.7999999999999999e-226 or 5.0000000000000002e-194 < b < 3.1e-31Initial program 74.9%
Taylor expanded in x around inf 64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
if 1.95000000000000009e68 < b < 9.49999999999999924e171Initial program 59.7%
Taylor expanded in c around inf 53.2%
*-commutative53.2%
Simplified53.2%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* b (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= a -2.9e+108)
t_3
(if (<= a -8e-67)
t_2
(if (<= a -9e-196)
t_1
(if (<= a -3.8e-238)
(* t (- (* b i) (* x a)))
(if (<= a 1.2e+61)
t_1
(if (<= a 3.9e+107)
t_2
(if (<= a 3.8e+119) (* b (- (* t i) (* z c))) 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 = (y * ((x * z) - (i * j))) - (b * (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.9e+108) {
tmp = t_3;
} else if (a <= -8e-67) {
tmp = t_2;
} else if (a <= -9e-196) {
tmp = t_1;
} else if (a <= -3.8e-238) {
tmp = t * ((b * i) - (x * a));
} else if (a <= 1.2e+61) {
tmp = t_1;
} else if (a <= 3.9e+107) {
tmp = t_2;
} else if (a <= 3.8e+119) {
tmp = b * ((t * i) - (z * c));
} 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 = (y * ((x * z) - (i * j))) - (b * (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = a * ((c * j) - (x * t))
if (a <= (-2.9d+108)) then
tmp = t_3
else if (a <= (-8d-67)) then
tmp = t_2
else if (a <= (-9d-196)) then
tmp = t_1
else if (a <= (-3.8d-238)) then
tmp = t * ((b * i) - (x * a))
else if (a <= 1.2d+61) then
tmp = t_1
else if (a <= 3.9d+107) then
tmp = t_2
else if (a <= 3.8d+119) then
tmp = b * ((t * i) - (z * c))
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 = (y * ((x * z) - (i * j))) - (b * (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.9e+108) {
tmp = t_3;
} else if (a <= -8e-67) {
tmp = t_2;
} else if (a <= -9e-196) {
tmp = t_1;
} else if (a <= -3.8e-238) {
tmp = t * ((b * i) - (x * a));
} else if (a <= 1.2e+61) {
tmp = t_1;
} else if (a <= 3.9e+107) {
tmp = t_2;
} else if (a <= 3.8e+119) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (b * (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.9e+108: tmp = t_3 elif a <= -8e-67: tmp = t_2 elif a <= -9e-196: tmp = t_1 elif a <= -3.8e-238: tmp = t * ((b * i) - (x * a)) elif a <= 1.2e+61: tmp = t_1 elif a <= 3.9e+107: tmp = t_2 elif a <= 3.8e+119: tmp = b * ((t * i) - (z * c)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.9e+108) tmp = t_3; elseif (a <= -8e-67) tmp = t_2; elseif (a <= -9e-196) tmp = t_1; elseif (a <= -3.8e-238) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (a <= 1.2e+61) tmp = t_1; elseif (a <= 3.9e+107) tmp = t_2; elseif (a <= 3.8e+119) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (b * (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.9e+108) tmp = t_3; elseif (a <= -8e-67) tmp = t_2; elseif (a <= -9e-196) tmp = t_1; elseif (a <= -3.8e-238) tmp = t * ((b * i) - (x * a)); elseif (a <= 1.2e+61) tmp = t_1; elseif (a <= 3.9e+107) tmp = t_2; elseif (a <= 3.8e+119) tmp = b * ((t * i) - (z * c)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e+108], t$95$3, If[LessEqual[a, -8e-67], t$95$2, If[LessEqual[a, -9e-196], t$95$1, If[LessEqual[a, -3.8e-238], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e+61], t$95$1, If[LessEqual[a, 3.9e+107], t$95$2, If[LessEqual[a, 3.8e+119], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{+108}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-67}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-238}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+119}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -2.90000000000000007e108 or 3.7999999999999999e119 < a Initial program 49.7%
Taylor expanded in a around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
Simplified72.9%
if -2.90000000000000007e108 < a < -7.99999999999999954e-67 or 1.1999999999999999e61 < a < 3.8999999999999998e107Initial program 71.3%
Taylor expanded in x around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -7.99999999999999954e-67 < a < -9e-196 or -3.7999999999999997e-238 < a < 1.1999999999999999e61Initial program 78.6%
Taylor expanded in i around -inf 81.5%
Taylor expanded in y around inf 70.0%
neg-mul-170.0%
+-commutative70.0%
sub-neg70.0%
Simplified70.0%
if -9e-196 < a < -3.7999999999999997e-238Initial program 82.2%
prod-diff82.2%
*-commutative82.2%
fma-neg82.2%
distribute-rgt-in73.1%
*-commutative73.1%
*-commutative73.1%
fma-neg73.1%
distribute-rgt-neg-in73.1%
*-commutative73.1%
Applied egg-rr73.1%
Taylor expanded in x around 0 73.1%
Taylor expanded in t around inf 82.7%
+-commutative82.7%
*-commutative82.7%
distribute-rgt1-in82.7%
metadata-eval82.7%
mul0-lft82.7%
associate-*r*82.7%
neg-mul-182.7%
distribute-rgt-out82.7%
sub-neg82.7%
neg-sub082.7%
distribute-rgt-neg-in82.7%
neg-sub082.7%
neg-mul-182.7%
associate--r+82.7%
+-commutative82.7%
associate--r+82.7%
neg-sub082.7%
remove-double-neg82.7%
*-commutative82.7%
Simplified82.7%
if 3.8999999999999998e107 < a < 3.7999999999999999e119Initial program 100.0%
Taylor expanded in b around inf 100.0%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.05e+119)
t_1
(if (<= b 2.45e-30)
(- (* x (- (* y z) (* t a))) (* j (- (* y i) (* a c))))
(if (<= b 7.2e+152)
(+ (* z (- (* x y) (* b c))) (* i (- (* t b) (* y j))))
(if (<= b 8.6e+171) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.05e+119) {
tmp = t_1;
} else if (b <= 2.45e-30) {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)));
} else if (b <= 7.2e+152) {
tmp = (z * ((x * y) - (b * c))) + (i * ((t * b) - (y * j)));
} else if (b <= 8.6e+171) {
tmp = c * ((a * j) - (z * b));
} 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 * ((t * i) - (z * c))
if (b <= (-3.05d+119)) then
tmp = t_1
else if (b <= 2.45d-30) then
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)))
else if (b <= 7.2d+152) then
tmp = (z * ((x * y) - (b * c))) + (i * ((t * b) - (y * j)))
else if (b <= 8.6d+171) then
tmp = c * ((a * j) - (z * b))
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 * ((t * i) - (z * c));
double tmp;
if (b <= -3.05e+119) {
tmp = t_1;
} else if (b <= 2.45e-30) {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)));
} else if (b <= 7.2e+152) {
tmp = (z * ((x * y) - (b * c))) + (i * ((t * b) - (y * j)));
} else if (b <= 8.6e+171) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.05e+119: tmp = t_1 elif b <= 2.45e-30: tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c))) elif b <= 7.2e+152: tmp = (z * ((x * y) - (b * c))) + (i * ((t * b) - (y * j))) elif b <= 8.6e+171: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.05e+119) tmp = t_1; elseif (b <= 2.45e-30) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (b <= 7.2e+152) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(i * Float64(Float64(t * b) - Float64(y * j)))); elseif (b <= 8.6e+171) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.05e+119) tmp = t_1; elseif (b <= 2.45e-30) tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c))); elseif (b <= 7.2e+152) tmp = (z * ((x * y) - (b * c))) + (i * ((t * b) - (y * j))); elseif (b <= 8.6e+171) tmp = c * ((a * j) - (z * b)); 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.05e+119], t$95$1, If[LessEqual[b, 2.45e-30], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e+152], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e+171], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.05 \cdot 10^{+119}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{-30}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+152}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{+171}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.05e119 or 8.60000000000000016e171 < b Initial program 73.9%
Taylor expanded in b around inf 82.0%
if -3.05e119 < b < 2.44999999999999985e-30Initial program 68.5%
Taylor expanded in b around 0 75.3%
if 2.44999999999999985e-30 < b < 7.1999999999999998e152Initial program 70.0%
Taylor expanded in i around -inf 72.9%
Taylor expanded in a around 0 69.4%
Taylor expanded in z around 0 75.4%
Taylor expanded in x around 0 69.4%
+-commutative69.4%
*-commutative69.4%
associate-+r+69.4%
*-commutative69.4%
+-commutative69.4%
associate-*r*75.4%
mul-1-neg75.4%
associate-*r*72.4%
distribute-lft-neg-in72.4%
distribute-rgt-in75.4%
sub-neg75.4%
mul-1-neg75.4%
*-commutative75.4%
distribute-rgt-neg-in75.4%
Simplified75.4%
if 7.1999999999999998e152 < b < 8.60000000000000016e171Initial program 40.0%
Taylor expanded in c around inf 79.7%
*-commutative79.7%
Simplified79.7%
Final simplification77.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -6.5e+60)
t_2
(if (<= z -2.3e-21)
t_1
(if (<= z 9.6e-291)
(* i (- (* t b) (* y j)))
(if (<= z 2e-35)
(* t (- (* b i) (* x a)))
(if (<= z 5.7e+16)
(* j (- (* a c) (* y i)))
(if (<= z 3.2e+89)
(* x (- (* y z) (* t a)))
(if (<= z 5.1e+113) 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 = a * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -6.5e+60) {
tmp = t_2;
} else if (z <= -2.3e-21) {
tmp = t_1;
} else if (z <= 9.6e-291) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 2e-35) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 5.7e+16) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 3.2e+89) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 5.1e+113) {
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 = a * ((c * j) - (x * t))
t_2 = z * ((x * y) - (b * c))
if (z <= (-6.5d+60)) then
tmp = t_2
else if (z <= (-2.3d-21)) then
tmp = t_1
else if (z <= 9.6d-291) then
tmp = i * ((t * b) - (y * j))
else if (z <= 2d-35) then
tmp = t * ((b * i) - (x * a))
else if (z <= 5.7d+16) then
tmp = j * ((a * c) - (y * i))
else if (z <= 3.2d+89) then
tmp = x * ((y * z) - (t * a))
else if (z <= 5.1d+113) 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 = a * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -6.5e+60) {
tmp = t_2;
} else if (z <= -2.3e-21) {
tmp = t_1;
} else if (z <= 9.6e-291) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 2e-35) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 5.7e+16) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 3.2e+89) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 5.1e+113) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -6.5e+60: tmp = t_2 elif z <= -2.3e-21: tmp = t_1 elif z <= 9.6e-291: tmp = i * ((t * b) - (y * j)) elif z <= 2e-35: tmp = t * ((b * i) - (x * a)) elif z <= 5.7e+16: tmp = j * ((a * c) - (y * i)) elif z <= 3.2e+89: tmp = x * ((y * z) - (t * a)) elif z <= 5.1e+113: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -6.5e+60) tmp = t_2; elseif (z <= -2.3e-21) tmp = t_1; elseif (z <= 9.6e-291) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 2e-35) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= 5.7e+16) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 3.2e+89) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= 5.1e+113) 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 = a * ((c * j) - (x * t)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -6.5e+60) tmp = t_2; elseif (z <= -2.3e-21) tmp = t_1; elseif (z <= 9.6e-291) tmp = i * ((t * b) - (y * j)); elseif (z <= 2e-35) tmp = t * ((b * i) - (x * a)); elseif (z <= 5.7e+16) tmp = j * ((a * c) - (y * i)); elseif (z <= 3.2e+89) tmp = x * ((y * z) - (t * a)); elseif (z <= 5.1e+113) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+60], t$95$2, If[LessEqual[z, -2.3e-21], t$95$1, If[LessEqual[z, 9.6e-291], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-35], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.7e+16], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+89], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.1e+113], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+60}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-291}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-35}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+16}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+89}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq 5.1 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -6.49999999999999931e60 or 5.09999999999999994e113 < z Initial program 65.2%
Taylor expanded in z around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -6.49999999999999931e60 < z < -2.29999999999999999e-21 or 3.19999999999999987e89 < z < 5.09999999999999994e113Initial program 44.8%
Taylor expanded in a around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
Simplified67.3%
if -2.29999999999999999e-21 < z < 9.60000000000000049e-291Initial program 77.7%
Taylor expanded in i around -inf 81.2%
Taylor expanded in a around 0 68.4%
Taylor expanded in z around 0 61.0%
Taylor expanded in i around inf 59.4%
mul-1-neg59.4%
*-commutative59.4%
distribute-rgt-neg-in59.4%
*-commutative59.4%
Simplified59.4%
if 9.60000000000000049e-291 < z < 2.00000000000000002e-35Initial program 81.5%
prod-diff69.8%
*-commutative69.8%
fma-neg69.8%
distribute-rgt-in67.9%
*-commutative67.9%
*-commutative67.9%
fma-neg67.9%
distribute-rgt-neg-in67.9%
*-commutative67.9%
Applied egg-rr67.9%
Taylor expanded in x around 0 67.9%
Taylor expanded in t around inf 62.7%
+-commutative62.7%
*-commutative62.7%
distribute-rgt1-in62.7%
metadata-eval62.7%
mul0-lft62.7%
associate-*r*62.7%
neg-mul-162.7%
distribute-rgt-out62.7%
sub-neg62.7%
neg-sub062.7%
distribute-rgt-neg-in62.7%
neg-sub062.7%
neg-mul-162.7%
associate--r+62.7%
+-commutative62.7%
associate--r+62.7%
neg-sub062.7%
remove-double-neg62.7%
*-commutative62.7%
Simplified62.7%
if 2.00000000000000002e-35 < z < 5.7e16Initial program 66.4%
Taylor expanded in j around inf 71.5%
*-commutative71.5%
Simplified71.5%
if 5.7e16 < z < 3.19999999999999987e89Initial program 60.4%
Taylor expanded in x around inf 86.9%
*-commutative86.9%
*-commutative86.9%
Simplified86.9%
Final simplification67.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.8e+120) (not (<= b 2.3e+172))) (* b (- (* t i) (* z c))) (- (* x (- (* y z) (* t a))) (* j (- (* y i) (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.8e+120) || !(b <= 2.3e+172)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3.8d+120)) .or. (.not. (b <= 2.3d+172))) then
tmp = b * ((t * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.8e+120) || !(b <= 2.3e+172)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.8e+120) or not (b <= 2.3e+172): tmp = b * ((t * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.8e+120) || !(b <= 2.3e+172)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.8e+120) || ~((b <= 2.3e+172))) tmp = b * ((t * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.8e+120], N[Not[LessEqual[b, 2.3e+172]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+120} \lor \neg \left(b \leq 2.3 \cdot 10^{+172}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if b < -3.7999999999999998e120 or 2.3000000000000001e172 < b Initial program 73.9%
Taylor expanded in b around inf 82.0%
if -3.7999999999999998e120 < b < 2.3000000000000001e172Initial program 68.0%
Taylor expanded in b around 0 72.0%
Final simplification74.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -4.1e-199)
t_2
(if (<= a -4.6e-299)
(* y (* x z))
(if (<= a 3.2e-284)
(* i (* j (- y)))
(if (<= a 1.5e-130)
t_1
(if (<= a 2.6e-89)
(* b (* z (- c)))
(if (<= a 1.4e+18) 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);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.1e-199) {
tmp = t_2;
} else if (a <= -4.6e-299) {
tmp = y * (x * z);
} else if (a <= 3.2e-284) {
tmp = i * (j * -y);
} else if (a <= 1.5e-130) {
tmp = t_1;
} else if (a <= 2.6e-89) {
tmp = b * (z * -c);
} else if (a <= 1.4e+18) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = a * ((c * j) - (x * t))
if (a <= (-4.1d-199)) then
tmp = t_2
else if (a <= (-4.6d-299)) then
tmp = y * (x * z)
else if (a <= 3.2d-284) then
tmp = i * (j * -y)
else if (a <= 1.5d-130) then
tmp = t_1
else if (a <= 2.6d-89) then
tmp = b * (z * -c)
else if (a <= 1.4d+18) 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);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.1e-199) {
tmp = t_2;
} else if (a <= -4.6e-299) {
tmp = y * (x * z);
} else if (a <= 3.2e-284) {
tmp = i * (j * -y);
} else if (a <= 1.5e-130) {
tmp = t_1;
} else if (a <= 2.6e-89) {
tmp = b * (z * -c);
} else if (a <= 1.4e+18) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -4.1e-199: tmp = t_2 elif a <= -4.6e-299: tmp = y * (x * z) elif a <= 3.2e-284: tmp = i * (j * -y) elif a <= 1.5e-130: tmp = t_1 elif a <= 2.6e-89: tmp = b * (z * -c) elif a <= 1.4e+18: 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(y * z)) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -4.1e-199) tmp = t_2; elseif (a <= -4.6e-299) tmp = Float64(y * Float64(x * z)); elseif (a <= 3.2e-284) tmp = Float64(i * Float64(j * Float64(-y))); elseif (a <= 1.5e-130) tmp = t_1; elseif (a <= 2.6e-89) tmp = Float64(b * Float64(z * Float64(-c))); elseif (a <= 1.4e+18) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -4.1e-199) tmp = t_2; elseif (a <= -4.6e-299) tmp = y * (x * z); elseif (a <= 3.2e-284) tmp = i * (j * -y); elseif (a <= 1.5e-130) tmp = t_1; elseif (a <= 2.6e-89) tmp = b * (z * -c); elseif (a <= 1.4e+18) 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[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.1e-199], t$95$2, If[LessEqual[a, -4.6e-299], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-284], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e-130], t$95$1, If[LessEqual[a, 2.6e-89], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+18], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.1 \cdot 10^{-199}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-299}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-284}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-89}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -4.10000000000000022e-199 or 1.4e18 < a Initial program 63.5%
Taylor expanded in a around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
Simplified56.5%
if -4.10000000000000022e-199 < a < -4.6000000000000001e-299Initial program 78.0%
Taylor expanded in y around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in z around inf 53.2%
if -4.6000000000000001e-299 < a < 3.20000000000000024e-284Initial program 55.2%
Taylor expanded in y around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in z around 0 63.8%
associate-*r*63.8%
neg-mul-163.8%
Simplified63.8%
if 3.20000000000000024e-284 < a < 1.49999999999999993e-130 or 2.5999999999999999e-89 < a < 1.4e18Initial program 80.6%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in z around inf 47.1%
*-commutative47.1%
Simplified47.1%
if 1.49999999999999993e-130 < a < 2.5999999999999999e-89Initial program 100.0%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in z around inf 60.7%
associate-*r*60.7%
neg-mul-160.7%
*-commutative60.7%
Simplified60.7%
Final simplification54.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= a -3.9e+222)
(* a (* c j))
(if (<= a -1.5e-10)
(* t (* x (- a)))
(if (<= a -3.2e-298)
t_1
(if (<= a 8e-285)
(* i (* j (- y)))
(if (<= a 4.5e-131)
(* x (* y z))
(if (<= a 1.2e-88)
(* b (* z (- c)))
(if (<= a 1.65e+99) t_1 (* x (* t (- a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (a <= -3.9e+222) {
tmp = a * (c * j);
} else if (a <= -1.5e-10) {
tmp = t * (x * -a);
} else if (a <= -3.2e-298) {
tmp = t_1;
} else if (a <= 8e-285) {
tmp = i * (j * -y);
} else if (a <= 4.5e-131) {
tmp = x * (y * z);
} else if (a <= 1.2e-88) {
tmp = b * (z * -c);
} else if (a <= 1.65e+99) {
tmp = t_1;
} else {
tmp = x * (t * -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) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (a <= (-3.9d+222)) then
tmp = a * (c * j)
else if (a <= (-1.5d-10)) then
tmp = t * (x * -a)
else if (a <= (-3.2d-298)) then
tmp = t_1
else if (a <= 8d-285) then
tmp = i * (j * -y)
else if (a <= 4.5d-131) then
tmp = x * (y * z)
else if (a <= 1.2d-88) then
tmp = b * (z * -c)
else if (a <= 1.65d+99) then
tmp = t_1
else
tmp = x * (t * -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 t_1 = y * (x * z);
double tmp;
if (a <= -3.9e+222) {
tmp = a * (c * j);
} else if (a <= -1.5e-10) {
tmp = t * (x * -a);
} else if (a <= -3.2e-298) {
tmp = t_1;
} else if (a <= 8e-285) {
tmp = i * (j * -y);
} else if (a <= 4.5e-131) {
tmp = x * (y * z);
} else if (a <= 1.2e-88) {
tmp = b * (z * -c);
} else if (a <= 1.65e+99) {
tmp = t_1;
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if a <= -3.9e+222: tmp = a * (c * j) elif a <= -1.5e-10: tmp = t * (x * -a) elif a <= -3.2e-298: tmp = t_1 elif a <= 8e-285: tmp = i * (j * -y) elif a <= 4.5e-131: tmp = x * (y * z) elif a <= 1.2e-88: tmp = b * (z * -c) elif a <= 1.65e+99: tmp = t_1 else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (a <= -3.9e+222) tmp = Float64(a * Float64(c * j)); elseif (a <= -1.5e-10) tmp = Float64(t * Float64(x * Float64(-a))); elseif (a <= -3.2e-298) tmp = t_1; elseif (a <= 8e-285) tmp = Float64(i * Float64(j * Float64(-y))); elseif (a <= 4.5e-131) tmp = Float64(x * Float64(y * z)); elseif (a <= 1.2e-88) tmp = Float64(b * Float64(z * Float64(-c))); elseif (a <= 1.65e+99) tmp = t_1; else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (a <= -3.9e+222) tmp = a * (c * j); elseif (a <= -1.5e-10) tmp = t * (x * -a); elseif (a <= -3.2e-298) tmp = t_1; elseif (a <= 8e-285) tmp = i * (j * -y); elseif (a <= 4.5e-131) tmp = x * (y * z); elseif (a <= 1.2e-88) tmp = b * (z * -c); elseif (a <= 1.65e+99) tmp = t_1; else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.9e+222], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.5e-10], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-298], t$95$1, If[LessEqual[a, 8e-285], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-131], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e-88], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e+99], t$95$1, N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;a \leq -3.9 \cdot 10^{+222}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-10}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-285}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-131}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-88}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if a < -3.8999999999999999e222Initial program 36.1%
Taylor expanded in a around inf 76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in c around inf 76.9%
*-commutative76.9%
Simplified76.9%
if -3.8999999999999999e222 < a < -1.5e-10Initial program 63.0%
Taylor expanded in t around inf 63.2%
distribute-lft-out--63.2%
Simplified63.2%
Taylor expanded in a around inf 51.8%
if -1.5e-10 < a < -3.19999999999999997e-298 or 1.2e-88 < a < 1.65e99Initial program 75.3%
Taylor expanded in y around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in z around inf 37.4%
if -3.19999999999999997e-298 < a < 8.00000000000000059e-285Initial program 55.2%
Taylor expanded in y around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in z around 0 63.8%
associate-*r*63.8%
neg-mul-163.8%
Simplified63.8%
if 8.00000000000000059e-285 < a < 4.5000000000000002e-131Initial program 90.7%
Taylor expanded in x around inf 52.0%
*-commutative52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in z around inf 48.3%
*-commutative48.3%
Simplified48.3%
if 4.5000000000000002e-131 < a < 1.2e-88Initial program 100.0%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in z around inf 60.7%
associate-*r*60.7%
neg-mul-160.7%
*-commutative60.7%
Simplified60.7%
if 1.65e99 < a Initial program 55.5%
Taylor expanded in x around inf 51.6%
*-commutative51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in z around 0 48.9%
mul-1-neg48.9%
*-commutative48.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
Final simplification47.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2.9e+107)
t_1
(if (<= a -7e-85)
(* x (- (* y z) (* t a)))
(if (<= a -2.4e-191)
(* j (- (* a c) (* y i)))
(if (<= a -2.5e-238)
(* t (- (* b i) (* x a)))
(if (<= a 2.55e+40) (* y (- (* x z) (* i j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.9e+107) {
tmp = t_1;
} else if (a <= -7e-85) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -2.4e-191) {
tmp = j * ((a * c) - (y * i));
} else if (a <= -2.5e-238) {
tmp = t * ((b * i) - (x * a));
} else if (a <= 2.55e+40) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-2.9d+107)) then
tmp = t_1
else if (a <= (-7d-85)) then
tmp = x * ((y * z) - (t * a))
else if (a <= (-2.4d-191)) then
tmp = j * ((a * c) - (y * i))
else if (a <= (-2.5d-238)) then
tmp = t * ((b * i) - (x * a))
else if (a <= 2.55d+40) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.9e+107) {
tmp = t_1;
} else if (a <= -7e-85) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -2.4e-191) {
tmp = j * ((a * c) - (y * i));
} else if (a <= -2.5e-238) {
tmp = t * ((b * i) - (x * a));
} else if (a <= 2.55e+40) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.9e+107: tmp = t_1 elif a <= -7e-85: tmp = x * ((y * z) - (t * a)) elif a <= -2.4e-191: tmp = j * ((a * c) - (y * i)) elif a <= -2.5e-238: tmp = t * ((b * i) - (x * a)) elif a <= 2.55e+40: tmp = y * ((x * z) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.9e+107) tmp = t_1; elseif (a <= -7e-85) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (a <= -2.4e-191) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= -2.5e-238) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (a <= 2.55e+40) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.9e+107) tmp = t_1; elseif (a <= -7e-85) tmp = x * ((y * z) - (t * a)); elseif (a <= -2.4e-191) tmp = j * ((a * c) - (y * i)); elseif (a <= -2.5e-238) tmp = t * ((b * i) - (x * a)); elseif (a <= 2.55e+40) tmp = y * ((x * z) - (i * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e+107], t$95$1, If[LessEqual[a, -7e-85], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.4e-191], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.5e-238], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.55e+40], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{+107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-85}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-191}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-238}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{+40}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.89999999999999988e107 or 2.54999999999999979e40 < a Initial program 57.2%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
Simplified67.8%
if -2.89999999999999988e107 < a < -6.99999999999999956e-85Initial program 67.8%
Taylor expanded in x around inf 68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
if -6.99999999999999956e-85 < a < -2.3999999999999999e-191Initial program 79.1%
Taylor expanded in j around inf 59.1%
*-commutative59.1%
Simplified59.1%
if -2.3999999999999999e-191 < a < -2.5e-238Initial program 82.2%
prod-diff82.2%
*-commutative82.2%
fma-neg82.2%
distribute-rgt-in73.1%
*-commutative73.1%
*-commutative73.1%
fma-neg73.1%
distribute-rgt-neg-in73.1%
*-commutative73.1%
Applied egg-rr73.1%
Taylor expanded in x around 0 73.1%
Taylor expanded in t around inf 82.7%
+-commutative82.7%
*-commutative82.7%
distribute-rgt1-in82.7%
metadata-eval82.7%
mul0-lft82.7%
associate-*r*82.7%
neg-mul-182.7%
distribute-rgt-out82.7%
sub-neg82.7%
neg-sub082.7%
distribute-rgt-neg-in82.7%
neg-sub082.7%
neg-mul-182.7%
associate--r+82.7%
+-commutative82.7%
associate--r+82.7%
neg-sub082.7%
remove-double-neg82.7%
*-commutative82.7%
Simplified82.7%
if -2.5e-238 < a < 2.54999999999999979e40Initial program 78.7%
Taylor expanded in y around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
*-commutative60.7%
Simplified60.7%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -5.5e+95)
(* b (* t i))
(if (<= b -1.3e-42)
(* i (* j (- y)))
(if (<= b -1.75e-99)
(* a (* x (- t)))
(if (<= b -2.6e-246)
(* a (* c j))
(if (<= b 1.45e-248)
(* x (* t (- a)))
(if (<= b 6.9e+37) (* x (* y z)) (* c (* z (- b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.5e+95) {
tmp = b * (t * i);
} else if (b <= -1.3e-42) {
tmp = i * (j * -y);
} else if (b <= -1.75e-99) {
tmp = a * (x * -t);
} else if (b <= -2.6e-246) {
tmp = a * (c * j);
} else if (b <= 1.45e-248) {
tmp = x * (t * -a);
} else if (b <= 6.9e+37) {
tmp = x * (y * z);
} 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) :: tmp
if (b <= (-5.5d+95)) then
tmp = b * (t * i)
else if (b <= (-1.3d-42)) then
tmp = i * (j * -y)
else if (b <= (-1.75d-99)) then
tmp = a * (x * -t)
else if (b <= (-2.6d-246)) then
tmp = a * (c * j)
else if (b <= 1.45d-248) then
tmp = x * (t * -a)
else if (b <= 6.9d+37) then
tmp = x * (y * z)
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 tmp;
if (b <= -5.5e+95) {
tmp = b * (t * i);
} else if (b <= -1.3e-42) {
tmp = i * (j * -y);
} else if (b <= -1.75e-99) {
tmp = a * (x * -t);
} else if (b <= -2.6e-246) {
tmp = a * (c * j);
} else if (b <= 1.45e-248) {
tmp = x * (t * -a);
} else if (b <= 6.9e+37) {
tmp = x * (y * z);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.5e+95: tmp = b * (t * i) elif b <= -1.3e-42: tmp = i * (j * -y) elif b <= -1.75e-99: tmp = a * (x * -t) elif b <= -2.6e-246: tmp = a * (c * j) elif b <= 1.45e-248: tmp = x * (t * -a) elif b <= 6.9e+37: tmp = x * (y * z) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.5e+95) tmp = Float64(b * Float64(t * i)); elseif (b <= -1.3e-42) tmp = Float64(i * Float64(j * Float64(-y))); elseif (b <= -1.75e-99) tmp = Float64(a * Float64(x * Float64(-t))); elseif (b <= -2.6e-246) tmp = Float64(a * Float64(c * j)); elseif (b <= 1.45e-248) tmp = Float64(x * Float64(t * Float64(-a))); elseif (b <= 6.9e+37) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -5.5e+95) tmp = b * (t * i); elseif (b <= -1.3e-42) tmp = i * (j * -y); elseif (b <= -1.75e-99) tmp = a * (x * -t); elseif (b <= -2.6e-246) tmp = a * (c * j); elseif (b <= 1.45e-248) tmp = x * (t * -a); elseif (b <= 6.9e+37) tmp = x * (y * z); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.5e+95], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.3e-42], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-99], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.6e-246], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-248], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.9e+37], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-42}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-99}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-246}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-248}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 6.9 \cdot 10^{+37}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if b < -5.4999999999999997e95Initial program 76.7%
Taylor expanded in x around 0 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in j around 0 84.0%
neg-mul-184.0%
distribute-lft-neg-in84.0%
sub-neg84.0%
+-commutative84.0%
distribute-lft-in81.7%
distribute-rgt-neg-in81.7%
neg-mul-181.7%
associate-*r*81.7%
mul-1-neg81.7%
remove-double-neg81.7%
distribute-lft-neg-in81.7%
distribute-rgt-neg-in81.7%
distribute-lft-in84.0%
sub-neg84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in i around inf 56.4%
if -5.4999999999999997e95 < b < -1.3e-42Initial program 64.0%
Taylor expanded in y around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around 0 44.6%
associate-*r*44.6%
neg-mul-144.6%
Simplified44.6%
if -1.3e-42 < b < -1.7499999999999999e-99Initial program 78.3%
Taylor expanded in a around inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
Simplified78.5%
Taylor expanded in c around 0 65.4%
neg-mul-165.4%
distribute-rgt-neg-in65.4%
Simplified65.4%
if -1.7499999999999999e-99 < b < -2.5999999999999999e-246Initial program 58.8%
Taylor expanded in a around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
Taylor expanded in c around inf 44.2%
*-commutative44.2%
Simplified44.2%
if -2.5999999999999999e-246 < b < 1.4500000000000001e-248Initial program 62.9%
Taylor expanded in x around inf 60.4%
*-commutative60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in z around 0 43.3%
mul-1-neg43.3%
*-commutative43.3%
distribute-rgt-neg-in43.3%
Simplified43.3%
if 1.4500000000000001e-248 < b < 6.8999999999999996e37Initial program 75.6%
Taylor expanded in x around inf 55.0%
*-commutative55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in z around inf 40.7%
*-commutative40.7%
Simplified40.7%
if 6.8999999999999996e37 < b Initial program 65.9%
Taylor expanded in x around 0 56.4%
*-commutative56.4%
Simplified56.4%
Taylor expanded in z around inf 40.5%
associate-*r*40.5%
neg-mul-140.5%
*-commutative40.5%
Simplified40.5%
distribute-lft-neg-out40.5%
add-sqr-sqrt40.4%
sqrt-unprod37.8%
sqr-neg37.8%
sqrt-unprod0.0%
add-sqr-sqrt13.2%
associate-*r*13.2%
add-sqr-sqrt0.0%
sqrt-unprod41.8%
sqr-neg41.8%
sqrt-unprod43.5%
add-sqr-sqrt43.6%
Applied egg-rr43.6%
Final simplification45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.5e+152)
t_1
(if (<= j -8e-148)
(* a (- (* c j) (* x t)))
(if (<= j -3.2e-216)
(* x (* y z))
(if (<= j 2.9e+15) (* b (- (* t i) (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.5e+152) {
tmp = t_1;
} else if (j <= -8e-148) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -3.2e-216) {
tmp = x * (y * z);
} else if (j <= 2.9e+15) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-1.5d+152)) then
tmp = t_1
else if (j <= (-8d-148)) then
tmp = a * ((c * j) - (x * t))
else if (j <= (-3.2d-216)) then
tmp = x * (y * z)
else if (j <= 2.9d+15) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.5e+152) {
tmp = t_1;
} else if (j <= -8e-148) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -3.2e-216) {
tmp = x * (y * z);
} else if (j <= 2.9e+15) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.5e+152: tmp = t_1 elif j <= -8e-148: tmp = a * ((c * j) - (x * t)) elif j <= -3.2e-216: tmp = x * (y * z) elif j <= 2.9e+15: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.5e+152) tmp = t_1; elseif (j <= -8e-148) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= -3.2e-216) tmp = Float64(x * Float64(y * z)); elseif (j <= 2.9e+15) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.5e+152) tmp = t_1; elseif (j <= -8e-148) tmp = a * ((c * j) - (x * t)); elseif (j <= -3.2e-216) tmp = x * (y * z); elseif (j <= 2.9e+15) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.5e+152], t$95$1, If[LessEqual[j, -8e-148], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.2e-216], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e+15], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -8 \cdot 10^{-148}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{-216}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{+15}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -1.49999999999999995e152 or 2.9e15 < j Initial program 67.1%
Taylor expanded in j around inf 77.7%
*-commutative77.7%
Simplified77.7%
if -1.49999999999999995e152 < j < -7.99999999999999949e-148Initial program 65.3%
Taylor expanded in a around inf 45.5%
+-commutative45.5%
mul-1-neg45.5%
unsub-neg45.5%
Simplified45.5%
if -7.99999999999999949e-148 < j < -3.20000000000000026e-216Initial program 57.4%
Taylor expanded in x around inf 71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in z around inf 65.1%
*-commutative65.1%
Simplified65.1%
if -3.20000000000000026e-216 < j < 2.9e15Initial program 75.5%
Taylor expanded in b around inf 47.3%
Final simplification57.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -4.4e+173)
t_2
(if (<= j -6.2e-148)
t_1
(if (<= j -8.6e-215) (* x (* y z)) (if (<= j 1.96e-56) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.4e+173) {
tmp = t_2;
} else if (j <= -6.2e-148) {
tmp = t_1;
} else if (j <= -8.6e-215) {
tmp = x * (y * z);
} else if (j <= 1.96e-56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-4.4d+173)) then
tmp = t_2
else if (j <= (-6.2d-148)) then
tmp = t_1
else if (j <= (-8.6d-215)) then
tmp = x * (y * z)
else if (j <= 1.96d-56) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.4e+173) {
tmp = t_2;
} else if (j <= -6.2e-148) {
tmp = t_1;
} else if (j <= -8.6e-215) {
tmp = x * (y * z);
} else if (j <= 1.96e-56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -4.4e+173: tmp = t_2 elif j <= -6.2e-148: tmp = t_1 elif j <= -8.6e-215: tmp = x * (y * z) elif j <= 1.96e-56: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.4e+173) tmp = t_2; elseif (j <= -6.2e-148) tmp = t_1; elseif (j <= -8.6e-215) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.96e-56) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -4.4e+173) tmp = t_2; elseif (j <= -6.2e-148) tmp = t_1; elseif (j <= -8.6e-215) tmp = x * (y * z); elseif (j <= 1.96e-56) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.4e+173], t$95$2, If[LessEqual[j, -6.2e-148], t$95$1, If[LessEqual[j, -8.6e-215], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.96e-56], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.4 \cdot 10^{+173}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -6.2 \cdot 10^{-148}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -8.6 \cdot 10^{-215}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.96 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -4.4e173 or 1.95999999999999995e-56 < j Initial program 69.3%
Taylor expanded in j around inf 71.4%
*-commutative71.4%
Simplified71.4%
if -4.4e173 < j < -6.2000000000000003e-148 or -8.60000000000000049e-215 < j < 1.95999999999999995e-56Initial program 71.0%
prod-diff66.0%
*-commutative66.0%
fma-neg66.0%
distribute-rgt-in64.6%
*-commutative64.6%
*-commutative64.6%
fma-neg64.6%
distribute-rgt-neg-in64.6%
*-commutative64.6%
Applied egg-rr64.6%
Taylor expanded in x around 0 64.6%
Taylor expanded in t around inf 50.5%
+-commutative50.5%
*-commutative50.5%
distribute-rgt1-in50.5%
metadata-eval50.5%
mul0-lft50.5%
associate-*r*50.5%
neg-mul-150.5%
distribute-rgt-out50.5%
sub-neg50.5%
neg-sub050.5%
distribute-rgt-neg-in50.5%
neg-sub050.5%
neg-mul-150.5%
associate--r+50.5%
+-commutative50.5%
associate--r+50.5%
neg-sub050.5%
remove-double-neg50.5%
*-commutative50.5%
Simplified50.5%
if -6.2000000000000003e-148 < j < -8.60000000000000049e-215Initial program 54.3%
Taylor expanded in x around inf 69.9%
*-commutative69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in z around inf 69.7%
*-commutative69.7%
Simplified69.7%
Final simplification59.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= a -6.3e+221)
(* a (* c j))
(if (<= a -6.2e-12)
t_1
(if (<= a -2.2e-191)
(* j (* a c))
(if (<= a -3.8e-242)
(* t (* b i))
(if (<= a 9.6e+98) (* y (* x z)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (a <= -6.3e+221) {
tmp = a * (c * j);
} else if (a <= -6.2e-12) {
tmp = t_1;
} else if (a <= -2.2e-191) {
tmp = j * (a * c);
} else if (a <= -3.8e-242) {
tmp = t * (b * i);
} else if (a <= 9.6e+98) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (x * -t)
if (a <= (-6.3d+221)) then
tmp = a * (c * j)
else if (a <= (-6.2d-12)) then
tmp = t_1
else if (a <= (-2.2d-191)) then
tmp = j * (a * c)
else if (a <= (-3.8d-242)) then
tmp = t * (b * i)
else if (a <= 9.6d+98) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (a <= -6.3e+221) {
tmp = a * (c * j);
} else if (a <= -6.2e-12) {
tmp = t_1;
} else if (a <= -2.2e-191) {
tmp = j * (a * c);
} else if (a <= -3.8e-242) {
tmp = t * (b * i);
} else if (a <= 9.6e+98) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if a <= -6.3e+221: tmp = a * (c * j) elif a <= -6.2e-12: tmp = t_1 elif a <= -2.2e-191: tmp = j * (a * c) elif a <= -3.8e-242: tmp = t * (b * i) elif a <= 9.6e+98: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (a <= -6.3e+221) tmp = Float64(a * Float64(c * j)); elseif (a <= -6.2e-12) tmp = t_1; elseif (a <= -2.2e-191) tmp = Float64(j * Float64(a * c)); elseif (a <= -3.8e-242) tmp = Float64(t * Float64(b * i)); elseif (a <= 9.6e+98) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); tmp = 0.0; if (a <= -6.3e+221) tmp = a * (c * j); elseif (a <= -6.2e-12) tmp = t_1; elseif (a <= -2.2e-191) tmp = j * (a * c); elseif (a <= -3.8e-242) tmp = t * (b * i); elseif (a <= 9.6e+98) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.3e+221], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.2e-12], t$95$1, If[LessEqual[a, -2.2e-191], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e-242], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.6e+98], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -6.3 \cdot 10^{+221}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.2 \cdot 10^{-191}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-242}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{+98}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -6.2999999999999997e221Initial program 36.1%
Taylor expanded in a around inf 76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in c around inf 76.9%
*-commutative76.9%
Simplified76.9%
if -6.2999999999999997e221 < a < -6.2000000000000002e-12 or 9.5999999999999995e98 < a Initial program 59.9%
Taylor expanded in a around inf 63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
Simplified63.3%
Taylor expanded in c around 0 43.6%
neg-mul-143.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
if -6.2000000000000002e-12 < a < -2.19999999999999998e-191Initial program 74.5%
Taylor expanded in a around inf 24.7%
+-commutative24.7%
mul-1-neg24.7%
unsub-neg24.7%
Simplified24.7%
Taylor expanded in c around inf 17.7%
*-commutative17.7%
Simplified17.7%
Taylor expanded in a around 0 17.7%
*-commutative17.7%
*-commutative17.7%
associate-*l*24.4%
*-commutative24.4%
Simplified24.4%
if -2.19999999999999998e-191 < a < -3.8000000000000002e-242Initial program 83.5%
Taylor expanded in x around 0 64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in j around 0 51.7%
neg-mul-151.7%
distribute-lft-neg-in51.7%
sub-neg51.7%
+-commutative51.7%
distribute-lft-in51.7%
distribute-rgt-neg-in51.7%
neg-mul-151.7%
associate-*r*51.7%
mul-1-neg51.7%
remove-double-neg51.7%
distribute-lft-neg-in51.7%
distribute-rgt-neg-in51.7%
distribute-lft-in51.7%
sub-neg51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in i around inf 52.2%
*-commutative52.2%
*-commutative52.2%
associate-*l*60.3%
Simplified60.3%
if -3.8000000000000002e-242 < a < 9.5999999999999995e98Initial program 79.2%
Taylor expanded in y around inf 58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in z around inf 39.2%
Final simplification42.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.3e+226)
(* a (* c j))
(if (<= a -1.25e-9)
(* a (* x (- t)))
(if (<= a -4.2e-191)
(* j (* a c))
(if (<= a -2.95e-241)
(* t (* b i))
(if (<= a 8.4e+93) (* y (* x z)) (* x (* t (- a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.3e+226) {
tmp = a * (c * j);
} else if (a <= -1.25e-9) {
tmp = a * (x * -t);
} else if (a <= -4.2e-191) {
tmp = j * (a * c);
} else if (a <= -2.95e-241) {
tmp = t * (b * i);
} else if (a <= 8.4e+93) {
tmp = y * (x * z);
} else {
tmp = x * (t * -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 (a <= (-1.3d+226)) then
tmp = a * (c * j)
else if (a <= (-1.25d-9)) then
tmp = a * (x * -t)
else if (a <= (-4.2d-191)) then
tmp = j * (a * c)
else if (a <= (-2.95d-241)) then
tmp = t * (b * i)
else if (a <= 8.4d+93) then
tmp = y * (x * z)
else
tmp = x * (t * -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 (a <= -1.3e+226) {
tmp = a * (c * j);
} else if (a <= -1.25e-9) {
tmp = a * (x * -t);
} else if (a <= -4.2e-191) {
tmp = j * (a * c);
} else if (a <= -2.95e-241) {
tmp = t * (b * i);
} else if (a <= 8.4e+93) {
tmp = y * (x * z);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.3e+226: tmp = a * (c * j) elif a <= -1.25e-9: tmp = a * (x * -t) elif a <= -4.2e-191: tmp = j * (a * c) elif a <= -2.95e-241: tmp = t * (b * i) elif a <= 8.4e+93: tmp = y * (x * z) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.3e+226) tmp = Float64(a * Float64(c * j)); elseif (a <= -1.25e-9) tmp = Float64(a * Float64(x * Float64(-t))); elseif (a <= -4.2e-191) tmp = Float64(j * Float64(a * c)); elseif (a <= -2.95e-241) tmp = Float64(t * Float64(b * i)); elseif (a <= 8.4e+93) tmp = Float64(y * Float64(x * z)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.3e+226) tmp = a * (c * j); elseif (a <= -1.25e-9) tmp = a * (x * -t); elseif (a <= -4.2e-191) tmp = j * (a * c); elseif (a <= -2.95e-241) tmp = t * (b * i); elseif (a <= 8.4e+93) tmp = y * (x * z); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.3e+226], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.25e-9], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.2e-191], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.95e-241], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.4e+93], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+226}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-191}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq -2.95 \cdot 10^{-241}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 8.4 \cdot 10^{+93}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if a < -1.3000000000000001e226Initial program 36.1%
Taylor expanded in a around inf 76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in c around inf 76.9%
*-commutative76.9%
Simplified76.9%
if -1.3000000000000001e226 < a < -1.25e-9Initial program 63.0%
Taylor expanded in a around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
Simplified58.4%
Taylor expanded in c around 0 43.4%
neg-mul-143.4%
distribute-rgt-neg-in43.4%
Simplified43.4%
if -1.25e-9 < a < -4.19999999999999971e-191Initial program 74.5%
Taylor expanded in a around inf 24.7%
+-commutative24.7%
mul-1-neg24.7%
unsub-neg24.7%
Simplified24.7%
Taylor expanded in c around inf 17.7%
*-commutative17.7%
Simplified17.7%
Taylor expanded in a around 0 17.7%
*-commutative17.7%
*-commutative17.7%
associate-*l*24.4%
*-commutative24.4%
Simplified24.4%
if -4.19999999999999971e-191 < a < -2.9499999999999999e-241Initial program 83.5%
Taylor expanded in x around 0 64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in j around 0 51.7%
neg-mul-151.7%
distribute-lft-neg-in51.7%
sub-neg51.7%
+-commutative51.7%
distribute-lft-in51.7%
distribute-rgt-neg-in51.7%
neg-mul-151.7%
associate-*r*51.7%
mul-1-neg51.7%
remove-double-neg51.7%
distribute-lft-neg-in51.7%
distribute-rgt-neg-in51.7%
distribute-lft-in51.7%
sub-neg51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in i around inf 52.2%
*-commutative52.2%
*-commutative52.2%
associate-*l*60.3%
Simplified60.3%
if -2.9499999999999999e-241 < a < 8.39999999999999921e93Initial program 79.2%
Taylor expanded in y around inf 58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in z around inf 39.2%
if 8.39999999999999921e93 < a Initial program 55.5%
Taylor expanded in x around inf 51.6%
*-commutative51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in z around 0 48.9%
mul-1-neg48.9%
*-commutative48.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.7e+84)
(* a (* c j))
(if (<= j -7.5e-55)
(* x (* t (- a)))
(if (<= j 5e+47)
(* x (* y z))
(if (<= j 8e+235) (* y (* j (- i))) (* j (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.7e+84) {
tmp = a * (c * j);
} else if (j <= -7.5e-55) {
tmp = x * (t * -a);
} else if (j <= 5e+47) {
tmp = x * (y * z);
} else if (j <= 8e+235) {
tmp = y * (j * -i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-2.7d+84)) then
tmp = a * (c * j)
else if (j <= (-7.5d-55)) then
tmp = x * (t * -a)
else if (j <= 5d+47) then
tmp = x * (y * z)
else if (j <= 8d+235) then
tmp = y * (j * -i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.7e+84) {
tmp = a * (c * j);
} else if (j <= -7.5e-55) {
tmp = x * (t * -a);
} else if (j <= 5e+47) {
tmp = x * (y * z);
} else if (j <= 8e+235) {
tmp = y * (j * -i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.7e+84: tmp = a * (c * j) elif j <= -7.5e-55: tmp = x * (t * -a) elif j <= 5e+47: tmp = x * (y * z) elif j <= 8e+235: tmp = y * (j * -i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.7e+84) tmp = Float64(a * Float64(c * j)); elseif (j <= -7.5e-55) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 5e+47) tmp = Float64(x * Float64(y * z)); elseif (j <= 8e+235) tmp = Float64(y * Float64(j * Float64(-i))); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.7e+84) tmp = a * (c * j); elseif (j <= -7.5e-55) tmp = x * (t * -a); elseif (j <= 5e+47) tmp = x * (y * z); elseif (j <= 8e+235) tmp = y * (j * -i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.7e+84], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.5e-55], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e+47], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e+235], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.7 \cdot 10^{+84}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-55}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{+235}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -2.7e84Initial program 55.2%
Taylor expanded in a around inf 56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
Taylor expanded in c around inf 48.9%
*-commutative48.9%
Simplified48.9%
if -2.7e84 < j < -7.50000000000000023e-55Initial program 64.1%
Taylor expanded in x around inf 53.0%
*-commutative53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in z around 0 37.8%
mul-1-neg37.8%
*-commutative37.8%
distribute-rgt-neg-in37.8%
Simplified37.8%
if -7.50000000000000023e-55 < j < 5.00000000000000022e47Initial program 72.5%
Taylor expanded in x around inf 52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 33.8%
*-commutative33.8%
Simplified33.8%
if 5.00000000000000022e47 < j < 8.0000000000000004e235Initial program 76.6%
Taylor expanded in y around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in z around 0 59.2%
neg-mul-159.2%
distribute-rgt-neg-in59.2%
Simplified59.2%
if 8.0000000000000004e235 < j Initial program 76.1%
Taylor expanded in a around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
Taylor expanded in c around inf 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in a around 0 46.1%
*-commutative46.1%
*-commutative46.1%
associate-*l*57.5%
*-commutative57.5%
Simplified57.5%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.9e+260)
(* y (* x z))
(if (<= z -2.1e+166)
(* c (* z (- b)))
(if (or (<= z -3.65e+56) (not (<= z 4.8e-80)))
(* x (* y z))
(* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.9e+260) {
tmp = y * (x * z);
} else if (z <= -2.1e+166) {
tmp = c * (z * -b);
} else if ((z <= -3.65e+56) || !(z <= 4.8e-80)) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.9d+260)) then
tmp = y * (x * z)
else if (z <= (-2.1d+166)) then
tmp = c * (z * -b)
else if ((z <= (-3.65d+56)) .or. (.not. (z <= 4.8d-80))) then
tmp = x * (y * z)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.9e+260) {
tmp = y * (x * z);
} else if (z <= -2.1e+166) {
tmp = c * (z * -b);
} else if ((z <= -3.65e+56) || !(z <= 4.8e-80)) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.9e+260: tmp = y * (x * z) elif z <= -2.1e+166: tmp = c * (z * -b) elif (z <= -3.65e+56) or not (z <= 4.8e-80): tmp = x * (y * z) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.9e+260) tmp = Float64(y * Float64(x * z)); elseif (z <= -2.1e+166) tmp = Float64(c * Float64(z * Float64(-b))); elseif ((z <= -3.65e+56) || !(z <= 4.8e-80)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.9e+260) tmp = y * (x * z); elseif (z <= -2.1e+166) tmp = c * (z * -b); elseif ((z <= -3.65e+56) || ~((z <= 4.8e-80))) tmp = x * (y * z); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.9e+260], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.1e+166], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -3.65e+56], N[Not[LessEqual[z, 4.8e-80]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+260}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+166}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -3.65 \cdot 10^{+56} \lor \neg \left(z \leq 4.8 \cdot 10^{-80}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -1.8999999999999999e260Initial program 61.1%
Taylor expanded in y around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in z around inf 78.6%
if -1.8999999999999999e260 < z < -2.1000000000000001e166Initial program 61.4%
Taylor expanded in x around 0 62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in z around inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
*-commutative70.0%
Simplified70.0%
distribute-lft-neg-out70.0%
add-sqr-sqrt46.4%
sqrt-unprod39.1%
sqr-neg39.1%
sqrt-unprod0.0%
add-sqr-sqrt1.1%
associate-*r*1.1%
add-sqr-sqrt0.0%
sqrt-unprod39.1%
sqr-neg39.1%
sqrt-unprod46.4%
add-sqr-sqrt70.3%
Applied egg-rr70.3%
if -2.1000000000000001e166 < z < -3.65e56 or 4.7999999999999998e-80 < z Initial program 66.9%
Taylor expanded in x around inf 53.9%
*-commutative53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in z around inf 38.6%
*-commutative38.6%
Simplified38.6%
if -3.65e56 < z < 4.7999999999999998e-80Initial program 74.6%
Taylor expanded in x around 0 58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in j around 0 37.1%
neg-mul-137.1%
distribute-lft-neg-in37.1%
sub-neg37.1%
+-commutative37.1%
distribute-lft-in36.2%
distribute-rgt-neg-in36.2%
neg-mul-136.2%
associate-*r*36.2%
mul-1-neg36.2%
remove-double-neg36.2%
distribute-lft-neg-in36.2%
distribute-rgt-neg-in36.2%
distribute-lft-in37.1%
sub-neg37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in i around inf 32.8%
*-commutative32.8%
*-commutative32.8%
associate-*l*34.2%
Simplified34.2%
Final simplification41.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.75e+83) (not (<= c 4.05e+65))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.75e+83) || !(c <= 4.05e+65)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.75d+83)) .or. (.not. (c <= 4.05d+65))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.75e+83) || !(c <= 4.05e+65)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.75e+83) or not (c <= 4.05e+65): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.75e+83) || !(c <= 4.05e+65)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.75e+83) || ~((c <= 4.05e+65))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.75e+83], N[Not[LessEqual[c, 4.05e+65]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.75 \cdot 10^{+83} \lor \neg \left(c \leq 4.05 \cdot 10^{+65}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -2.7499999999999998e83 or 4.05e65 < c Initial program 60.9%
Taylor expanded in a around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
Taylor expanded in c around inf 42.1%
*-commutative42.1%
Simplified42.1%
if -2.7499999999999998e83 < c < 4.05e65Initial program 75.6%
Taylor expanded in x around 0 48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in j around 0 34.3%
neg-mul-134.3%
distribute-lft-neg-in34.3%
sub-neg34.3%
+-commutative34.3%
distribute-lft-in34.3%
distribute-rgt-neg-in34.3%
neg-mul-134.3%
associate-*r*34.3%
mul-1-neg34.3%
remove-double-neg34.3%
distribute-lft-neg-in34.3%
distribute-rgt-neg-in34.3%
distribute-lft-in34.3%
sub-neg34.3%
*-commutative34.3%
Simplified34.3%
Taylor expanded in i around inf 23.4%
Final simplification31.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -1.4e+51) (not (<= z 3e-79))) (* x (* y z)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.4e+51) || !(z <= 3e-79)) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-1.4d+51)) .or. (.not. (z <= 3d-79))) then
tmp = x * (y * z)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.4e+51) || !(z <= 3e-79)) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -1.4e+51) or not (z <= 3e-79): tmp = x * (y * z) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -1.4e+51) || !(z <= 3e-79)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -1.4e+51) || ~((z <= 3e-79))) tmp = x * (y * z); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.4e+51], N[Not[LessEqual[z, 3e-79]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+51} \lor \neg \left(z \leq 3 \cdot 10^{-79}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -1.40000000000000002e51 or 3e-79 < z Initial program 65.7%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in z around inf 40.4%
*-commutative40.4%
Simplified40.4%
if -1.40000000000000002e51 < z < 3e-79Initial program 74.6%
Taylor expanded in x around 0 58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in j around 0 37.1%
neg-mul-137.1%
distribute-lft-neg-in37.1%
sub-neg37.1%
+-commutative37.1%
distribute-lft-in36.2%
distribute-rgt-neg-in36.2%
neg-mul-136.2%
associate-*r*36.2%
mul-1-neg36.2%
remove-double-neg36.2%
distribute-lft-neg-in36.2%
distribute-rgt-neg-in36.2%
distribute-lft-in37.1%
sub-neg37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in i around inf 32.8%
*-commutative32.8%
*-commutative32.8%
associate-*l*34.2%
Simplified34.2%
Final simplification37.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -2.02e+80) (* j (* a c)) (if (<= c 3.8e+64) (* b (* t i)) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.02e+80) {
tmp = j * (a * c);
} else if (c <= 3.8e+64) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-2.02d+80)) then
tmp = j * (a * c)
else if (c <= 3.8d+64) then
tmp = b * (t * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.02e+80) {
tmp = j * (a * c);
} else if (c <= 3.8e+64) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.02e+80: tmp = j * (a * c) elif c <= 3.8e+64: tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.02e+80) tmp = Float64(j * Float64(a * c)); elseif (c <= 3.8e+64) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.02e+80) tmp = j * (a * c); elseif (c <= 3.8e+64) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.02e+80], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+64], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.02 \cdot 10^{+80}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{+64}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -2.0199999999999999e80Initial program 51.9%
Taylor expanded in a around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Taylor expanded in c around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in a around 0 40.5%
*-commutative40.5%
*-commutative40.5%
associate-*l*42.2%
*-commutative42.2%
Simplified42.2%
if -2.0199999999999999e80 < c < 3.8000000000000001e64Initial program 75.6%
Taylor expanded in x around 0 48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in j around 0 34.3%
neg-mul-134.3%
distribute-lft-neg-in34.3%
sub-neg34.3%
+-commutative34.3%
distribute-lft-in34.3%
distribute-rgt-neg-in34.3%
neg-mul-134.3%
associate-*r*34.3%
mul-1-neg34.3%
remove-double-neg34.3%
distribute-lft-neg-in34.3%
distribute-rgt-neg-in34.3%
distribute-lft-in34.3%
sub-neg34.3%
*-commutative34.3%
Simplified34.3%
Taylor expanded in i around inf 23.4%
if 3.8000000000000001e64 < c Initial program 68.6%
Taylor expanded in a around inf 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Taylor expanded in c around inf 43.5%
*-commutative43.5%
Simplified43.5%
Final simplification31.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -1.9e-67) (* a (* c j)) (if (<= j 1.05e-53) (* t (* b i)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.9e-67) {
tmp = a * (c * j);
} else if (j <= 1.05e-53) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.9d-67)) then
tmp = a * (c * j)
else if (j <= 1.05d-53) then
tmp = t * (b * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.9e-67) {
tmp = a * (c * j);
} else if (j <= 1.05e-53) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.9e-67: tmp = a * (c * j) elif j <= 1.05e-53: tmp = t * (b * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.9e-67) tmp = Float64(a * Float64(c * j)); elseif (j <= 1.05e-53) tmp = Float64(t * Float64(b * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.9e-67) tmp = a * (c * j); elseif (j <= 1.05e-53) tmp = t * (b * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.9e-67], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.05e-53], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.9 \cdot 10^{-67}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-53}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -1.89999999999999994e-67Initial program 60.3%
Taylor expanded in a around inf 52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
Simplified52.0%
Taylor expanded in c around inf 33.8%
*-commutative33.8%
Simplified33.8%
if -1.89999999999999994e-67 < j < 1.04999999999999989e-53Initial program 69.5%
Taylor expanded in x around 0 42.2%
*-commutative42.2%
Simplified42.2%
Taylor expanded in j around 0 43.4%
neg-mul-143.4%
distribute-lft-neg-in43.4%
sub-neg43.4%
+-commutative43.4%
distribute-lft-in42.5%
distribute-rgt-neg-in42.5%
neg-mul-142.5%
associate-*r*42.5%
mul-1-neg42.5%
remove-double-neg42.5%
distribute-lft-neg-in42.5%
distribute-rgt-neg-in42.5%
distribute-lft-in43.4%
sub-neg43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in i around inf 24.8%
*-commutative24.8%
*-commutative24.8%
associate-*l*27.8%
Simplified27.8%
if 1.04999999999999989e-53 < j Initial program 79.1%
Taylor expanded in a around inf 46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
Simplified46.5%
Taylor expanded in c around inf 35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in a around 0 35.4%
*-commutative35.4%
*-commutative35.4%
associate-*l*36.5%
*-commutative36.5%
Simplified36.5%
Final simplification32.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -2.3e+52) (* y (* x z)) (if (<= z 3e-79) (* t (* b i)) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.3e+52) {
tmp = y * (x * z);
} else if (z <= 3e-79) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.3d+52)) then
tmp = y * (x * z)
else if (z <= 3d-79) then
tmp = t * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.3e+52) {
tmp = y * (x * z);
} else if (z <= 3e-79) {
tmp = t * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.3e+52: tmp = y * (x * z) elif z <= 3e-79: tmp = t * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.3e+52) tmp = Float64(y * Float64(x * z)); elseif (z <= 3e-79) tmp = Float64(t * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.3e+52) tmp = y * (x * z); elseif (z <= 3e-79) tmp = t * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.3e+52], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-79], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+52}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-79}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -2.3e52Initial program 69.0%
Taylor expanded in y around inf 50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in z around inf 50.5%
if -2.3e52 < z < 3e-79Initial program 74.6%
Taylor expanded in x around 0 58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in j around 0 37.1%
neg-mul-137.1%
distribute-lft-neg-in37.1%
sub-neg37.1%
+-commutative37.1%
distribute-lft-in36.2%
distribute-rgt-neg-in36.2%
neg-mul-136.2%
associate-*r*36.2%
mul-1-neg36.2%
remove-double-neg36.2%
distribute-lft-neg-in36.2%
distribute-rgt-neg-in36.2%
distribute-lft-in37.1%
sub-neg37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in i around inf 32.8%
*-commutative32.8%
*-commutative32.8%
associate-*l*34.2%
Simplified34.2%
if 3e-79 < z Initial program 63.7%
Taylor expanded in x around inf 53.4%
*-commutative53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in z around inf 35.3%
*-commutative35.3%
Simplified35.3%
Final simplification38.1%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 69.5%
Taylor expanded in a around inf 40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
Simplified40.7%
Taylor expanded in c around inf 21.9%
*-commutative21.9%
Simplified21.9%
Final simplification21.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 2024024
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(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)))))