
(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 23 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 (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) {
return fma(j, (k * -27.0), fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (y * z)), (-4.0 * a)), (b * c))));
}
function code(x, y, z, t, a, b, c, i, j, k) return 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
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := 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}
\\
\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}
Initial program 87.1%
sub-neg87.1%
+-commutative87.1%
associate-*l*87.1%
distribute-rgt-neg-in87.1%
fma-def88.7%
*-commutative88.7%
distribute-rgt-neg-in88.7%
metadata-eval88.7%
sub-neg88.7%
+-commutative88.7%
associate-*l*88.3%
distribute-rgt-neg-in88.3%
Simplified93.8%
Final simplification93.8%
(FPCore (x y z t a b c i j k) :precision binary64 (+ (fma t (fma (* x 18.0) (* y z) (* -4.0 a)) (fma b c (* i (* x -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) {
return fma(t, fma((x * 18.0), (y * z), (-4.0 * a)), fma(b, c, (i * (x * -4.0)))) + (k * (j * -27.0));
}
function code(x, y, z, t, a, b, c, i, j, k) return Float64(fma(t, fma(Float64(x * 18.0), Float64(y * z), Float64(-4.0 * a)), fma(b, c, Float64(i * Float64(x * -4.0)))) + Float64(k * Float64(j * -27.0))) end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(t * N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision] + N[(b * c + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(t, \mathsf{fma}\left(x \cdot 18, y \cdot z, -4 \cdot a\right), \mathsf{fma}\left(b, c, i \cdot \left(x \cdot -4\right)\right)\right) + k \cdot \left(j \cdot -27\right)
\end{array}
Initial program 87.1%
sub-neg87.1%
*-commutative87.1%
distribute-rgt-neg-in87.1%
Simplified92.2%
Final simplification92.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<=
(-
(-
(+ (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))) (* b c))
(* i (* x 4.0)))
(* k (* j 27.0)))
INFINITY)
(-
(+ (* t (- (* (* y z) (* x 18.0)) (* a 4.0))) (* b c))
(+ (* x (* i 4.0)) (* j (* k 27.0))))
(* t (- (* 18.0 (* y (* x z))) (* a 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 ((((((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= ((double) INFINITY)) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = t * ((18.0 * (y * (x * z))) - (a * 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 ((((((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= Double.POSITIVE_INFINITY) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (((((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= math.inf: tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))) else: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))) <= Inf) tmp = Float64(Float64(Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((((((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= Inf) tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))); else tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(t * N[(N[(N[(y * z), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(\left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right) \leq \infty:\\
\;\;\;\;\left(t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \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 95.7%
sub-neg95.7%
associate-+l-95.7%
sub-neg95.7%
sub-neg95.7%
distribute-rgt-out--95.7%
associate-*l*96.2%
distribute-lft-neg-in96.2%
cancel-sign-sub96.2%
associate-*l*95.8%
associate-*l*95.8%
Simplified95.8%
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%
associate-+l-0.0%
sub-neg0.0%
sub-neg0.0%
distribute-rgt-out--30.4%
associate-*l*39.1%
distribute-lft-neg-in39.1%
cancel-sign-sub39.1%
associate-*l*39.1%
associate-*l*39.1%
Simplified39.1%
Taylor expanded in t around inf 61.1%
Final simplification92.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i)))
(t_2
(+
(* k (* j -27.0))
(+ (* b c) (+ (* -4.0 (* x i)) (* 18.0 (* y (* t (* x z)))))))))
(if (<= y -8.8e+186)
t_2
(if (<= y -9.6e-50)
(- (+ (* t (- (* 18.0 (* y (* x z))) (* a 4.0))) (* b c)) t_1)
(if (<= y 220000000000.0)
(- (+ (* b c) (* -4.0 (* t a))) (+ t_1 (* 27.0 (* j k))))
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 * (x * i);
double t_2 = (k * (j * -27.0)) + ((b * c) + ((-4.0 * (x * i)) + (18.0 * (y * (t * (x * z))))));
double tmp;
if (y <= -8.8e+186) {
tmp = t_2;
} else if (y <= -9.6e-50) {
tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1;
} else if (y <= 220000000000.0) {
tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k)));
} 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 = 4.0d0 * (x * i)
t_2 = (k * (j * (-27.0d0))) + ((b * c) + (((-4.0d0) * (x * i)) + (18.0d0 * (y * (t * (x * z))))))
if (y <= (-8.8d+186)) then
tmp = t_2
else if (y <= (-9.6d-50)) then
tmp = ((t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))) + (b * c)) - t_1
else if (y <= 220000000000.0d0) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - (t_1 + (27.0d0 * (j * k)))
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 = 4.0 * (x * i);
double t_2 = (k * (j * -27.0)) + ((b * c) + ((-4.0 * (x * i)) + (18.0 * (y * (t * (x * z))))));
double tmp;
if (y <= -8.8e+186) {
tmp = t_2;
} else if (y <= -9.6e-50) {
tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1;
} else if (y <= 220000000000.0) {
tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = (k * (j * -27.0)) + ((b * c) + ((-4.0 * (x * i)) + (18.0 * (y * (t * (x * z)))))) tmp = 0 if y <= -8.8e+186: tmp = t_2 elif y <= -9.6e-50: tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1 elif y <= 220000000000.0: tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k))) else: tmp = t_2 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(k * Float64(j * -27.0)) + Float64(Float64(b * c) + Float64(Float64(-4.0 * Float64(x * i)) + Float64(18.0 * Float64(y * Float64(t * Float64(x * z))))))) tmp = 0.0 if (y <= -8.8e+186) tmp = t_2; elseif (y <= -9.6e-50) tmp = Float64(Float64(Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) + Float64(b * c)) - t_1); elseif (y <= 220000000000.0) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(t_1 + Float64(27.0 * Float64(j * k)))); else tmp = t_2; 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 = (k * (j * -27.0)) + ((b * c) + ((-4.0 * (x * i)) + (18.0 * (y * (t * (x * z)))))); tmp = 0.0; if (y <= -8.8e+186) tmp = t_2; elseif (y <= -9.6e-50) tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1; elseif (y <= 220000000000.0) tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k))); 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[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] + N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.8e+186], t$95$2, If[LessEqual[y, -9.6e-50], N[(N[(N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[y, 220000000000.0], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot -27\right) + \left(b \cdot c + \left(-4 \cdot \left(x \cdot i\right) + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right)\right)\\
\mathbf{if}\;y \leq -8.8 \cdot 10^{+186}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -9.6 \cdot 10^{-50}:\\
\;\;\;\;\left(t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - t_1\\
\mathbf{elif}\;y \leq 220000000000:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - \left(t_1 + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -8.7999999999999993e186 or 2.2e11 < y Initial program 77.2%
sub-neg77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
Simplified82.7%
Taylor expanded in a around 0 83.0%
if -8.7999999999999993e186 < y < -9.60000000000000007e-50Initial program 85.6%
sub-neg85.6%
associate-+l-85.6%
sub-neg85.6%
sub-neg85.6%
distribute-rgt-out--91.7%
associate-*l*91.8%
distribute-lft-neg-in91.8%
cancel-sign-sub91.8%
associate-*l*89.8%
associate-*l*89.9%
Simplified89.9%
Taylor expanded in j around 0 91.9%
if -9.60000000000000007e-50 < y < 2.2e11Initial program 95.6%
sub-neg95.6%
associate-+l-95.6%
sub-neg95.6%
sub-neg95.6%
distribute-rgt-out--97.3%
associate-*l*97.3%
distribute-lft-neg-in97.3%
cancel-sign-sub97.3%
associate-*l*97.3%
associate-*l*97.3%
Simplified97.3%
Taylor expanded in y around 0 92.2%
Final simplification88.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))) (t_2 (+ (* k (* j -27.0)) (* b c))))
(if (<= t -1.55e+155)
t_1
(if (<= t -1.5e+102)
(* x (* 18.0 (* y (* t z))))
(if (<= t -6.1e+56)
t_1
(if (<= t -1.75e+18)
(* 18.0 (* (* x z) (* t y)))
(if (<= t -5.7e-59)
t_2
(if (<= t -5.2e-136)
(* -4.0 (+ (* x i) (* t a)))
(if (<= t -8.2e-189)
t_2
(if (<= t 1.1e-270)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 1.55e-74) 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 = (b * c) + (-4.0 * (t * a));
double t_2 = (k * (j * -27.0)) + (b * c);
double tmp;
if (t <= -1.55e+155) {
tmp = t_1;
} else if (t <= -1.5e+102) {
tmp = x * (18.0 * (y * (t * z)));
} else if (t <= -6.1e+56) {
tmp = t_1;
} else if (t <= -1.75e+18) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (t <= -5.7e-59) {
tmp = t_2;
} else if (t <= -5.2e-136) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= -8.2e-189) {
tmp = t_2;
} else if (t <= 1.1e-270) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 1.55e-74) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
t_2 = (k * (j * (-27.0d0))) + (b * c)
if (t <= (-1.55d+155)) then
tmp = t_1
else if (t <= (-1.5d+102)) then
tmp = x * (18.0d0 * (y * (t * z)))
else if (t <= (-6.1d+56)) then
tmp = t_1
else if (t <= (-1.75d+18)) then
tmp = 18.0d0 * ((x * z) * (t * y))
else if (t <= (-5.7d-59)) then
tmp = t_2
else if (t <= (-5.2d-136)) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else if (t <= (-8.2d-189)) then
tmp = t_2
else if (t <= 1.1d-270) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 1.55d-74) then
tmp = t_2
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 t_2 = (k * (j * -27.0)) + (b * c);
double tmp;
if (t <= -1.55e+155) {
tmp = t_1;
} else if (t <= -1.5e+102) {
tmp = x * (18.0 * (y * (t * z)));
} else if (t <= -6.1e+56) {
tmp = t_1;
} else if (t <= -1.75e+18) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (t <= -5.7e-59) {
tmp = t_2;
} else if (t <= -5.2e-136) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= -8.2e-189) {
tmp = t_2;
} else if (t <= 1.1e-270) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 1.55e-74) {
tmp = t_2;
} 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)) t_2 = (k * (j * -27.0)) + (b * c) tmp = 0 if t <= -1.55e+155: tmp = t_1 elif t <= -1.5e+102: tmp = x * (18.0 * (y * (t * z))) elif t <= -6.1e+56: tmp = t_1 elif t <= -1.75e+18: tmp = 18.0 * ((x * z) * (t * y)) elif t <= -5.7e-59: tmp = t_2 elif t <= -5.2e-136: tmp = -4.0 * ((x * i) + (t * a)) elif t <= -8.2e-189: tmp = t_2 elif t <= 1.1e-270: tmp = (b * c) - (4.0 * (x * i)) elif t <= 1.55e-74: tmp = t_2 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))) t_2 = Float64(Float64(k * Float64(j * -27.0)) + Float64(b * c)) tmp = 0.0 if (t <= -1.55e+155) tmp = t_1; elseif (t <= -1.5e+102) tmp = Float64(x * Float64(18.0 * Float64(y * Float64(t * z)))); elseif (t <= -6.1e+56) tmp = t_1; elseif (t <= -1.75e+18) tmp = Float64(18.0 * Float64(Float64(x * z) * Float64(t * y))); elseif (t <= -5.7e-59) tmp = t_2; elseif (t <= -5.2e-136) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); elseif (t <= -8.2e-189) tmp = t_2; elseif (t <= 1.1e-270) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 1.55e-74) tmp = t_2; 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)); t_2 = (k * (j * -27.0)) + (b * c); tmp = 0.0; if (t <= -1.55e+155) tmp = t_1; elseif (t <= -1.5e+102) tmp = x * (18.0 * (y * (t * z))); elseif (t <= -6.1e+56) tmp = t_1; elseif (t <= -1.75e+18) tmp = 18.0 * ((x * z) * (t * y)); elseif (t <= -5.7e-59) tmp = t_2; elseif (t <= -5.2e-136) tmp = -4.0 * ((x * i) + (t * a)); elseif (t <= -8.2e-189) tmp = t_2; elseif (t <= 1.1e-270) tmp = (b * c) - (4.0 * (x * i)); elseif (t <= 1.55e-74) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e+155], t$95$1, If[LessEqual[t, -1.5e+102], N[(x * N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.1e+56], t$95$1, If[LessEqual[t, -1.75e+18], N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.7e-59], t$95$2, If[LessEqual[t, -5.2e-136], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e-189], t$95$2, If[LessEqual[t, 1.1e-270], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e-74], t$95$2, t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_2 := k \cdot \left(j \cdot -27\right) + b \cdot c\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{+155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq -6.1 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{+18}:\\
\;\;\;\;18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\\
\mathbf{elif}\;t \leq -5.7 \cdot 10^{-59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-136}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-270}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-74}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.54999999999999995e155 or -1.4999999999999999e102 < t < -6.1000000000000001e56 or 1.5500000000000001e-74 < t Initial program 86.3%
sub-neg86.3%
associate-+l-86.3%
sub-neg86.3%
sub-neg86.3%
distribute-rgt-out--92.3%
associate-*l*92.3%
distribute-lft-neg-in92.3%
cancel-sign-sub92.3%
associate-*l*92.3%
associate-*l*92.3%
Simplified92.3%
Taylor expanded in x around 0 66.7%
Taylor expanded in k around 0 60.8%
if -1.54999999999999995e155 < t < -1.4999999999999999e102Initial program 85.6%
sub-neg85.6%
associate-+l-85.6%
sub-neg85.6%
sub-neg85.6%
distribute-rgt-out--85.6%
associate-*l*85.6%
distribute-lft-neg-in85.6%
cancel-sign-sub85.6%
associate-*l*85.6%
associate-*l*85.7%
Simplified85.7%
Taylor expanded in x around inf 64.8%
Taylor expanded in y around inf 64.9%
if -6.1000000000000001e56 < t < -1.75e18Initial program 99.8%
sub-neg99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-rgt-out--99.8%
associate-*l*86.4%
distribute-lft-neg-in86.4%
cancel-sign-sub86.4%
associate-*l*86.4%
associate-*l*86.4%
Simplified86.4%
Taylor expanded in x around inf 74.3%
Taylor expanded in y around inf 72.7%
associate-*r*59.5%
*-commutative59.5%
Simplified59.5%
if -1.75e18 < t < -5.7e-59 or -5.19999999999999993e-136 < t < -8.2000000000000006e-189 or 1.0999999999999999e-270 < t < 1.5500000000000001e-74Initial program 87.5%
sub-neg87.5%
associate-+l-87.5%
sub-neg87.5%
sub-neg87.5%
distribute-rgt-out--87.5%
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 x around 0 76.5%
Taylor expanded in a around 0 72.8%
fma-neg72.8%
distribute-lft-neg-in72.8%
metadata-eval72.8%
*-commutative72.8%
Simplified72.8%
fma-udef72.8%
associate-*l*72.8%
Applied egg-rr72.8%
if -5.7e-59 < t < -5.19999999999999993e-136Initial program 93.6%
sub-neg93.6%
associate-+l-93.6%
sub-neg93.6%
sub-neg93.6%
distribute-rgt-out--93.6%
associate-*l*100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub100.0%
associate-*l*100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in y around 0 93.4%
Taylor expanded in i around inf 87.1%
associate-*r*87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in c around 0 73.9%
cancel-sign-sub-inv73.9%
metadata-eval73.9%
+-commutative73.9%
distribute-lft-out73.9%
Simplified73.9%
if -8.2000000000000006e-189 < t < 1.0999999999999999e-270Initial program 82.6%
sub-neg82.6%
associate-+l-82.6%
sub-neg82.6%
sub-neg82.6%
distribute-rgt-out--82.6%
associate-*l*87.1%
distribute-lft-neg-in87.1%
cancel-sign-sub87.1%
associate-*l*82.9%
associate-*l*83.0%
Simplified83.0%
Taylor expanded in y around 0 91.4%
Taylor expanded in i around inf 74.4%
associate-*r*70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in a around 0 74.4%
Final simplification66.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))) (t_2 (+ (* k (* j -27.0)) (* b c))))
(if (<= t -2.9e+155)
t_1
(if (<= t -2.05e+102)
(* x (* 18.0 (* y (* t z))))
(if (<= t -1.8e+55)
t_1
(if (<= t -4.3e+18)
(* 18.0 (* (* x z) (* t y)))
(if (<= t -3.6e-59)
t_2
(if (<= t -1e-135)
(* -4.0 (+ (* x i) (* t a)))
(if (<= t -1.75e-190)
(- (* b c) (* 27.0 (* j k)))
(if (<= t 2.9e-269)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 1.56e-74) 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 = (b * c) + (-4.0 * (t * a));
double t_2 = (k * (j * -27.0)) + (b * c);
double tmp;
if (t <= -2.9e+155) {
tmp = t_1;
} else if (t <= -2.05e+102) {
tmp = x * (18.0 * (y * (t * z)));
} else if (t <= -1.8e+55) {
tmp = t_1;
} else if (t <= -4.3e+18) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (t <= -3.6e-59) {
tmp = t_2;
} else if (t <= -1e-135) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= -1.75e-190) {
tmp = (b * c) - (27.0 * (j * k));
} else if (t <= 2.9e-269) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 1.56e-74) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
t_2 = (k * (j * (-27.0d0))) + (b * c)
if (t <= (-2.9d+155)) then
tmp = t_1
else if (t <= (-2.05d+102)) then
tmp = x * (18.0d0 * (y * (t * z)))
else if (t <= (-1.8d+55)) then
tmp = t_1
else if (t <= (-4.3d+18)) then
tmp = 18.0d0 * ((x * z) * (t * y))
else if (t <= (-3.6d-59)) then
tmp = t_2
else if (t <= (-1d-135)) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else if (t <= (-1.75d-190)) then
tmp = (b * c) - (27.0d0 * (j * k))
else if (t <= 2.9d-269) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 1.56d-74) then
tmp = t_2
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 t_2 = (k * (j * -27.0)) + (b * c);
double tmp;
if (t <= -2.9e+155) {
tmp = t_1;
} else if (t <= -2.05e+102) {
tmp = x * (18.0 * (y * (t * z)));
} else if (t <= -1.8e+55) {
tmp = t_1;
} else if (t <= -4.3e+18) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (t <= -3.6e-59) {
tmp = t_2;
} else if (t <= -1e-135) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= -1.75e-190) {
tmp = (b * c) - (27.0 * (j * k));
} else if (t <= 2.9e-269) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 1.56e-74) {
tmp = t_2;
} 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)) t_2 = (k * (j * -27.0)) + (b * c) tmp = 0 if t <= -2.9e+155: tmp = t_1 elif t <= -2.05e+102: tmp = x * (18.0 * (y * (t * z))) elif t <= -1.8e+55: tmp = t_1 elif t <= -4.3e+18: tmp = 18.0 * ((x * z) * (t * y)) elif t <= -3.6e-59: tmp = t_2 elif t <= -1e-135: tmp = -4.0 * ((x * i) + (t * a)) elif t <= -1.75e-190: tmp = (b * c) - (27.0 * (j * k)) elif t <= 2.9e-269: tmp = (b * c) - (4.0 * (x * i)) elif t <= 1.56e-74: tmp = t_2 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))) t_2 = Float64(Float64(k * Float64(j * -27.0)) + Float64(b * c)) tmp = 0.0 if (t <= -2.9e+155) tmp = t_1; elseif (t <= -2.05e+102) tmp = Float64(x * Float64(18.0 * Float64(y * Float64(t * z)))); elseif (t <= -1.8e+55) tmp = t_1; elseif (t <= -4.3e+18) tmp = Float64(18.0 * Float64(Float64(x * z) * Float64(t * y))); elseif (t <= -3.6e-59) tmp = t_2; elseif (t <= -1e-135) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); elseif (t <= -1.75e-190) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); elseif (t <= 2.9e-269) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 1.56e-74) tmp = t_2; 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)); t_2 = (k * (j * -27.0)) + (b * c); tmp = 0.0; if (t <= -2.9e+155) tmp = t_1; elseif (t <= -2.05e+102) tmp = x * (18.0 * (y * (t * z))); elseif (t <= -1.8e+55) tmp = t_1; elseif (t <= -4.3e+18) tmp = 18.0 * ((x * z) * (t * y)); elseif (t <= -3.6e-59) tmp = t_2; elseif (t <= -1e-135) tmp = -4.0 * ((x * i) + (t * a)); elseif (t <= -1.75e-190) tmp = (b * c) - (27.0 * (j * k)); elseif (t <= 2.9e-269) tmp = (b * c) - (4.0 * (x * i)); elseif (t <= 1.56e-74) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+155], t$95$1, If[LessEqual[t, -2.05e+102], N[(x * N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.8e+55], t$95$1, If[LessEqual[t, -4.3e+18], N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.6e-59], t$95$2, If[LessEqual[t, -1e-135], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.75e-190], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-269], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.56e-74], t$95$2, t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_2 := k \cdot \left(j \cdot -27\right) + b \cdot c\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{+55}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -4.3 \cdot 10^{+18}:\\
\;\;\;\;18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\\
\mathbf{elif}\;t \leq -3.6 \cdot 10^{-59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-135}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-190}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-269}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{-74}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.8999999999999999e155 or -2.05e102 < t < -1.79999999999999994e55 or 1.5600000000000001e-74 < t Initial program 86.3%
sub-neg86.3%
associate-+l-86.3%
sub-neg86.3%
sub-neg86.3%
distribute-rgt-out--92.3%
associate-*l*92.3%
distribute-lft-neg-in92.3%
cancel-sign-sub92.3%
associate-*l*92.3%
associate-*l*92.3%
Simplified92.3%
Taylor expanded in x around 0 66.7%
Taylor expanded in k around 0 60.8%
if -2.8999999999999999e155 < t < -2.05e102Initial program 85.6%
sub-neg85.6%
associate-+l-85.6%
sub-neg85.6%
sub-neg85.6%
distribute-rgt-out--85.6%
associate-*l*85.6%
distribute-lft-neg-in85.6%
cancel-sign-sub85.6%
associate-*l*85.6%
associate-*l*85.7%
Simplified85.7%
Taylor expanded in x around inf 64.8%
Taylor expanded in y around inf 64.9%
if -1.79999999999999994e55 < t < -4.3e18Initial program 99.8%
sub-neg99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-rgt-out--99.8%
associate-*l*86.4%
distribute-lft-neg-in86.4%
cancel-sign-sub86.4%
associate-*l*86.4%
associate-*l*86.4%
Simplified86.4%
Taylor expanded in x around inf 74.3%
Taylor expanded in y around inf 72.7%
associate-*r*59.5%
*-commutative59.5%
Simplified59.5%
if -4.3e18 < t < -3.6e-59 or 2.9000000000000001e-269 < t < 1.5600000000000001e-74Initial program 87.1%
sub-neg87.1%
associate-+l-87.1%
sub-neg87.1%
sub-neg87.1%
distribute-rgt-out--87.1%
associate-*l*90.0%
distribute-lft-neg-in90.0%
cancel-sign-sub90.0%
associate-*l*90.0%
associate-*l*90.1%
Simplified90.1%
Taylor expanded in x around 0 76.0%
Taylor expanded in a around 0 73.1%
fma-neg73.1%
distribute-lft-neg-in73.1%
metadata-eval73.1%
*-commutative73.1%
Simplified73.1%
fma-udef73.1%
associate-*l*73.1%
Applied egg-rr73.1%
if -3.6e-59 < t < -1e-135Initial program 93.6%
sub-neg93.6%
associate-+l-93.6%
sub-neg93.6%
sub-neg93.6%
distribute-rgt-out--93.6%
associate-*l*100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub100.0%
associate-*l*100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in y around 0 93.4%
Taylor expanded in i around inf 87.1%
associate-*r*87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in c around 0 73.9%
cancel-sign-sub-inv73.9%
metadata-eval73.9%
+-commutative73.9%
distribute-lft-out73.9%
Simplified73.9%
if -1e-135 < t < -1.75e-190Initial program 90.2%
sub-neg90.2%
associate-+l-90.2%
sub-neg90.2%
sub-neg90.2%
distribute-rgt-out--90.2%
associate-*l*90.7%
distribute-lft-neg-in90.7%
cancel-sign-sub90.7%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in x around 0 80.3%
Taylor expanded in a around 0 70.7%
if -1.75e-190 < t < 2.9000000000000001e-269Initial program 82.6%
sub-neg82.6%
associate-+l-82.6%
sub-neg82.6%
sub-neg82.6%
distribute-rgt-out--82.6%
associate-*l*87.1%
distribute-lft-neg-in87.1%
cancel-sign-sub87.1%
associate-*l*82.9%
associate-*l*83.0%
Simplified83.0%
Taylor expanded in y around 0 91.4%
Taylor expanded in i around inf 74.4%
associate-*r*70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in a around 0 74.4%
Final simplification66.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* k (* j -27.0)) (* b c)))
(t_2 (* t (- (* 18.0 (* y (* x z))) (* a 4.0)))))
(if (<= t -5.8e+18)
t_2
(if (<= t -5.8e-59)
t_1
(if (<= t -3.5e-77)
(* -4.0 (+ (* x i) (* t a)))
(if (<= t 1.9e-269)
(- (* b c) (* 4.0 (* x i)))
(if (or (<= t 1.56e-74)
(and (not (<= t 1.22e+110)) (<= t 9.8e+154)))
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 = (k * (j * -27.0)) + (b * c);
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double tmp;
if (t <= -5.8e+18) {
tmp = t_2;
} else if (t <= -5.8e-59) {
tmp = t_1;
} else if (t <= -3.5e-77) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= 1.9e-269) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((t <= 1.56e-74) || (!(t <= 1.22e+110) && (t <= 9.8e+154))) {
tmp = t_1;
} 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))) + (b * c)
t_2 = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
if (t <= (-5.8d+18)) then
tmp = t_2
else if (t <= (-5.8d-59)) then
tmp = t_1
else if (t <= (-3.5d-77)) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else if (t <= 1.9d-269) then
tmp = (b * c) - (4.0d0 * (x * i))
else if ((t <= 1.56d-74) .or. (.not. (t <= 1.22d+110)) .and. (t <= 9.8d+154)) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (k * (j * -27.0)) + (b * c);
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double tmp;
if (t <= -5.8e+18) {
tmp = t_2;
} else if (t <= -5.8e-59) {
tmp = t_1;
} else if (t <= -3.5e-77) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= 1.9e-269) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((t <= 1.56e-74) || (!(t <= 1.22e+110) && (t <= 9.8e+154))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (k * (j * -27.0)) + (b * c) t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)) tmp = 0 if t <= -5.8e+18: tmp = t_2 elif t <= -5.8e-59: tmp = t_1 elif t <= -3.5e-77: tmp = -4.0 * ((x * i) + (t * a)) elif t <= 1.9e-269: tmp = (b * c) - (4.0 * (x * i)) elif (t <= 1.56e-74) or (not (t <= 1.22e+110) and (t <= 9.8e+154)): tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(k * Float64(j * -27.0)) + Float64(b * c)) t_2 = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -5.8e+18) tmp = t_2; elseif (t <= -5.8e-59) tmp = t_1; elseif (t <= -3.5e-77) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); elseif (t <= 1.9e-269) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif ((t <= 1.56e-74) || (!(t <= 1.22e+110) && (t <= 9.8e+154))) tmp = t_1; 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)) + (b * c); t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)); tmp = 0.0; if (t <= -5.8e+18) tmp = t_2; elseif (t <= -5.8e-59) tmp = t_1; elseif (t <= -3.5e-77) tmp = -4.0 * ((x * i) + (t * a)); elseif (t <= 1.9e-269) tmp = (b * c) - (4.0 * (x * i)); elseif ((t <= 1.56e-74) || (~((t <= 1.22e+110)) && (t <= 9.8e+154))) tmp = t_1; 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[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $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, -5.8e+18], t$95$2, If[LessEqual[t, -5.8e-59], t$95$1, If[LessEqual[t, -3.5e-77], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-269], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 1.56e-74], And[N[Not[LessEqual[t, 1.22e+110]], $MachinePrecision], LessEqual[t, 9.8e+154]]], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right) + b \cdot c\\
t_2 := t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{+18}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-77}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-269}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{-74} \lor \neg \left(t \leq 1.22 \cdot 10^{+110}\right) \land t \leq 9.8 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -5.8e18 or 1.5600000000000001e-74 < t < 1.22000000000000002e110 or 9.8000000000000003e154 < t Initial program 86.4%
sub-neg86.4%
associate-+l-86.4%
sub-neg86.4%
sub-neg86.4%
distribute-rgt-out--91.2%
associate-*l*90.4%
distribute-lft-neg-in90.4%
cancel-sign-sub90.4%
associate-*l*90.4%
associate-*l*90.4%
Simplified90.4%
Taylor expanded in t around inf 67.6%
if -5.8e18 < t < -5.80000000000000033e-59 or 1.9000000000000001e-269 < t < 1.5600000000000001e-74 or 1.22000000000000002e110 < t < 9.8000000000000003e154Initial program 87.9%
sub-neg87.9%
associate-+l-87.9%
sub-neg87.9%
sub-neg87.9%
distribute-rgt-out--89.1%
associate-*l*91.6%
distribute-lft-neg-in91.6%
cancel-sign-sub91.6%
associate-*l*91.6%
associate-*l*91.6%
Simplified91.6%
Taylor expanded in x around 0 74.9%
Taylor expanded in a around 0 72.5%
fma-neg72.5%
distribute-lft-neg-in72.5%
metadata-eval72.5%
*-commutative72.5%
Simplified72.5%
fma-udef72.5%
associate-*l*72.5%
Applied egg-rr72.5%
if -5.80000000000000033e-59 < t < -3.50000000000000013e-77Initial program 100.0%
sub-neg100.0%
associate-+l-100.0%
sub-neg100.0%
sub-neg100.0%
distribute-rgt-out--100.0%
associate-*l*100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub100.0%
associate-*l*100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in i around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in c around 0 100.0%
cancel-sign-sub-inv100.0%
metadata-eval100.0%
+-commutative100.0%
distribute-lft-out100.0%
Simplified100.0%
if -3.50000000000000013e-77 < t < 1.9000000000000001e-269Initial program 86.8%
sub-neg86.8%
associate-+l-86.8%
sub-neg86.8%
sub-neg86.8%
distribute-rgt-out--86.8%
associate-*l*91.3%
distribute-lft-neg-in91.3%
cancel-sign-sub91.3%
associate-*l*89.2%
associate-*l*89.2%
Simplified89.2%
Taylor expanded in y around 0 89.0%
Taylor expanded in i around inf 71.8%
associate-*r*69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in a around 0 65.4%
Final simplification69.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -2.1e+196)
(and (not (<= t -6.6e+165))
(or (<= t -2.1e+19)
(not
(or (<= t 5.5e+42)
(and (not (<= t 1.16e+110)) (<= t 2.7e+155)))))))
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(+ (* k (* j -27.0)) (+ (* b c) (* -4.0 (* x i))))))
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 <= -2.1e+196) || (!(t <= -6.6e+165) && ((t <= -2.1e+19) || !((t <= 5.5e+42) || (!(t <= 1.16e+110) && (t <= 2.7e+155)))))) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i)));
}
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 <= (-2.1d+196)) .or. (.not. (t <= (-6.6d+165))) .and. (t <= (-2.1d+19)) .or. (.not. (t <= 5.5d+42) .or. (.not. (t <= 1.16d+110)) .and. (t <= 2.7d+155))) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else
tmp = (k * (j * (-27.0d0))) + ((b * c) + ((-4.0d0) * (x * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -2.1e+196) || (!(t <= -6.6e+165) && ((t <= -2.1e+19) || !((t <= 5.5e+42) || (!(t <= 1.16e+110) && (t <= 2.7e+155)))))) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else {
tmp = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -2.1e+196) or (not (t <= -6.6e+165) and ((t <= -2.1e+19) or not ((t <= 5.5e+42) or (not (t <= 1.16e+110) and (t <= 2.7e+155))))): tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) else: tmp = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -2.1e+196) || (!(t <= -6.6e+165) && ((t <= -2.1e+19) || !((t <= 5.5e+42) || (!(t <= 1.16e+110) && (t <= 2.7e+155)))))) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); else tmp = Float64(Float64(k * Float64(j * -27.0)) + Float64(Float64(b * c) + Float64(-4.0 * Float64(x * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((t <= -2.1e+196) || (~((t <= -6.6e+165)) && ((t <= -2.1e+19) || ~(((t <= 5.5e+42) || (~((t <= 1.16e+110)) && (t <= 2.7e+155))))))) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); else tmp = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -2.1e+196], And[N[Not[LessEqual[t, -6.6e+165]], $MachinePrecision], Or[LessEqual[t, -2.1e+19], N[Not[Or[LessEqual[t, 5.5e+42], And[N[Not[LessEqual[t, 1.16e+110]], $MachinePrecision], LessEqual[t, 2.7e+155]]]], $MachinePrecision]]]], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+196} \lor \neg \left(t \leq -6.6 \cdot 10^{+165}\right) \land \left(t \leq -2.1 \cdot 10^{+19} \lor \neg \left(t \leq 5.5 \cdot 10^{+42} \lor \neg \left(t \leq 1.16 \cdot 10^{+110}\right) \land t \leq 2.7 \cdot 10^{+155}\right)\right):\\
\;\;\;\;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) + \left(b \cdot c + -4 \cdot \left(x \cdot i\right)\right)\\
\end{array}
\end{array}
if t < -2.10000000000000015e196 or -6.5999999999999997e165 < t < -2.1e19 or 5.50000000000000001e42 < t < 1.16e110 or 2.69999999999999994e155 < t Initial program 84.4%
sub-neg84.4%
associate-+l-84.4%
sub-neg84.4%
sub-neg84.4%
distribute-rgt-out--90.6%
associate-*l*89.7%
distribute-lft-neg-in89.7%
cancel-sign-sub89.7%
associate-*l*89.7%
associate-*l*89.7%
Simplified89.7%
Taylor expanded in t around inf 78.1%
if -2.10000000000000015e196 < t < -6.5999999999999997e165 or -2.1e19 < t < 5.50000000000000001e42 or 1.16e110 < t < 2.69999999999999994e155Initial program 88.7%
sub-neg88.7%
*-commutative88.7%
distribute-rgt-neg-in88.7%
Simplified91.9%
Taylor expanded in a around 0 88.4%
Taylor expanded in y around 0 81.6%
Final simplification80.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* k (* j -27.0)) (+ (* b c) (* -4.0 (* x i)))))
(t_2 (* t (- (* 18.0 (* y (* x z))) (* a 4.0)))))
(if (<= t -1.9e+196)
t_2
(if (<= t -8.2e+163)
t_1
(if (<= t -1.02e+21)
t_2
(if (<= t 3e+45)
(- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))
(if (or (<= t 2.9e+110) (not (<= t 3.8e+155))) 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 = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i)));
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double tmp;
if (t <= -1.9e+196) {
tmp = t_2;
} else if (t <= -8.2e+163) {
tmp = t_1;
} else if (t <= -1.02e+21) {
tmp = t_2;
} else if (t <= 3e+45) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else if ((t <= 2.9e+110) || !(t <= 3.8e+155)) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (k * (j * (-27.0d0))) + ((b * c) + ((-4.0d0) * (x * i)))
t_2 = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
if (t <= (-1.9d+196)) then
tmp = t_2
else if (t <= (-8.2d+163)) then
tmp = t_1
else if (t <= (-1.02d+21)) then
tmp = t_2
else if (t <= 3d+45) then
tmp = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
else if ((t <= 2.9d+110) .or. (.not. (t <= 3.8d+155))) then
tmp = t_2
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 = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i)));
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double tmp;
if (t <= -1.9e+196) {
tmp = t_2;
} else if (t <= -8.2e+163) {
tmp = t_1;
} else if (t <= -1.02e+21) {
tmp = t_2;
} else if (t <= 3e+45) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else if ((t <= 2.9e+110) || !(t <= 3.8e+155)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i))) t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)) tmp = 0 if t <= -1.9e+196: tmp = t_2 elif t <= -8.2e+163: tmp = t_1 elif t <= -1.02e+21: tmp = t_2 elif t <= 3e+45: tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))) elif (t <= 2.9e+110) or not (t <= 3.8e+155): tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(k * Float64(j * -27.0)) + Float64(Float64(b * c) + 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 <= -1.9e+196) tmp = t_2; elseif (t <= -8.2e+163) tmp = t_1; elseif (t <= -1.02e+21) tmp = t_2; elseif (t <= 3e+45) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); elseif ((t <= 2.9e+110) || !(t <= 3.8e+155)) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (k * (j * -27.0)) + ((b * c) + (-4.0 * (x * i))); t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)); tmp = 0.0; if (t <= -1.9e+196) tmp = t_2; elseif (t <= -8.2e+163) tmp = t_1; elseif (t <= -1.02e+21) tmp = t_2; elseif (t <= 3e+45) tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))); elseif ((t <= 2.9e+110) || ~((t <= 3.8e+155))) tmp = t_2; 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[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $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, -1.9e+196], t$95$2, If[LessEqual[t, -8.2e+163], t$95$1, If[LessEqual[t, -1.02e+21], t$95$2, If[LessEqual[t, 3e+45], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 2.9e+110], N[Not[LessEqual[t, 3.8e+155]], $MachinePrecision]], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right) + \left(b \cdot c + -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 -1.9 \cdot 10^{+196}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{+163}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.02 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+45}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+110} \lor \neg \left(t \leq 3.8 \cdot 10^{+155}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.9000000000000001e196 or -8.1999999999999998e163 < t < -1.02e21 or 3.00000000000000011e45 < t < 2.9e110 or 3.8000000000000001e155 < t Initial program 84.4%
sub-neg84.4%
associate-+l-84.4%
sub-neg84.4%
sub-neg84.4%
distribute-rgt-out--90.6%
associate-*l*89.7%
distribute-lft-neg-in89.7%
cancel-sign-sub89.7%
associate-*l*89.7%
associate-*l*89.7%
Simplified89.7%
Taylor expanded in t around inf 78.1%
if -1.9000000000000001e196 < t < -8.1999999999999998e163 or 2.9e110 < t < 3.8000000000000001e155Initial program 95.8%
sub-neg95.8%
*-commutative95.8%
distribute-rgt-neg-in95.8%
Simplified99.9%
Taylor expanded in a around 0 91.5%
Taylor expanded in y around 0 79.3%
if -1.02e21 < t < 3.00000000000000011e45Initial program 87.4%
sub-neg87.4%
associate-+l-87.4%
sub-neg87.4%
sub-neg87.4%
distribute-rgt-out--87.4%
associate-*l*90.4%
distribute-lft-neg-in90.4%
cancel-sign-sub90.4%
associate-*l*89.7%
associate-*l*89.8%
Simplified89.8%
Taylor expanded in t around 0 82.1%
Final simplification80.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i))))
(if (or (<= t -270000000.0) (not (<= t 1.56e-74)))
(- (+ (* t (- (* 18.0 (* y (* x z))) (* a 4.0))) (* b c)) t_1)
(- (+ (* b c) (* -4.0 (* t a))) (+ t_1 (* 27.0 (* j k)))))))
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 tmp;
if ((t <= -270000000.0) || !(t <= 1.56e-74)) {
tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1;
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k)));
}
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 * (x * i)
if ((t <= (-270000000.0d0)) .or. (.not. (t <= 1.56d-74))) then
tmp = ((t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))) + (b * c)) - t_1
else
tmp = ((b * c) + ((-4.0d0) * (t * a))) - (t_1 + (27.0d0 * (j * k)))
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 tmp;
if ((t <= -270000000.0) || !(t <= 1.56e-74)) {
tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1;
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) tmp = 0 if (t <= -270000000.0) or not (t <= 1.56e-74): tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1 else: tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) tmp = 0.0 if ((t <= -270000000.0) || !(t <= 1.56e-74)) tmp = Float64(Float64(Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) + Float64(b * c)) - t_1); else tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(t_1 + Float64(27.0 * Float64(j * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (x * i); tmp = 0.0; if ((t <= -270000000.0) || ~((t <= 1.56e-74))) tmp = ((t * ((18.0 * (y * (x * z))) - (a * 4.0))) + (b * c)) - t_1; else tmp = ((b * c) + (-4.0 * (t * a))) - (t_1 + (27.0 * (j * k))); 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]}, If[Or[LessEqual[t, -270000000.0], N[Not[LessEqual[t, 1.56e-74]], $MachinePrecision]], N[(N[(N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;t \leq -270000000 \lor \neg \left(t \leq 1.56 \cdot 10^{-74}\right):\\
\;\;\;\;\left(t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - \left(t_1 + 27 \cdot \left(j \cdot k\right)\right)\\
\end{array}
\end{array}
if t < -2.7e8 or 1.5600000000000001e-74 < t Initial program 87.2%
sub-neg87.2%
associate-+l-87.2%
sub-neg87.2%
sub-neg87.2%
distribute-rgt-out--92.1%
associate-*l*91.5%
distribute-lft-neg-in91.5%
cancel-sign-sub91.5%
associate-*l*91.5%
associate-*l*91.5%
Simplified91.5%
Taylor expanded in j around 0 83.5%
if -2.7e8 < t < 1.5600000000000001e-74Initial program 87.0%
sub-neg87.0%
associate-+l-87.0%
sub-neg87.0%
sub-neg87.0%
distribute-rgt-out--87.0%
associate-*l*90.5%
distribute-lft-neg-in90.5%
cancel-sign-sub90.5%
associate-*l*89.7%
associate-*l*89.7%
Simplified89.7%
Taylor expanded in y around 0 91.2%
Final simplification87.0%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -7e+154) (not (<= t -1.95e+21))) (- (+ (* b c) (* -4.0 (* t a))) (+ (* 4.0 (* x i)) (* 27.0 (* j k)))) (* t (- (* 18.0 (* y (* x z))) (* a 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 ((t <= -7e+154) || !(t <= -1.95e+21)) {
tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.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 <= (-7d+154)) .or. (.not. (t <= (-1.95d+21)))) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
else
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.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 <= -7e+154) || !(t <= -1.95e+21)) {
tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -7e+154) or not (t <= -1.95e+21): tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k))) else: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -7e+154) || !(t <= -1.95e+21)) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((t <= -7e+154) || ~((t <= -1.95e+21))) tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k))); else tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -7e+154], N[Not[LessEqual[t, -1.95e+21]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+154} \lor \neg \left(t \leq -1.95 \cdot 10^{+21}\right):\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\end{array}
\end{array}
if t < -7.00000000000000041e154 or -1.95e21 < t Initial program 86.4%
sub-neg86.4%
associate-+l-86.4%
sub-neg86.4%
sub-neg86.4%
distribute-rgt-out--89.5%
associate-*l*91.3%
distribute-lft-neg-in91.3%
cancel-sign-sub91.3%
associate-*l*90.8%
associate-*l*90.9%
Simplified90.9%
Taylor expanded in y around 0 83.5%
if -7.00000000000000041e154 < t < -1.95e21Initial program 92.7%
sub-neg92.7%
associate-+l-92.7%
sub-neg92.7%
sub-neg92.7%
distribute-rgt-out--92.7%
associate-*l*89.4%
distribute-lft-neg-in89.4%
cancel-sign-sub89.4%
associate-*l*89.4%
associate-*l*89.4%
Simplified89.4%
Taylor expanded in t around inf 79.4%
Final simplification83.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))) (t_2 (+ (* k (* j -27.0)) (* b c))))
(if (<= t -1.4e+155)
t_1
(if (<= t -2.8e+102)
(* x (* 18.0 (* y (* t z))))
(if (<= t -8.2e+58)
t_1
(if (<= t -4.2e+18)
(* 18.0 (* (* x z) (* t y)))
(if (<= t -5e-59)
t_2
(if (<= t -1.3e-135)
(* -4.0 (+ (* x i) (* t a)))
(if (<= t 1.35e-74) 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 = (b * c) + (-4.0 * (t * a));
double t_2 = (k * (j * -27.0)) + (b * c);
double tmp;
if (t <= -1.4e+155) {
tmp = t_1;
} else if (t <= -2.8e+102) {
tmp = x * (18.0 * (y * (t * z)));
} else if (t <= -8.2e+58) {
tmp = t_1;
} else if (t <= -4.2e+18) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (t <= -5e-59) {
tmp = t_2;
} else if (t <= -1.3e-135) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= 1.35e-74) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
t_2 = (k * (j * (-27.0d0))) + (b * c)
if (t <= (-1.4d+155)) then
tmp = t_1
else if (t <= (-2.8d+102)) then
tmp = x * (18.0d0 * (y * (t * z)))
else if (t <= (-8.2d+58)) then
tmp = t_1
else if (t <= (-4.2d+18)) then
tmp = 18.0d0 * ((x * z) * (t * y))
else if (t <= (-5d-59)) then
tmp = t_2
else if (t <= (-1.3d-135)) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else if (t <= 1.35d-74) then
tmp = t_2
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 t_2 = (k * (j * -27.0)) + (b * c);
double tmp;
if (t <= -1.4e+155) {
tmp = t_1;
} else if (t <= -2.8e+102) {
tmp = x * (18.0 * (y * (t * z)));
} else if (t <= -8.2e+58) {
tmp = t_1;
} else if (t <= -4.2e+18) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (t <= -5e-59) {
tmp = t_2;
} else if (t <= -1.3e-135) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (t <= 1.35e-74) {
tmp = t_2;
} 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)) t_2 = (k * (j * -27.0)) + (b * c) tmp = 0 if t <= -1.4e+155: tmp = t_1 elif t <= -2.8e+102: tmp = x * (18.0 * (y * (t * z))) elif t <= -8.2e+58: tmp = t_1 elif t <= -4.2e+18: tmp = 18.0 * ((x * z) * (t * y)) elif t <= -5e-59: tmp = t_2 elif t <= -1.3e-135: tmp = -4.0 * ((x * i) + (t * a)) elif t <= 1.35e-74: tmp = t_2 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))) t_2 = Float64(Float64(k * Float64(j * -27.0)) + Float64(b * c)) tmp = 0.0 if (t <= -1.4e+155) tmp = t_1; elseif (t <= -2.8e+102) tmp = Float64(x * Float64(18.0 * Float64(y * Float64(t * z)))); elseif (t <= -8.2e+58) tmp = t_1; elseif (t <= -4.2e+18) tmp = Float64(18.0 * Float64(Float64(x * z) * Float64(t * y))); elseif (t <= -5e-59) tmp = t_2; elseif (t <= -1.3e-135) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); elseif (t <= 1.35e-74) tmp = t_2; 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)); t_2 = (k * (j * -27.0)) + (b * c); tmp = 0.0; if (t <= -1.4e+155) tmp = t_1; elseif (t <= -2.8e+102) tmp = x * (18.0 * (y * (t * z))); elseif (t <= -8.2e+58) tmp = t_1; elseif (t <= -4.2e+18) tmp = 18.0 * ((x * z) * (t * y)); elseif (t <= -5e-59) tmp = t_2; elseif (t <= -1.3e-135) tmp = -4.0 * ((x * i) + (t * a)); elseif (t <= 1.35e-74) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+155], t$95$1, If[LessEqual[t, -2.8e+102], N[(x * N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e+58], t$95$1, If[LessEqual[t, -4.2e+18], N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5e-59], t$95$2, If[LessEqual[t, -1.3e-135], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-74], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_2 := k \cdot \left(j \cdot -27\right) + b \cdot c\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{+18}:\\
\;\;\;\;18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{-135}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-74}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.40000000000000008e155 or -2.80000000000000018e102 < t < -8.2e58 or 1.35000000000000009e-74 < t Initial program 86.3%
sub-neg86.3%
associate-+l-86.3%
sub-neg86.3%
sub-neg86.3%
distribute-rgt-out--92.3%
associate-*l*92.3%
distribute-lft-neg-in92.3%
cancel-sign-sub92.3%
associate-*l*92.3%
associate-*l*92.3%
Simplified92.3%
Taylor expanded in x around 0 66.7%
Taylor expanded in k around 0 60.8%
if -1.40000000000000008e155 < t < -2.80000000000000018e102Initial program 85.6%
sub-neg85.6%
associate-+l-85.6%
sub-neg85.6%
sub-neg85.6%
distribute-rgt-out--85.6%
associate-*l*85.6%
distribute-lft-neg-in85.6%
cancel-sign-sub85.6%
associate-*l*85.6%
associate-*l*85.7%
Simplified85.7%
Taylor expanded in x around inf 64.8%
Taylor expanded in y around inf 64.9%
if -8.2e58 < t < -4.2e18Initial program 99.8%
sub-neg99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-rgt-out--99.8%
associate-*l*86.4%
distribute-lft-neg-in86.4%
cancel-sign-sub86.4%
associate-*l*86.4%
associate-*l*86.4%
Simplified86.4%
Taylor expanded in x around inf 74.3%
Taylor expanded in y around inf 72.7%
associate-*r*59.5%
*-commutative59.5%
Simplified59.5%
if -4.2e18 < t < -5.0000000000000001e-59 or -1.30000000000000002e-135 < t < 1.35000000000000009e-74Initial program 86.4%
sub-neg86.4%
associate-+l-86.4%
sub-neg86.4%
sub-neg86.4%
distribute-rgt-out--86.4%
associate-*l*89.4%
distribute-lft-neg-in89.4%
cancel-sign-sub89.4%
associate-*l*88.5%
associate-*l*88.5%
Simplified88.5%
Taylor expanded in x around 0 69.3%
Taylor expanded in a around 0 66.5%
fma-neg66.6%
distribute-lft-neg-in66.6%
metadata-eval66.6%
*-commutative66.6%
Simplified66.6%
fma-udef66.5%
associate-*l*66.5%
Applied egg-rr66.5%
if -5.0000000000000001e-59 < t < -1.30000000000000002e-135Initial program 93.6%
sub-neg93.6%
associate-+l-93.6%
sub-neg93.6%
sub-neg93.6%
distribute-rgt-out--93.6%
associate-*l*100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub100.0%
associate-*l*100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in y around 0 93.4%
Taylor expanded in i around inf 87.1%
associate-*r*87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in c around 0 73.9%
cancel-sign-sub-inv73.9%
metadata-eval73.9%
+-commutative73.9%
distribute-lft-out73.9%
Simplified73.9%
Final simplification64.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))))
(if (<= b -2.25e+128)
(- (* b c) (* 4.0 (* x i)))
(if (<= b -9e+66)
t_1
(if (<= b -7e-16)
(+ (* k (* j -27.0)) (* b c))
(if (<= b -9.5e-118)
(* -4.0 (+ (* x i) (* t a)))
(if (<= b -1.65e-151)
(* (* x 18.0) (* y (* t z)))
(if (<= b 3.9e-175)
(+ (* -4.0 (* x i)) (* -27.0 (* j k)))
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 (b <= -2.25e+128) {
tmp = (b * c) - (4.0 * (x * i));
} else if (b <= -9e+66) {
tmp = t_1;
} else if (b <= -7e-16) {
tmp = (k * (j * -27.0)) + (b * c);
} else if (b <= -9.5e-118) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (b <= -1.65e-151) {
tmp = (x * 18.0) * (y * (t * z));
} else if (b <= 3.9e-175) {
tmp = (-4.0 * (x * i)) + (-27.0 * (j * k));
} 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 (b <= (-2.25d+128)) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (b <= (-9d+66)) then
tmp = t_1
else if (b <= (-7d-16)) then
tmp = (k * (j * (-27.0d0))) + (b * c)
else if (b <= (-9.5d-118)) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else if (b <= (-1.65d-151)) then
tmp = (x * 18.0d0) * (y * (t * z))
else if (b <= 3.9d-175) then
tmp = ((-4.0d0) * (x * i)) + ((-27.0d0) * (j * k))
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 (b <= -2.25e+128) {
tmp = (b * c) - (4.0 * (x * i));
} else if (b <= -9e+66) {
tmp = t_1;
} else if (b <= -7e-16) {
tmp = (k * (j * -27.0)) + (b * c);
} else if (b <= -9.5e-118) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (b <= -1.65e-151) {
tmp = (x * 18.0) * (y * (t * z));
} else if (b <= 3.9e-175) {
tmp = (-4.0 * (x * i)) + (-27.0 * (j * k));
} 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 b <= -2.25e+128: tmp = (b * c) - (4.0 * (x * i)) elif b <= -9e+66: tmp = t_1 elif b <= -7e-16: tmp = (k * (j * -27.0)) + (b * c) elif b <= -9.5e-118: tmp = -4.0 * ((x * i) + (t * a)) elif b <= -1.65e-151: tmp = (x * 18.0) * (y * (t * z)) elif b <= 3.9e-175: tmp = (-4.0 * (x * i)) + (-27.0 * (j * k)) 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 (b <= -2.25e+128) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (b <= -9e+66) tmp = t_1; elseif (b <= -7e-16) tmp = Float64(Float64(k * Float64(j * -27.0)) + Float64(b * c)); elseif (b <= -9.5e-118) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); elseif (b <= -1.65e-151) tmp = Float64(Float64(x * 18.0) * Float64(y * Float64(t * z))); elseif (b <= 3.9e-175) tmp = Float64(Float64(-4.0 * Float64(x * i)) + Float64(-27.0 * Float64(j * k))); 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 (b <= -2.25e+128) tmp = (b * c) - (4.0 * (x * i)); elseif (b <= -9e+66) tmp = t_1; elseif (b <= -7e-16) tmp = (k * (j * -27.0)) + (b * c); elseif (b <= -9.5e-118) tmp = -4.0 * ((x * i) + (t * a)); elseif (b <= -1.65e-151) tmp = (x * 18.0) * (y * (t * z)); elseif (b <= 3.9e-175) tmp = (-4.0 * (x * i)) + (-27.0 * (j * k)); 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[b, -2.25e+128], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9e+66], t$95$1, If[LessEqual[b, -7e-16], N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e-118], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.65e-151], N[(N[(x * 18.0), $MachinePrecision] * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.9e-175], N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(j * k), $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}\;b \leq -2.25 \cdot 10^{+128}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;b \leq -9 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-16}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right) + b \cdot c\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-118}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{-151}:\\
\;\;\;\;\left(x \cdot 18\right) \cdot \left(y \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-175}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right) + -27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.2500000000000001e128Initial program 85.0%
sub-neg85.0%
associate-+l-85.0%
sub-neg85.0%
sub-neg85.0%
distribute-rgt-out--85.0%
associate-*l*91.1%
distribute-lft-neg-in91.1%
cancel-sign-sub91.1%
associate-*l*88.2%
associate-*l*88.2%
Simplified88.2%
Taylor expanded in y around 0 90.9%
Taylor expanded in i around inf 81.9%
associate-*r*79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in a around 0 75.9%
if -2.2500000000000001e128 < b < -8.9999999999999997e66 or 3.89999999999999998e-175 < b Initial program 87.1%
sub-neg87.1%
associate-+l-87.1%
sub-neg87.1%
sub-neg87.1%
distribute-rgt-out--91.1%
associate-*l*92.7%
distribute-lft-neg-in92.7%
cancel-sign-sub92.7%
associate-*l*92.7%
associate-*l*92.7%
Simplified92.7%
Taylor expanded in x around 0 64.3%
Taylor expanded in k around 0 52.2%
if -8.9999999999999997e66 < b < -7.00000000000000035e-16Initial program 86.4%
sub-neg86.4%
associate-+l-86.4%
sub-neg86.4%
sub-neg86.4%
distribute-rgt-out--86.4%
associate-*l*90.9%
distribute-lft-neg-in90.9%
cancel-sign-sub90.9%
associate-*l*90.9%
associate-*l*90.9%
Simplified90.9%
Taylor expanded in x around 0 73.6%
Taylor expanded in a around 0 64.7%
fma-neg64.7%
distribute-lft-neg-in64.7%
metadata-eval64.7%
*-commutative64.7%
Simplified64.7%
fma-udef64.7%
associate-*l*64.7%
Applied egg-rr64.7%
if -7.00000000000000035e-16 < b < -9.49999999999999931e-118Initial program 81.3%
sub-neg81.3%
associate-+l-81.3%
sub-neg81.3%
sub-neg81.3%
distribute-rgt-out--93.8%
associate-*l*93.8%
distribute-lft-neg-in93.8%
cancel-sign-sub93.8%
associate-*l*93.8%
associate-*l*93.8%
Simplified93.8%
Taylor expanded in y around 0 93.8%
Taylor expanded in i around inf 72.2%
associate-*r*72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around 0 71.7%
cancel-sign-sub-inv71.7%
metadata-eval71.7%
+-commutative71.7%
distribute-lft-out71.7%
Simplified71.7%
if -9.49999999999999931e-118 < b < -1.6499999999999999e-151Initial program 75.1%
sub-neg75.1%
associate-+l-75.1%
sub-neg75.1%
sub-neg75.1%
distribute-rgt-out--75.1%
associate-*l*67.0%
distribute-lft-neg-in67.0%
cancel-sign-sub67.0%
associate-*l*67.0%
associate-*l*67.0%
Simplified67.0%
Taylor expanded in x around inf 67.2%
Taylor expanded in y around inf 44.2%
associate-*r*52.1%
associate-*r*59.2%
associate-*l*59.2%
*-commutative59.2%
associate-*l*59.2%
Simplified59.2%
if -1.6499999999999999e-151 < b < 3.89999999999999998e-175Initial program 93.8%
sub-neg93.8%
associate-+l-93.8%
sub-neg93.8%
sub-neg93.8%
distribute-rgt-out--93.8%
associate-*l*92.0%
distribute-lft-neg-in92.0%
cancel-sign-sub92.0%
associate-*l*92.0%
associate-*l*92.0%
Simplified92.0%
Taylor expanded in y around 0 80.0%
Taylor expanded in a around 0 57.5%
fma-def57.5%
fma-neg57.5%
neg-sub057.5%
fma-def57.5%
associate--r+57.5%
neg-sub057.5%
distribute-lft-neg-in57.5%
metadata-eval57.5%
associate-*r*57.5%
*-commutative57.5%
fma-neg57.5%
distribute-lft-neg-in57.5%
metadata-eval57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in c around 0 52.6%
Final simplification57.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* k (* j -27.0)) (* b c)))
(t_2 (+ (* b c) (* -4.0 (* t a))))
(t_3 (* x (- (* 18.0 (* y (* t z))) (* i 4.0)))))
(if (<= x -3.9e+110)
t_3
(if (<= x -1.05e-25)
t_2
(if (<= x -8e-209)
t_1
(if (<= x 8.2e-26)
t_2
(if (<= x 2.9e+141)
t_3
(if (<= x 1.65e+158) t_1 (- (* b c) (* 4.0 (* x i)))))))))))
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)) + (b * c);
double t_2 = (b * c) + (-4.0 * (t * a));
double t_3 = x * ((18.0 * (y * (t * z))) - (i * 4.0));
double tmp;
if (x <= -3.9e+110) {
tmp = t_3;
} else if (x <= -1.05e-25) {
tmp = t_2;
} else if (x <= -8e-209) {
tmp = t_1;
} else if (x <= 8.2e-26) {
tmp = t_2;
} else if (x <= 2.9e+141) {
tmp = t_3;
} else if (x <= 1.65e+158) {
tmp = t_1;
} else {
tmp = (b * c) - (4.0 * (x * i));
}
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))) + (b * c)
t_2 = (b * c) + ((-4.0d0) * (t * a))
t_3 = x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0))
if (x <= (-3.9d+110)) then
tmp = t_3
else if (x <= (-1.05d-25)) then
tmp = t_2
else if (x <= (-8d-209)) then
tmp = t_1
else if (x <= 8.2d-26) then
tmp = t_2
else if (x <= 2.9d+141) then
tmp = t_3
else if (x <= 1.65d+158) then
tmp = t_1
else
tmp = (b * c) - (4.0d0 * (x * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (k * (j * -27.0)) + (b * c);
double t_2 = (b * c) + (-4.0 * (t * a));
double t_3 = x * ((18.0 * (y * (t * z))) - (i * 4.0));
double tmp;
if (x <= -3.9e+110) {
tmp = t_3;
} else if (x <= -1.05e-25) {
tmp = t_2;
} else if (x <= -8e-209) {
tmp = t_1;
} else if (x <= 8.2e-26) {
tmp = t_2;
} else if (x <= 2.9e+141) {
tmp = t_3;
} else if (x <= 1.65e+158) {
tmp = t_1;
} else {
tmp = (b * c) - (4.0 * (x * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (k * (j * -27.0)) + (b * c) t_2 = (b * c) + (-4.0 * (t * a)) t_3 = x * ((18.0 * (y * (t * z))) - (i * 4.0)) tmp = 0 if x <= -3.9e+110: tmp = t_3 elif x <= -1.05e-25: tmp = t_2 elif x <= -8e-209: tmp = t_1 elif x <= 8.2e-26: tmp = t_2 elif x <= 2.9e+141: tmp = t_3 elif x <= 1.65e+158: tmp = t_1 else: tmp = (b * c) - (4.0 * (x * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(k * Float64(j * -27.0)) + Float64(b * c)) t_2 = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) t_3 = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -3.9e+110) tmp = t_3; elseif (x <= -1.05e-25) tmp = t_2; elseif (x <= -8e-209) tmp = t_1; elseif (x <= 8.2e-26) tmp = t_2; elseif (x <= 2.9e+141) tmp = t_3; elseif (x <= 1.65e+158) tmp = t_1; else tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (k * (j * -27.0)) + (b * c); t_2 = (b * c) + (-4.0 * (t * a)); t_3 = x * ((18.0 * (y * (t * z))) - (i * 4.0)); tmp = 0.0; if (x <= -3.9e+110) tmp = t_3; elseif (x <= -1.05e-25) tmp = t_2; elseif (x <= -8e-209) tmp = t_1; elseif (x <= 8.2e-26) tmp = t_2; elseif (x <= 2.9e+141) tmp = t_3; elseif (x <= 1.65e+158) tmp = t_1; else tmp = (b * c) - (4.0 * (x * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+110], t$95$3, If[LessEqual[x, -1.05e-25], t$95$2, If[LessEqual[x, -8e-209], t$95$1, If[LessEqual[x, 8.2e-26], t$95$2, If[LessEqual[x, 2.9e+141], t$95$3, If[LessEqual[x, 1.65e+158], t$95$1, N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right) + b \cdot c\\
t_2 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_3 := x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+110}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-209}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-26}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+141}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if x < -3.9000000000000003e110 or 8.1999999999999997e-26 < x < 2.90000000000000007e141Initial program 79.3%
sub-neg79.3%
associate-+l-79.3%
sub-neg79.3%
sub-neg79.3%
distribute-rgt-out--83.4%
associate-*l*87.5%
distribute-lft-neg-in87.5%
cancel-sign-sub87.5%
associate-*l*87.5%
associate-*l*87.5%
Simplified87.5%
Taylor expanded in x around inf 67.7%
if -3.9000000000000003e110 < x < -1.05000000000000001e-25 or -8.0000000000000004e-209 < x < 8.1999999999999997e-26Initial program 94.5%
sub-neg94.5%
associate-+l-94.5%
sub-neg94.5%
sub-neg94.5%
distribute-rgt-out--96.3%
associate-*l*93.8%
distribute-lft-neg-in93.8%
cancel-sign-sub93.8%
associate-*l*93.0%
associate-*l*93.0%
Simplified93.0%
Taylor expanded in x around 0 82.2%
Taylor expanded in k around 0 64.7%
if -1.05000000000000001e-25 < x < -8.0000000000000004e-209 or 2.90000000000000007e141 < x < 1.65000000000000009e158Initial program 88.2%
sub-neg88.2%
associate-+l-88.2%
sub-neg88.2%
sub-neg88.2%
distribute-rgt-out--90.6%
associate-*l*90.6%
distribute-lft-neg-in90.6%
cancel-sign-sub90.6%
associate-*l*90.6%
associate-*l*90.6%
Simplified90.6%
Taylor expanded in x around 0 84.4%
Taylor expanded in a around 0 68.2%
fma-neg68.3%
distribute-lft-neg-in68.3%
metadata-eval68.3%
*-commutative68.3%
Simplified68.3%
fma-udef68.2%
associate-*l*68.2%
Applied egg-rr68.2%
if 1.65000000000000009e158 < x Initial program 77.0%
sub-neg77.0%
associate-+l-77.0%
sub-neg77.0%
sub-neg77.0%
distribute-rgt-out--80.3%
associate-*l*90.2%
distribute-lft-neg-in90.2%
cancel-sign-sub90.2%
associate-*l*90.2%
associate-*l*90.2%
Simplified90.2%
Taylor expanded in y around 0 80.1%
Taylor expanded in i around inf 80.1%
associate-*r*80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in a around 0 77.1%
Final simplification67.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* x i) (* t a)))))
(if (<= c -4.2e-26)
(* b c)
(if (<= c -5.2e-224)
t_1
(if (<= c -7.2e-264)
(* j (* k -27.0))
(if (or (<= c 1.7e+75) (and (not (<= c 2.35e+111)) (<= c 5e+215)))
t_1
(* 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 t_1 = -4.0 * ((x * i) + (t * a));
double tmp;
if (c <= -4.2e-26) {
tmp = b * c;
} else if (c <= -5.2e-224) {
tmp = t_1;
} else if (c <= -7.2e-264) {
tmp = j * (k * -27.0);
} else if ((c <= 1.7e+75) || (!(c <= 2.35e+111) && (c <= 5e+215))) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * ((x * i) + (t * a))
if (c <= (-4.2d-26)) then
tmp = b * c
else if (c <= (-5.2d-224)) then
tmp = t_1
else if (c <= (-7.2d-264)) then
tmp = j * (k * (-27.0d0))
else if ((c <= 1.7d+75) .or. (.not. (c <= 2.35d+111)) .and. (c <= 5d+215)) then
tmp = t_1
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 t_1 = -4.0 * ((x * i) + (t * a));
double tmp;
if (c <= -4.2e-26) {
tmp = b * c;
} else if (c <= -5.2e-224) {
tmp = t_1;
} else if (c <= -7.2e-264) {
tmp = j * (k * -27.0);
} else if ((c <= 1.7e+75) || (!(c <= 2.35e+111) && (c <= 5e+215))) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((x * i) + (t * a)) tmp = 0 if c <= -4.2e-26: tmp = b * c elif c <= -5.2e-224: tmp = t_1 elif c <= -7.2e-264: tmp = j * (k * -27.0) elif (c <= 1.7e+75) or (not (c <= 2.35e+111) and (c <= 5e+215)): tmp = t_1 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))) tmp = 0.0 if (c <= -4.2e-26) tmp = Float64(b * c); elseif (c <= -5.2e-224) tmp = t_1; elseif (c <= -7.2e-264) tmp = Float64(j * Float64(k * -27.0)); elseif ((c <= 1.7e+75) || (!(c <= 2.35e+111) && (c <= 5e+215))) tmp = t_1; else tmp = Float64(b * c); 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 * a)); tmp = 0.0; if (c <= -4.2e-26) tmp = b * c; elseif (c <= -5.2e-224) tmp = t_1; elseif (c <= -7.2e-264) tmp = j * (k * -27.0); elseif ((c <= 1.7e+75) || (~((c <= 2.35e+111)) && (c <= 5e+215))) tmp = t_1; else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.2e-26], N[(b * c), $MachinePrecision], If[LessEqual[c, -5.2e-224], t$95$1, If[LessEqual[c, -7.2e-264], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 1.7e+75], And[N[Not[LessEqual[c, 2.35e+111]], $MachinePrecision], LessEqual[c, 5e+215]]], t$95$1, N[(b * c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{if}\;c \leq -4.2 \cdot 10^{-26}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{-264}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{+75} \lor \neg \left(c \leq 2.35 \cdot 10^{+111}\right) \land c \leq 5 \cdot 10^{+215}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if c < -4.20000000000000016e-26 or 1.70000000000000006e75 < c < 2.35000000000000004e111 or 5.0000000000000001e215 < c Initial program 87.8%
sub-neg87.8%
associate-+l-87.8%
sub-neg87.8%
sub-neg87.8%
distribute-rgt-out--87.8%
associate-*l*90.0%
distribute-lft-neg-in90.0%
cancel-sign-sub90.0%
associate-*l*90.0%
associate-*l*90.0%
Simplified90.0%
Taylor expanded in y around 0 79.2%
Taylor expanded in c around inf 48.7%
if -4.20000000000000016e-26 < c < -5.2000000000000004e-224 or -7.2000000000000004e-264 < c < 1.70000000000000006e75 or 2.35000000000000004e111 < c < 5.0000000000000001e215Initial program 87.0%
sub-neg87.0%
associate-+l-87.0%
sub-neg87.0%
sub-neg87.0%
distribute-rgt-out--91.4%
associate-*l*92.6%
distribute-lft-neg-in92.6%
cancel-sign-sub92.6%
associate-*l*92.0%
associate-*l*92.1%
Simplified92.1%
Taylor expanded in y around 0 79.9%
Taylor expanded in i around inf 59.2%
associate-*r*58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in c around 0 46.0%
cancel-sign-sub-inv46.0%
metadata-eval46.0%
+-commutative46.0%
distribute-lft-out46.0%
Simplified46.0%
if -5.2000000000000004e-224 < c < -7.2000000000000004e-264Initial program 75.0%
sub-neg75.0%
associate-+l-75.0%
sub-neg75.0%
sub-neg75.0%
distribute-rgt-out--75.0%
associate-*l*51.9%
distribute-lft-neg-in51.9%
cancel-sign-sub51.9%
associate-*l*51.9%
associate-*l*51.9%
Simplified51.9%
Taylor expanded in y around 0 75.1%
Taylor expanded in a around 0 76.1%
fma-def76.1%
fma-neg76.1%
neg-sub076.1%
fma-def76.1%
associate--r+76.1%
neg-sub076.1%
distribute-lft-neg-in76.1%
metadata-eval76.1%
associate-*r*76.1%
*-commutative76.1%
fma-neg76.1%
distribute-lft-neg-in76.1%
metadata-eval76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in k around inf 76.1%
associate-*r*76.1%
*-commutative76.1%
Simplified76.1%
Final simplification47.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* x i) (* t a)))))
(if (<= c -4.2e-26)
(* b c)
(if (<= c -2.8e-222)
t_1
(if (<= c -4.9e-262)
(* j (* k -27.0))
(if (<= c 1.6e+75)
t_1
(if (<= c 2.9e+132)
(* 18.0 (* x (* z (* t y))))
(if (<= c 2e+215) t_1 (* 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 t_1 = -4.0 * ((x * i) + (t * a));
double tmp;
if (c <= -4.2e-26) {
tmp = b * c;
} else if (c <= -2.8e-222) {
tmp = t_1;
} else if (c <= -4.9e-262) {
tmp = j * (k * -27.0);
} else if (c <= 1.6e+75) {
tmp = t_1;
} else if (c <= 2.9e+132) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (c <= 2e+215) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * ((x * i) + (t * a))
if (c <= (-4.2d-26)) then
tmp = b * c
else if (c <= (-2.8d-222)) then
tmp = t_1
else if (c <= (-4.9d-262)) then
tmp = j * (k * (-27.0d0))
else if (c <= 1.6d+75) then
tmp = t_1
else if (c <= 2.9d+132) then
tmp = 18.0d0 * (x * (z * (t * y)))
else if (c <= 2d+215) then
tmp = t_1
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 t_1 = -4.0 * ((x * i) + (t * a));
double tmp;
if (c <= -4.2e-26) {
tmp = b * c;
} else if (c <= -2.8e-222) {
tmp = t_1;
} else if (c <= -4.9e-262) {
tmp = j * (k * -27.0);
} else if (c <= 1.6e+75) {
tmp = t_1;
} else if (c <= 2.9e+132) {
tmp = 18.0 * (x * (z * (t * y)));
} else if (c <= 2e+215) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((x * i) + (t * a)) tmp = 0 if c <= -4.2e-26: tmp = b * c elif c <= -2.8e-222: tmp = t_1 elif c <= -4.9e-262: tmp = j * (k * -27.0) elif c <= 1.6e+75: tmp = t_1 elif c <= 2.9e+132: tmp = 18.0 * (x * (z * (t * y))) elif c <= 2e+215: tmp = t_1 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))) tmp = 0.0 if (c <= -4.2e-26) tmp = Float64(b * c); elseif (c <= -2.8e-222) tmp = t_1; elseif (c <= -4.9e-262) tmp = Float64(j * Float64(k * -27.0)); elseif (c <= 1.6e+75) tmp = t_1; elseif (c <= 2.9e+132) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(t * y)))); elseif (c <= 2e+215) tmp = t_1; else tmp = Float64(b * c); 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 * a)); tmp = 0.0; if (c <= -4.2e-26) tmp = b * c; elseif (c <= -2.8e-222) tmp = t_1; elseif (c <= -4.9e-262) tmp = j * (k * -27.0); elseif (c <= 1.6e+75) tmp = t_1; elseif (c <= 2.9e+132) tmp = 18.0 * (x * (z * (t * y))); elseif (c <= 2e+215) tmp = t_1; else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.2e-26], N[(b * c), $MachinePrecision], If[LessEqual[c, -2.8e-222], t$95$1, If[LessEqual[c, -4.9e-262], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e+75], t$95$1, If[LessEqual[c, 2.9e+132], N[(18.0 * N[(x * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e+215], t$95$1, N[(b * c), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{if}\;c \leq -4.2 \cdot 10^{-26}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.9 \cdot 10^{-262}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{+132}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\mathbf{elif}\;c \leq 2 \cdot 10^{+215}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if c < -4.20000000000000016e-26 or 1.99999999999999981e215 < c Initial program 86.5%
sub-neg86.5%
associate-+l-86.5%
sub-neg86.5%
sub-neg86.5%
distribute-rgt-out--86.5%
associate-*l*88.9%
distribute-lft-neg-in88.9%
cancel-sign-sub88.9%
associate-*l*88.9%
associate-*l*88.9%
Simplified88.9%
Taylor expanded in y around 0 79.2%
Taylor expanded in c around inf 48.9%
if -4.20000000000000016e-26 < c < -2.80000000000000007e-222 or -4.9000000000000003e-262 < c < 1.59999999999999992e75 or 2.8999999999999999e132 < c < 1.99999999999999981e215Initial program 87.3%
sub-neg87.3%
associate-+l-87.3%
sub-neg87.3%
sub-neg87.3%
distribute-rgt-out--91.7%
associate-*l*93.0%
distribute-lft-neg-in93.0%
cancel-sign-sub93.0%
associate-*l*92.4%
associate-*l*92.5%
Simplified92.5%
Taylor expanded in y around 0 80.5%
Taylor expanded in i around inf 60.3%
associate-*r*59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in c around 0 46.8%
cancel-sign-sub-inv46.8%
metadata-eval46.8%
+-commutative46.8%
distribute-lft-out46.8%
Simplified46.8%
if -2.80000000000000007e-222 < c < -4.9000000000000003e-262Initial program 75.0%
sub-neg75.0%
associate-+l-75.0%
sub-neg75.0%
sub-neg75.0%
distribute-rgt-out--75.0%
associate-*l*51.9%
distribute-lft-neg-in51.9%
cancel-sign-sub51.9%
associate-*l*51.9%
associate-*l*51.9%
Simplified51.9%
Taylor expanded in y around 0 75.1%
Taylor expanded in a around 0 76.1%
fma-def76.1%
fma-neg76.1%
neg-sub076.1%
fma-def76.1%
associate--r+76.1%
neg-sub076.1%
distribute-lft-neg-in76.1%
metadata-eval76.1%
associate-*r*76.1%
*-commutative76.1%
fma-neg76.1%
distribute-lft-neg-in76.1%
metadata-eval76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in k around inf 76.1%
associate-*r*76.1%
*-commutative76.1%
Simplified76.1%
if 1.59999999999999992e75 < c < 2.8999999999999999e132Initial program 92.5%
sub-neg92.5%
associate-+l-92.5%
sub-neg92.5%
sub-neg92.5%
distribute-rgt-out--92.5%
associate-*l*92.5%
distribute-lft-neg-in92.5%
cancel-sign-sub92.5%
associate-*l*92.5%
associate-*l*92.6%
Simplified92.6%
Taylor expanded in x around inf 44.7%
Taylor expanded in y around inf 30.2%
associate-*r*30.1%
*-commutative30.1%
Simplified30.1%
Taylor expanded in y around 0 30.2%
associate-*r*30.1%
*-commutative30.1%
*-commutative30.1%
associate-*r*30.5%
Simplified30.5%
Final simplification47.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -27.0 (* j k))) (t_2 (* -4.0 (* t a))))
(if (<= a -2.95e+100)
t_2
(if (<= a -2.75e-273)
(* b c)
(if (<= a 8.6e-271)
t_1
(if (<= a 5.5e-229)
(* b c)
(if (<= a 3.2e-211)
(* -4.0 (* x i))
(if (<= a 5.2e-193) t_1 (if (<= a 2.35e+39) (* b c) 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 * (j * k);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -2.95e+100) {
tmp = t_2;
} else if (a <= -2.75e-273) {
tmp = b * c;
} else if (a <= 8.6e-271) {
tmp = t_1;
} else if (a <= 5.5e-229) {
tmp = b * c;
} else if (a <= 3.2e-211) {
tmp = -4.0 * (x * i);
} else if (a <= 5.2e-193) {
tmp = t_1;
} else if (a <= 2.35e+39) {
tmp = b * c;
} 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) * (j * k)
t_2 = (-4.0d0) * (t * a)
if (a <= (-2.95d+100)) then
tmp = t_2
else if (a <= (-2.75d-273)) then
tmp = b * c
else if (a <= 8.6d-271) then
tmp = t_1
else if (a <= 5.5d-229) then
tmp = b * c
else if (a <= 3.2d-211) then
tmp = (-4.0d0) * (x * i)
else if (a <= 5.2d-193) then
tmp = t_1
else if (a <= 2.35d+39) then
tmp = b * c
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 * (j * k);
double t_2 = -4.0 * (t * a);
double tmp;
if (a <= -2.95e+100) {
tmp = t_2;
} else if (a <= -2.75e-273) {
tmp = b * c;
} else if (a <= 8.6e-271) {
tmp = t_1;
} else if (a <= 5.5e-229) {
tmp = b * c;
} else if (a <= 3.2e-211) {
tmp = -4.0 * (x * i);
} else if (a <= 5.2e-193) {
tmp = t_1;
} else if (a <= 2.35e+39) {
tmp = b * c;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -27.0 * (j * k) t_2 = -4.0 * (t * a) tmp = 0 if a <= -2.95e+100: tmp = t_2 elif a <= -2.75e-273: tmp = b * c elif a <= 8.6e-271: tmp = t_1 elif a <= 5.5e-229: tmp = b * c elif a <= 3.2e-211: tmp = -4.0 * (x * i) elif a <= 5.2e-193: tmp = t_1 elif a <= 2.35e+39: tmp = b * c else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-27.0 * Float64(j * k)) t_2 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (a <= -2.95e+100) tmp = t_2; elseif (a <= -2.75e-273) tmp = Float64(b * c); elseif (a <= 8.6e-271) tmp = t_1; elseif (a <= 5.5e-229) tmp = Float64(b * c); elseif (a <= 3.2e-211) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 5.2e-193) tmp = t_1; elseif (a <= 2.35e+39) tmp = Float64(b * c); 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 * (j * k); t_2 = -4.0 * (t * a); tmp = 0.0; if (a <= -2.95e+100) tmp = t_2; elseif (a <= -2.75e-273) tmp = b * c; elseif (a <= 8.6e-271) tmp = t_1; elseif (a <= 5.5e-229) tmp = b * c; elseif (a <= 3.2e-211) tmp = -4.0 * (x * i); elseif (a <= 5.2e-193) tmp = t_1; elseif (a <= 2.35e+39) tmp = b * c; 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[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.95e+100], t$95$2, If[LessEqual[a, -2.75e-273], N[(b * c), $MachinePrecision], If[LessEqual[a, 8.6e-271], t$95$1, If[LessEqual[a, 5.5e-229], N[(b * c), $MachinePrecision], If[LessEqual[a, 3.2e-211], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e-193], t$95$1, If[LessEqual[a, 2.35e+39], N[(b * c), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -27 \cdot \left(j \cdot k\right)\\
t_2 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -2.95 \cdot 10^{+100}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-273}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-211}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{+39}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2.95000000000000013e100 or 2.35e39 < a Initial program 85.7%
sub-neg85.7%
associate-+l-85.7%
sub-neg85.7%
sub-neg85.7%
distribute-rgt-out--92.8%
associate-*l*91.9%
distribute-lft-neg-in91.9%
cancel-sign-sub91.9%
associate-*l*91.9%
associate-*l*92.0%
Simplified92.0%
Taylor expanded in y around 0 85.7%
Taylor expanded in a around inf 50.9%
if -2.95000000000000013e100 < a < -2.74999999999999985e-273 or 8.6e-271 < a < 5.5000000000000001e-229 or 5.20000000000000015e-193 < a < 2.35e39Initial program 87.9%
sub-neg87.9%
associate-+l-87.9%
sub-neg87.9%
sub-neg87.9%
distribute-rgt-out--87.9%
associate-*l*90.2%
distribute-lft-neg-in90.2%
cancel-sign-sub90.2%
associate-*l*90.2%
associate-*l*90.2%
Simplified90.2%
Taylor expanded in y around 0 75.5%
Taylor expanded in c around inf 41.1%
if -2.74999999999999985e-273 < a < 8.6e-271 or 3.19999999999999985e-211 < a < 5.20000000000000015e-193Initial program 85.2%
sub-neg85.2%
+-commutative85.2%
associate-*l*85.4%
distribute-rgt-neg-in85.4%
fma-def85.4%
*-commutative85.4%
distribute-rgt-neg-in85.4%
metadata-eval85.4%
sub-neg85.4%
+-commutative85.4%
associate-*l*80.6%
distribute-rgt-neg-in80.6%
Simplified90.3%
Taylor expanded in j around inf 51.3%
if 5.5000000000000001e-229 < a < 3.19999999999999985e-211Initial program 100.0%
sub-neg100.0%
associate-+l-100.0%
sub-neg100.0%
sub-neg100.0%
distribute-rgt-out--100.0%
associate-*l*100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub100.0%
associate-*l*100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in i around inf 67.7%
Final simplification46.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* j k))))
(if (<= t -9e+20)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= t 1.25e-51)
(- (* b c) (+ (* 4.0 (* x i)) t_1))
(- (+ (* b c) (* -4.0 (* t a))) 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 = 27.0 * (j * k);
double tmp;
if (t <= -9e+20) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (t <= 1.25e-51) {
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - 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 = 27.0d0 * (j * k)
if (t <= (-9d+20)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (t <= 1.25d-51) then
tmp = (b * c) - ((4.0d0 * (x * i)) + t_1)
else
tmp = ((b * c) + ((-4.0d0) * (t * a))) - 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 = 27.0 * (j * k);
double tmp;
if (t <= -9e+20) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (t <= 1.25e-51) {
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (j * k) tmp = 0 if t <= -9e+20: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif t <= 1.25e-51: tmp = (b * c) - ((4.0 * (x * i)) + t_1) else: tmp = ((b * c) + (-4.0 * (t * a))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(27.0 * Float64(j * k)) tmp = 0.0 if (t <= -9e+20) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (t <= 1.25e-51) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + t_1)); else tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 27.0 * (j * k); tmp = 0.0; if (t <= -9e+20) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (t <= 1.25e-51) tmp = (b * c) - ((4.0 * (x * i)) + t_1); else tmp = ((b * c) + (-4.0 * (t * a))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e+20], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-51], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;t \leq -9 \cdot 10^{+20}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-51}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t_1\\
\end{array}
\end{array}
if t < -9e20Initial program 86.6%
sub-neg86.6%
associate-+l-86.6%
sub-neg86.6%
sub-neg86.6%
distribute-rgt-out--92.5%
associate-*l*91.1%
distribute-lft-neg-in91.1%
cancel-sign-sub91.1%
associate-*l*91.1%
associate-*l*91.2%
Simplified91.2%
Taylor expanded in t around inf 69.9%
if -9e20 < t < 1.25000000000000001e-51Initial program 86.9%
sub-neg86.9%
associate-+l-86.9%
sub-neg86.9%
sub-neg86.9%
distribute-rgt-out--86.9%
associate-*l*90.3%
distribute-lft-neg-in90.3%
cancel-sign-sub90.3%
associate-*l*89.5%
associate-*l*89.5%
Simplified89.5%
Taylor expanded in t around 0 84.5%
if 1.25000000000000001e-51 < t Initial program 87.9%
sub-neg87.9%
associate-+l-87.9%
sub-neg87.9%
sub-neg87.9%
distribute-rgt-out--92.4%
associate-*l*92.4%
distribute-lft-neg-in92.4%
cancel-sign-sub92.4%
associate-*l*92.4%
associate-*l*92.4%
Simplified92.4%
Taylor expanded in x around 0 70.6%
Final simplification77.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* x i) (* t a)))) (t_2 (* 18.0 (* (* x z) (* t y)))))
(if (<= z -2.2e-130)
t_2
(if (<= z 4.8e-235)
t_1
(if (<= z 2.4e-128) (* b c) (if (<= z 2.6e+193) 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 * ((x * i) + (t * a));
double t_2 = 18.0 * ((x * z) * (t * y));
double tmp;
if (z <= -2.2e-130) {
tmp = t_2;
} else if (z <= 4.8e-235) {
tmp = t_1;
} else if (z <= 2.4e-128) {
tmp = b * c;
} else if (z <= 2.6e+193) {
tmp = t_1;
} 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 = (-4.0d0) * ((x * i) + (t * a))
t_2 = 18.0d0 * ((x * z) * (t * y))
if (z <= (-2.2d-130)) then
tmp = t_2
else if (z <= 4.8d-235) then
tmp = t_1
else if (z <= 2.4d-128) then
tmp = b * c
else if (z <= 2.6d+193) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((x * i) + (t * a));
double t_2 = 18.0 * ((x * z) * (t * y));
double tmp;
if (z <= -2.2e-130) {
tmp = t_2;
} else if (z <= 4.8e-235) {
tmp = t_1;
} else if (z <= 2.4e-128) {
tmp = b * c;
} else if (z <= 2.6e+193) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((x * i) + (t * a)) t_2 = 18.0 * ((x * z) * (t * y)) tmp = 0 if z <= -2.2e-130: tmp = t_2 elif z <= 4.8e-235: tmp = t_1 elif z <= 2.4e-128: tmp = b * c elif z <= 2.6e+193: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))) t_2 = Float64(18.0 * Float64(Float64(x * z) * Float64(t * y))) tmp = 0.0 if (z <= -2.2e-130) tmp = t_2; elseif (z <= 4.8e-235) tmp = t_1; elseif (z <= 2.4e-128) tmp = Float64(b * c); elseif (z <= 2.6e+193) tmp = t_1; else tmp = t_2; 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 * a)); t_2 = 18.0 * ((x * z) * (t * y)); tmp = 0.0; if (z <= -2.2e-130) tmp = t_2; elseif (z <= 4.8e-235) tmp = t_1; elseif (z <= 2.4e-128) tmp = b * c; elseif (z <= 2.6e+193) tmp = t_1; 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[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e-130], t$95$2, If[LessEqual[z, 4.8e-235], t$95$1, If[LessEqual[z, 2.4e-128], N[(b * c), $MachinePrecision], If[LessEqual[z, 2.6e+193], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i + t \cdot a\right)\\
t_2 := 18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{-130}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-235}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-128}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+193}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -2.1999999999999999e-130 or 2.60000000000000013e193 < z Initial program 81.6%
sub-neg81.6%
associate-+l-81.6%
sub-neg81.6%
sub-neg81.6%
distribute-rgt-out--87.1%
associate-*l*82.9%
distribute-lft-neg-in82.9%
cancel-sign-sub82.9%
associate-*l*81.9%
associate-*l*81.9%
Simplified81.9%
Taylor expanded in x around inf 47.1%
Taylor expanded in y around inf 44.9%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
if -2.1999999999999999e-130 < z < 4.80000000000000022e-235 or 2.3999999999999998e-128 < z < 2.60000000000000013e193Initial program 90.1%
sub-neg90.1%
associate-+l-90.1%
sub-neg90.1%
sub-neg90.1%
distribute-rgt-out--91.5%
associate-*l*95.7%
distribute-lft-neg-in95.7%
cancel-sign-sub95.7%
associate-*l*95.7%
associate-*l*95.7%
Simplified95.7%
Taylor expanded in y around 0 87.6%
Taylor expanded in i around inf 69.9%
associate-*r*69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in c around 0 47.6%
cancel-sign-sub-inv47.6%
metadata-eval47.6%
+-commutative47.6%
distribute-lft-out47.6%
Simplified47.6%
if 4.80000000000000022e-235 < z < 2.3999999999999998e-128Initial program 90.8%
sub-neg90.8%
associate-+l-90.8%
sub-neg90.8%
sub-neg90.8%
distribute-rgt-out--90.8%
associate-*l*95.2%
distribute-lft-neg-in95.2%
cancel-sign-sub95.2%
associate-*l*95.2%
associate-*l*95.2%
Simplified95.2%
Taylor expanded in y around 0 86.4%
Taylor expanded in c around inf 46.2%
Final simplification46.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))))
(if (<= a -4.8e+101)
t_1
(if (<= a -5.2e-269)
(* b c)
(if (<= a 1e-193)
(* -27.0 (* j k))
(if (<= a 1.65e+39) (* 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.8e+101) {
tmp = t_1;
} else if (a <= -5.2e-269) {
tmp = b * c;
} else if (a <= 1e-193) {
tmp = -27.0 * (j * k);
} else if (a <= 1.65e+39) {
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.8d+101)) then
tmp = t_1
else if (a <= (-5.2d-269)) then
tmp = b * c
else if (a <= 1d-193) then
tmp = (-27.0d0) * (j * k)
else if (a <= 1.65d+39) 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.8e+101) {
tmp = t_1;
} else if (a <= -5.2e-269) {
tmp = b * c;
} else if (a <= 1e-193) {
tmp = -27.0 * (j * k);
} else if (a <= 1.65e+39) {
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.8e+101: tmp = t_1 elif a <= -5.2e-269: tmp = b * c elif a <= 1e-193: tmp = -27.0 * (j * k) elif a <= 1.65e+39: 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.8e+101) tmp = t_1; elseif (a <= -5.2e-269) tmp = Float64(b * c); elseif (a <= 1e-193) tmp = Float64(-27.0 * Float64(j * k)); elseif (a <= 1.65e+39) 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.8e+101) tmp = t_1; elseif (a <= -5.2e-269) tmp = b * c; elseif (a <= 1e-193) tmp = -27.0 * (j * k); elseif (a <= 1.65e+39) 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.8e+101], t$95$1, If[LessEqual[a, -5.2e-269], N[(b * c), $MachinePrecision], If[LessEqual[a, 1e-193], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e+39], 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.8 \cdot 10^{+101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-269}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;a \leq 10^{-193}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+39}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.79999999999999977e101 or 1.6500000000000001e39 < a Initial program 85.7%
sub-neg85.7%
associate-+l-85.7%
sub-neg85.7%
sub-neg85.7%
distribute-rgt-out--92.8%
associate-*l*91.9%
distribute-lft-neg-in91.9%
cancel-sign-sub91.9%
associate-*l*91.9%
associate-*l*92.0%
Simplified92.0%
Taylor expanded in y around 0 85.7%
Taylor expanded in a around inf 50.9%
if -4.79999999999999977e101 < a < -5.2e-269 or 1e-193 < a < 1.6500000000000001e39Initial program 88.1%
sub-neg88.1%
associate-+l-88.1%
sub-neg88.1%
sub-neg88.1%
distribute-rgt-out--88.1%
associate-*l*90.5%
distribute-lft-neg-in90.5%
cancel-sign-sub90.5%
associate-*l*90.5%
associate-*l*90.5%
Simplified90.5%
Taylor expanded in y around 0 74.3%
Taylor expanded in c around inf 39.9%
if -5.2e-269 < a < 1e-193Initial program 87.6%
sub-neg87.6%
+-commutative87.6%
associate-*l*87.7%
distribute-rgt-neg-in87.7%
fma-def87.7%
*-commutative87.7%
distribute-rgt-neg-in87.7%
metadata-eval87.7%
sub-neg87.7%
+-commutative87.7%
associate-*l*84.7%
distribute-rgt-neg-in84.7%
Simplified94.0%
Taylor expanded in j around inf 39.3%
Final simplification44.0%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= x -7.6e+187) (not (<= x 9.8e+114))) (* -4.0 (+ (* x i) (* t a))) (+ (* b c) (* -4.0 (* t a)))))
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 ((x <= -7.6e+187) || !(x <= 9.8e+114)) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = (b * c) + (-4.0 * (t * a));
}
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 ((x <= (-7.6d+187)) .or. (.not. (x <= 9.8d+114))) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else
tmp = (b * c) + ((-4.0d0) * (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((x <= -7.6e+187) || !(x <= 9.8e+114)) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = (b * c) + (-4.0 * (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (x <= -7.6e+187) or not (x <= 9.8e+114): tmp = -4.0 * ((x * i) + (t * a)) else: tmp = (b * c) + (-4.0 * (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((x <= -7.6e+187) || !(x <= 9.8e+114)) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); else tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((x <= -7.6e+187) || ~((x <= 9.8e+114))) tmp = -4.0 * ((x * i) + (t * a)); else tmp = (b * c) + (-4.0 * (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[x, -7.6e+187], N[Not[LessEqual[x, 9.8e+114]], $MachinePrecision]], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.6 \cdot 10^{+187} \lor \neg \left(x \leq 9.8 \cdot 10^{+114}\right):\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if x < -7.59999999999999999e187 or 9.8000000000000002e114 < x Initial program 73.3%
sub-neg73.3%
associate-+l-73.3%
sub-neg73.3%
sub-neg73.3%
distribute-rgt-out--74.9%
associate-*l*84.2%
distribute-lft-neg-in84.2%
cancel-sign-sub84.2%
associate-*l*84.2%
associate-*l*84.2%
Simplified84.2%
Taylor expanded in y around 0 71.7%
Taylor expanded in i around inf 66.2%
associate-*r*66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in c around 0 56.1%
cancel-sign-sub-inv56.1%
metadata-eval56.1%
+-commutative56.1%
distribute-lft-out56.1%
Simplified56.1%
if -7.59999999999999999e187 < x < 9.8000000000000002e114Initial program 91.6%
sub-neg91.6%
associate-+l-91.6%
sub-neg91.6%
sub-neg91.6%
distribute-rgt-out--94.7%
associate-*l*93.3%
distribute-lft-neg-in93.3%
cancel-sign-sub93.3%
associate-*l*92.8%
associate-*l*92.8%
Simplified92.8%
Taylor expanded in x around 0 74.1%
Taylor expanded in k around 0 55.2%
Final simplification55.4%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= b -3.6e+60) (* b c) (if (<= b 2.6e-159) (* -27.0 (* j k)) (* 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 <= -3.6e+60) {
tmp = b * c;
} else if (b <= 2.6e-159) {
tmp = -27.0 * (j * k);
} 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 (b <= (-3.6d+60)) then
tmp = b * c
else if (b <= 2.6d-159) then
tmp = (-27.0d0) * (j * k)
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 (b <= -3.6e+60) {
tmp = b * c;
} else if (b <= 2.6e-159) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if b <= -3.6e+60: tmp = b * c elif b <= 2.6e-159: tmp = -27.0 * (j * k) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (b <= -3.6e+60) tmp = Float64(b * c); elseif (b <= 2.6e-159) tmp = Float64(-27.0 * Float64(j * k)); 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 (b <= -3.6e+60) tmp = b * c; elseif (b <= 2.6e-159) tmp = -27.0 * (j * k); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[b, -3.6e+60], N[(b * c), $MachinePrecision], If[LessEqual[b, 2.6e-159], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+60}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-159}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if b < -3.59999999999999968e60 or 2.5999999999999998e-159 < b Initial program 86.0%
sub-neg86.0%
associate-+l-86.0%
sub-neg86.0%
sub-neg86.0%
distribute-rgt-out--89.2%
associate-*l*92.3%
distribute-lft-neg-in92.3%
cancel-sign-sub92.3%
associate-*l*91.7%
associate-*l*91.8%
Simplified91.8%
Taylor expanded in y around 0 80.4%
Taylor expanded in c around inf 38.2%
if -3.59999999999999968e60 < b < 2.5999999999999998e-159Initial program 88.9%
sub-neg88.9%
+-commutative88.9%
associate-*l*88.9%
distribute-rgt-neg-in88.9%
fma-def89.9%
*-commutative89.9%
distribute-rgt-neg-in89.9%
metadata-eval89.9%
sub-neg89.9%
+-commutative89.9%
associate-*l*89.9%
distribute-rgt-neg-in89.9%
Simplified91.0%
Taylor expanded in j around inf 29.2%
Final simplification34.7%
(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 87.1%
sub-neg87.1%
associate-+l-87.1%
sub-neg87.1%
sub-neg87.1%
distribute-rgt-out--89.8%
associate-*l*91.1%
distribute-lft-neg-in91.1%
cancel-sign-sub91.1%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in y around 0 79.5%
Taylor expanded in c around inf 27.5%
Final simplification27.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 2023185
(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)))