
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
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 k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 31 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
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 k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (fma x (* 18.0 (* y z)) (* -4.0 a))))
(if (<= t -1.5e+112)
(fma j (* k -27.0) (fma x (* i -4.0) (fma t t_1 (* b c))))
(if (<= t 2.5e-129)
(-
(-
(+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0))))
(* 4.0 (* t a)))
(* k (* j 27.0)))
(fma t t_1 (fma b c (fma x (* i -4.0) (* k (* j -27.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = fma(x, (18.0 * (y * z)), (-4.0 * a));
double tmp;
if (t <= -1.5e+112) {
tmp = fma(j, (k * -27.0), fma(x, (i * -4.0), fma(t, t_1, (b * c))));
} else if (t <= 2.5e-129) {
tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)))) - (4.0 * (t * a))) - (k * (j * 27.0));
} else {
tmp = fma(t, t_1, fma(b, c, fma(x, (i * -4.0), (k * (j * -27.0)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) t_1 = fma(x, Float64(18.0 * Float64(y * z)), Float64(-4.0 * a)) tmp = 0.0 if (t <= -1.5e+112) tmp = fma(j, Float64(k * -27.0), fma(x, Float64(i * -4.0), fma(t, t_1, Float64(b * c)))); elseif (t <= 2.5e-129) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))) - Float64(4.0 * Float64(t * a))) - Float64(k * Float64(j * 27.0))); else tmp = fma(t, t_1, fma(b, c, fma(x, Float64(i * -4.0), Float64(k * Float64(j * -27.0))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.5e+112], N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * t$95$1 + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-129], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * t$95$1 + N[(b * c + N[(x * N[(i * -4.0), $MachinePrecision] + N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), -4 \cdot a\right)\\
\mathbf{if}\;t \leq -1.5 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, t_1, b \cdot c\right)\right)\right)\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-129}:\\
\;\;\;\;\left(\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\right) - 4 \cdot \left(t \cdot a\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, t_1, \mathsf{fma}\left(b, c, \mathsf{fma}\left(x, i \cdot -4, k \cdot \left(j \cdot -27\right)\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.4999999999999999e112Initial program 66.6%
sub-neg66.6%
+-commutative66.6%
associate-*l*66.6%
distribute-rgt-neg-in66.6%
fma-def70.3%
*-commutative70.3%
distribute-rgt-neg-in70.3%
metadata-eval70.3%
sub-neg70.3%
+-commutative70.3%
associate-*l*70.3%
distribute-rgt-neg-in70.3%
Simplified92.6%
if -1.4999999999999999e112 < t < 2.50000000000000014e-129Initial program 81.8%
Taylor expanded in x around 0 94.3%
if 2.50000000000000014e-129 < t Initial program 88.5%
associate--l-88.5%
associate--l+88.5%
distribute-rgt-out--88.5%
fma-def91.1%
associate-*l*92.3%
associate-*l*92.3%
fma-neg92.3%
distribute-rgt-neg-in92.3%
metadata-eval92.3%
fma-neg93.6%
distribute-neg-in93.6%
associate-*l*93.6%
distribute-rgt-neg-in93.6%
fma-def93.6%
Simplified93.6%
Final simplification93.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -1e+107) (not (<= t 1.1e-232)))
(fma
j
(* k -27.0)
(fma x (* i -4.0) (fma t (fma x (* 18.0 (* y z)) (* -4.0 a)) (* b c))))
(-
(- (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0)))) (* 4.0 (* t a)))
(* k (* j 27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -1e+107) || !(t <= 1.1e-232)) {
tmp = fma(j, (k * -27.0), fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (y * z)), (-4.0 * a)), (b * c))));
} else {
tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)))) - (4.0 * (t * a))) - (k * (j * 27.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -1e+107) || !(t <= 1.1e-232)) tmp = fma(j, Float64(k * -27.0), fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(-4.0 * a)), Float64(b * c)))); else tmp = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))) - Float64(4.0 * Float64(t * a))) - Float64(k * Float64(j * 27.0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -1e+107], N[Not[LessEqual[t, 1.1e-232]], $MachinePrecision]], N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+107} \lor \neg \left(t \leq 1.1 \cdot 10^{-232}\right):\\
\;\;\;\;\mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\right) - 4 \cdot \left(t \cdot a\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -9.9999999999999997e106 or 1.10000000000000001e-232 < t Initial program 79.5%
sub-neg79.5%
+-commutative79.5%
associate-*l*79.5%
distribute-rgt-neg-in79.5%
fma-def82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
metadata-eval82.2%
sub-neg82.2%
+-commutative82.2%
associate-*l*82.2%
distribute-rgt-neg-in82.2%
Simplified92.1%
if -9.9999999999999997e106 < t < 1.10000000000000001e-232Initial program 82.3%
Taylor expanded in x around 0 95.2%
Final simplification93.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= b -5.5e+45)
(fma
x
(fma 18.0 (* t (* y z)) (* i -4.0))
(fma t (* -4.0 a) (fma b c (* k (* j -27.0)))))
(fma
j
(* k -27.0)
(fma x (* i -4.0) (fma t (fma x (* 18.0 (* y z)) (* -4.0 a)) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (b <= -5.5e+45) {
tmp = fma(x, fma(18.0, (t * (y * z)), (i * -4.0)), fma(t, (-4.0 * a), fma(b, c, (k * (j * -27.0)))));
} else {
tmp = fma(j, (k * -27.0), fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (y * z)), (-4.0 * a)), (b * c))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (b <= -5.5e+45) tmp = fma(x, fma(18.0, Float64(t * Float64(y * z)), Float64(i * -4.0)), fma(t, Float64(-4.0 * a), fma(b, c, Float64(k * Float64(j * -27.0))))); else tmp = fma(j, Float64(k * -27.0), fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(-4.0 * a)), Float64(b * c)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[b, -5.5e+45], N[(x * N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision] + N[(t * N[(-4.0 * a), $MachinePrecision] + N[(b * c + N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(18, t \cdot \left(y \cdot z\right), i \cdot -4\right), \mathsf{fma}\left(t, -4 \cdot a, \mathsf{fma}\left(b, c, k \cdot \left(j \cdot -27\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\
\end{array}
\end{array}
if b < -5.5000000000000001e45Initial program 76.3%
sub-neg76.3%
+-commutative76.3%
sub-neg76.3%
associate-+l+76.3%
associate-+r+76.3%
associate--l+76.3%
+-commutative76.3%
sub-neg76.3%
Simplified93.2%
if -5.5000000000000001e45 < b Initial program 82.0%
sub-neg82.0%
+-commutative82.0%
associate-*l*81.9%
distribute-rgt-neg-in81.9%
fma-def84.0%
*-commutative84.0%
distribute-rgt-neg-in84.0%
metadata-eval84.0%
sub-neg84.0%
+-commutative84.0%
associate-*l*84.0%
distribute-rgt-neg-in84.0%
Simplified91.0%
Final simplification91.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<=
(-
(-
(+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
(* i (* x 4.0)))
(* k (* j 27.0)))
INFINITY)
(-
(+ (* b c) (* t (- (* (* y z) (* x 18.0)) (* a 4.0))))
(+ (* x (* i 4.0)) (* j (* k 27.0))))
(fma j (* k -27.0) (fma x (* i -4.0) (* b c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0))) <= ((double) INFINITY)) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = fma(j, (k * -27.0), fma(x, (i * -4.0), (b * c)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))) <= Inf) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); else tmp = fma(j, Float64(k * -27.0), fma(x, Float64(i * -4.0), Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(y * z), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right) \leq \infty:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < +inf.0Initial program 93.9%
sub-neg93.9%
associate-+l-93.9%
sub-neg93.9%
sub-neg93.9%
distribute-rgt-out--93.9%
associate-*l*95.5%
distribute-lft-neg-in95.5%
cancel-sign-sub95.5%
associate-*l*95.5%
associate-*l*95.5%
Simplified95.5%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-*l*0.0%
distribute-rgt-neg-in0.0%
fma-def13.9%
*-commutative13.9%
distribute-rgt-neg-in13.9%
metadata-eval13.9%
sub-neg13.9%
+-commutative13.9%
associate-*l*13.9%
distribute-rgt-neg-in13.9%
Simplified52.8%
Taylor expanded in t around 0 50.5%
Final simplification89.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<=
(-
(-
(+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
(* i (* x 4.0)))
(* k (* j 27.0)))
INFINITY)
(-
(+ (* b c) (* t (- (* (* y z) (* x 18.0)) (* a 4.0))))
(+ (* x (* i 4.0)) (* j (* k 27.0))))
(+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0))) <= ((double) INFINITY)) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
}
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 k) {
double tmp;
if (((((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0))) <= Double.POSITIVE_INFINITY) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0))) <= math.inf: tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0))) else: tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))) <= Inf) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); else tmp = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (((((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0))) <= Inf) tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0))); else tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(y * z), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right) \leq \infty:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < +inf.0Initial program 93.9%
sub-neg93.9%
associate-+l-93.9%
sub-neg93.9%
sub-neg93.9%
distribute-rgt-out--93.9%
associate-*l*95.5%
distribute-lft-neg-in95.5%
cancel-sign-sub95.5%
associate-*l*95.5%
associate-*l*95.5%
Simplified95.5%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) Initial program 0.0%
Taylor expanded in x around 0 30.6%
Taylor expanded in a around 0 41.7%
Taylor expanded in j around 0 50.2%
Final simplification89.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* t a))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -2e+257)
(- (* 18.0 (* y (* t (* x z)))) (* 27.0 (* k j)))
(if (<= t_2 1e-226)
(+ (* b c) (* t (- (* 18.0 (* y (* x z))) (* a 4.0))))
(if (<= t_2 1e+33)
(- (* b c) (+ t_1 (* 4.0 (* x i))))
(- (- (* b c) 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 k) {
double t_1 = 4.0 * (t * a);
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -2e+257) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else if (t_2 <= 1e-226) {
tmp = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)));
} else if (t_2 <= 1e+33) {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
} else {
tmp = ((b * c) - t_1) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 4.0d0 * (t * a)
t_2 = k * (j * 27.0d0)
if (t_2 <= (-2d+257)) then
tmp = (18.0d0 * (y * (t * (x * z)))) - (27.0d0 * (k * j))
else if (t_2 <= 1d-226) then
tmp = (b * c) + (t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0)))
else if (t_2 <= 1d+33) then
tmp = (b * c) - (t_1 + (4.0d0 * (x * i)))
else
tmp = ((b * c) - t_1) - 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 k) {
double t_1 = 4.0 * (t * a);
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -2e+257) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else if (t_2 <= 1e-226) {
tmp = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)));
} else if (t_2 <= 1e+33) {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
} else {
tmp = ((b * c) - t_1) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (t * a) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -2e+257: tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)) elif t_2 <= 1e-226: tmp = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0))) elif t_2 <= 1e+33: tmp = (b * c) - (t_1 + (4.0 * (x * i))) else: tmp = ((b * c) - t_1) - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(t * a)) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -2e+257) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - Float64(27.0 * Float64(k * j))); elseif (t_2 <= 1e-226) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0)))); elseif (t_2 <= 1e+33) tmp = Float64(Float64(b * c) - Float64(t_1 + Float64(4.0 * Float64(x * i)))); else tmp = Float64(Float64(Float64(b * c) - t_1) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (t * a); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -2e+257) tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)); elseif (t_2 <= 1e-226) tmp = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0))); elseif (t_2 <= 1e+33) tmp = (b * c) - (t_1 + (4.0 * (x * i))); else tmp = ((b * c) - t_1) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+257], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e-226], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+33], N[(N[(b * c), $MachinePrecision] - N[(t$95$1 + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(t \cdot a\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{+257}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;t_2 \leq 10^{-226}:\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t_2 \leq 10^{+33}:\\
\;\;\;\;b \cdot c - \left(t_1 + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - t_1\right) - t_2\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -2.00000000000000006e257Initial program 62.4%
Taylor expanded in a around 0 66.6%
Taylor expanded in i around 0 62.4%
Taylor expanded in c around 0 66.7%
if -2.00000000000000006e257 < (*.f64 (*.f64 j 27) k) < 9.99999999999999921e-227Initial program 83.7%
sub-neg83.7%
associate-+l-83.7%
sub-neg83.7%
sub-neg83.7%
distribute-rgt-out--86.2%
associate-*l*90.1%
distribute-lft-neg-in90.1%
cancel-sign-sub90.1%
associate-*l*90.1%
associate-*l*90.1%
Simplified90.1%
Taylor expanded in j around 0 84.7%
Taylor expanded in i around 0 73.1%
if 9.99999999999999921e-227 < (*.f64 (*.f64 j 27) k) < 9.9999999999999995e32Initial program 85.9%
Taylor expanded in y around 0 77.8%
Taylor expanded in j around 0 75.7%
if 9.9999999999999995e32 < (*.f64 (*.f64 j 27) k) Initial program 77.8%
Taylor expanded in x around 0 76.4%
Final simplification73.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* k j)))
(t_2 (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0))))))
(if (<= x -8.2e-39)
t_2
(if (<= x 1.5e-56)
(- (+ (* b c) (* -4.0 (* t a))) t_1)
(if (<= x 1.1e-31)
(- (* 18.0 (* y (* t (* x z)))) t_1)
(if (<= x 6.6e+25)
(- (* t (- (* 18.0 (* y (* x z))) (* a 4.0))) (* 4.0 (* x i)))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (k * j);
double t_2 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
double tmp;
if (x <= -8.2e-39) {
tmp = t_2;
} else if (x <= 1.5e-56) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (x <= 1.1e-31) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (x <= 6.6e+25) {
tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 27.0d0 * (k * j)
t_2 = (b * c) + (x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0)))
if (x <= (-8.2d-39)) then
tmp = t_2
else if (x <= 1.5d-56) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - t_1
else if (x <= 1.1d-31) then
tmp = (18.0d0 * (y * (t * (x * z)))) - t_1
else if (x <= 6.6d+25) then
tmp = (t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))) - (4.0d0 * (x * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (k * j);
double t_2 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
double tmp;
if (x <= -8.2e-39) {
tmp = t_2;
} else if (x <= 1.5e-56) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (x <= 1.1e-31) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (x <= 6.6e+25) {
tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (k * j) t_2 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))) tmp = 0 if x <= -8.2e-39: tmp = t_2 elif x <= 1.5e-56: tmp = ((b * c) + (-4.0 * (t * a))) - t_1 elif x <= 1.1e-31: tmp = (18.0 * (y * (t * (x * z)))) - t_1 elif x <= 6.6e+25: tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(27.0 * Float64(k * j)) t_2 = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))) tmp = 0.0 if (x <= -8.2e-39) tmp = t_2; elseif (x <= 1.5e-56) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1); elseif (x <= 1.1e-31) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - t_1); elseif (x <= 6.6e+25) tmp = Float64(Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) - Float64(4.0 * Float64(x * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 27.0 * (k * j); t_2 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))); tmp = 0.0; if (x <= -8.2e-39) tmp = t_2; elseif (x <= 1.5e-56) tmp = ((b * c) + (-4.0 * (t * a))) - t_1; elseif (x <= 1.1e-31) tmp = (18.0 * (y * (t * (x * z)))) - t_1; elseif (x <= 6.6e+25) tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.2e-39], t$95$2, If[LessEqual[x, 1.5e-56], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 1.1e-31], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 6.6e+25], N[(N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27 \cdot \left(k \cdot j\right)\\
t_2 := b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -8.2 \cdot 10^{-39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-56}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-31}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t_1\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{+25}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -8.2e-39 or 6.6000000000000002e25 < x Initial program 74.3%
Taylor expanded in x around 0 88.1%
Taylor expanded in a around 0 83.2%
Taylor expanded in j around 0 79.9%
if -8.2e-39 < x < 1.49999999999999995e-56Initial program 90.3%
sub-neg90.3%
associate-+l-90.3%
sub-neg90.3%
sub-neg90.3%
distribute-rgt-out--92.3%
associate-*l*88.3%
distribute-lft-neg-in88.3%
cancel-sign-sub88.3%
associate-*l*88.3%
associate-*l*88.3%
Simplified88.3%
Taylor expanded in x around 0 87.0%
if 1.49999999999999995e-56 < x < 1.10000000000000005e-31Initial program 58.8%
Taylor expanded in a around 0 99.4%
Taylor expanded in i around 0 86.2%
Taylor expanded in c around 0 86.2%
if 1.10000000000000005e-31 < x < 6.6000000000000002e25Initial program 81.8%
sub-neg81.8%
associate-+l-81.8%
sub-neg81.8%
sub-neg81.8%
distribute-rgt-out--81.8%
associate-*l*81.8%
distribute-lft-neg-in81.8%
cancel-sign-sub81.8%
associate-*l*81.8%
associate-*l*81.8%
Simplified81.8%
Taylor expanded in j around 0 64.4%
Taylor expanded in c around 0 64.5%
Final simplification82.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0))))))
(if (<= x -6.2e-36)
t_1
(if (<= x 1.05e-52)
(- (+ (* b c) (* -4.0 (* t a))) (* 27.0 (* k j)))
(if (<= x 4.6e-32)
(- (+ (* b c) (* 18.0 (* y (* x (* t z))))) (* k (* j 27.0)))
(if (<= x 8.6e+25)
(- (* t (- (* 18.0 (* y (* x z))) (* a 4.0))) (* 4.0 (* x i)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
double tmp;
if (x <= -6.2e-36) {
tmp = t_1;
} else if (x <= 1.05e-52) {
tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j));
} else if (x <= 4.6e-32) {
tmp = ((b * c) + (18.0 * (y * (x * (t * z))))) - (k * (j * 27.0));
} else if (x <= 8.6e+25) {
tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0)))
if (x <= (-6.2d-36)) then
tmp = t_1
else if (x <= 1.05d-52) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - (27.0d0 * (k * j))
else if (x <= 4.6d-32) then
tmp = ((b * c) + (18.0d0 * (y * (x * (t * z))))) - (k * (j * 27.0d0))
else if (x <= 8.6d+25) then
tmp = (t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))) - (4.0d0 * (x * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
double tmp;
if (x <= -6.2e-36) {
tmp = t_1;
} else if (x <= 1.05e-52) {
tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j));
} else if (x <= 4.6e-32) {
tmp = ((b * c) + (18.0 * (y * (x * (t * z))))) - (k * (j * 27.0));
} else if (x <= 8.6e+25) {
tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))) tmp = 0 if x <= -6.2e-36: tmp = t_1 elif x <= 1.05e-52: tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j)) elif x <= 4.6e-32: tmp = ((b * c) + (18.0 * (y * (x * (t * z))))) - (k * (j * 27.0)) elif x <= 8.6e+25: tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))) tmp = 0.0 if (x <= -6.2e-36) tmp = t_1; elseif (x <= 1.05e-52) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(27.0 * Float64(k * j))); elseif (x <= 4.6e-32) tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(y * Float64(x * Float64(t * z))))) - Float64(k * Float64(j * 27.0))); elseif (x <= 8.6e+25) tmp = Float64(Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) - Float64(4.0 * Float64(x * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))); tmp = 0.0; if (x <= -6.2e-36) tmp = t_1; elseif (x <= 1.05e-52) tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j)); elseif (x <= 4.6e-32) tmp = ((b * c) + (18.0 * (y * (x * (t * z))))) - (k * (j * 27.0)); elseif (x <= 8.6e+25) tmp = (t * ((18.0 * (y * (x * z))) - (a * 4.0))) - (4.0 * (x * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.2e-36], t$95$1, If[LessEqual[x, 1.05e-52], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-32], N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(y * N[(x * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6e+25], N[(N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -6.2 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-52}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-32}:\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(y \cdot \left(x \cdot \left(t \cdot z\right)\right)\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+25}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -6.1999999999999997e-36 or 8.59999999999999996e25 < x Initial program 74.3%
Taylor expanded in x around 0 88.1%
Taylor expanded in a around 0 83.2%
Taylor expanded in j around 0 79.9%
if -6.1999999999999997e-36 < x < 1.0499999999999999e-52Initial program 90.3%
sub-neg90.3%
associate-+l-90.3%
sub-neg90.3%
sub-neg90.3%
distribute-rgt-out--92.3%
associate-*l*88.3%
distribute-lft-neg-in88.3%
cancel-sign-sub88.3%
associate-*l*88.3%
associate-*l*88.3%
Simplified88.3%
Taylor expanded in x around 0 87.0%
if 1.0499999999999999e-52 < x < 4.6000000000000001e-32Initial program 58.8%
Taylor expanded in a around 0 99.4%
Taylor expanded in i around 0 86.2%
pow186.2%
Applied egg-rr86.2%
unpow186.2%
associate-*r*86.3%
*-commutative86.3%
Simplified86.3%
if 4.6000000000000001e-32 < x < 8.59999999999999996e25Initial program 81.8%
sub-neg81.8%
associate-+l-81.8%
sub-neg81.8%
sub-neg81.8%
distribute-rgt-out--81.8%
associate-*l*81.8%
distribute-lft-neg-in81.8%
cancel-sign-sub81.8%
associate-*l*81.8%
associate-*l*81.8%
Simplified81.8%
Taylor expanded in j around 0 64.4%
Taylor expanded in c around 0 64.5%
Final simplification82.3%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -5e+76) (not (<= t 5.5e-37))) (- (+ (* b c) (* t (- (* 18.0 (* y (* x z))) (* a 4.0)))) (* 27.0 (* k j))) (- (- (* b c) (+ (* 4.0 (* t a)) (* 4.0 (* x i)))) (* k (* j 27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5e+76) || !(t <= 5.5e-37)) {
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j));
} else {
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 27.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: tmp
if ((t <= (-5d+76)) .or. (.not. (t <= 5.5d-37))) then
tmp = ((b * c) + (t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0)))) - (27.0d0 * (k * j))
else
tmp = ((b * c) - ((4.0d0 * (t * a)) + (4.0d0 * (x * i)))) - (k * (j * 27.0d0))
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 k) {
double tmp;
if ((t <= -5e+76) || !(t <= 5.5e-37)) {
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j));
} else {
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -5e+76) or not (t <= 5.5e-37): tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j)) else: tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -5e+76) || !(t <= 5.5e-37)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0)))) - Float64(27.0 * Float64(k * j))); else tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + Float64(4.0 * Float64(x * i)))) - Float64(k * Float64(j * 27.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((t <= -5e+76) || ~((t <= 5.5e-37))) tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j)); else tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 27.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -5e+76], N[Not[LessEqual[t, 5.5e-37]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+76} \lor \neg \left(t \leq 5.5 \cdot 10^{-37}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -4.99999999999999991e76 or 5.4999999999999998e-37 < t Initial program 79.2%
sub-neg79.2%
associate-+l-79.2%
sub-neg79.2%
sub-neg79.2%
distribute-rgt-out--82.4%
associate-*l*83.1%
distribute-lft-neg-in83.1%
cancel-sign-sub83.1%
associate-*l*83.1%
associate-*l*83.1%
Simplified83.1%
Taylor expanded in i around 0 82.3%
if -4.99999999999999991e76 < t < 5.4999999999999998e-37Initial program 82.1%
Taylor expanded in y around 0 86.0%
Final simplification84.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* t a))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -5e+170)
(- (* 18.0 (* y (* t (* x z)))) (* 27.0 (* k j)))
(if (<= t_2 1e+33)
(- (* b c) (+ t_1 (* 4.0 (* x i))))
(- (- (* b c) 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 k) {
double t_1 = 4.0 * (t * a);
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -5e+170) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else if (t_2 <= 1e+33) {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
} else {
tmp = ((b * c) - t_1) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 4.0d0 * (t * a)
t_2 = k * (j * 27.0d0)
if (t_2 <= (-5d+170)) then
tmp = (18.0d0 * (y * (t * (x * z)))) - (27.0d0 * (k * j))
else if (t_2 <= 1d+33) then
tmp = (b * c) - (t_1 + (4.0d0 * (x * i)))
else
tmp = ((b * c) - t_1) - 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 k) {
double t_1 = 4.0 * (t * a);
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -5e+170) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else if (t_2 <= 1e+33) {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
} else {
tmp = ((b * c) - t_1) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (t * a) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -5e+170: tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)) elif t_2 <= 1e+33: tmp = (b * c) - (t_1 + (4.0 * (x * i))) else: tmp = ((b * c) - t_1) - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(t * a)) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -5e+170) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - Float64(27.0 * Float64(k * j))); elseif (t_2 <= 1e+33) tmp = Float64(Float64(b * c) - Float64(t_1 + Float64(4.0 * Float64(x * i)))); else tmp = Float64(Float64(Float64(b * c) - t_1) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (t * a); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -5e+170) tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)); elseif (t_2 <= 1e+33) tmp = (b * c) - (t_1 + (4.0 * (x * i))); else tmp = ((b * c) - t_1) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+170], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+33], N[(N[(b * c), $MachinePrecision] - N[(t$95$1 + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(t \cdot a\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{+170}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;t_2 \leq 10^{+33}:\\
\;\;\;\;b \cdot c - \left(t_1 + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - t_1\right) - t_2\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -4.99999999999999977e170Initial program 64.7%
Taylor expanded in a around 0 62.9%
Taylor expanded in i around 0 60.3%
Taylor expanded in c around 0 60.4%
if -4.99999999999999977e170 < (*.f64 (*.f64 j 27) k) < 9.9999999999999995e32Initial program 85.2%
Taylor expanded in y around 0 74.5%
Taylor expanded in j around 0 70.8%
if 9.9999999999999995e32 < (*.f64 (*.f64 j 27) k) Initial program 77.8%
Taylor expanded in x around 0 76.4%
Final simplification70.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i)))
(t_2 (+ (* b c) (* t (- (* 18.0 (* y (* x z))) (* a 4.0))))))
(if (<= t -1.85e+129)
t_2
(if (<= t 3.8e+129)
(- (- (* b c) (+ (* 4.0 (* t a)) t_1)) (* k (* j 27.0)))
(- t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)));
double tmp;
if (t <= -1.85e+129) {
tmp = t_2;
} else if (t <= 3.8e+129) {
tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - (k * (j * 27.0));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
t_2 = (b * c) + (t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0)))
if (t <= (-1.85d+129)) then
tmp = t_2
else if (t <= 3.8d+129) then
tmp = ((b * c) - ((4.0d0 * (t * a)) + t_1)) - (k * (j * 27.0d0))
else
tmp = t_2 - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)));
double tmp;
if (t <= -1.85e+129) {
tmp = t_2;
} else if (t <= 3.8e+129) {
tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - (k * (j * 27.0));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0))) tmp = 0 if t <= -1.85e+129: tmp = t_2 elif t <= 3.8e+129: tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - (k * (j * 27.0)) else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) t_2 = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0)))) tmp = 0.0 if (t <= -1.85e+129) tmp = t_2; elseif (t <= 3.8e+129) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + t_1)) - Float64(k * Float64(j * 27.0))); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (x * i); t_2 = (b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0))); tmp = 0.0; if (t <= -1.85e+129) tmp = t_2; elseif (t <= 3.8e+129) tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - (k * (j * 27.0)); else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.85e+129], t$95$2, If[LessEqual[t, 3.8e+129], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -1.85 \cdot 10^{+129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+129}:\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + t_1\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 - t_1\\
\end{array}
\end{array}
if t < -1.84999999999999989e129Initial program 63.8%
sub-neg63.8%
associate-+l-63.8%
sub-neg63.8%
sub-neg63.8%
distribute-rgt-out--70.2%
associate-*l*70.2%
distribute-lft-neg-in70.2%
cancel-sign-sub70.2%
associate-*l*70.2%
associate-*l*70.2%
Simplified70.2%
Taylor expanded in j around 0 78.7%
Taylor expanded in i around 0 81.2%
if -1.84999999999999989e129 < t < 3.80000000000000005e129Initial program 83.5%
Taylor expanded in y around 0 83.2%
if 3.80000000000000005e129 < t Initial program 88.9%
sub-neg88.9%
associate-+l-88.9%
sub-neg88.9%
sub-neg88.9%
distribute-rgt-out--88.9%
associate-*l*88.8%
distribute-lft-neg-in88.8%
cancel-sign-sub88.8%
associate-*l*88.8%
associate-*l*88.8%
Simplified88.8%
Taylor expanded in j around 0 86.3%
Final simplification83.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0))))
(if (<= a -1.8e+62)
(- (- (* b c) (+ (* 4.0 (* t a)) (* 4.0 (* x i)))) t_1)
(if (<= a 8.5e-11)
(- (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0)))) t_1)
(-
(+ (* b c) (* t (- (* 18.0 (* y (* x z))) (* a 4.0))))
(* 27.0 (* k j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (a <= -1.8e+62) {
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - t_1;
} else if (a <= 8.5e-11) {
tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)))) - t_1;
} else {
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = k * (j * 27.0d0)
if (a <= (-1.8d+62)) then
tmp = ((b * c) - ((4.0d0 * (t * a)) + (4.0d0 * (x * i)))) - t_1
else if (a <= 8.5d-11) then
tmp = ((b * c) + (x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0)))) - t_1
else
tmp = ((b * c) + (t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0)))) - (27.0d0 * (k * 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 k) {
double t_1 = k * (j * 27.0);
double tmp;
if (a <= -1.8e+62) {
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - t_1;
} else if (a <= 8.5e-11) {
tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)))) - t_1;
} else {
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * 27.0) tmp = 0 if a <= -1.8e+62: tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - t_1 elif a <= 8.5e-11: tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)))) - t_1 else: tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (a <= -1.8e+62) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + Float64(4.0 * Float64(x * i)))) - t_1); elseif (a <= 8.5e-11) tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))) - t_1); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0)))) - Float64(27.0 * Float64(k * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * 27.0); tmp = 0.0; if (a <= -1.8e+62) tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - t_1; elseif (a <= 8.5e-11) tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)))) - t_1; else tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) - (a * 4.0)))) - (27.0 * (k * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.8e+62], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[a, 8.5e-11], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+62}:\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\right) - t_1\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-11}:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\end{array}
\end{array}
if a < -1.8e62Initial program 85.1%
Taylor expanded in y around 0 90.1%
if -1.8e62 < a < 8.50000000000000037e-11Initial program 78.4%
Taylor expanded in x around 0 87.1%
Taylor expanded in a around 0 85.0%
if 8.50000000000000037e-11 < a Initial program 81.3%
sub-neg81.3%
associate-+l-81.3%
sub-neg81.3%
sub-neg81.3%
distribute-rgt-out--88.2%
associate-*l*84.6%
distribute-lft-neg-in84.6%
cancel-sign-sub84.6%
associate-*l*84.6%
associate-*l*84.6%
Simplified84.6%
Taylor expanded in i around 0 84.6%
Final simplification86.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j -27.0)))
(t_2 (* 18.0 (* t (* x (* y z)))))
(t_3 (* -4.0 (* t a))))
(if (<= a -4.5e+170)
t_3
(if (<= a -4.5e-89)
t_1
(if (<= a -1.16e-181)
t_2
(if (<= a -2.05e-288)
t_1
(if (<= a 1.7e-278)
t_2
(if (<= a 2.1e-180)
(* j (* k -27.0))
(if (<= a 9.8e-11)
(* -4.0 (* x i))
(if (<= a 4e+108) 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 k) {
double t_1 = k * (j * -27.0);
double t_2 = 18.0 * (t * (x * (y * z)));
double t_3 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_3;
} else if (a <= -4.5e-89) {
tmp = t_1;
} else if (a <= -1.16e-181) {
tmp = t_2;
} else if (a <= -2.05e-288) {
tmp = t_1;
} else if (a <= 1.7e-278) {
tmp = t_2;
} else if (a <= 2.1e-180) {
tmp = j * (k * -27.0);
} else if (a <= 9.8e-11) {
tmp = -4.0 * (x * i);
} else if (a <= 4e+108) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = k * (j * (-27.0d0))
t_2 = 18.0d0 * (t * (x * (y * z)))
t_3 = (-4.0d0) * (t * a)
if (a <= (-4.5d+170)) then
tmp = t_3
else if (a <= (-4.5d-89)) then
tmp = t_1
else if (a <= (-1.16d-181)) then
tmp = t_2
else if (a <= (-2.05d-288)) then
tmp = t_1
else if (a <= 1.7d-278) then
tmp = t_2
else if (a <= 2.1d-180) then
tmp = j * (k * (-27.0d0))
else if (a <= 9.8d-11) then
tmp = (-4.0d0) * (x * i)
else if (a <= 4d+108) 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 k) {
double t_1 = k * (j * -27.0);
double t_2 = 18.0 * (t * (x * (y * z)));
double t_3 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_3;
} else if (a <= -4.5e-89) {
tmp = t_1;
} else if (a <= -1.16e-181) {
tmp = t_2;
} else if (a <= -2.05e-288) {
tmp = t_1;
} else if (a <= 1.7e-278) {
tmp = t_2;
} else if (a <= 2.1e-180) {
tmp = j * (k * -27.0);
} else if (a <= 9.8e-11) {
tmp = -4.0 * (x * i);
} else if (a <= 4e+108) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * -27.0) t_2 = 18.0 * (t * (x * (y * z))) t_3 = -4.0 * (t * a) tmp = 0 if a <= -4.5e+170: tmp = t_3 elif a <= -4.5e-89: tmp = t_1 elif a <= -1.16e-181: tmp = t_2 elif a <= -2.05e-288: tmp = t_1 elif a <= 1.7e-278: tmp = t_2 elif a <= 2.1e-180: tmp = j * (k * -27.0) elif a <= 9.8e-11: tmp = -4.0 * (x * i) elif a <= 4e+108: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * -27.0)) t_2 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) t_3 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -4.5e+170) tmp = t_3; elseif (a <= -4.5e-89) tmp = t_1; elseif (a <= -1.16e-181) tmp = t_2; elseif (a <= -2.05e-288) tmp = t_1; elseif (a <= 1.7e-278) tmp = t_2; elseif (a <= 2.1e-180) tmp = Float64(j * Float64(k * -27.0)); elseif (a <= 9.8e-11) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 4e+108) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * -27.0); t_2 = 18.0 * (t * (x * (y * z))); t_3 = -4.0 * (t * a); tmp = 0.0; if (a <= -4.5e+170) tmp = t_3; elseif (a <= -4.5e-89) tmp = t_1; elseif (a <= -1.16e-181) tmp = t_2; elseif (a <= -2.05e-288) tmp = t_1; elseif (a <= 1.7e-278) tmp = t_2; elseif (a <= 2.1e-180) tmp = j * (k * -27.0); elseif (a <= 9.8e-11) tmp = -4.0 * (x * i); elseif (a <= 4e+108) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+170], t$95$3, If[LessEqual[a, -4.5e-89], t$95$1, If[LessEqual[a, -1.16e-181], t$95$2, If[LessEqual[a, -2.05e-288], t$95$1, If[LessEqual[a, 1.7e-278], t$95$2, If[LessEqual[a, 2.1e-180], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.8e-11], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+108], t$95$2, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right)\\
t_2 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
t_3 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+170}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-89}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.16 \cdot 10^{-181}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.05 \cdot 10^{-288}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-278}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-180}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;a \leq 9.8 \cdot 10^{-11}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+108}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -4.50000000000000022e170 or 4.0000000000000001e108 < a Initial program 80.8%
Taylor expanded in x around 0 77.9%
Taylor expanded in a around inf 57.1%
*-commutative57.1%
Simplified57.1%
if -4.50000000000000022e170 < a < -4.4999999999999999e-89 or -1.15999999999999995e-181 < a < -2.05000000000000004e-288Initial program 85.1%
Taylor expanded in x around 0 92.4%
Taylor expanded in j around inf 45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
associate-*r*45.0%
Simplified45.0%
if -4.4999999999999999e-89 < a < -1.15999999999999995e-181 or -2.05000000000000004e-288 < a < 1.7e-278 or 9.7999999999999998e-11 < a < 4.0000000000000001e108Initial program 79.0%
sub-neg79.0%
associate-+l-79.0%
sub-neg79.0%
sub-neg79.0%
distribute-rgt-out--82.8%
associate-*l*84.7%
distribute-lft-neg-in84.7%
cancel-sign-sub84.7%
associate-*l*84.7%
associate-*l*84.7%
Simplified84.7%
Taylor expanded in x around inf 55.1%
Taylor expanded in y around inf 48.2%
*-commutative48.2%
associate-*l*46.5%
*-commutative46.5%
associate-*r*48.4%
*-commutative48.4%
Simplified48.4%
if 1.7e-278 < a < 2.0999999999999999e-180Initial program 63.8%
Taylor expanded in x around 0 83.4%
Taylor expanded in j around inf 41.4%
associate-*r*41.4%
Simplified41.4%
if 2.0999999999999999e-180 < a < 9.7999999999999998e-11Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
Final simplification48.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j -27.0)))
(t_2 (* 18.0 (* t (* x (* y z)))))
(t_3 (* -4.0 (* t a))))
(if (<= a -4.5e+170)
t_3
(if (<= a -2.1e-89)
t_1
(if (<= a -4.6e-203)
(* 18.0 (* y (* t (* x z))))
(if (<= a -7.5e-291)
t_1
(if (<= a 1.4e-278)
t_2
(if (<= a 3.6e-180)
(* j (* k -27.0))
(if (<= a 3.1e-10)
(* -4.0 (* x i))
(if (<= a 4e+108) 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 k) {
double t_1 = k * (j * -27.0);
double t_2 = 18.0 * (t * (x * (y * z)));
double t_3 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_3;
} else if (a <= -2.1e-89) {
tmp = t_1;
} else if (a <= -4.6e-203) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -7.5e-291) {
tmp = t_1;
} else if (a <= 1.4e-278) {
tmp = t_2;
} else if (a <= 3.6e-180) {
tmp = j * (k * -27.0);
} else if (a <= 3.1e-10) {
tmp = -4.0 * (x * i);
} else if (a <= 4e+108) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = k * (j * (-27.0d0))
t_2 = 18.0d0 * (t * (x * (y * z)))
t_3 = (-4.0d0) * (t * a)
if (a <= (-4.5d+170)) then
tmp = t_3
else if (a <= (-2.1d-89)) then
tmp = t_1
else if (a <= (-4.6d-203)) then
tmp = 18.0d0 * (y * (t * (x * z)))
else if (a <= (-7.5d-291)) then
tmp = t_1
else if (a <= 1.4d-278) then
tmp = t_2
else if (a <= 3.6d-180) then
tmp = j * (k * (-27.0d0))
else if (a <= 3.1d-10) then
tmp = (-4.0d0) * (x * i)
else if (a <= 4d+108) 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 k) {
double t_1 = k * (j * -27.0);
double t_2 = 18.0 * (t * (x * (y * z)));
double t_3 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_3;
} else if (a <= -2.1e-89) {
tmp = t_1;
} else if (a <= -4.6e-203) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -7.5e-291) {
tmp = t_1;
} else if (a <= 1.4e-278) {
tmp = t_2;
} else if (a <= 3.6e-180) {
tmp = j * (k * -27.0);
} else if (a <= 3.1e-10) {
tmp = -4.0 * (x * i);
} else if (a <= 4e+108) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * -27.0) t_2 = 18.0 * (t * (x * (y * z))) t_3 = -4.0 * (t * a) tmp = 0 if a <= -4.5e+170: tmp = t_3 elif a <= -2.1e-89: tmp = t_1 elif a <= -4.6e-203: tmp = 18.0 * (y * (t * (x * z))) elif a <= -7.5e-291: tmp = t_1 elif a <= 1.4e-278: tmp = t_2 elif a <= 3.6e-180: tmp = j * (k * -27.0) elif a <= 3.1e-10: tmp = -4.0 * (x * i) elif a <= 4e+108: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * -27.0)) t_2 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) t_3 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -4.5e+170) tmp = t_3; elseif (a <= -2.1e-89) tmp = t_1; elseif (a <= -4.6e-203) tmp = Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))); elseif (a <= -7.5e-291) tmp = t_1; elseif (a <= 1.4e-278) tmp = t_2; elseif (a <= 3.6e-180) tmp = Float64(j * Float64(k * -27.0)); elseif (a <= 3.1e-10) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 4e+108) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * -27.0); t_2 = 18.0 * (t * (x * (y * z))); t_3 = -4.0 * (t * a); tmp = 0.0; if (a <= -4.5e+170) tmp = t_3; elseif (a <= -2.1e-89) tmp = t_1; elseif (a <= -4.6e-203) tmp = 18.0 * (y * (t * (x * z))); elseif (a <= -7.5e-291) tmp = t_1; elseif (a <= 1.4e-278) tmp = t_2; elseif (a <= 3.6e-180) tmp = j * (k * -27.0); elseif (a <= 3.1e-10) tmp = -4.0 * (x * i); elseif (a <= 4e+108) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+170], t$95$3, If[LessEqual[a, -2.1e-89], t$95$1, If[LessEqual[a, -4.6e-203], N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.5e-291], t$95$1, If[LessEqual[a, 1.4e-278], t$95$2, If[LessEqual[a, 3.6e-180], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-10], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+108], t$95$2, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right)\\
t_2 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
t_3 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+170}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-89}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-203}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-291}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-278}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{-180}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-10}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+108}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -4.50000000000000022e170 or 4.0000000000000001e108 < a Initial program 80.8%
Taylor expanded in x around 0 77.9%
Taylor expanded in a around inf 57.1%
*-commutative57.1%
Simplified57.1%
if -4.50000000000000022e170 < a < -2.1000000000000001e-89 or -4.59999999999999983e-203 < a < -7.49999999999999981e-291Initial program 86.9%
Taylor expanded in x around 0 91.8%
Taylor expanded in j around inf 45.2%
*-commutative45.2%
*-commutative45.2%
*-commutative45.2%
associate-*r*45.3%
Simplified45.3%
if -2.1000000000000001e-89 < a < -4.59999999999999983e-203Initial program 73.3%
sub-neg73.3%
associate-+l-73.3%
sub-neg73.3%
sub-neg73.3%
distribute-rgt-out--73.3%
associate-*l*73.4%
distribute-lft-neg-in73.4%
cancel-sign-sub73.4%
associate-*l*73.4%
associate-*l*73.4%
Simplified73.4%
Taylor expanded in x around inf 48.0%
Taylor expanded in y around inf 47.4%
if -7.49999999999999981e-291 < a < 1.40000000000000004e-278 or 3.10000000000000015e-10 < a < 4.0000000000000001e108Initial program 80.1%
sub-neg80.1%
associate-+l-80.1%
sub-neg80.1%
sub-neg80.1%
distribute-rgt-out--85.8%
associate-*l*88.6%
distribute-lft-neg-in88.6%
cancel-sign-sub88.6%
associate-*l*88.6%
associate-*l*88.5%
Simplified88.5%
Taylor expanded in x around inf 58.1%
Taylor expanded in y around inf 48.2%
*-commutative48.2%
associate-*l*48.2%
*-commutative48.2%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
if 1.40000000000000004e-278 < a < 3.5999999999999999e-180Initial program 63.8%
Taylor expanded in x around 0 83.4%
Taylor expanded in j around inf 41.4%
associate-*r*41.4%
Simplified41.4%
if 3.5999999999999999e-180 < a < 3.10000000000000015e-10Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
Final simplification49.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j -27.0))) (t_2 (* -4.0 (* t a))))
(if (<= a -8.6e+170)
t_2
(if (<= a -7.2e-88)
t_1
(if (<= a -1.4e-202)
(* 18.0 (* y (* t (* x z))))
(if (<= a -4.3e-291)
t_1
(if (<= a 1.7e-278)
(* 18.0 (* x (* z (* t y))))
(if (<= a 9.5e-181)
(* j (* k -27.0))
(if (<= a 1.75e-11)
(* -4.0 (* x i))
(if (<= a 4.4e+108) (* 18.0 (* t (* x (* y z)))) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * -27.0);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -8.6e+170) {
tmp = t_2;
} else if (a <= -7.2e-88) {
tmp = t_1;
} else if (a <= -1.4e-202) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -4.3e-291) {
tmp = t_1;
} else if (a <= 1.7e-278) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (a <= 9.5e-181) {
tmp = j * (k * -27.0);
} else if (a <= 1.75e-11) {
tmp = -4.0 * (x * i);
} else if (a <= 4.4e+108) {
tmp = 18.0 * (t * (x * (y * z)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = k * (j * (-27.0d0))
t_2 = (-4.0d0) * (t * a)
if (a <= (-8.6d+170)) then
tmp = t_2
else if (a <= (-7.2d-88)) then
tmp = t_1
else if (a <= (-1.4d-202)) then
tmp = 18.0d0 * (y * (t * (x * z)))
else if (a <= (-4.3d-291)) then
tmp = t_1
else if (a <= 1.7d-278) then
tmp = 18.0d0 * (x * (z * (t * y)))
else if (a <= 9.5d-181) then
tmp = j * (k * (-27.0d0))
else if (a <= 1.75d-11) then
tmp = (-4.0d0) * (x * i)
else if (a <= 4.4d+108) then
tmp = 18.0d0 * (t * (x * (y * z)))
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 k) {
double t_1 = k * (j * -27.0);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -8.6e+170) {
tmp = t_2;
} else if (a <= -7.2e-88) {
tmp = t_1;
} else if (a <= -1.4e-202) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -4.3e-291) {
tmp = t_1;
} else if (a <= 1.7e-278) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (a <= 9.5e-181) {
tmp = j * (k * -27.0);
} else if (a <= 1.75e-11) {
tmp = -4.0 * (x * i);
} else if (a <= 4.4e+108) {
tmp = 18.0 * (t * (x * (y * z)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * -27.0) t_2 = -4.0 * (t * a) tmp = 0 if a <= -8.6e+170: tmp = t_2 elif a <= -7.2e-88: tmp = t_1 elif a <= -1.4e-202: tmp = 18.0 * (y * (t * (x * z))) elif a <= -4.3e-291: tmp = t_1 elif a <= 1.7e-278: tmp = 18.0 * (x * (z * (t * y))) elif a <= 9.5e-181: tmp = j * (k * -27.0) elif a <= 1.75e-11: tmp = -4.0 * (x * i) elif a <= 4.4e+108: tmp = 18.0 * (t * (x * (y * z))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * -27.0)) t_2 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -8.6e+170) tmp = t_2; elseif (a <= -7.2e-88) tmp = t_1; elseif (a <= -1.4e-202) tmp = Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))); elseif (a <= -4.3e-291) tmp = t_1; elseif (a <= 1.7e-278) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(t * y)))); elseif (a <= 9.5e-181) tmp = Float64(j * Float64(k * -27.0)); elseif (a <= 1.75e-11) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 4.4e+108) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * -27.0); t_2 = -4.0 * (t * a); tmp = 0.0; if (a <= -8.6e+170) tmp = t_2; elseif (a <= -7.2e-88) tmp = t_1; elseif (a <= -1.4e-202) tmp = 18.0 * (y * (t * (x * z))); elseif (a <= -4.3e-291) tmp = t_1; elseif (a <= 1.7e-278) tmp = 18.0 * (x * (z * (t * y))); elseif (a <= 9.5e-181) tmp = j * (k * -27.0); elseif (a <= 1.75e-11) tmp = -4.0 * (x * i); elseif (a <= 4.4e+108) tmp = 18.0 * (t * (x * (y * z))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.6e+170], t$95$2, If[LessEqual[a, -7.2e-88], t$95$1, If[LessEqual[a, -1.4e-202], N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.3e-291], t$95$1, If[LessEqual[a, 1.7e-278], N[(18.0 * N[(x * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-181], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-11], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+108], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right)\\
t_2 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -8.6 \cdot 10^{+170}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.4 \cdot 10^{-202}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{elif}\;a \leq -4.3 \cdot 10^{-291}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-278}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-181}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-11}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+108}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -8.5999999999999997e170 or 4.4000000000000003e108 < a Initial program 80.8%
Taylor expanded in x around 0 77.9%
Taylor expanded in a around inf 57.1%
*-commutative57.1%
Simplified57.1%
if -8.5999999999999997e170 < a < -7.1999999999999999e-88 or -1.4000000000000001e-202 < a < -4.30000000000000035e-291Initial program 86.9%
Taylor expanded in x around 0 91.8%
Taylor expanded in j around inf 45.2%
*-commutative45.2%
*-commutative45.2%
*-commutative45.2%
associate-*r*45.3%
Simplified45.3%
if -7.1999999999999999e-88 < a < -1.4000000000000001e-202Initial program 73.3%
sub-neg73.3%
associate-+l-73.3%
sub-neg73.3%
sub-neg73.3%
distribute-rgt-out--73.3%
associate-*l*73.4%
distribute-lft-neg-in73.4%
cancel-sign-sub73.4%
associate-*l*73.4%
associate-*l*73.4%
Simplified73.4%
Taylor expanded in x around inf 48.0%
Taylor expanded in y around inf 47.4%
if -4.30000000000000035e-291 < a < 1.7e-278Initial program 73.0%
sub-neg73.0%
associate-+l-73.0%
sub-neg73.0%
sub-neg73.0%
distribute-rgt-out--73.0%
associate-*l*81.8%
distribute-lft-neg-in81.8%
cancel-sign-sub81.8%
associate-*l*81.8%
associate-*l*81.8%
Simplified81.8%
Taylor expanded in j around 0 90.9%
Taylor expanded in y around inf 50.9%
associate-*r*55.9%
associate-*r*55.9%
*-commutative55.9%
*-commutative55.9%
associate-*l*59.5%
Simplified59.5%
if 1.7e-278 < a < 9.49999999999999998e-181Initial program 63.8%
Taylor expanded in x around 0 83.4%
Taylor expanded in j around inf 41.4%
associate-*r*41.4%
Simplified41.4%
if 9.49999999999999998e-181 < a < 1.7500000000000001e-11Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
if 1.7500000000000001e-11 < a < 4.4000000000000003e108Initial program 83.3%
sub-neg83.3%
associate-+l-83.3%
sub-neg83.3%
sub-neg83.3%
distribute-rgt-out--91.7%
associate-*l*91.7%
distribute-lft-neg-in91.7%
cancel-sign-sub91.7%
associate-*l*91.7%
associate-*l*91.6%
Simplified91.6%
Taylor expanded in x around inf 51.1%
Taylor expanded in y around inf 47.0%
*-commutative47.0%
associate-*l*47.0%
*-commutative47.0%
associate-*r*51.1%
*-commutative51.1%
Simplified51.1%
Final simplification49.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j -27.0))) (t_2 (* -4.0 (* t a))))
(if (<= a -1.2e+172)
t_2
(if (<= a -5.4e-87)
t_1
(if (<= a -7e-202)
(* 18.0 (* y (* t (* x z))))
(if (<= a -2.7e-289)
t_1
(if (<= a 1.45e-278)
(* 18.0 (* x (* z (* t y))))
(if (<= a 5.1e-182)
(* j (* k -27.0))
(if (<= a 1.12e-10)
(* -4.0 (* x i))
(if (<= a 4e+108) (* (* x (* t z)) (* 18.0 y)) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * -27.0);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -1.2e+172) {
tmp = t_2;
} else if (a <= -5.4e-87) {
tmp = t_1;
} else if (a <= -7e-202) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -2.7e-289) {
tmp = t_1;
} else if (a <= 1.45e-278) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (a <= 5.1e-182) {
tmp = j * (k * -27.0);
} else if (a <= 1.12e-10) {
tmp = -4.0 * (x * i);
} else if (a <= 4e+108) {
tmp = (x * (t * z)) * (18.0 * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = k * (j * (-27.0d0))
t_2 = (-4.0d0) * (t * a)
if (a <= (-1.2d+172)) then
tmp = t_2
else if (a <= (-5.4d-87)) then
tmp = t_1
else if (a <= (-7d-202)) then
tmp = 18.0d0 * (y * (t * (x * z)))
else if (a <= (-2.7d-289)) then
tmp = t_1
else if (a <= 1.45d-278) then
tmp = 18.0d0 * (x * (z * (t * y)))
else if (a <= 5.1d-182) then
tmp = j * (k * (-27.0d0))
else if (a <= 1.12d-10) then
tmp = (-4.0d0) * (x * i)
else if (a <= 4d+108) then
tmp = (x * (t * z)) * (18.0d0 * y)
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 k) {
double t_1 = k * (j * -27.0);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -1.2e+172) {
tmp = t_2;
} else if (a <= -5.4e-87) {
tmp = t_1;
} else if (a <= -7e-202) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -2.7e-289) {
tmp = t_1;
} else if (a <= 1.45e-278) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (a <= 5.1e-182) {
tmp = j * (k * -27.0);
} else if (a <= 1.12e-10) {
tmp = -4.0 * (x * i);
} else if (a <= 4e+108) {
tmp = (x * (t * z)) * (18.0 * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * -27.0) t_2 = -4.0 * (t * a) tmp = 0 if a <= -1.2e+172: tmp = t_2 elif a <= -5.4e-87: tmp = t_1 elif a <= -7e-202: tmp = 18.0 * (y * (t * (x * z))) elif a <= -2.7e-289: tmp = t_1 elif a <= 1.45e-278: tmp = 18.0 * (x * (z * (t * y))) elif a <= 5.1e-182: tmp = j * (k * -27.0) elif a <= 1.12e-10: tmp = -4.0 * (x * i) elif a <= 4e+108: tmp = (x * (t * z)) * (18.0 * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * -27.0)) t_2 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -1.2e+172) tmp = t_2; elseif (a <= -5.4e-87) tmp = t_1; elseif (a <= -7e-202) tmp = Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))); elseif (a <= -2.7e-289) tmp = t_1; elseif (a <= 1.45e-278) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(t * y)))); elseif (a <= 5.1e-182) tmp = Float64(j * Float64(k * -27.0)); elseif (a <= 1.12e-10) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 4e+108) tmp = Float64(Float64(x * Float64(t * z)) * Float64(18.0 * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * -27.0); t_2 = -4.0 * (t * a); tmp = 0.0; if (a <= -1.2e+172) tmp = t_2; elseif (a <= -5.4e-87) tmp = t_1; elseif (a <= -7e-202) tmp = 18.0 * (y * (t * (x * z))); elseif (a <= -2.7e-289) tmp = t_1; elseif (a <= 1.45e-278) tmp = 18.0 * (x * (z * (t * y))); elseif (a <= 5.1e-182) tmp = j * (k * -27.0); elseif (a <= 1.12e-10) tmp = -4.0 * (x * i); elseif (a <= 4e+108) tmp = (x * (t * z)) * (18.0 * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e+172], t$95$2, If[LessEqual[a, -5.4e-87], t$95$1, If[LessEqual[a, -7e-202], N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.7e-289], t$95$1, If[LessEqual[a, 1.45e-278], N[(18.0 * N[(x * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.1e-182], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.12e-10], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+108], N[(N[(x * N[(t * z), $MachinePrecision]), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right)\\
t_2 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{+172}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-202}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-289}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{-278}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\mathbf{elif}\;a \leq 5.1 \cdot 10^{-182}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-10}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+108}:\\
\;\;\;\;\left(x \cdot \left(t \cdot z\right)\right) \cdot \left(18 \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.2e172 or 4.0000000000000001e108 < a Initial program 80.8%
Taylor expanded in x around 0 77.9%
Taylor expanded in a around inf 57.1%
*-commutative57.1%
Simplified57.1%
if -1.2e172 < a < -5.39999999999999967e-87 or -6.9999999999999998e-202 < a < -2.7e-289Initial program 86.9%
Taylor expanded in x around 0 91.8%
Taylor expanded in j around inf 45.2%
*-commutative45.2%
*-commutative45.2%
*-commutative45.2%
associate-*r*45.3%
Simplified45.3%
if -5.39999999999999967e-87 < a < -6.9999999999999998e-202Initial program 73.3%
sub-neg73.3%
associate-+l-73.3%
sub-neg73.3%
sub-neg73.3%
distribute-rgt-out--73.3%
associate-*l*73.4%
distribute-lft-neg-in73.4%
cancel-sign-sub73.4%
associate-*l*73.4%
associate-*l*73.4%
Simplified73.4%
Taylor expanded in x around inf 48.0%
Taylor expanded in y around inf 47.4%
if -2.7e-289 < a < 1.45e-278Initial program 73.0%
sub-neg73.0%
associate-+l-73.0%
sub-neg73.0%
sub-neg73.0%
distribute-rgt-out--73.0%
associate-*l*81.8%
distribute-lft-neg-in81.8%
cancel-sign-sub81.8%
associate-*l*81.8%
associate-*l*81.8%
Simplified81.8%
Taylor expanded in j around 0 90.9%
Taylor expanded in y around inf 50.9%
associate-*r*55.9%
associate-*r*55.9%
*-commutative55.9%
*-commutative55.9%
associate-*l*59.5%
Simplified59.5%
if 1.45e-278 < a < 5.10000000000000017e-182Initial program 63.8%
Taylor expanded in x around 0 83.4%
Taylor expanded in j around inf 41.4%
associate-*r*41.4%
Simplified41.4%
if 5.10000000000000017e-182 < a < 1.12e-10Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
if 1.12e-10 < a < 4.0000000000000001e108Initial program 83.3%
sub-neg83.3%
associate-+l-83.3%
sub-neg83.3%
sub-neg83.3%
distribute-rgt-out--91.7%
associate-*l*91.7%
distribute-lft-neg-in91.7%
cancel-sign-sub91.7%
associate-*l*91.7%
associate-*l*91.6%
Simplified91.6%
Taylor expanded in j around 0 79.5%
Taylor expanded in y around inf 47.0%
associate-*r*47.0%
associate-*r*51.2%
Simplified51.2%
Final simplification49.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j -27.0))) (t_2 (* -4.0 (* t a))))
(if (<= a -4.5e+170)
t_2
(if (<= a -1.82e-87)
t_1
(if (<= a -8.4e-203)
(* 18.0 (* y (* t (* x z))))
(if (<= a -7.5e-287)
t_1
(if (<= a 1.4e-278)
(* 18.0 (* x (* z (* t y))))
(if (<= a 2.9e-180)
(* j (* k -27.0))
(if (<= a 1.85e-11)
(* -4.0 (* x i))
(if (<= a 4.1e+108) (* x (* (* t z) (* 18.0 y))) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * -27.0);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_2;
} else if (a <= -1.82e-87) {
tmp = t_1;
} else if (a <= -8.4e-203) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -7.5e-287) {
tmp = t_1;
} else if (a <= 1.4e-278) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (a <= 2.9e-180) {
tmp = j * (k * -27.0);
} else if (a <= 1.85e-11) {
tmp = -4.0 * (x * i);
} else if (a <= 4.1e+108) {
tmp = x * ((t * z) * (18.0 * y));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = k * (j * (-27.0d0))
t_2 = (-4.0d0) * (t * a)
if (a <= (-4.5d+170)) then
tmp = t_2
else if (a <= (-1.82d-87)) then
tmp = t_1
else if (a <= (-8.4d-203)) then
tmp = 18.0d0 * (y * (t * (x * z)))
else if (a <= (-7.5d-287)) then
tmp = t_1
else if (a <= 1.4d-278) then
tmp = 18.0d0 * (x * (z * (t * y)))
else if (a <= 2.9d-180) then
tmp = j * (k * (-27.0d0))
else if (a <= 1.85d-11) then
tmp = (-4.0d0) * (x * i)
else if (a <= 4.1d+108) then
tmp = x * ((t * z) * (18.0d0 * y))
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 k) {
double t_1 = k * (j * -27.0);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_2;
} else if (a <= -1.82e-87) {
tmp = t_1;
} else if (a <= -8.4e-203) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (a <= -7.5e-287) {
tmp = t_1;
} else if (a <= 1.4e-278) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (a <= 2.9e-180) {
tmp = j * (k * -27.0);
} else if (a <= 1.85e-11) {
tmp = -4.0 * (x * i);
} else if (a <= 4.1e+108) {
tmp = x * ((t * z) * (18.0 * y));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * -27.0) t_2 = -4.0 * (t * a) tmp = 0 if a <= -4.5e+170: tmp = t_2 elif a <= -1.82e-87: tmp = t_1 elif a <= -8.4e-203: tmp = 18.0 * (y * (t * (x * z))) elif a <= -7.5e-287: tmp = t_1 elif a <= 1.4e-278: tmp = 18.0 * (x * (z * (t * y))) elif a <= 2.9e-180: tmp = j * (k * -27.0) elif a <= 1.85e-11: tmp = -4.0 * (x * i) elif a <= 4.1e+108: tmp = x * ((t * z) * (18.0 * y)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * -27.0)) t_2 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -4.5e+170) tmp = t_2; elseif (a <= -1.82e-87) tmp = t_1; elseif (a <= -8.4e-203) tmp = Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))); elseif (a <= -7.5e-287) tmp = t_1; elseif (a <= 1.4e-278) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(t * y)))); elseif (a <= 2.9e-180) tmp = Float64(j * Float64(k * -27.0)); elseif (a <= 1.85e-11) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 4.1e+108) tmp = Float64(x * Float64(Float64(t * z) * Float64(18.0 * y))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * -27.0); t_2 = -4.0 * (t * a); tmp = 0.0; if (a <= -4.5e+170) tmp = t_2; elseif (a <= -1.82e-87) tmp = t_1; elseif (a <= -8.4e-203) tmp = 18.0 * (y * (t * (x * z))); elseif (a <= -7.5e-287) tmp = t_1; elseif (a <= 1.4e-278) tmp = 18.0 * (x * (z * (t * y))); elseif (a <= 2.9e-180) tmp = j * (k * -27.0); elseif (a <= 1.85e-11) tmp = -4.0 * (x * i); elseif (a <= 4.1e+108) tmp = x * ((t * z) * (18.0 * y)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+170], t$95$2, If[LessEqual[a, -1.82e-87], t$95$1, If[LessEqual[a, -8.4e-203], N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.5e-287], t$95$1, If[LessEqual[a, 1.4e-278], N[(18.0 * N[(x * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-180], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-11], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.1e+108], N[(x * N[(N[(t * z), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right)\\
t_2 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+170}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.82 \cdot 10^{-87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -8.4 \cdot 10^{-203}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-278}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-180}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-11}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{+108}:\\
\;\;\;\;x \cdot \left(\left(t \cdot z\right) \cdot \left(18 \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -4.50000000000000022e170 or 4.0999999999999999e108 < a Initial program 80.8%
Taylor expanded in x around 0 77.9%
Taylor expanded in a around inf 57.1%
*-commutative57.1%
Simplified57.1%
if -4.50000000000000022e170 < a < -1.81999999999999993e-87 or -8.40000000000000008e-203 < a < -7.5000000000000001e-287Initial program 86.9%
Taylor expanded in x around 0 91.8%
Taylor expanded in j around inf 45.2%
*-commutative45.2%
*-commutative45.2%
*-commutative45.2%
associate-*r*45.3%
Simplified45.3%
if -1.81999999999999993e-87 < a < -8.40000000000000008e-203Initial program 73.3%
sub-neg73.3%
associate-+l-73.3%
sub-neg73.3%
sub-neg73.3%
distribute-rgt-out--73.3%
associate-*l*73.4%
distribute-lft-neg-in73.4%
cancel-sign-sub73.4%
associate-*l*73.4%
associate-*l*73.4%
Simplified73.4%
Taylor expanded in x around inf 48.0%
Taylor expanded in y around inf 47.4%
if -7.5000000000000001e-287 < a < 1.40000000000000004e-278Initial program 73.0%
sub-neg73.0%
associate-+l-73.0%
sub-neg73.0%
sub-neg73.0%
distribute-rgt-out--73.0%
associate-*l*81.8%
distribute-lft-neg-in81.8%
cancel-sign-sub81.8%
associate-*l*81.8%
associate-*l*81.8%
Simplified81.8%
Taylor expanded in j around 0 90.9%
Taylor expanded in y around inf 50.9%
associate-*r*55.9%
associate-*r*55.9%
*-commutative55.9%
*-commutative55.9%
associate-*l*59.5%
Simplified59.5%
if 1.40000000000000004e-278 < a < 2.8999999999999998e-180Initial program 63.8%
Taylor expanded in x around 0 83.4%
Taylor expanded in j around inf 41.4%
associate-*r*41.4%
Simplified41.4%
if 2.8999999999999998e-180 < a < 1.8500000000000001e-11Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
if 1.8500000000000001e-11 < a < 4.0999999999999999e108Initial program 83.3%
Taylor expanded in x around 0 79.0%
Taylor expanded in a around 0 67.4%
Taylor expanded in y around inf 47.0%
associate-*r*47.0%
associate-*r*51.2%
associate-*r*51.2%
*-commutative51.2%
Simplified51.2%
Final simplification49.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (- (* 18.0 (* y (* t z))) (* i 4.0))))
(t_2 (+ (* b c) (* -4.0 (* t a)))))
(if (<= j -1.1e+173)
(* -27.0 (* k j))
(if (<= j -3.8e+57)
t_2
(if (<= j -7e-25)
t_1
(if (<= j -3.6e-104)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= j -3.9e-244)
t_2
(if (<= j 1.6e-79) t_1 (* k (* j -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((18.0 * (y * (t * z))) - (i * 4.0));
double t_2 = (b * c) + (-4.0 * (t * a));
double tmp;
if (j <= -1.1e+173) {
tmp = -27.0 * (k * j);
} else if (j <= -3.8e+57) {
tmp = t_2;
} else if (j <= -7e-25) {
tmp = t_1;
} else if (j <= -3.6e-104) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (j <= -3.9e-244) {
tmp = t_2;
} else if (j <= 1.6e-79) {
tmp = t_1;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0))
t_2 = (b * c) + ((-4.0d0) * (t * a))
if (j <= (-1.1d+173)) then
tmp = (-27.0d0) * (k * j)
else if (j <= (-3.8d+57)) then
tmp = t_2
else if (j <= (-7d-25)) then
tmp = t_1
else if (j <= (-3.6d-104)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (j <= (-3.9d-244)) then
tmp = t_2
else if (j <= 1.6d-79) then
tmp = t_1
else
tmp = k * (j * (-27.0d0))
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 k) {
double t_1 = x * ((18.0 * (y * (t * z))) - (i * 4.0));
double t_2 = (b * c) + (-4.0 * (t * a));
double tmp;
if (j <= -1.1e+173) {
tmp = -27.0 * (k * j);
} else if (j <= -3.8e+57) {
tmp = t_2;
} else if (j <= -7e-25) {
tmp = t_1;
} else if (j <= -3.6e-104) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (j <= -3.9e-244) {
tmp = t_2;
} else if (j <= 1.6e-79) {
tmp = t_1;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((18.0 * (y * (t * z))) - (i * 4.0)) t_2 = (b * c) + (-4.0 * (t * a)) tmp = 0 if j <= -1.1e+173: tmp = -27.0 * (k * j) elif j <= -3.8e+57: tmp = t_2 elif j <= -7e-25: tmp = t_1 elif j <= -3.6e-104: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif j <= -3.9e-244: tmp = t_2 elif j <= 1.6e-79: tmp = t_1 else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))) t_2 = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) tmp = 0.0 if (j <= -1.1e+173) tmp = Float64(-27.0 * Float64(k * j)); elseif (j <= -3.8e+57) tmp = t_2; elseif (j <= -7e-25) tmp = t_1; elseif (j <= -3.6e-104) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (j <= -3.9e-244) tmp = t_2; elseif (j <= 1.6e-79) tmp = t_1; else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = x * ((18.0 * (y * (t * z))) - (i * 4.0)); t_2 = (b * c) + (-4.0 * (t * a)); tmp = 0.0; if (j <= -1.1e+173) tmp = -27.0 * (k * j); elseif (j <= -3.8e+57) tmp = t_2; elseif (j <= -7e-25) tmp = t_1; elseif (j <= -3.6e-104) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (j <= -3.9e-244) tmp = t_2; elseif (j <= 1.6e-79) tmp = t_1; else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.1e+173], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.8e+57], t$95$2, If[LessEqual[j, -7e-25], t$95$1, If[LessEqual[j, -3.6e-104], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.9e-244], t$95$2, If[LessEqual[j, 1.6e-79], t$95$1, N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
t_2 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;j \leq -1.1 \cdot 10^{+173}:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;j \leq -3.8 \cdot 10^{+57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -7 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.6 \cdot 10^{-104}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;j \leq -3.9 \cdot 10^{-244}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if j < -1.1e173Initial program 77.2%
sub-neg77.2%
+-commutative77.2%
associate-*l*77.2%
distribute-rgt-neg-in77.2%
fma-def86.3%
*-commutative86.3%
distribute-rgt-neg-in86.3%
metadata-eval86.3%
sub-neg86.3%
+-commutative86.3%
associate-*l*86.3%
distribute-rgt-neg-in86.3%
Simplified90.8%
Taylor expanded in j around inf 50.9%
if -1.1e173 < j < -3.7999999999999999e57 or -3.5999999999999998e-104 < j < -3.8999999999999999e-244Initial program 80.9%
sub-neg80.9%
associate-+l-80.9%
sub-neg80.9%
sub-neg80.9%
distribute-rgt-out--82.7%
associate-*l*86.2%
distribute-lft-neg-in86.2%
cancel-sign-sub86.2%
associate-*l*86.2%
associate-*l*86.2%
Simplified86.2%
Taylor expanded in j around 0 67.6%
Taylor expanded in x around 0 46.7%
if -3.7999999999999999e57 < j < -7.0000000000000004e-25 or -3.8999999999999999e-244 < j < 1.59999999999999994e-79Initial program 87.8%
sub-neg87.8%
associate-+l-87.8%
sub-neg87.8%
sub-neg87.8%
distribute-rgt-out--89.2%
associate-*l*93.2%
distribute-lft-neg-in93.2%
cancel-sign-sub93.2%
associate-*l*93.2%
associate-*l*93.2%
Simplified93.2%
Taylor expanded in x around inf 56.0%
if -7.0000000000000004e-25 < j < -3.5999999999999998e-104Initial program 81.5%
sub-neg81.5%
associate-+l-81.5%
sub-neg81.5%
sub-neg81.5%
distribute-rgt-out--86.3%
associate-*l*85.7%
distribute-lft-neg-in85.7%
cancel-sign-sub85.7%
associate-*l*85.7%
associate-*l*85.6%
Simplified85.6%
Taylor expanded in t around inf 69.5%
if 1.59999999999999994e-79 < j Initial program 74.8%
Taylor expanded in x around 0 77.1%
Taylor expanded in j around inf 43.2%
*-commutative43.2%
*-commutative43.2%
*-commutative43.2%
associate-*r*43.2%
Simplified43.2%
Final simplification50.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))))
(if (<= j -1.05e+169)
(* -27.0 (* k j))
(if (<= j -2.1e+64)
t_1
(if (<= j -4.5e-27)
(+ (* 18.0 (* y (* t (* x z)))) (* -4.0 (* x i)))
(if (<= j -8.5e-106)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= j -3.9e-244)
t_1
(if (<= j 1.6e-79)
(* x (- (* 18.0 (* y (* t z))) (* i 4.0)))
(* k (* j -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double tmp;
if (j <= -1.05e+169) {
tmp = -27.0 * (k * j);
} else if (j <= -2.1e+64) {
tmp = t_1;
} else if (j <= -4.5e-27) {
tmp = (18.0 * (y * (t * (x * z)))) + (-4.0 * (x * i));
} else if (j <= -8.5e-106) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (j <= -3.9e-244) {
tmp = t_1;
} else if (j <= 1.6e-79) {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
if (j <= (-1.05d+169)) then
tmp = (-27.0d0) * (k * j)
else if (j <= (-2.1d+64)) then
tmp = t_1
else if (j <= (-4.5d-27)) then
tmp = (18.0d0 * (y * (t * (x * z)))) + ((-4.0d0) * (x * i))
else if (j <= (-8.5d-106)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (j <= (-3.9d-244)) then
tmp = t_1
else if (j <= 1.6d-79) then
tmp = x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0))
else
tmp = k * (j * (-27.0d0))
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 k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double tmp;
if (j <= -1.05e+169) {
tmp = -27.0 * (k * j);
} else if (j <= -2.1e+64) {
tmp = t_1;
} else if (j <= -4.5e-27) {
tmp = (18.0 * (y * (t * (x * z)))) + (-4.0 * (x * i));
} else if (j <= -8.5e-106) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (j <= -3.9e-244) {
tmp = t_1;
} else if (j <= 1.6e-79) {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (-4.0 * (t * a)) tmp = 0 if j <= -1.05e+169: tmp = -27.0 * (k * j) elif j <= -2.1e+64: tmp = t_1 elif j <= -4.5e-27: tmp = (18.0 * (y * (t * (x * z)))) + (-4.0 * (x * i)) elif j <= -8.5e-106: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif j <= -3.9e-244: tmp = t_1 elif j <= 1.6e-79: tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)) else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) tmp = 0.0 if (j <= -1.05e+169) tmp = Float64(-27.0 * Float64(k * j)); elseif (j <= -2.1e+64) tmp = t_1; elseif (j <= -4.5e-27) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) + Float64(-4.0 * Float64(x * i))); elseif (j <= -8.5e-106) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (j <= -3.9e-244) tmp = t_1; elseif (j <= 1.6e-79) tmp = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))); else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (-4.0 * (t * a)); tmp = 0.0; if (j <= -1.05e+169) tmp = -27.0 * (k * j); elseif (j <= -2.1e+64) tmp = t_1; elseif (j <= -4.5e-27) tmp = (18.0 * (y * (t * (x * z)))) + (-4.0 * (x * i)); elseif (j <= -8.5e-106) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (j <= -3.9e-244) tmp = t_1; elseif (j <= 1.6e-79) tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)); else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.05e+169], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.1e+64], t$95$1, If[LessEqual[j, -4.5e-27], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.5e-106], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.9e-244], t$95$1, If[LessEqual[j, 1.6e-79], N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;j \leq -1.05 \cdot 10^{+169}:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;j \leq -2.1 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-27}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) + -4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-106}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;j \leq -3.9 \cdot 10^{-244}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-79}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if j < -1.0500000000000001e169Initial program 77.2%
sub-neg77.2%
+-commutative77.2%
associate-*l*77.2%
distribute-rgt-neg-in77.2%
fma-def86.3%
*-commutative86.3%
distribute-rgt-neg-in86.3%
metadata-eval86.3%
sub-neg86.3%
+-commutative86.3%
associate-*l*86.3%
distribute-rgt-neg-in86.3%
Simplified90.8%
Taylor expanded in j around inf 50.9%
if -1.0500000000000001e169 < j < -2.1e64 or -8.4999999999999998e-106 < j < -3.8999999999999999e-244Initial program 80.9%
sub-neg80.9%
associate-+l-80.9%
sub-neg80.9%
sub-neg80.9%
distribute-rgt-out--82.7%
associate-*l*86.2%
distribute-lft-neg-in86.2%
cancel-sign-sub86.2%
associate-*l*86.2%
associate-*l*86.2%
Simplified86.2%
Taylor expanded in j around 0 67.6%
Taylor expanded in x around 0 46.7%
if -2.1e64 < j < -4.5000000000000002e-27Initial program 89.0%
sub-neg89.0%
associate-+l-89.0%
sub-neg89.0%
sub-neg89.0%
distribute-rgt-out--89.0%
associate-*l*88.8%
distribute-lft-neg-in88.8%
cancel-sign-sub88.8%
associate-*l*88.8%
associate-*l*88.8%
Simplified88.8%
Taylor expanded in x around inf 51.4%
Taylor expanded in y around 0 50.5%
if -4.5000000000000002e-27 < j < -8.4999999999999998e-106Initial program 81.5%
sub-neg81.5%
associate-+l-81.5%
sub-neg81.5%
sub-neg81.5%
distribute-rgt-out--86.3%
associate-*l*85.7%
distribute-lft-neg-in85.7%
cancel-sign-sub85.7%
associate-*l*85.7%
associate-*l*85.6%
Simplified85.6%
Taylor expanded in t around inf 69.5%
if -3.8999999999999999e-244 < j < 1.59999999999999994e-79Initial program 87.5%
sub-neg87.5%
associate-+l-87.5%
sub-neg87.5%
sub-neg87.5%
distribute-rgt-out--89.3%
associate-*l*94.6%
distribute-lft-neg-in94.6%
cancel-sign-sub94.6%
associate-*l*94.6%
associate-*l*94.6%
Simplified94.6%
Taylor expanded in x around inf 57.5%
if 1.59999999999999994e-79 < j Initial program 74.8%
Taylor expanded in x around 0 77.1%
Taylor expanded in j around inf 43.2%
*-commutative43.2%
*-commutative43.2%
*-commutative43.2%
associate-*r*43.2%
Simplified43.2%
Final simplification50.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (+ (* 4.0 (* t a)) (* 4.0 (* x i)))))
(t_2 (* t (- (* 18.0 (* y (* x z))) (* a 4.0)))))
(if (<= t -9.1e+77)
t_2
(if (<= t -1.9e-180)
t_1
(if (<= t -2.2e-204)
(* k (* j -27.0))
(if (<= t 5.6e+86)
t_1
(if (<= t 1.3e+128)
(- (* 18.0 (* y (* t (* x z)))) (* 27.0 (* k j)))
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)));
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double tmp;
if (t <= -9.1e+77) {
tmp = t_2;
} else if (t <= -1.9e-180) {
tmp = t_1;
} else if (t <= -2.2e-204) {
tmp = k * (j * -27.0);
} else if (t <= 5.6e+86) {
tmp = t_1;
} else if (t <= 1.3e+128) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - ((4.0d0 * (t * a)) + (4.0d0 * (x * i)))
t_2 = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
if (t <= (-9.1d+77)) then
tmp = t_2
else if (t <= (-1.9d-180)) then
tmp = t_1
else if (t <= (-2.2d-204)) then
tmp = k * (j * (-27.0d0))
else if (t <= 5.6d+86) then
tmp = t_1
else if (t <= 1.3d+128) then
tmp = (18.0d0 * (y * (t * (x * z)))) - (27.0d0 * (k * j))
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 k) {
double t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)));
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double tmp;
if (t <= -9.1e+77) {
tmp = t_2;
} else if (t <= -1.9e-180) {
tmp = t_1;
} else if (t <= -2.2e-204) {
tmp = k * (j * -27.0);
} else if (t <= 5.6e+86) {
tmp = t_1;
} else if (t <= 1.3e+128) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i))) t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)) tmp = 0 if t <= -9.1e+77: tmp = t_2 elif t <= -1.9e-180: tmp = t_1 elif t <= -2.2e-204: tmp = k * (j * -27.0) elif t <= 5.6e+86: tmp = t_1 elif t <= 1.3e+128: tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + Float64(4.0 * Float64(x * i)))) t_2 = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -9.1e+77) tmp = t_2; elseif (t <= -1.9e-180) tmp = t_1; elseif (t <= -2.2e-204) tmp = Float64(k * Float64(j * -27.0)); elseif (t <= 5.6e+86) tmp = t_1; elseif (t <= 1.3e+128) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - Float64(27.0 * Float64(k * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i))); t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)); tmp = 0.0; if (t <= -9.1e+77) tmp = t_2; elseif (t <= -1.9e-180) tmp = t_1; elseif (t <= -2.2e-204) tmp = k * (j * -27.0); elseif (t <= 5.6e+86) tmp = t_1; elseif (t <= 1.3e+128) tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.1e+77], t$95$2, If[LessEqual[t, -1.9e-180], t$95$1, If[LessEqual[t, -2.2e-204], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e+86], t$95$1, If[LessEqual[t, 1.3e+128], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\\
t_2 := t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -9.1 \cdot 10^{+77}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-180}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-204}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+128}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -9.10000000000000014e77 or 1.3e128 < t Initial program 76.5%
sub-neg76.5%
associate-+l-76.5%
sub-neg76.5%
sub-neg76.5%
distribute-rgt-out--80.6%
associate-*l*80.5%
distribute-lft-neg-in80.5%
cancel-sign-sub80.5%
associate-*l*80.5%
associate-*l*80.5%
Simplified80.5%
Taylor expanded in t around inf 72.1%
if -9.10000000000000014e77 < t < -1.9e-180 or -2.1999999999999998e-204 < t < 5.60000000000000008e86Initial program 83.5%
Taylor expanded in y around 0 84.5%
Taylor expanded in j around 0 66.0%
if -1.9e-180 < t < -2.1999999999999998e-204Initial program 74.8%
Taylor expanded in x around 0 74.8%
Taylor expanded in j around inf 75.1%
*-commutative75.1%
*-commutative75.1%
*-commutative75.1%
associate-*r*75.3%
Simplified75.3%
if 5.60000000000000008e86 < t < 1.3e128Initial program 87.3%
Taylor expanded in a around 0 92.4%
Taylor expanded in i around 0 92.4%
Taylor expanded in c around 0 80.1%
Final simplification69.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (+ (* 4.0 (* t a)) (* 4.0 (* x i))))))
(if (<= k -36000000000000.0)
(* -27.0 (* k j))
(if (<= k 1.36e-288)
t_1
(if (<= k 5.6e-208)
(* x (- (* 18.0 (* y (* t z))) (* i 4.0)))
(if (<= k 4e-71)
t_1
(if (<= k 9e+86)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(- (+ (* b c) (* -4.0 (* t a))) (* 27.0 (* k j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)));
double tmp;
if (k <= -36000000000000.0) {
tmp = -27.0 * (k * j);
} else if (k <= 1.36e-288) {
tmp = t_1;
} else if (k <= 5.6e-208) {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
} else if (k <= 4e-71) {
tmp = t_1;
} else if (k <= 9e+86) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) - ((4.0d0 * (t * a)) + (4.0d0 * (x * i)))
if (k <= (-36000000000000.0d0)) then
tmp = (-27.0d0) * (k * j)
else if (k <= 1.36d-288) then
tmp = t_1
else if (k <= 5.6d-208) then
tmp = x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0))
else if (k <= 4d-71) then
tmp = t_1
else if (k <= 9d+86) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else
tmp = ((b * c) + ((-4.0d0) * (t * a))) - (27.0d0 * (k * 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 k) {
double t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)));
double tmp;
if (k <= -36000000000000.0) {
tmp = -27.0 * (k * j);
} else if (k <= 1.36e-288) {
tmp = t_1;
} else if (k <= 5.6e-208) {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
} else if (k <= 4e-71) {
tmp = t_1;
} else if (k <= 9e+86) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i))) tmp = 0 if k <= -36000000000000.0: tmp = -27.0 * (k * j) elif k <= 1.36e-288: tmp = t_1 elif k <= 5.6e-208: tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)) elif k <= 4e-71: tmp = t_1 elif k <= 9e+86: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) else: tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + Float64(4.0 * Float64(x * i)))) tmp = 0.0 if (k <= -36000000000000.0) tmp = Float64(-27.0 * Float64(k * j)); elseif (k <= 1.36e-288) tmp = t_1; elseif (k <= 5.6e-208) tmp = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))); elseif (k <= 4e-71) tmp = t_1; elseif (k <= 9e+86) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); else tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(27.0 * Float64(k * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - ((4.0 * (t * a)) + (4.0 * (x * i))); tmp = 0.0; if (k <= -36000000000000.0) tmp = -27.0 * (k * j); elseif (k <= 1.36e-288) tmp = t_1; elseif (k <= 5.6e-208) tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)); elseif (k <= 4e-71) tmp = t_1; elseif (k <= 9e+86) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); else tmp = ((b * c) + (-4.0 * (t * a))) - (27.0 * (k * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -36000000000000.0], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.36e-288], t$95$1, If[LessEqual[k, 5.6e-208], N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4e-71], t$95$1, If[LessEqual[k, 9e+86], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{if}\;k \leq -36000000000000:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;k \leq 1.36 \cdot 10^{-288}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 5.6 \cdot 10^{-208}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{elif}\;k \leq 4 \cdot 10^{-71}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 9 \cdot 10^{+86}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\end{array}
\end{array}
if k < -3.6e13Initial program 79.1%
sub-neg79.1%
+-commutative79.1%
associate-*l*79.1%
distribute-rgt-neg-in79.1%
fma-def80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
metadata-eval80.9%
sub-neg80.9%
+-commutative80.9%
associate-*l*80.9%
distribute-rgt-neg-in80.9%
Simplified80.8%
Taylor expanded in j around inf 43.8%
if -3.6e13 < k < 1.36000000000000007e-288 or 5.60000000000000003e-208 < k < 3.9999999999999997e-71Initial program 86.7%
Taylor expanded in y around 0 82.0%
Taylor expanded in j around 0 75.4%
if 1.36000000000000007e-288 < k < 5.60000000000000003e-208Initial program 78.9%
sub-neg78.9%
associate-+l-78.9%
sub-neg78.9%
sub-neg78.9%
distribute-rgt-out--78.9%
associate-*l*84.3%
distribute-lft-neg-in84.3%
cancel-sign-sub84.3%
associate-*l*84.3%
associate-*l*84.3%
Simplified84.3%
Taylor expanded in x around inf 64.4%
if 3.9999999999999997e-71 < k < 8.99999999999999986e86Initial program 75.0%
sub-neg75.0%
associate-+l-75.0%
sub-neg75.0%
sub-neg75.0%
distribute-rgt-out--84.1%
associate-*l*79.5%
distribute-lft-neg-in79.5%
cancel-sign-sub79.5%
associate-*l*79.5%
associate-*l*79.4%
Simplified79.4%
Taylor expanded in t around inf 58.9%
if 8.99999999999999986e86 < k Initial program 77.5%
sub-neg77.5%
associate-+l-77.5%
sub-neg77.5%
sub-neg77.5%
distribute-rgt-out--77.5%
associate-*l*75.4%
distribute-lft-neg-in75.4%
cancel-sign-sub75.4%
associate-*l*75.4%
associate-*l*75.4%
Simplified75.4%
Taylor expanded in x around 0 66.3%
Final simplification63.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* k j)))
(t_2 (- (+ (* b c) (* -4.0 (* t a))) t_1))
(t_3 (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* i 4.0))))))
(if (<= x -4.7e-33)
t_3
(if (<= x 1.4e-51)
t_2
(if (<= x 1.9e-32)
(- (* 18.0 (* y (* t (* x z)))) t_1)
(if (<= x 9.8e+58) 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 k) {
double t_1 = 27.0 * (k * j);
double t_2 = ((b * c) + (-4.0 * (t * a))) - t_1;
double t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
double tmp;
if (x <= -4.7e-33) {
tmp = t_3;
} else if (x <= 1.4e-51) {
tmp = t_2;
} else if (x <= 1.9e-32) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (x <= 9.8e+58) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = 27.0d0 * (k * j)
t_2 = ((b * c) + ((-4.0d0) * (t * a))) - t_1
t_3 = (b * c) + (x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0)))
if (x <= (-4.7d-33)) then
tmp = t_3
else if (x <= 1.4d-51) then
tmp = t_2
else if (x <= 1.9d-32) then
tmp = (18.0d0 * (y * (t * (x * z)))) - t_1
else if (x <= 9.8d+58) 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 k) {
double t_1 = 27.0 * (k * j);
double t_2 = ((b * c) + (-4.0 * (t * a))) - t_1;
double t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0)));
double tmp;
if (x <= -4.7e-33) {
tmp = t_3;
} else if (x <= 1.4e-51) {
tmp = t_2;
} else if (x <= 1.9e-32) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (x <= 9.8e+58) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (k * j) t_2 = ((b * c) + (-4.0 * (t * a))) - t_1 t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))) tmp = 0 if x <= -4.7e-33: tmp = t_3 elif x <= 1.4e-51: tmp = t_2 elif x <= 1.9e-32: tmp = (18.0 * (y * (t * (x * z)))) - t_1 elif x <= 9.8e+58: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(27.0 * Float64(k * j)) t_2 = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1) t_3 = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0)))) tmp = 0.0 if (x <= -4.7e-33) tmp = t_3; elseif (x <= 1.4e-51) tmp = t_2; elseif (x <= 1.9e-32) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - t_1); elseif (x <= 9.8e+58) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 27.0 * (k * j); t_2 = ((b * c) + (-4.0 * (t * a))) - t_1; t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (i * 4.0))); tmp = 0.0; if (x <= -4.7e-33) tmp = t_3; elseif (x <= 1.4e-51) tmp = t_2; elseif (x <= 1.9e-32) tmp = (18.0 * (y * (t * (x * z)))) - t_1; elseif (x <= 9.8e+58) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.7e-33], t$95$3, If[LessEqual[x, 1.4e-51], t$95$2, If[LessEqual[x, 1.9e-32], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 9.8e+58], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27 \cdot \left(k \cdot j\right)\\
t_2 := \left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t_1\\
t_3 := b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -4.7 \cdot 10^{-33}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-51}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-32}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t_1\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{+58}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -4.7000000000000002e-33 or 9.80000000000000037e58 < x Initial program 73.7%
Taylor expanded in x around 0 87.8%
Taylor expanded in a around 0 82.9%
Taylor expanded in j around 0 80.2%
if -4.7000000000000002e-33 < x < 1.4e-51 or 1.90000000000000004e-32 < x < 9.80000000000000037e58Initial program 89.8%
sub-neg89.8%
associate-+l-89.8%
sub-neg89.8%
sub-neg89.8%
distribute-rgt-out--91.5%
associate-*l*88.0%
distribute-lft-neg-in88.0%
cancel-sign-sub88.0%
associate-*l*88.0%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around 0 84.4%
if 1.4e-51 < x < 1.90000000000000004e-32Initial program 58.8%
Taylor expanded in a around 0 99.4%
Taylor expanded in i around 0 86.2%
Taylor expanded in c around 0 86.2%
Final simplification82.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (- (* 18.0 (* y (* x z))) (* a 4.0)))) (t_2 (* 4.0 (* x i))))
(if (<= t -2.1e+129)
(+ (* b c) t_1)
(if (<= t 4.8e+210)
(- (- (* b c) (+ (* 4.0 (* t a)) t_2)) (* k (* j 27.0)))
(- 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 k) {
double t_1 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double t_2 = 4.0 * (x * i);
double tmp;
if (t <= -2.1e+129) {
tmp = (b * c) + t_1;
} else if (t <= 4.8e+210) {
tmp = ((b * c) - ((4.0 * (t * a)) + t_2)) - (k * (j * 27.0));
} else {
tmp = t_1 - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
t_2 = 4.0d0 * (x * i)
if (t <= (-2.1d+129)) then
tmp = (b * c) + t_1
else if (t <= 4.8d+210) then
tmp = ((b * c) - ((4.0d0 * (t * a)) + t_2)) - (k * (j * 27.0d0))
else
tmp = t_1 - 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 k) {
double t_1 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double t_2 = 4.0 * (x * i);
double tmp;
if (t <= -2.1e+129) {
tmp = (b * c) + t_1;
} else if (t <= 4.8e+210) {
tmp = ((b * c) - ((4.0 * (t * a)) + t_2)) - (k * (j * 27.0));
} else {
tmp = t_1 - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * ((18.0 * (y * (x * z))) - (a * 4.0)) t_2 = 4.0 * (x * i) tmp = 0 if t <= -2.1e+129: tmp = (b * c) + t_1 elif t <= 4.8e+210: tmp = ((b * c) - ((4.0 * (t * a)) + t_2)) - (k * (j * 27.0)) else: tmp = t_1 - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) t_2 = Float64(4.0 * Float64(x * i)) tmp = 0.0 if (t <= -2.1e+129) tmp = Float64(Float64(b * c) + t_1); elseif (t <= 4.8e+210) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + t_2)) - Float64(k * Float64(j * 27.0))); else tmp = Float64(t_1 - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = t * ((18.0 * (y * (x * z))) - (a * 4.0)); t_2 = 4.0 * (x * i); tmp = 0.0; if (t <= -2.1e+129) tmp = (b * c) + t_1; elseif (t <= 4.8e+210) tmp = ((b * c) - ((4.0 * (t * a)) + t_2)) - (k * (j * 27.0)); else tmp = t_1 - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.1e+129], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[t, 4.8e+210], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
t_2 := 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+129}:\\
\;\;\;\;b \cdot c + t_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+210}:\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + t_2\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 - t_2\\
\end{array}
\end{array}
if t < -2.09999999999999997e129Initial program 63.8%
sub-neg63.8%
associate-+l-63.8%
sub-neg63.8%
sub-neg63.8%
distribute-rgt-out--70.2%
associate-*l*70.2%
distribute-lft-neg-in70.2%
cancel-sign-sub70.2%
associate-*l*70.2%
associate-*l*70.2%
Simplified70.2%
Taylor expanded in j around 0 78.7%
Taylor expanded in i around 0 81.2%
if -2.09999999999999997e129 < t < 4.79999999999999977e210Initial program 83.8%
Taylor expanded in y around 0 82.0%
if 4.79999999999999977e210 < t Initial program 90.5%
sub-neg90.5%
associate-+l-90.5%
sub-neg90.5%
sub-neg90.5%
distribute-rgt-out--90.5%
associate-*l*95.1%
distribute-lft-neg-in95.1%
cancel-sign-sub95.1%
associate-*l*95.1%
associate-*l*95.1%
Simplified95.1%
Taylor expanded in j around 0 99.9%
Taylor expanded in c around 0 95.2%
Final simplification82.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))))
(if (<= a -8.6e+170)
t_1
(if (<= a 3.4e-257)
(- (* 18.0 (* y (* t (* x z)))) (* 27.0 (* k j)))
(if (<= a 6.2e-10)
(* x (- (* 18.0 (* y (* t z))) (* i 4.0)))
(if (<= a 7.4e+145)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double tmp;
if (a <= -8.6e+170) {
tmp = t_1;
} else if (a <= 3.4e-257) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else if (a <= 6.2e-10) {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
} else if (a <= 7.4e+145) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
if (a <= (-8.6d+170)) then
tmp = t_1
else if (a <= 3.4d-257) then
tmp = (18.0d0 * (y * (t * (x * z)))) - (27.0d0 * (k * j))
else if (a <= 6.2d-10) then
tmp = x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0))
else if (a <= 7.4d+145) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
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 k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double tmp;
if (a <= -8.6e+170) {
tmp = t_1;
} else if (a <= 3.4e-257) {
tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j));
} else if (a <= 6.2e-10) {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
} else if (a <= 7.4e+145) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (-4.0 * (t * a)) tmp = 0 if a <= -8.6e+170: tmp = t_1 elif a <= 3.4e-257: tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)) elif a <= 6.2e-10: tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)) elif a <= 7.4e+145: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) tmp = 0.0 if (a <= -8.6e+170) tmp = t_1; elseif (a <= 3.4e-257) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - Float64(27.0 * Float64(k * j))); elseif (a <= 6.2e-10) tmp = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))); elseif (a <= 7.4e+145) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (-4.0 * (t * a)); tmp = 0.0; if (a <= -8.6e+170) tmp = t_1; elseif (a <= 3.4e-257) tmp = (18.0 * (y * (t * (x * z)))) - (27.0 * (k * j)); elseif (a <= 6.2e-10) tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)); elseif (a <= 7.4e+145) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.6e+170], t$95$1, If[LessEqual[a, 3.4e-257], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e-10], N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.4e+145], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -8.6 \cdot 10^{+170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-257}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - 27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{elif}\;a \leq 7.4 \cdot 10^{+145}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -8.5999999999999997e170 or 7.39999999999999986e145 < a Initial program 80.6%
sub-neg80.6%
associate-+l-80.6%
sub-neg80.6%
sub-neg80.6%
distribute-rgt-out--84.9%
associate-*l*81.9%
distribute-lft-neg-in81.9%
cancel-sign-sub81.9%
associate-*l*81.9%
associate-*l*81.9%
Simplified81.9%
Taylor expanded in j around 0 83.6%
Taylor expanded in x around 0 72.2%
if -8.5999999999999997e170 < a < 3.3999999999999998e-257Initial program 79.9%
Taylor expanded in a around 0 78.3%
Taylor expanded in i around 0 71.3%
Taylor expanded in c around 0 61.1%
if 3.3999999999999998e-257 < a < 6.2000000000000003e-10Initial program 80.6%
sub-neg80.6%
associate-+l-80.6%
sub-neg80.6%
sub-neg80.6%
distribute-rgt-out--80.6%
associate-*l*86.2%
distribute-lft-neg-in86.2%
cancel-sign-sub86.2%
associate-*l*86.2%
associate-*l*86.2%
Simplified86.2%
Taylor expanded in x around inf 55.7%
if 6.2000000000000003e-10 < a < 7.39999999999999986e145Initial program 83.3%
sub-neg83.3%
associate-+l-83.3%
sub-neg83.3%
sub-neg83.3%
distribute-rgt-out--90.0%
associate-*l*86.7%
distribute-lft-neg-in86.7%
cancel-sign-sub86.7%
associate-*l*86.7%
associate-*l*86.6%
Simplified86.6%
Taylor expanded in t around inf 69.9%
Final simplification64.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= k -36000000000000.0)
(* -27.0 (* k j))
(if (<= k 2.3e-292)
(+ (* b c) (* -4.0 (* t a)))
(if (<= k 1.65e+182)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(* k (* j -27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (k <= -36000000000000.0) {
tmp = -27.0 * (k * j);
} else if (k <= 2.3e-292) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (k <= 1.65e+182) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: tmp
if (k <= (-36000000000000.0d0)) then
tmp = (-27.0d0) * (k * j)
else if (k <= 2.3d-292) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (k <= 1.65d+182) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else
tmp = k * (j * (-27.0d0))
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 k) {
double tmp;
if (k <= -36000000000000.0) {
tmp = -27.0 * (k * j);
} else if (k <= 2.3e-292) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (k <= 1.65e+182) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if k <= -36000000000000.0: tmp = -27.0 * (k * j) elif k <= 2.3e-292: tmp = (b * c) + (-4.0 * (t * a)) elif k <= 1.65e+182: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (k <= -36000000000000.0) tmp = Float64(-27.0 * Float64(k * j)); elseif (k <= 2.3e-292) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (k <= 1.65e+182) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (k <= -36000000000000.0) tmp = -27.0 * (k * j); elseif (k <= 2.3e-292) tmp = (b * c) + (-4.0 * (t * a)); elseif (k <= 1.65e+182) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[k, -36000000000000.0], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.3e-292], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.65e+182], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -36000000000000:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;k \leq 2.3 \cdot 10^{-292}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;k \leq 1.65 \cdot 10^{+182}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if k < -3.6e13Initial program 79.1%
sub-neg79.1%
+-commutative79.1%
associate-*l*79.1%
distribute-rgt-neg-in79.1%
fma-def80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
metadata-eval80.9%
sub-neg80.9%
+-commutative80.9%
associate-*l*80.9%
distribute-rgt-neg-in80.9%
Simplified80.8%
Taylor expanded in j around inf 43.8%
if -3.6e13 < k < 2.2999999999999999e-292Initial program 83.6%
sub-neg83.6%
associate-+l-83.6%
sub-neg83.6%
sub-neg83.6%
distribute-rgt-out--83.6%
associate-*l*93.3%
distribute-lft-neg-in93.3%
cancel-sign-sub93.3%
associate-*l*93.3%
associate-*l*93.3%
Simplified93.3%
Taylor expanded in j around 0 85.2%
Taylor expanded in x around 0 58.2%
if 2.2999999999999999e-292 < k < 1.65e182Initial program 82.4%
sub-neg82.4%
associate-+l-82.4%
sub-neg82.4%
sub-neg82.4%
distribute-rgt-out--85.9%
associate-*l*85.0%
distribute-lft-neg-in85.0%
cancel-sign-sub85.0%
associate-*l*85.0%
associate-*l*85.0%
Simplified85.0%
Taylor expanded in t around inf 50.2%
if 1.65e182 < k Initial program 70.3%
Taylor expanded in x around 0 70.3%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
*-commutative53.1%
*-commutative53.1%
associate-*r*53.2%
Simplified53.2%
Final simplification50.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -6.6e+171)
(* -27.0 (* k j))
(if (<= j 2.3e-248)
(+ (* b c) (* -4.0 (* t a)))
(if (<= j 1.45e-69) (* 18.0 (* x (* z (* t y)))) (* k (* j -27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -6.6e+171) {
tmp = -27.0 * (k * j);
} else if (j <= 2.3e-248) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (j <= 1.45e-69) {
tmp = 18.0 * (x * (z * (t * y)));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: tmp
if (j <= (-6.6d+171)) then
tmp = (-27.0d0) * (k * j)
else if (j <= 2.3d-248) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (j <= 1.45d-69) then
tmp = 18.0d0 * (x * (z * (t * y)))
else
tmp = k * (j * (-27.0d0))
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 k) {
double tmp;
if (j <= -6.6e+171) {
tmp = -27.0 * (k * j);
} else if (j <= 2.3e-248) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (j <= 1.45e-69) {
tmp = 18.0 * (x * (z * (t * y)));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -6.6e+171: tmp = -27.0 * (k * j) elif j <= 2.3e-248: tmp = (b * c) + (-4.0 * (t * a)) elif j <= 1.45e-69: tmp = 18.0 * (x * (z * (t * y))) else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -6.6e+171) tmp = Float64(-27.0 * Float64(k * j)); elseif (j <= 2.3e-248) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (j <= 1.45e-69) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(t * y)))); else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -6.6e+171) tmp = -27.0 * (k * j); elseif (j <= 2.3e-248) tmp = (b * c) + (-4.0 * (t * a)); elseif (j <= 1.45e-69) tmp = 18.0 * (x * (z * (t * y))); else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -6.6e+171], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-248], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e-69], N[(18.0 * N[(x * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.6 \cdot 10^{+171}:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-248}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{-69}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if j < -6.59999999999999982e171Initial program 77.2%
sub-neg77.2%
+-commutative77.2%
associate-*l*77.2%
distribute-rgt-neg-in77.2%
fma-def86.3%
*-commutative86.3%
distribute-rgt-neg-in86.3%
metadata-eval86.3%
sub-neg86.3%
+-commutative86.3%
associate-*l*86.3%
distribute-rgt-neg-in86.3%
Simplified90.8%
Taylor expanded in j around inf 50.9%
if -6.59999999999999982e171 < j < 2.3e-248Initial program 83.7%
sub-neg83.7%
associate-+l-83.7%
sub-neg83.7%
sub-neg83.7%
distribute-rgt-out--86.2%
associate-*l*88.5%
distribute-lft-neg-in88.5%
cancel-sign-sub88.5%
associate-*l*88.5%
associate-*l*88.5%
Simplified88.5%
Taylor expanded in j around 0 77.4%
Taylor expanded in x around 0 47.9%
if 2.3e-248 < j < 1.4499999999999999e-69Initial program 87.0%
sub-neg87.0%
associate-+l-87.0%
sub-neg87.0%
sub-neg87.0%
distribute-rgt-out--87.0%
associate-*l*93.5%
distribute-lft-neg-in93.5%
cancel-sign-sub93.5%
associate-*l*93.5%
associate-*l*93.5%
Simplified93.5%
Taylor expanded in j around 0 90.2%
Taylor expanded in y around inf 41.0%
associate-*r*38.1%
associate-*r*38.1%
*-commutative38.1%
*-commutative38.1%
associate-*l*38.3%
Simplified38.3%
if 1.4499999999999999e-69 < j Initial program 74.8%
Taylor expanded in x around 0 77.1%
Taylor expanded in j around inf 43.2%
*-commutative43.2%
*-commutative43.2%
*-commutative43.2%
associate-*r*43.2%
Simplified43.2%
Final simplification45.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))))
(if (<= a -4.5e+170)
t_1
(if (<= a 2.25e-69) (* -27.0 (* k j)) (if (<= a 1.35e+22) (* b c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_1;
} else if (a <= 2.25e-69) {
tmp = -27.0 * (k * j);
} else if (a <= 1.35e+22) {
tmp = b * c;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (t * a)
if (a <= (-4.5d+170)) then
tmp = t_1
else if (a <= 2.25d-69) then
tmp = (-27.0d0) * (k * j)
else if (a <= 1.35d+22) then
tmp = b * 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 k) {
double t_1 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_1;
} else if (a <= 2.25e-69) {
tmp = -27.0 * (k * j);
} else if (a <= 1.35e+22) {
tmp = b * c;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (t * a) tmp = 0 if a <= -4.5e+170: tmp = t_1 elif a <= 2.25e-69: tmp = -27.0 * (k * j) elif a <= 1.35e+22: tmp = b * c else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -4.5e+170) tmp = t_1; elseif (a <= 2.25e-69) tmp = Float64(-27.0 * Float64(k * j)); elseif (a <= 1.35e+22) tmp = Float64(b * c); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (t * a); tmp = 0.0; if (a <= -4.5e+170) tmp = t_1; elseif (a <= 2.25e-69) tmp = -27.0 * (k * j); elseif (a <= 1.35e+22) tmp = b * c; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+170], t$95$1, If[LessEqual[a, 2.25e-69], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+22], N[(b * c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.25 \cdot 10^{-69}:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+22}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.50000000000000022e170 or 1.3500000000000001e22 < a Initial program 79.8%
Taylor expanded in x around 0 76.3%
Taylor expanded in a around inf 52.5%
*-commutative52.5%
Simplified52.5%
if -4.50000000000000022e170 < a < 2.25000000000000005e-69Initial program 79.0%
sub-neg79.0%
+-commutative79.0%
associate-*l*79.0%
distribute-rgt-neg-in79.0%
fma-def80.4%
*-commutative80.4%
distribute-rgt-neg-in80.4%
metadata-eval80.4%
sub-neg80.4%
+-commutative80.4%
associate-*l*80.4%
distribute-rgt-neg-in80.4%
Simplified89.5%
Taylor expanded in j around inf 33.4%
if 2.25000000000000005e-69 < a < 1.3500000000000001e22Initial program 95.2%
Taylor expanded in x around 0 99.9%
Taylor expanded in c around inf 39.7%
Final simplification40.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))))
(if (<= a -5.5e+170)
t_1
(if (<= a 5.8e-182)
(* -27.0 (* k j))
(if (<= a 9.5e-11) (* -4.0 (* x i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if (a <= -5.5e+170) {
tmp = t_1;
} else if (a <= 5.8e-182) {
tmp = -27.0 * (k * j);
} else if (a <= 9.5e-11) {
tmp = -4.0 * (x * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (t * a)
if (a <= (-5.5d+170)) then
tmp = t_1
else if (a <= 5.8d-182) then
tmp = (-27.0d0) * (k * j)
else if (a <= 9.5d-11) then
tmp = (-4.0d0) * (x * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if (a <= -5.5e+170) {
tmp = t_1;
} else if (a <= 5.8e-182) {
tmp = -27.0 * (k * j);
} else if (a <= 9.5e-11) {
tmp = -4.0 * (x * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (t * a) tmp = 0 if a <= -5.5e+170: tmp = t_1 elif a <= 5.8e-182: tmp = -27.0 * (k * j) elif a <= 9.5e-11: tmp = -4.0 * (x * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -5.5e+170) tmp = t_1; elseif (a <= 5.8e-182) tmp = Float64(-27.0 * Float64(k * j)); elseif (a <= 9.5e-11) tmp = Float64(-4.0 * Float64(x * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (t * a); tmp = 0.0; if (a <= -5.5e+170) tmp = t_1; elseif (a <= 5.8e-182) tmp = -27.0 * (k * j); elseif (a <= 9.5e-11) tmp = -4.0 * (x * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+170], t$95$1, If[LessEqual[a, 5.8e-182], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-11], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{-182}:\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-11}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -5.4999999999999999e170 or 9.49999999999999951e-11 < a Initial program 81.4%
Taylor expanded in x around 0 78.2%
Taylor expanded in a around inf 49.6%
*-commutative49.6%
Simplified49.6%
if -5.4999999999999999e170 < a < 5.79999999999999974e-182Initial program 77.8%
sub-neg77.8%
+-commutative77.8%
associate-*l*77.7%
distribute-rgt-neg-in77.7%
fma-def79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
metadata-eval79.4%
sub-neg79.4%
+-commutative79.4%
associate-*l*79.4%
distribute-rgt-neg-in79.4%
Simplified88.9%
Taylor expanded in j around inf 36.1%
if 5.79999999999999974e-182 < a < 9.49999999999999951e-11Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
Final simplification42.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))))
(if (<= a -4.5e+170)
t_1
(if (<= a 1.36e-180)
(* k (* j -27.0))
(if (<= a 5.5e-10) (* -4.0 (* x i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_1;
} else if (a <= 1.36e-180) {
tmp = k * (j * -27.0);
} else if (a <= 5.5e-10) {
tmp = -4.0 * (x * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (t * a)
if (a <= (-4.5d+170)) then
tmp = t_1
else if (a <= 1.36d-180) then
tmp = k * (j * (-27.0d0))
else if (a <= 5.5d-10) then
tmp = (-4.0d0) * (x * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if (a <= -4.5e+170) {
tmp = t_1;
} else if (a <= 1.36e-180) {
tmp = k * (j * -27.0);
} else if (a <= 5.5e-10) {
tmp = -4.0 * (x * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (t * a) tmp = 0 if a <= -4.5e+170: tmp = t_1 elif a <= 1.36e-180: tmp = k * (j * -27.0) elif a <= 5.5e-10: tmp = -4.0 * (x * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -4.5e+170) tmp = t_1; elseif (a <= 1.36e-180) tmp = Float64(k * Float64(j * -27.0)); elseif (a <= 5.5e-10) tmp = Float64(-4.0 * Float64(x * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (t * a); tmp = 0.0; if (a <= -4.5e+170) tmp = t_1; elseif (a <= 1.36e-180) tmp = k * (j * -27.0); elseif (a <= 5.5e-10) tmp = -4.0 * (x * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+170], t$95$1, If[LessEqual[a, 1.36e-180], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-10], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.36 \cdot 10^{-180}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-10}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.50000000000000022e170 or 5.4999999999999996e-10 < a Initial program 81.4%
Taylor expanded in x around 0 78.2%
Taylor expanded in a around inf 49.6%
*-commutative49.6%
Simplified49.6%
if -4.50000000000000022e170 < a < 1.36e-180Initial program 77.8%
Taylor expanded in x around 0 86.5%
Taylor expanded in j around inf 36.1%
*-commutative36.1%
*-commutative36.1%
*-commutative36.1%
associate-*r*36.2%
Simplified36.2%
if 1.36e-180 < a < 5.4999999999999996e-10Initial program 90.1%
sub-neg90.1%
+-commutative90.1%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
fma-def90.0%
*-commutative90.0%
distribute-rgt-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
+-commutative90.0%
associate-*l*90.0%
distribute-rgt-neg-in90.0%
Simplified93.1%
Taylor expanded in i around inf 44.4%
*-commutative44.4%
Simplified44.4%
Final simplification42.4%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= j -2.8e+102) (not (<= j 7e-171))) (* -27.0 (* k j)) (* b c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((j <= -2.8e+102) || !(j <= 7e-171)) {
tmp = -27.0 * (k * j);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: tmp
if ((j <= (-2.8d+102)) .or. (.not. (j <= 7d-171))) then
tmp = (-27.0d0) * (k * j)
else
tmp = b * 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 k) {
double tmp;
if ((j <= -2.8e+102) || !(j <= 7e-171)) {
tmp = -27.0 * (k * j);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (j <= -2.8e+102) or not (j <= 7e-171): tmp = -27.0 * (k * j) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((j <= -2.8e+102) || !(j <= 7e-171)) tmp = Float64(-27.0 * Float64(k * j)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((j <= -2.8e+102) || ~((j <= 7e-171))) tmp = -27.0 * (k * j); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[j, -2.8e+102], N[Not[LessEqual[j, 7e-171]], $MachinePrecision]], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.8 \cdot 10^{+102} \lor \neg \left(j \leq 7 \cdot 10^{-171}\right):\\
\;\;\;\;-27 \cdot \left(k \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if j < -2.80000000000000018e102 or 6.99999999999999988e-171 < j Initial program 78.0%
sub-neg78.0%
+-commutative78.0%
associate-*l*78.0%
distribute-rgt-neg-in78.0%
fma-def81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
metadata-eval81.5%
sub-neg81.5%
+-commutative81.5%
associate-*l*81.5%
distribute-rgt-neg-in81.5%
Simplified87.2%
Taylor expanded in j around inf 38.4%
if -2.80000000000000018e102 < j < 6.99999999999999988e-171Initial program 83.9%
Taylor expanded in x around 0 88.9%
Taylor expanded in c around inf 27.7%
Final simplification33.5%
(FPCore (x y z t a b c i j k) :precision binary64 (* b c))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
code = b * c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
def code(x, y, z, t, a, b, c, i, j, k): return b * c
function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = b * c; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
\\
b \cdot c
\end{array}
Initial program 80.7%
Taylor expanded in x around 0 84.0%
Taylor expanded in c around inf 22.5%
Final simplification22.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (+ (* a t) (* i x)) 4.0))
(t_2
(-
(- (* (* 18.0 t) (* (* x y) z)) t_1)
(- (* (* k j) 27.0) (* c b)))))
(if (< t -1.6210815397541398e-69)
t_2
(if (< t 165.68027943805222)
(+ (- (* (* 18.0 y) (* x (* z t))) t_1) (- (* c b) (* 27.0 (* k j))))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((a * t) + (i * x)) * 4.0;
double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
double tmp;
if (t < -1.6210815397541398e-69) {
tmp = t_2;
} else if (t < 165.68027943805222) {
tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((a * t) + (i * x)) * 4.0d0
t_2 = (((18.0d0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0d0) - (c * b))
if (t < (-1.6210815397541398d-69)) then
tmp = t_2
else if (t < 165.68027943805222d0) then
tmp = (((18.0d0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0d0 * (k * j)))
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 k) {
double t_1 = ((a * t) + (i * x)) * 4.0;
double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
double tmp;
if (t < -1.6210815397541398e-69) {
tmp = t_2;
} else if (t < 165.68027943805222) {
tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((a * t) + (i * x)) * 4.0 t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b)) tmp = 0 if t < -1.6210815397541398e-69: tmp = t_2 elif t < 165.68027943805222: tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(a * t) + Float64(i * x)) * 4.0) t_2 = Float64(Float64(Float64(Float64(18.0 * t) * Float64(Float64(x * y) * z)) - t_1) - Float64(Float64(Float64(k * j) * 27.0) - Float64(c * b))) tmp = 0.0 if (t < -1.6210815397541398e-69) tmp = t_2; elseif (t < 165.68027943805222) tmp = Float64(Float64(Float64(Float64(18.0 * y) * Float64(x * Float64(z * t))) - t_1) + Float64(Float64(c * b) - Float64(27.0 * Float64(k * j)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((a * t) + (i * x)) * 4.0; t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b)); tmp = 0.0; if (t < -1.6210815397541398e-69) tmp = t_2; elseif (t < 165.68027943805222) tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(a * t), $MachinePrecision] + N[(i * x), $MachinePrecision]), $MachinePrecision] * 4.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(18.0 * t), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(N[(N[(k * j), $MachinePrecision] * 27.0), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.6210815397541398e-69], t$95$2, If[Less[t, 165.68027943805222], N[(N[(N[(N[(18.0 * y), $MachinePrecision] * N[(x * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(N[(c * b), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot t + i \cdot x\right) \cdot 4\\
t_2 := \left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - t_1\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\
\mathbf{if}\;t < -1.6210815397541398 \cdot 10^{-69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 165.68027943805222:\\
\;\;\;\;\left(\left(18 \cdot y\right) \cdot \left(x \cdot \left(z \cdot t\right)\right) - t_1\right) + \left(c \cdot b - 27 \cdot \left(k \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023176
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:herbie-target
(if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))