
(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 25 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
(if (or (<= t -8e-174) (not (<= t 5e-67)))
(fma
j
(* k -27.0)
(fma x (* i -4.0) (fma t (fma x (* 18.0 (* y z)) (* -4.0 a)) (* b c))))
(-
(+ (- (* y (* 18.0 (* z (* t x)))) (* a (* t 4.0))) (* b c))
(+ (* x (* i 4.0)) (* j (* k 27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -8e-174) || !(t <= 5e-67)) {
tmp = fma(j, (k * -27.0), fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (y * z)), (-4.0 * a)), (b * c))));
} else {
tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -8e-174) || !(t <= 5e-67)) tmp = fma(j, Float64(k * -27.0), fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(-4.0 * a)), Float64(b * c)))); else tmp = Float64(Float64(Float64(Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))) - Float64(a * Float64(t * 4.0))) + Float64(b * c)) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -8e-174], N[Not[LessEqual[t, 5e-67]], $MachinePrecision]], N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-174} \lor \neg \left(t \leq 5 \cdot 10^{-67}\right):\\
\;\;\;\;\mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right) - a \cdot \left(t \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\end{array}
\end{array}
if t < -8e-174 or 4.9999999999999999e-67 < t Initial program 84.6%
sub-neg84.6%
+-commutative84.6%
associate-*l*84.6%
distribute-rgt-neg-in84.6%
fma-def86.8%
*-commutative86.8%
distribute-rgt-neg-in86.8%
metadata-eval86.8%
sub-neg86.8%
+-commutative86.8%
associate-*l*86.8%
distribute-rgt-neg-in86.8%
Simplified94.3%
if -8e-174 < t < 4.9999999999999999e-67Initial program 83.3%
sub-neg83.3%
associate-+l-83.3%
sub-neg83.3%
sub-neg83.3%
distribute-rgt-out--83.3%
associate-*l*82.1%
distribute-lft-neg-in82.1%
cancel-sign-sub82.1%
associate-*l*82.1%
associate-*l*82.1%
Simplified82.1%
associate-*r*83.3%
distribute-rgt-out--83.3%
associate-*r*82.1%
*-commutative82.1%
associate-*r*83.3%
*-commutative83.3%
associate-*l*83.3%
associate-*l*83.3%
Applied egg-rr83.3%
Taylor expanded in t around 0 92.8%
associate-*r*92.9%
*-commutative92.9%
associate-*l*92.8%
associate-*r*96.3%
*-commutative96.3%
associate-*l*96.3%
Simplified96.3%
Final simplification95.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(-
(-
(- (* b c) (- (* t (* a 4.0)) (* t (* z (* y (* x 18.0))))))
(* i (* x 4.0)))
(* k (* j 27.0)))))
(if (<= t_1 (- INFINITY))
(-
(+ (- (* y (* 18.0 (* z (* t x)))) (* a (* t 4.0))) (* b c))
(+ (* x (* i 4.0)) (* j (* k 27.0))))
(if (<= t_1 INFINITY) t_1 (* x (- (* 18.0 (* y (* t z))) (* i 4.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((b * c) - ((t * (a * 4.0)) - (t * (z * (y * (x * 18.0)))))) - (i * (x * 4.0))) - (k * (j * 27.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((b * c) - ((t * (a * 4.0)) - (t * (z * (y * (x * 18.0)))))) - (i * (x * 4.0))) - (k * (j * 27.0));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (((b * c) - ((t * (a * 4.0)) - (t * (z * (y * (x * 18.0)))))) - (i * (x * 4.0))) - (k * (j * 27.0)) tmp = 0 if t_1 <= -math.inf: tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))) elif t_1 <= math.inf: tmp = t_1 else: tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(Float64(b * c) - Float64(Float64(t * Float64(a * 4.0)) - Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))))) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))) - Float64(a * Float64(t * 4.0))) + Float64(b * c)) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); elseif (t_1 <= Inf) tmp = t_1; else tmp = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (((b * c) - ((t * (a * 4.0)) - (t * (z * (y * (x * 18.0)))))) - (i * (x * 4.0))) - (k * (j * 27.0)); tmp = 0.0; if (t_1 <= -Inf) tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))); elseif (t_1 <= Inf) tmp = t_1; else tmp = x * ((18.0 * (y * (t * z))) - (i * 4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(b * c), $MachinePrecision] - N[(N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision] - N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * 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], If[LessEqual[t$95$1, Infinity], t$95$1, N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(b \cdot c - \left(t \cdot \left(a \cdot 4\right) - t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right)\right)\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(\left(y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right) - a \cdot \left(t \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < -inf.0Initial program 88.9%
sub-neg88.9%
associate-+l-88.9%
sub-neg88.9%
sub-neg88.9%
distribute-rgt-out--88.9%
associate-*l*88.9%
distribute-lft-neg-in88.9%
cancel-sign-sub88.9%
associate-*l*88.9%
associate-*l*88.9%
Simplified88.9%
associate-*r*88.9%
distribute-rgt-out--88.9%
associate-*r*88.9%
*-commutative88.9%
associate-*r*88.9%
*-commutative88.9%
associate-*l*88.9%
associate-*l*90.4%
Applied egg-rr90.4%
Taylor expanded in t around 0 98.5%
associate-*r*98.5%
*-commutative98.5%
associate-*l*98.5%
associate-*r*96.8%
*-commutative96.8%
associate-*l*96.8%
Simplified96.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)) < +inf.0Initial program 96.0%
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--14.8%
associate-*l*25.9%
distribute-lft-neg-in25.9%
cancel-sign-sub25.9%
associate-*l*25.9%
associate-*l*25.9%
Simplified25.9%
Taylor expanded in x around inf 74.1%
Final simplification93.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -5000.0) (not (<= t 2.15e+89)))
(- (+ (* t (- (* (* y z) (* x 18.0)) (* a 4.0))) (* b c)) (* 27.0 (* j k)))
(-
(+ (- (* y (* 18.0 (* z (* t x)))) (* a (* t 4.0))) (* b c))
(+ (* x (* i 4.0)) (* j (* k 27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5000.0) || !(t <= 2.15e+89)) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k));
} else {
tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-5000.0d0)) .or. (.not. (t <= 2.15d+89))) then
tmp = ((t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0))) + (b * c)) - (27.0d0 * (j * k))
else
tmp = (((y * (18.0d0 * (z * (t * x)))) - (a * (t * 4.0d0))) + (b * c)) - ((x * (i * 4.0d0)) + (j * (k * 27.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5000.0) || !(t <= 2.15e+89)) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k));
} else {
tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -5000.0) or not (t <= 2.15e+89): tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k)) else: tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -5000.0) || !(t <= 2.15e+89)) tmp = Float64(Float64(Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0))) + Float64(b * c)) - Float64(27.0 * Float64(j * k))); else tmp = Float64(Float64(Float64(Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))) - Float64(a * Float64(t * 4.0))) + Float64(b * c)) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((t <= -5000.0) || ~((t <= 2.15e+89))) tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k)); else tmp = (((y * (18.0 * (z * (t * x)))) - (a * (t * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -5000.0], N[Not[LessEqual[t, 2.15e+89]], $MachinePrecision]], 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[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5000 \lor \neg \left(t \leq 2.15 \cdot 10^{+89}\right):\\
\;\;\;\;\left(t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right) - a \cdot \left(t \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\end{array}
\end{array}
if t < -5e3 or 2.1500000000000001e89 < t Initial program 84.4%
sub-neg84.4%
associate-+l-84.4%
sub-neg84.4%
sub-neg84.4%
distribute-rgt-out--88.0%
associate-*l*89.0%
distribute-lft-neg-in89.0%
cancel-sign-sub89.0%
associate-*l*89.0%
associate-*l*89.0%
Simplified89.0%
Taylor expanded in x around 0 89.2%
if -5e3 < t < 2.1500000000000001e89Initial program 84.0%
sub-neg84.0%
associate-+l-84.0%
sub-neg84.0%
sub-neg84.0%
distribute-rgt-out--84.0%
associate-*l*82.7%
distribute-lft-neg-in82.7%
cancel-sign-sub82.7%
associate-*l*82.7%
associate-*l*82.7%
Simplified82.7%
associate-*r*84.0%
distribute-rgt-out--84.0%
associate-*r*82.7%
*-commutative82.7%
associate-*r*84.0%
*-commutative84.0%
associate-*l*83.4%
associate-*l*84.0%
Applied egg-rr84.0%
Taylor expanded in t around 0 90.5%
associate-*r*89.8%
*-commutative89.8%
associate-*l*90.5%
associate-*r*91.8%
*-commutative91.8%
associate-*l*92.5%
Simplified92.5%
Final simplification91.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= y -1.45e+90)
(+
(+ (* b c) (* -27.0 (* j k)))
(* t (+ (* 18.0 (* y (* x z))) (* -4.0 a))))
(-
(+ (* b c) (- (* t (* z (* x (* 18.0 y)))) (* a (* t 4.0))))
(+ (* x (* i 4.0)) (* j (* k 27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= -1.45e+90) {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
} else {
tmp = ((b * c) + ((t * (z * (x * (18.0 * y)))) - (a * (t * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (y <= (-1.45d+90)) then
tmp = ((b * c) + ((-27.0d0) * (j * k))) + (t * ((18.0d0 * (y * (x * z))) + ((-4.0d0) * a)))
else
tmp = ((b * c) + ((t * (z * (x * (18.0d0 * y)))) - (a * (t * 4.0d0)))) - ((x * (i * 4.0d0)) + (j * (k * 27.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= -1.45e+90) {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
} else {
tmp = ((b * c) + ((t * (z * (x * (18.0 * y)))) - (a * (t * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if y <= -1.45e+90: tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))) else: tmp = ((b * c) + ((t * (z * (x * (18.0 * y)))) - (a * (t * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (y <= -1.45e+90) tmp = Float64(Float64(Float64(b * c) + Float64(-27.0 * Float64(j * k))) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) + Float64(-4.0 * a)))); else tmp = Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(x * Float64(18.0 * y)))) - Float64(a * Float64(t * 4.0)))) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (y <= -1.45e+90) tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))); else tmp = ((b * c) + ((t * (z * (x * (18.0 * y)))) - (a * (t * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[y, -1.45e+90], N[(N[(N[(b * c), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+90}:\\
\;\;\;\;\left(b \cdot c + -27 \cdot \left(j \cdot k\right)\right) + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + -4 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + \left(t \cdot \left(z \cdot \left(x \cdot \left(18 \cdot y\right)\right)\right) - a \cdot \left(t \cdot 4\right)\right)\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\end{array}
\end{array}
if y < -1.4500000000000001e90Initial program 72.0%
sub-neg72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
Simplified78.6%
Taylor expanded in i around 0 86.9%
if -1.4500000000000001e90 < y Initial program 86.8%
sub-neg86.8%
associate-+l-86.8%
sub-neg86.8%
sub-neg86.8%
distribute-rgt-out--87.3%
associate-*l*87.3%
distribute-lft-neg-in87.3%
cancel-sign-sub87.3%
associate-*l*87.3%
associate-*l*87.3%
Simplified87.3%
associate-*r*87.3%
distribute-rgt-out--86.8%
associate-*r*86.4%
*-commutative86.4%
associate-*r*86.8%
*-commutative86.8%
associate-*l*86.8%
associate-*l*87.3%
Applied egg-rr87.3%
Final simplification87.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* y (* t z))))
(t_2 (- (* -4.0 (* t a)) (* 27.0 (* j k))))
(t_3 (- (* b c) (* x (* i 4.0))))
(t_4 (* x (- t_1 (* i 4.0)))))
(if (<= x -1.75e+123)
t_4
(if (<= x -7.2e-20)
t_3
(if (<= x -6.6e-22)
(* x t_1)
(if (<= x -1.96e-87)
t_2
(if (<= x -5.8e-126)
t_3
(if (<= x 2.55e-213)
(- (* b c) (* 4.0 (* t a)))
(if (or (<= x 1.2e-8) (and (not (<= x 8e+18)) (<= x 6.6e+53)))
t_2
t_4)))))))))
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 = 18.0 * (y * (t * z));
double t_2 = (-4.0 * (t * a)) - (27.0 * (j * k));
double t_3 = (b * c) - (x * (i * 4.0));
double t_4 = x * (t_1 - (i * 4.0));
double tmp;
if (x <= -1.75e+123) {
tmp = t_4;
} else if (x <= -7.2e-20) {
tmp = t_3;
} else if (x <= -6.6e-22) {
tmp = x * t_1;
} else if (x <= -1.96e-87) {
tmp = t_2;
} else if (x <= -5.8e-126) {
tmp = t_3;
} else if (x <= 2.55e-213) {
tmp = (b * c) - (4.0 * (t * a));
} else if ((x <= 1.2e-8) || (!(x <= 8e+18) && (x <= 6.6e+53))) {
tmp = t_2;
} else {
tmp = t_4;
}
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) :: t_4
real(8) :: tmp
t_1 = 18.0d0 * (y * (t * z))
t_2 = ((-4.0d0) * (t * a)) - (27.0d0 * (j * k))
t_3 = (b * c) - (x * (i * 4.0d0))
t_4 = x * (t_1 - (i * 4.0d0))
if (x <= (-1.75d+123)) then
tmp = t_4
else if (x <= (-7.2d-20)) then
tmp = t_3
else if (x <= (-6.6d-22)) then
tmp = x * t_1
else if (x <= (-1.96d-87)) then
tmp = t_2
else if (x <= (-5.8d-126)) then
tmp = t_3
else if (x <= 2.55d-213) then
tmp = (b * c) - (4.0d0 * (t * a))
else if ((x <= 1.2d-8) .or. (.not. (x <= 8d+18)) .and. (x <= 6.6d+53)) then
tmp = t_2
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (y * (t * z));
double t_2 = (-4.0 * (t * a)) - (27.0 * (j * k));
double t_3 = (b * c) - (x * (i * 4.0));
double t_4 = x * (t_1 - (i * 4.0));
double tmp;
if (x <= -1.75e+123) {
tmp = t_4;
} else if (x <= -7.2e-20) {
tmp = t_3;
} else if (x <= -6.6e-22) {
tmp = x * t_1;
} else if (x <= -1.96e-87) {
tmp = t_2;
} else if (x <= -5.8e-126) {
tmp = t_3;
} else if (x <= 2.55e-213) {
tmp = (b * c) - (4.0 * (t * a));
} else if ((x <= 1.2e-8) || (!(x <= 8e+18) && (x <= 6.6e+53))) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (y * (t * z)) t_2 = (-4.0 * (t * a)) - (27.0 * (j * k)) t_3 = (b * c) - (x * (i * 4.0)) t_4 = x * (t_1 - (i * 4.0)) tmp = 0 if x <= -1.75e+123: tmp = t_4 elif x <= -7.2e-20: tmp = t_3 elif x <= -6.6e-22: tmp = x * t_1 elif x <= -1.96e-87: tmp = t_2 elif x <= -5.8e-126: tmp = t_3 elif x <= 2.55e-213: tmp = (b * c) - (4.0 * (t * a)) elif (x <= 1.2e-8) or (not (x <= 8e+18) and (x <= 6.6e+53)): tmp = t_2 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(y * Float64(t * z))) t_2 = Float64(Float64(-4.0 * Float64(t * a)) - Float64(27.0 * Float64(j * k))) t_3 = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))) t_4 = Float64(x * Float64(t_1 - Float64(i * 4.0))) tmp = 0.0 if (x <= -1.75e+123) tmp = t_4; elseif (x <= -7.2e-20) tmp = t_3; elseif (x <= -6.6e-22) tmp = Float64(x * t_1); elseif (x <= -1.96e-87) tmp = t_2; elseif (x <= -5.8e-126) tmp = t_3; elseif (x <= 2.55e-213) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); elseif ((x <= 1.2e-8) || (!(x <= 8e+18) && (x <= 6.6e+53))) tmp = t_2; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 18.0 * (y * (t * z)); t_2 = (-4.0 * (t * a)) - (27.0 * (j * k)); t_3 = (b * c) - (x * (i * 4.0)); t_4 = x * (t_1 - (i * 4.0)); tmp = 0.0; if (x <= -1.75e+123) tmp = t_4; elseif (x <= -7.2e-20) tmp = t_3; elseif (x <= -6.6e-22) tmp = x * t_1; elseif (x <= -1.96e-87) tmp = t_2; elseif (x <= -5.8e-126) tmp = t_3; elseif (x <= 2.55e-213) tmp = (b * c) - (4.0 * (t * a)); elseif ((x <= 1.2e-8) || (~((x <= 8e+18)) && (x <= 6.6e+53))) tmp = t_2; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(t$95$1 - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+123], t$95$4, If[LessEqual[x, -7.2e-20], t$95$3, If[LessEqual[x, -6.6e-22], N[(x * t$95$1), $MachinePrecision], If[LessEqual[x, -1.96e-87], t$95$2, If[LessEqual[x, -5.8e-126], t$95$3, If[LessEqual[x, 2.55e-213], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 1.2e-8], And[N[Not[LessEqual[x, 8e+18]], $MachinePrecision], LessEqual[x, 6.6e+53]]], t$95$2, t$95$4]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 18 \cdot \left(y \cdot \left(t \cdot z\right)\right)\\
t_2 := -4 \cdot \left(t \cdot a\right) - 27 \cdot \left(j \cdot k\right)\\
t_3 := b \cdot c - x \cdot \left(i \cdot 4\right)\\
t_4 := x \cdot \left(t_1 - i \cdot 4\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{+123}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-20}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-22}:\\
\;\;\;\;x \cdot t_1\\
\mathbf{elif}\;x \leq -1.96 \cdot 10^{-87}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{-126}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 2.55 \cdot 10^{-213}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-8} \lor \neg \left(x \leq 8 \cdot 10^{+18}\right) \land x \leq 6.6 \cdot 10^{+53}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if x < -1.75e123 or 1.19999999999999999e-8 < x < 8e18 or 6.6000000000000004e53 < x Initial program 70.2%
sub-neg70.2%
associate-+l-70.2%
sub-neg70.2%
sub-neg70.2%
distribute-rgt-out--73.0%
associate-*l*76.7%
distribute-lft-neg-in76.7%
cancel-sign-sub76.7%
associate-*l*76.7%
associate-*l*76.7%
Simplified76.7%
Taylor expanded in x around inf 69.7%
if -1.75e123 < x < -7.19999999999999948e-20 or -1.96000000000000011e-87 < x < -5.79999999999999975e-126Initial program 91.6%
sub-neg91.6%
associate-+l-91.6%
sub-neg91.6%
sub-neg91.6%
distribute-rgt-out--91.6%
associate-*l*94.6%
distribute-lft-neg-in94.6%
cancel-sign-sub94.6%
associate-*l*94.6%
associate-*l*94.6%
Simplified94.6%
Taylor expanded in t around 0 81.4%
Taylor expanded in i around inf 69.4%
associate-*r*69.4%
*-commutative69.4%
Simplified69.4%
if -7.19999999999999948e-20 < x < -6.6000000000000002e-22Initial 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 x around inf 100.0%
Taylor expanded in y around inf 100.0%
if -6.6000000000000002e-22 < x < -1.96000000000000011e-87 or 2.5499999999999999e-213 < x < 1.19999999999999999e-8 or 8e18 < x < 6.6000000000000004e53Initial program 93.3%
Taylor expanded in t around -inf 78.3%
Taylor expanded in y around 0 72.5%
if -5.79999999999999975e-126 < x < 2.5499999999999999e-213Initial program 96.2%
Taylor expanded in x around 0 90.5%
Taylor expanded in j around 0 73.6%
Final simplification71.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= i -6.8e+218)
(- (* 27.0 (* j (- k))) (* 4.0 (* x i)))
(-
(+ (* t (- (* (* y z) (* x 18.0)) (* a 4.0))) (* b c))
(+ (* x (* i 4.0)) (* j (* k 27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (i <= -6.8e+218) {
tmp = (27.0 * (j * -k)) - (4.0 * (x * i));
} else {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (i <= (-6.8d+218)) then
tmp = (27.0d0 * (j * -k)) - (4.0d0 * (x * i))
else
tmp = ((t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0))) + (b * c)) - ((x * (i * 4.0d0)) + (j * (k * 27.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (i <= -6.8e+218) {
tmp = (27.0 * (j * -k)) - (4.0 * (x * i));
} else {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if i <= -6.8e+218: tmp = (27.0 * (j * -k)) - (4.0 * (x * i)) else: tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (i <= -6.8e+218) tmp = Float64(Float64(27.0 * Float64(j * Float64(-k))) - Float64(4.0 * Float64(x * i))); else 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)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (i <= -6.8e+218) tmp = (27.0 * (j * -k)) - (4.0 * (x * i)); else tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - ((x * (i * 4.0)) + (j * (k * 27.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[i, -6.8e+218], N[(N[(27.0 * N[(j * (-k)), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.8 \cdot 10^{+218}:\\
\;\;\;\;27 \cdot \left(j \cdot \left(-k\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\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)\\
\end{array}
\end{array}
if i < -6.80000000000000017e218Initial program 42.9%
sub-neg42.9%
associate-+l-42.9%
sub-neg42.9%
sub-neg42.9%
distribute-rgt-out--50.0%
associate-*l*42.9%
distribute-lft-neg-in42.9%
cancel-sign-sub42.9%
associate-*l*42.9%
associate-*l*42.9%
Simplified42.9%
Taylor expanded in t around 0 71.4%
Taylor expanded in c around 0 78.8%
if -6.80000000000000017e218 < i Initial program 86.5%
sub-neg86.5%
associate-+l-86.5%
sub-neg86.5%
sub-neg86.5%
distribute-rgt-out--87.8%
associate-*l*87.8%
distribute-lft-neg-in87.8%
cancel-sign-sub87.8%
associate-*l*87.8%
associate-*l*87.8%
Simplified87.8%
Final simplification87.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* -4.0 (* t a)) (* 27.0 (* j k))))
(t_2 (- (* 27.0 (* j (- k))) (* 4.0 (* x i))))
(t_3 (* t (+ (* -4.0 a) (* (* x z) (* 18.0 y))))))
(if (<= t -5.4e-28)
t_3
(if (<= t -5.8e-227)
(- (* b c) (* x (* i 4.0)))
(if (<= t 4.5e-188)
t_2
(if (<= t 2.7e-172)
(* b c)
(if (<= t 5.2e-111)
t_1
(if (<= t 5.1e-68)
t_2
(if (<= t 2.2e-27)
(- (* b c) (* 4.0 (* t a)))
(if (<= t 1.5e+96) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (-4.0 * (t * a)) - (27.0 * (j * k));
double t_2 = (27.0 * (j * -k)) - (4.0 * (x * i));
double t_3 = t * ((-4.0 * a) + ((x * z) * (18.0 * y)));
double tmp;
if (t <= -5.4e-28) {
tmp = t_3;
} else if (t <= -5.8e-227) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 4.5e-188) {
tmp = t_2;
} else if (t <= 2.7e-172) {
tmp = b * c;
} else if (t <= 5.2e-111) {
tmp = t_1;
} else if (t <= 5.1e-68) {
tmp = t_2;
} else if (t <= 2.2e-27) {
tmp = (b * c) - (4.0 * (t * a));
} else if (t <= 1.5e+96) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = ((-4.0d0) * (t * a)) - (27.0d0 * (j * k))
t_2 = (27.0d0 * (j * -k)) - (4.0d0 * (x * i))
t_3 = t * (((-4.0d0) * a) + ((x * z) * (18.0d0 * y)))
if (t <= (-5.4d-28)) then
tmp = t_3
else if (t <= (-5.8d-227)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (t <= 4.5d-188) then
tmp = t_2
else if (t <= 2.7d-172) then
tmp = b * c
else if (t <= 5.2d-111) then
tmp = t_1
else if (t <= 5.1d-68) then
tmp = t_2
else if (t <= 2.2d-27) then
tmp = (b * c) - (4.0d0 * (t * a))
else if (t <= 1.5d+96) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (-4.0 * (t * a)) - (27.0 * (j * k));
double t_2 = (27.0 * (j * -k)) - (4.0 * (x * i));
double t_3 = t * ((-4.0 * a) + ((x * z) * (18.0 * y)));
double tmp;
if (t <= -5.4e-28) {
tmp = t_3;
} else if (t <= -5.8e-227) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 4.5e-188) {
tmp = t_2;
} else if (t <= 2.7e-172) {
tmp = b * c;
} else if (t <= 5.2e-111) {
tmp = t_1;
} else if (t <= 5.1e-68) {
tmp = t_2;
} else if (t <= 2.2e-27) {
tmp = (b * c) - (4.0 * (t * a));
} else if (t <= 1.5e+96) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (-4.0 * (t * a)) - (27.0 * (j * k)) t_2 = (27.0 * (j * -k)) - (4.0 * (x * i)) t_3 = t * ((-4.0 * a) + ((x * z) * (18.0 * y))) tmp = 0 if t <= -5.4e-28: tmp = t_3 elif t <= -5.8e-227: tmp = (b * c) - (x * (i * 4.0)) elif t <= 4.5e-188: tmp = t_2 elif t <= 2.7e-172: tmp = b * c elif t <= 5.2e-111: tmp = t_1 elif t <= 5.1e-68: tmp = t_2 elif t <= 2.2e-27: tmp = (b * c) - (4.0 * (t * a)) elif t <= 1.5e+96: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(-4.0 * Float64(t * a)) - Float64(27.0 * Float64(j * k))) t_2 = Float64(Float64(27.0 * Float64(j * Float64(-k))) - Float64(4.0 * Float64(x * i))) t_3 = Float64(t * Float64(Float64(-4.0 * a) + Float64(Float64(x * z) * Float64(18.0 * y)))) tmp = 0.0 if (t <= -5.4e-28) tmp = t_3; elseif (t <= -5.8e-227) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (t <= 4.5e-188) tmp = t_2; elseif (t <= 2.7e-172) tmp = Float64(b * c); elseif (t <= 5.2e-111) tmp = t_1; elseif (t <= 5.1e-68) tmp = t_2; elseif (t <= 2.2e-27) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); elseif (t <= 1.5e+96) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (-4.0 * (t * a)) - (27.0 * (j * k)); t_2 = (27.0 * (j * -k)) - (4.0 * (x * i)); t_3 = t * ((-4.0 * a) + ((x * z) * (18.0 * y))); tmp = 0.0; if (t <= -5.4e-28) tmp = t_3; elseif (t <= -5.8e-227) tmp = (b * c) - (x * (i * 4.0)); elseif (t <= 4.5e-188) tmp = t_2; elseif (t <= 2.7e-172) tmp = b * c; elseif (t <= 5.2e-111) tmp = t_1; elseif (t <= 5.1e-68) tmp = t_2; elseif (t <= 2.2e-27) tmp = (b * c) - (4.0 * (t * a)); elseif (t <= 1.5e+96) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(27.0 * N[(j * (-k)), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(-4.0 * a), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e-28], t$95$3, If[LessEqual[t, -5.8e-227], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-188], t$95$2, If[LessEqual[t, 2.7e-172], N[(b * c), $MachinePrecision], If[LessEqual[t, 5.2e-111], t$95$1, If[LessEqual[t, 5.1e-68], t$95$2, If[LessEqual[t, 2.2e-27], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+96], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right) - 27 \cdot \left(j \cdot k\right)\\
t_2 := 27 \cdot \left(j \cdot \left(-k\right)\right) - 4 \cdot \left(x \cdot i\right)\\
t_3 := t \cdot \left(-4 \cdot a + \left(x \cdot z\right) \cdot \left(18 \cdot y\right)\right)\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{-28}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-227}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-188}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-172}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-68}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-27}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -5.3999999999999998e-28 or 1.5e96 < t Initial program 85.4%
sub-neg85.4%
associate-+l-85.4%
sub-neg85.4%
sub-neg85.4%
distribute-rgt-out--88.8%
associate-*l*88.9%
distribute-lft-neg-in88.9%
cancel-sign-sub88.9%
associate-*l*88.9%
associate-*l*88.9%
Simplified88.9%
associate-*r*88.8%
distribute-rgt-out--85.4%
associate-*r*84.7%
*-commutative84.7%
associate-*r*85.4%
*-commutative85.4%
associate-*l*85.4%
associate-*l*85.4%
Applied egg-rr85.4%
Taylor expanded in t around inf 70.5%
cancel-sign-sub-inv70.5%
associate-*r*70.5%
metadata-eval70.5%
*-commutative70.5%
Simplified70.5%
if -5.3999999999999998e-28 < t < -5.80000000000000022e-227Initial program 75.2%
sub-neg75.2%
associate-+l-75.2%
sub-neg75.2%
sub-neg75.2%
distribute-rgt-out--75.2%
associate-*l*79.1%
distribute-lft-neg-in79.1%
cancel-sign-sub79.1%
associate-*l*79.1%
associate-*l*79.1%
Simplified79.1%
Taylor expanded in t around 0 79.2%
Taylor expanded in i around inf 71.3%
associate-*r*71.3%
*-commutative71.3%
Simplified71.3%
if -5.80000000000000022e-227 < t < 4.49999999999999993e-188 or 5.19999999999999965e-111 < t < 5.09999999999999966e-68Initial program 78.3%
sub-neg78.3%
associate-+l-78.3%
sub-neg78.3%
sub-neg78.3%
distribute-rgt-out--78.3%
associate-*l*74.6%
distribute-lft-neg-in74.6%
cancel-sign-sub74.6%
associate-*l*74.6%
associate-*l*74.6%
Simplified74.6%
Taylor expanded in t around 0 88.8%
Taylor expanded in c around 0 72.5%
if 4.49999999999999993e-188 < t < 2.70000000000000025e-172Initial 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%
associate-*r*100.0%
distribute-rgt-out--100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*l*100.0%
associate-*l*100.0%
Applied egg-rr100.0%
Taylor expanded in b around inf 100.0%
if 2.70000000000000025e-172 < t < 5.19999999999999965e-111 or 2.19999999999999987e-27 < t < 1.5e96Initial program 91.6%
Taylor expanded in t around -inf 68.6%
Taylor expanded in y around 0 60.9%
if 5.09999999999999966e-68 < t < 2.19999999999999987e-27Initial program 87.3%
Taylor expanded in x around 0 64.8%
Taylor expanded in j around 0 65.1%
Final simplification69.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* -4.0 (* t a)) (* 27.0 (* j k))))
(t_2 (- (* 27.0 (* j (- k))) (* 4.0 (* x i)))))
(if (<= t -5.4e-28)
(* t (+ (* -4.0 a) (* (* x z) (* 18.0 y))))
(if (<= t -1.45e-226)
(- (* b c) (* x (* i 4.0)))
(if (<= t 2.1e-188)
t_2
(if (<= t 2.5e-172)
(* b c)
(if (<= t 7.8e-111)
t_1
(if (<= t 2.75e-69)
t_2
(if (<= t 6.8e-27)
(- (* b c) (* 4.0 (* t a)))
(if (<= t 1.25e+96)
t_1
(* 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 t_1 = (-4.0 * (t * a)) - (27.0 * (j * k));
double t_2 = (27.0 * (j * -k)) - (4.0 * (x * i));
double tmp;
if (t <= -5.4e-28) {
tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y)));
} else if (t <= -1.45e-226) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 2.1e-188) {
tmp = t_2;
} else if (t <= 2.5e-172) {
tmp = b * c;
} else if (t <= 7.8e-111) {
tmp = t_1;
} else if (t <= 2.75e-69) {
tmp = t_2;
} else if (t <= 6.8e-27) {
tmp = (b * c) - (4.0 * (t * a));
} else if (t <= 1.25e+96) {
tmp = t_1;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((-4.0d0) * (t * a)) - (27.0d0 * (j * k))
t_2 = (27.0d0 * (j * -k)) - (4.0d0 * (x * i))
if (t <= (-5.4d-28)) then
tmp = t * (((-4.0d0) * a) + ((x * z) * (18.0d0 * y)))
else if (t <= (-1.45d-226)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (t <= 2.1d-188) then
tmp = t_2
else if (t <= 2.5d-172) then
tmp = b * c
else if (t <= 7.8d-111) then
tmp = t_1
else if (t <= 2.75d-69) then
tmp = t_2
else if (t <= 6.8d-27) then
tmp = (b * c) - (4.0d0 * (t * a))
else if (t <= 1.25d+96) then
tmp = t_1
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 t_1 = (-4.0 * (t * a)) - (27.0 * (j * k));
double t_2 = (27.0 * (j * -k)) - (4.0 * (x * i));
double tmp;
if (t <= -5.4e-28) {
tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y)));
} else if (t <= -1.45e-226) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 2.1e-188) {
tmp = t_2;
} else if (t <= 2.5e-172) {
tmp = b * c;
} else if (t <= 7.8e-111) {
tmp = t_1;
} else if (t <= 2.75e-69) {
tmp = t_2;
} else if (t <= 6.8e-27) {
tmp = (b * c) - (4.0 * (t * a));
} else if (t <= 1.25e+96) {
tmp = t_1;
} 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): t_1 = (-4.0 * (t * a)) - (27.0 * (j * k)) t_2 = (27.0 * (j * -k)) - (4.0 * (x * i)) tmp = 0 if t <= -5.4e-28: tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y))) elif t <= -1.45e-226: tmp = (b * c) - (x * (i * 4.0)) elif t <= 2.1e-188: tmp = t_2 elif t <= 2.5e-172: tmp = b * c elif t <= 7.8e-111: tmp = t_1 elif t <= 2.75e-69: tmp = t_2 elif t <= 6.8e-27: tmp = (b * c) - (4.0 * (t * a)) elif t <= 1.25e+96: tmp = t_1 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) t_1 = Float64(Float64(-4.0 * Float64(t * a)) - Float64(27.0 * Float64(j * k))) t_2 = Float64(Float64(27.0 * Float64(j * Float64(-k))) - Float64(4.0 * Float64(x * i))) tmp = 0.0 if (t <= -5.4e-28) tmp = Float64(t * Float64(Float64(-4.0 * a) + Float64(Float64(x * z) * Float64(18.0 * y)))); elseif (t <= -1.45e-226) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (t <= 2.1e-188) tmp = t_2; elseif (t <= 2.5e-172) tmp = Float64(b * c); elseif (t <= 7.8e-111) tmp = t_1; elseif (t <= 2.75e-69) tmp = t_2; elseif (t <= 6.8e-27) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); elseif (t <= 1.25e+96) tmp = t_1; 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) t_1 = (-4.0 * (t * a)) - (27.0 * (j * k)); t_2 = (27.0 * (j * -k)) - (4.0 * (x * i)); tmp = 0.0; if (t <= -5.4e-28) tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y))); elseif (t <= -1.45e-226) tmp = (b * c) - (x * (i * 4.0)); elseif (t <= 2.1e-188) tmp = t_2; elseif (t <= 2.5e-172) tmp = b * c; elseif (t <= 7.8e-111) tmp = t_1; elseif (t <= 2.75e-69) tmp = t_2; elseif (t <= 6.8e-27) tmp = (b * c) - (4.0 * (t * a)); elseif (t <= 1.25e+96) tmp = t_1; 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_] := Block[{t$95$1 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(27.0 * N[(j * (-k)), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e-28], N[(t * N[(N[(-4.0 * a), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.45e-226], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e-188], t$95$2, If[LessEqual[t, 2.5e-172], N[(b * c), $MachinePrecision], If[LessEqual[t, 7.8e-111], t$95$1, If[LessEqual[t, 2.75e-69], t$95$2, If[LessEqual[t, 6.8e-27], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e+96], t$95$1, 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}
t_1 := -4 \cdot \left(t \cdot a\right) - 27 \cdot \left(j \cdot k\right)\\
t_2 := 27 \cdot \left(j \cdot \left(-k\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{-28}:\\
\;\;\;\;t \cdot \left(-4 \cdot a + \left(x \cdot z\right) \cdot \left(18 \cdot y\right)\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-226}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-188}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-172}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.75 \cdot 10^{-69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-27}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\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 < -5.3999999999999998e-28Initial program 88.8%
sub-neg88.8%
associate-+l-88.8%
sub-neg88.8%
sub-neg88.8%
distribute-rgt-out--90.4%
associate-*l*90.6%
distribute-lft-neg-in90.6%
cancel-sign-sub90.6%
associate-*l*90.6%
associate-*l*90.6%
Simplified90.6%
associate-*r*90.4%
distribute-rgt-out--88.8%
associate-*r*89.0%
*-commutative89.0%
associate-*r*88.8%
*-commutative88.8%
associate-*l*88.8%
associate-*l*88.8%
Applied egg-rr88.8%
Taylor expanded in t around inf 66.0%
cancel-sign-sub-inv66.0%
associate-*r*66.0%
metadata-eval66.0%
*-commutative66.0%
Simplified66.0%
if -5.3999999999999998e-28 < t < -1.45000000000000001e-226Initial program 75.2%
sub-neg75.2%
associate-+l-75.2%
sub-neg75.2%
sub-neg75.2%
distribute-rgt-out--75.2%
associate-*l*79.1%
distribute-lft-neg-in79.1%
cancel-sign-sub79.1%
associate-*l*79.1%
associate-*l*79.1%
Simplified79.1%
Taylor expanded in t around 0 79.2%
Taylor expanded in i around inf 71.3%
associate-*r*71.3%
*-commutative71.3%
Simplified71.3%
if -1.45000000000000001e-226 < t < 2.0999999999999999e-188 or 7.8000000000000006e-111 < t < 2.75000000000000003e-69Initial program 78.3%
sub-neg78.3%
associate-+l-78.3%
sub-neg78.3%
sub-neg78.3%
distribute-rgt-out--78.3%
associate-*l*74.6%
distribute-lft-neg-in74.6%
cancel-sign-sub74.6%
associate-*l*74.6%
associate-*l*74.6%
Simplified74.6%
Taylor expanded in t around 0 88.8%
Taylor expanded in c around 0 72.5%
if 2.0999999999999999e-188 < t < 2.5e-172Initial 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%
associate-*r*100.0%
distribute-rgt-out--100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*l*100.0%
associate-*l*100.0%
Applied egg-rr100.0%
Taylor expanded in b around inf 100.0%
if 2.5e-172 < t < 7.8000000000000006e-111 or 6.7999999999999994e-27 < t < 1.2500000000000001e96Initial program 91.6%
Taylor expanded in t around -inf 68.6%
Taylor expanded in y around 0 60.9%
if 2.75000000000000003e-69 < t < 6.7999999999999994e-27Initial program 87.3%
Taylor expanded in x around 0 64.8%
Taylor expanded in j around 0 65.1%
if 1.2500000000000001e96 < t Initial program 81.4%
sub-neg81.4%
associate-+l-81.4%
sub-neg81.4%
sub-neg81.4%
distribute-rgt-out--87.0%
associate-*l*87.0%
distribute-lft-neg-in87.0%
cancel-sign-sub87.0%
associate-*l*87.0%
associate-*l*87.0%
Simplified87.0%
associate-*r*87.0%
distribute-rgt-out--81.4%
associate-*r*79.6%
*-commutative79.6%
associate-*r*81.4%
*-commutative81.4%
associate-*l*81.4%
associate-*l*81.4%
Applied egg-rr81.4%
Taylor expanded in t around inf 75.8%
Final simplification69.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -4.9e-27)
(- (+ (* t (- (* (* y z) (* x 18.0)) (* a 4.0))) (* b c)) (* 27.0 (* j k)))
(if (<= t 4.7e-66)
(-
(- (+ (* b c) (* 18.0 (* y (* t (* x z))))) (* 4.0 (* x i)))
(* k (* j 27.0)))
(+
(+ (* b c) (* -27.0 (* j k)))
(* t (+ (* 18.0 (* y (* x z))) (* -4.0 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 (t <= -4.9e-27) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k));
} else if (t <= 4.7e-66) {
tmp = (((b * c) + (18.0 * (y * (t * (x * z))))) - (4.0 * (x * i))) - (k * (j * 27.0));
} else {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * 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 (t <= (-4.9d-27)) then
tmp = ((t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0))) + (b * c)) - (27.0d0 * (j * k))
else if (t <= 4.7d-66) then
tmp = (((b * c) + (18.0d0 * (y * (t * (x * z))))) - (4.0d0 * (x * i))) - (k * (j * 27.0d0))
else
tmp = ((b * c) + ((-27.0d0) * (j * k))) + (t * ((18.0d0 * (y * (x * z))) + ((-4.0d0) * 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 (t <= -4.9e-27) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k));
} else if (t <= 4.7e-66) {
tmp = (((b * c) + (18.0 * (y * (t * (x * z))))) - (4.0 * (x * i))) - (k * (j * 27.0));
} else {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -4.9e-27: tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k)) elif t <= 4.7e-66: tmp = (((b * c) + (18.0 * (y * (t * (x * z))))) - (4.0 * (x * i))) - (k * (j * 27.0)) else: tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -4.9e-27) tmp = Float64(Float64(Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0))) + Float64(b * c)) - Float64(27.0 * Float64(j * k))); elseif (t <= 4.7e-66) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(y * Float64(t * Float64(x * z))))) - Float64(4.0 * Float64(x * i))) - Float64(k * Float64(j * 27.0))); else tmp = Float64(Float64(Float64(b * c) + Float64(-27.0 * Float64(j * k))) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) + Float64(-4.0 * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (t <= -4.9e-27) tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - (27.0 * (j * k)); elseif (t <= 4.7e-66) tmp = (((b * c) + (18.0 * (y * (t * (x * z))))) - (4.0 * (x * i))) - (k * (j * 27.0)); else tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -4.9e-27], 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[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e-66], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.9 \cdot 10^{-27}:\\
\;\;\;\;\left(t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right) - 4 \cdot \left(x \cdot i\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + -27 \cdot \left(j \cdot k\right)\right) + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + -4 \cdot a\right)\\
\end{array}
\end{array}
if t < -4.89999999999999976e-27Initial program 88.7%
sub-neg88.7%
associate-+l-88.7%
sub-neg88.7%
sub-neg88.7%
distribute-rgt-out--90.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 x around 0 89.1%
if -4.89999999999999976e-27 < t < 4.6999999999999999e-66Initial program 80.9%
Taylor expanded in a around 0 85.7%
if 4.6999999999999999e-66 < t Initial program 84.7%
sub-neg84.7%
*-commutative84.7%
distribute-rgt-neg-in84.7%
Simplified89.0%
Taylor expanded in i around 0 86.1%
Final simplification86.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* j k)))
(t_2 (* x (- (* 18.0 (* y (* t z))) (* i 4.0)))))
(if (<= x -1.7e+123)
t_2
(if (<= x -3.4e-19)
(- (* b c) (* x (* i 4.0)))
(if (<= x -5.5e-45)
(- (* 18.0 (* y (* t (* x z)))) t_1)
(if (<= x 1.25e-213)
(- (* b c) (* 4.0 (* t a)))
(if (or (<= x 0.00037) (and (not (<= x 9.5e+25)) (<= x 2.5e+53)))
(- (* -4.0 (* t a)) 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 = 27.0 * (j * k);
double t_2 = x * ((18.0 * (y * (t * z))) - (i * 4.0));
double tmp;
if (x <= -1.7e+123) {
tmp = t_2;
} else if (x <= -3.4e-19) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -5.5e-45) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (x <= 1.25e-213) {
tmp = (b * c) - (4.0 * (t * a));
} else if ((x <= 0.00037) || (!(x <= 9.5e+25) && (x <= 2.5e+53))) {
tmp = (-4.0 * (t * a)) - 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 = 27.0d0 * (j * k)
t_2 = x * ((18.0d0 * (y * (t * z))) - (i * 4.0d0))
if (x <= (-1.7d+123)) then
tmp = t_2
else if (x <= (-3.4d-19)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (x <= (-5.5d-45)) then
tmp = (18.0d0 * (y * (t * (x * z)))) - t_1
else if (x <= 1.25d-213) then
tmp = (b * c) - (4.0d0 * (t * a))
else if ((x <= 0.00037d0) .or. (.not. (x <= 9.5d+25)) .and. (x <= 2.5d+53)) then
tmp = ((-4.0d0) * (t * a)) - 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 = 27.0 * (j * k);
double t_2 = x * ((18.0 * (y * (t * z))) - (i * 4.0));
double tmp;
if (x <= -1.7e+123) {
tmp = t_2;
} else if (x <= -3.4e-19) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -5.5e-45) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (x <= 1.25e-213) {
tmp = (b * c) - (4.0 * (t * a));
} else if ((x <= 0.00037) || (!(x <= 9.5e+25) && (x <= 2.5e+53))) {
tmp = (-4.0 * (t * a)) - t_1;
} 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 = x * ((18.0 * (y * (t * z))) - (i * 4.0)) tmp = 0 if x <= -1.7e+123: tmp = t_2 elif x <= -3.4e-19: tmp = (b * c) - (x * (i * 4.0)) elif x <= -5.5e-45: tmp = (18.0 * (y * (t * (x * z)))) - t_1 elif x <= 1.25e-213: tmp = (b * c) - (4.0 * (t * a)) elif (x <= 0.00037) or (not (x <= 9.5e+25) and (x <= 2.5e+53)): tmp = (-4.0 * (t * a)) - t_1 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(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -1.7e+123) tmp = t_2; elseif (x <= -3.4e-19) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (x <= -5.5e-45) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - t_1); elseif (x <= 1.25e-213) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); elseif ((x <= 0.00037) || (!(x <= 9.5e+25) && (x <= 2.5e+53))) tmp = Float64(Float64(-4.0 * Float64(t * a)) - 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 = 27.0 * (j * k); t_2 = x * ((18.0 * (y * (t * z))) - (i * 4.0)); tmp = 0.0; if (x <= -1.7e+123) tmp = t_2; elseif (x <= -3.4e-19) tmp = (b * c) - (x * (i * 4.0)); elseif (x <= -5.5e-45) tmp = (18.0 * (y * (t * (x * z)))) - t_1; elseif (x <= 1.25e-213) tmp = (b * c) - (4.0 * (t * a)); elseif ((x <= 0.00037) || (~((x <= 9.5e+25)) && (x <= 2.5e+53))) tmp = (-4.0 * (t * a)) - 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[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+123], t$95$2, If[LessEqual[x, -3.4e-19], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.5e-45], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 1.25e-213], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 0.00037], And[N[Not[LessEqual[x, 9.5e+25]], $MachinePrecision], LessEqual[x, 2.5e+53]]], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
t_2 := x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -3.4 \cdot 10^{-19}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-45}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-213}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq 0.00037 \lor \neg \left(x \leq 9.5 \cdot 10^{+25}\right) \land x \leq 2.5 \cdot 10^{+53}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.70000000000000001e123 or 3.6999999999999999e-4 < x < 9.5000000000000005e25 or 2.5000000000000002e53 < x Initial program 70.2%
sub-neg70.2%
associate-+l-70.2%
sub-neg70.2%
sub-neg70.2%
distribute-rgt-out--73.0%
associate-*l*76.7%
distribute-lft-neg-in76.7%
cancel-sign-sub76.7%
associate-*l*76.7%
associate-*l*76.7%
Simplified76.7%
Taylor expanded in x around inf 69.7%
if -1.70000000000000001e123 < x < -3.4000000000000002e-19Initial program 89.2%
sub-neg89.2%
associate-+l-89.2%
sub-neg89.2%
sub-neg89.2%
distribute-rgt-out--89.2%
associate-*l*96.4%
distribute-lft-neg-in96.4%
cancel-sign-sub96.4%
associate-*l*96.4%
associate-*l*96.4%
Simplified96.4%
Taylor expanded in t around 0 79.4%
Taylor expanded in i around inf 68.8%
associate-*r*68.8%
*-commutative68.8%
Simplified68.8%
if -3.4000000000000002e-19 < x < -5.5000000000000003e-45Initial program 99.8%
Taylor expanded in t around -inf 81.2%
Taylor expanded in a around 0 71.9%
if -5.5000000000000003e-45 < x < 1.24999999999999994e-213Initial program 97.1%
Taylor expanded in x around 0 85.6%
Taylor expanded in j around 0 68.2%
if 1.24999999999999994e-213 < x < 3.6999999999999999e-4 or 9.5000000000000005e25 < x < 2.5000000000000002e53Initial program 91.2%
Taylor expanded in t around -inf 78.4%
Taylor expanded in y around 0 74.3%
Final simplification70.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -1.62e-87) (not (<= t 3.5e-190)))
(+
(+ (* b c) (* -27.0 (* j k)))
(* t (+ (* 18.0 (* y (* x z))) (* -4.0 a))))
(- (* b c) (+ (* 27.0 (* j k)) (* 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 <= -1.62e-87) || !(t <= 3.5e-190)) {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
} else {
tmp = (b * c) - ((27.0 * (j * k)) + (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 <= (-1.62d-87)) .or. (.not. (t <= 3.5d-190))) then
tmp = ((b * c) + ((-27.0d0) * (j * k))) + (t * ((18.0d0 * (y * (x * z))) + ((-4.0d0) * a)))
else
tmp = (b * c) - ((27.0d0 * (j * k)) + (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 <= -1.62e-87) || !(t <= 3.5e-190)) {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
} else {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -1.62e-87) or not (t <= 3.5e-190): tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))) else: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -1.62e-87) || !(t <= 3.5e-190)) tmp = Float64(Float64(Float64(b * c) + Float64(-27.0 * Float64(j * k))) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) + Float64(-4.0 * a)))); else tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + 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 <= -1.62e-87) || ~((t <= 3.5e-190))) tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))); else tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -1.62e-87], N[Not[LessEqual[t, 3.5e-190]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.62 \cdot 10^{-87} \lor \neg \left(t \leq 3.5 \cdot 10^{-190}\right):\\
\;\;\;\;\left(b \cdot c + -27 \cdot \left(j \cdot k\right)\right) + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + -4 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\end{array}
\end{array}
if t < -1.6200000000000001e-87 or 3.4999999999999999e-190 < t Initial program 88.0%
sub-neg88.0%
*-commutative88.0%
distribute-rgt-neg-in88.0%
Simplified90.1%
Taylor expanded in i around 0 85.6%
if -1.6200000000000001e-87 < t < 3.4999999999999999e-190Initial program 70.7%
sub-neg70.7%
associate-+l-70.7%
sub-neg70.7%
sub-neg70.7%
distribute-rgt-out--70.7%
associate-*l*72.5%
distribute-lft-neg-in72.5%
cancel-sign-sub72.5%
associate-*l*72.5%
associate-*l*72.5%
Simplified72.5%
Taylor expanded in t around 0 85.9%
Final simplification85.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* j k))))
(if (<= t -2.3e-54)
(- (+ (* t (- (* (* y z) (* x 18.0)) (* a 4.0))) (* b c)) t_1)
(if (<= t 3.5e-190)
(- (* b c) (+ t_1 (* 4.0 (* x i))))
(+
(+ (* b c) (* -27.0 (* j k)))
(* t (+ (* 18.0 (* y (* x z))) (* -4.0 a))))))))
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 <= -2.3e-54) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - t_1;
} else if (t <= 3.5e-190) {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
} else {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * 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) :: t_1
real(8) :: tmp
t_1 = 27.0d0 * (j * k)
if (t <= (-2.3d-54)) then
tmp = ((t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0))) + (b * c)) - t_1
else if (t <= 3.5d-190) then
tmp = (b * c) - (t_1 + (4.0d0 * (x * i)))
else
tmp = ((b * c) + ((-27.0d0) * (j * k))) + (t * ((18.0d0 * (y * (x * z))) + ((-4.0d0) * 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 t_1 = 27.0 * (j * k);
double tmp;
if (t <= -2.3e-54) {
tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - t_1;
} else if (t <= 3.5e-190) {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
} else {
tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (j * k) tmp = 0 if t <= -2.3e-54: tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - t_1 elif t <= 3.5e-190: tmp = (b * c) - (t_1 + (4.0 * (x * i))) else: tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))) 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 <= -2.3e-54) tmp = Float64(Float64(Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0))) + Float64(b * c)) - t_1); elseif (t <= 3.5e-190) tmp = Float64(Float64(b * c) - Float64(t_1 + Float64(4.0 * Float64(x * i)))); else tmp = Float64(Float64(Float64(b * c) + Float64(-27.0 * Float64(j * k))) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) + Float64(-4.0 * a)))); 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 <= -2.3e-54) tmp = ((t * (((y * z) * (x * 18.0)) - (a * 4.0))) + (b * c)) - t_1; elseif (t <= 3.5e-190) tmp = (b * c) - (t_1 + (4.0 * (x * i))); else tmp = ((b * c) + (-27.0 * (j * k))) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))); 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, -2.3e-54], 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] - t$95$1), $MachinePrecision], If[LessEqual[t, 3.5e-190], N[(N[(b * c), $MachinePrecision] - N[(t$95$1 + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{-54}:\\
\;\;\;\;\left(t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right) + b \cdot c\right) - t_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-190}:\\
\;\;\;\;b \cdot c - \left(t_1 + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + -27 \cdot \left(j \cdot k\right)\right) + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + -4 \cdot a\right)\\
\end{array}
\end{array}
if t < -2.2999999999999999e-54Initial program 89.6%
sub-neg89.6%
associate-+l-89.6%
sub-neg89.6%
sub-neg89.6%
distribute-rgt-out--91.1%
associate-*l*91.3%
distribute-lft-neg-in91.3%
cancel-sign-sub91.3%
associate-*l*91.3%
associate-*l*91.3%
Simplified91.3%
Taylor expanded in x around 0 88.6%
if -2.2999999999999999e-54 < t < 3.4999999999999999e-190Initial program 70.5%
sub-neg70.5%
associate-+l-70.5%
sub-neg70.5%
sub-neg70.5%
distribute-rgt-out--70.5%
associate-*l*70.7%
distribute-lft-neg-in70.7%
cancel-sign-sub70.7%
associate-*l*70.7%
associate-*l*70.7%
Simplified70.7%
Taylor expanded in t around 0 84.9%
if 3.4999999999999999e-190 < t Initial program 87.6%
sub-neg87.6%
*-commutative87.6%
distribute-rgt-neg-in87.6%
Simplified89.9%
Taylor expanded in i around 0 85.2%
Final simplification86.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= t -8.6e-26)
(+ (* b c) (* t (+ (* 18.0 t_1) (* -4.0 a))))
(if (<= t 1.15e+64)
(- (* b c) (+ (* 27.0 (* j k)) (* 4.0 (* x i))))
(- (* t (- (* -4.0 a) (* t_1 -18.0))) (* k (* j 27.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = y * (x * z);
double tmp;
if (t <= -8.6e-26) {
tmp = (b * c) + (t * ((18.0 * t_1) + (-4.0 * a)));
} else if (t <= 1.15e+64) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} else {
tmp = (t * ((-4.0 * a) - (t_1 * -18.0))) - (k * (j * 27.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (t <= (-8.6d-26)) then
tmp = (b * c) + (t * ((18.0d0 * t_1) + ((-4.0d0) * a)))
else if (t <= 1.15d+64) then
tmp = (b * c) - ((27.0d0 * (j * k)) + (4.0d0 * (x * i)))
else
tmp = (t * (((-4.0d0) * a) - (t_1 * (-18.0d0)))) - (k * (j * 27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = y * (x * z);
double tmp;
if (t <= -8.6e-26) {
tmp = (b * c) + (t * ((18.0 * t_1) + (-4.0 * a)));
} else if (t <= 1.15e+64) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} else {
tmp = (t * ((-4.0 * a) - (t_1 * -18.0))) - (k * (j * 27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = y * (x * z) tmp = 0 if t <= -8.6e-26: tmp = (b * c) + (t * ((18.0 * t_1) + (-4.0 * a))) elif t <= 1.15e+64: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) else: tmp = (t * ((-4.0 * a) - (t_1 * -18.0))) - (k * (j * 27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (t <= -8.6e-26) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * t_1) + Float64(-4.0 * a)))); elseif (t <= 1.15e+64) tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + Float64(4.0 * Float64(x * i)))); else tmp = Float64(Float64(t * Float64(Float64(-4.0 * a) - Float64(t_1 * -18.0))) - Float64(k * Float64(j * 27.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = y * (x * z); tmp = 0.0; if (t <= -8.6e-26) tmp = (b * c) + (t * ((18.0 * t_1) + (-4.0 * a))); elseif (t <= 1.15e+64) tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))); else tmp = (t * ((-4.0 * a) - (t_1 * -18.0))) - (k * (j * 27.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e-26], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * t$95$1), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e+64], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(-4.0 * a), $MachinePrecision] - N[(t$95$1 * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{-26}:\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot t_1 + -4 \cdot a\right)\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{+64}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-4 \cdot a - t_1 \cdot -18\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -8.59999999999999976e-26Initial program 88.7%
sub-neg88.7%
*-commutative88.7%
distribute-rgt-neg-in88.7%
Simplified92.0%
Taylor expanded in i around 0 89.0%
Taylor expanded in k around 0 81.3%
if -8.59999999999999976e-26 < t < 1.15e64Initial program 83.1%
sub-neg83.1%
associate-+l-83.1%
sub-neg83.1%
sub-neg83.1%
distribute-rgt-out--83.1%
associate-*l*82.4%
distribute-lft-neg-in82.4%
cancel-sign-sub82.4%
associate-*l*82.4%
associate-*l*82.4%
Simplified82.4%
Taylor expanded in t around 0 79.4%
if 1.15e64 < t Initial program 81.7%
Taylor expanded in t around -inf 82.3%
Final simplification80.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* x (* i 4.0)))) (t_2 (- (* b c) (* 4.0 (* t a)))))
(if (<= j -4.5e+140)
(* -27.0 (* j k))
(if (<= j -2.25e-57)
t_2
(if (<= j -3.6e-305)
t_1
(if (<= j 1e-207)
t_2
(if (<= j 2.9e-85)
t_1
(if (<= j 3.9e+37) t_2 (* k (* j -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (x * (i * 4.0));
double t_2 = (b * c) - (4.0 * (t * a));
double tmp;
if (j <= -4.5e+140) {
tmp = -27.0 * (j * k);
} else if (j <= -2.25e-57) {
tmp = t_2;
} else if (j <= -3.6e-305) {
tmp = t_1;
} else if (j <= 1e-207) {
tmp = t_2;
} else if (j <= 2.9e-85) {
tmp = t_1;
} else if (j <= 3.9e+37) {
tmp = t_2;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (x * (i * 4.0d0))
t_2 = (b * c) - (4.0d0 * (t * a))
if (j <= (-4.5d+140)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-2.25d-57)) then
tmp = t_2
else if (j <= (-3.6d-305)) then
tmp = t_1
else if (j <= 1d-207) then
tmp = t_2
else if (j <= 2.9d-85) then
tmp = t_1
else if (j <= 3.9d+37) then
tmp = t_2
else
tmp = k * (j * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (x * (i * 4.0));
double t_2 = (b * c) - (4.0 * (t * a));
double tmp;
if (j <= -4.5e+140) {
tmp = -27.0 * (j * k);
} else if (j <= -2.25e-57) {
tmp = t_2;
} else if (j <= -3.6e-305) {
tmp = t_1;
} else if (j <= 1e-207) {
tmp = t_2;
} else if (j <= 2.9e-85) {
tmp = t_1;
} else if (j <= 3.9e+37) {
tmp = t_2;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (x * (i * 4.0)) t_2 = (b * c) - (4.0 * (t * a)) tmp = 0 if j <= -4.5e+140: tmp = -27.0 * (j * k) elif j <= -2.25e-57: tmp = t_2 elif j <= -3.6e-305: tmp = t_1 elif j <= 1e-207: tmp = t_2 elif j <= 2.9e-85: tmp = t_1 elif j <= 3.9e+37: tmp = t_2 else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))) t_2 = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) tmp = 0.0 if (j <= -4.5e+140) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -2.25e-57) tmp = t_2; elseif (j <= -3.6e-305) tmp = t_1; elseif (j <= 1e-207) tmp = t_2; elseif (j <= 2.9e-85) tmp = t_1; elseif (j <= 3.9e+37) tmp = t_2; else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - (x * (i * 4.0)); t_2 = (b * c) - (4.0 * (t * a)); tmp = 0.0; if (j <= -4.5e+140) tmp = -27.0 * (j * k); elseif (j <= -2.25e-57) tmp = t_2; elseif (j <= -3.6e-305) tmp = t_1; elseif (j <= 1e-207) tmp = t_2; elseif (j <= 2.9e-85) tmp = t_1; elseif (j <= 3.9e+37) tmp = t_2; else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.5e+140], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.25e-57], t$95$2, If[LessEqual[j, -3.6e-305], t$95$1, If[LessEqual[j, 1e-207], t$95$2, If[LessEqual[j, 2.9e-85], t$95$1, If[LessEqual[j, 3.9e+37], t$95$2, N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - x \cdot \left(i \cdot 4\right)\\
t_2 := b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;j \leq -4.5 \cdot 10^{+140}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -2.25 \cdot 10^{-57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.6 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 10^{-207}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.9 \cdot 10^{+37}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if j < -4.5000000000000002e140Initial program 84.6%
sub-neg84.6%
associate-+l-84.6%
sub-neg84.6%
sub-neg84.6%
distribute-rgt-out--87.8%
associate-*l*87.8%
distribute-lft-neg-in87.8%
cancel-sign-sub87.8%
associate-*l*87.8%
associate-*l*87.8%
Simplified87.8%
Taylor expanded in j around inf 59.2%
*-commutative59.2%
Simplified59.2%
if -4.5000000000000002e140 < j < -2.24999999999999986e-57 or -3.60000000000000004e-305 < j < 9.99999999999999925e-208 or 2.9000000000000002e-85 < j < 3.8999999999999999e37Initial program 85.1%
Taylor expanded in x around 0 67.0%
Taylor expanded in j around 0 55.3%
if -2.24999999999999986e-57 < j < -3.60000000000000004e-305 or 9.99999999999999925e-208 < j < 2.9000000000000002e-85Initial program 84.7%
sub-neg84.7%
associate-+l-84.7%
sub-neg84.7%
sub-neg84.7%
distribute-rgt-out--86.1%
associate-*l*88.8%
distribute-lft-neg-in88.8%
cancel-sign-sub88.8%
associate-*l*88.8%
associate-*l*88.8%
Simplified88.8%
Taylor expanded in t around 0 60.5%
Taylor expanded in i around inf 52.0%
associate-*r*52.0%
*-commutative52.0%
Simplified52.0%
if 3.8999999999999999e37 < j Initial program 82.4%
sub-neg82.4%
associate-+l-82.4%
sub-neg82.4%
sub-neg82.4%
distribute-rgt-out--83.8%
associate-*l*79.9%
distribute-lft-neg-in79.9%
cancel-sign-sub79.9%
associate-*l*79.9%
associate-*l*79.9%
Simplified79.9%
Taylor expanded in j around inf 34.8%
*-commutative34.8%
associate-*r*34.7%
Simplified34.7%
Final simplification48.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* x (* i 4.0)))) (t_2 (- (* b c) (* 4.0 (* t a)))))
(if (<= j -6.5e+91)
(- (* -4.0 (* t a)) (* 27.0 (* j k)))
(if (<= j -3.2e-57)
t_2
(if (<= j -8.5e-306)
t_1
(if (<= j 7e-209)
t_2
(if (<= j 3.7e-85)
t_1
(if (<= j 2.8e+39) t_2 (* k (* j -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (x * (i * 4.0));
double t_2 = (b * c) - (4.0 * (t * a));
double tmp;
if (j <= -6.5e+91) {
tmp = (-4.0 * (t * a)) - (27.0 * (j * k));
} else if (j <= -3.2e-57) {
tmp = t_2;
} else if (j <= -8.5e-306) {
tmp = t_1;
} else if (j <= 7e-209) {
tmp = t_2;
} else if (j <= 3.7e-85) {
tmp = t_1;
} else if (j <= 2.8e+39) {
tmp = t_2;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (x * (i * 4.0d0))
t_2 = (b * c) - (4.0d0 * (t * a))
if (j <= (-6.5d+91)) then
tmp = ((-4.0d0) * (t * a)) - (27.0d0 * (j * k))
else if (j <= (-3.2d-57)) then
tmp = t_2
else if (j <= (-8.5d-306)) then
tmp = t_1
else if (j <= 7d-209) then
tmp = t_2
else if (j <= 3.7d-85) then
tmp = t_1
else if (j <= 2.8d+39) then
tmp = t_2
else
tmp = k * (j * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (x * (i * 4.0));
double t_2 = (b * c) - (4.0 * (t * a));
double tmp;
if (j <= -6.5e+91) {
tmp = (-4.0 * (t * a)) - (27.0 * (j * k));
} else if (j <= -3.2e-57) {
tmp = t_2;
} else if (j <= -8.5e-306) {
tmp = t_1;
} else if (j <= 7e-209) {
tmp = t_2;
} else if (j <= 3.7e-85) {
tmp = t_1;
} else if (j <= 2.8e+39) {
tmp = t_2;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (x * (i * 4.0)) t_2 = (b * c) - (4.0 * (t * a)) tmp = 0 if j <= -6.5e+91: tmp = (-4.0 * (t * a)) - (27.0 * (j * k)) elif j <= -3.2e-57: tmp = t_2 elif j <= -8.5e-306: tmp = t_1 elif j <= 7e-209: tmp = t_2 elif j <= 3.7e-85: tmp = t_1 elif j <= 2.8e+39: tmp = t_2 else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))) t_2 = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) tmp = 0.0 if (j <= -6.5e+91) tmp = Float64(Float64(-4.0 * Float64(t * a)) - Float64(27.0 * Float64(j * k))); elseif (j <= -3.2e-57) tmp = t_2; elseif (j <= -8.5e-306) tmp = t_1; elseif (j <= 7e-209) tmp = t_2; elseif (j <= 3.7e-85) tmp = t_1; elseif (j <= 2.8e+39) tmp = t_2; else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - (x * (i * 4.0)); t_2 = (b * c) - (4.0 * (t * a)); tmp = 0.0; if (j <= -6.5e+91) tmp = (-4.0 * (t * a)) - (27.0 * (j * k)); elseif (j <= -3.2e-57) tmp = t_2; elseif (j <= -8.5e-306) tmp = t_1; elseif (j <= 7e-209) tmp = t_2; elseif (j <= 3.7e-85) tmp = t_1; elseif (j <= 2.8e+39) tmp = t_2; else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.5e+91], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.2e-57], t$95$2, If[LessEqual[j, -8.5e-306], t$95$1, If[LessEqual[j, 7e-209], t$95$2, If[LessEqual[j, 3.7e-85], t$95$1, If[LessEqual[j, 2.8e+39], t$95$2, N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - x \cdot \left(i \cdot 4\right)\\
t_2 := b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;j \leq -6.5 \cdot 10^{+91}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{-57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 7 \cdot 10^{-209}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 3.7 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if j < -6.4999999999999997e91Initial program 78.6%
Taylor expanded in t around -inf 71.0%
Taylor expanded in y around 0 59.6%
if -6.4999999999999997e91 < j < -3.2000000000000001e-57 or -8.5000000000000002e-306 < j < 7.00000000000000004e-209 or 3.69999999999999983e-85 < j < 2.80000000000000001e39Initial program 88.0%
Taylor expanded in x around 0 67.3%
Taylor expanded in j around 0 56.2%
if -3.2000000000000001e-57 < j < -8.5000000000000002e-306 or 7.00000000000000004e-209 < j < 3.69999999999999983e-85Initial program 84.7%
sub-neg84.7%
associate-+l-84.7%
sub-neg84.7%
sub-neg84.7%
distribute-rgt-out--86.1%
associate-*l*88.8%
distribute-lft-neg-in88.8%
cancel-sign-sub88.8%
associate-*l*88.8%
associate-*l*88.8%
Simplified88.8%
Taylor expanded in t around 0 60.5%
Taylor expanded in i around inf 52.0%
associate-*r*52.0%
*-commutative52.0%
Simplified52.0%
if 2.80000000000000001e39 < j Initial program 82.4%
sub-neg82.4%
associate-+l-82.4%
sub-neg82.4%
sub-neg82.4%
distribute-rgt-out--83.8%
associate-*l*79.9%
distribute-lft-neg-in79.9%
cancel-sign-sub79.9%
associate-*l*79.9%
associate-*l*79.9%
Simplified79.9%
Taylor expanded in j around inf 34.8%
*-commutative34.8%
associate-*r*34.7%
Simplified34.7%
Final simplification49.3%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -6.2e-23) (not (<= t 2.8e+64))) (+ (* b c) (* t (+ (* 18.0 (* y (* x z))) (* -4.0 a)))) (- (* b c) (+ (* 27.0 (* j k)) (* 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 <= -6.2e-23) || !(t <= 2.8e+64)) {
tmp = (b * c) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
} else {
tmp = (b * c) - ((27.0 * (j * k)) + (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 <= (-6.2d-23)) .or. (.not. (t <= 2.8d+64))) then
tmp = (b * c) + (t * ((18.0d0 * (y * (x * z))) + ((-4.0d0) * a)))
else
tmp = (b * c) - ((27.0d0 * (j * k)) + (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 <= -6.2e-23) || !(t <= 2.8e+64)) {
tmp = (b * c) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a)));
} else {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -6.2e-23) or not (t <= 2.8e+64): tmp = (b * c) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))) else: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -6.2e-23) || !(t <= 2.8e+64)) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) + Float64(-4.0 * a)))); else tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + 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 <= -6.2e-23) || ~((t <= 2.8e+64))) tmp = (b * c) + (t * ((18.0 * (y * (x * z))) + (-4.0 * a))); else tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -6.2e-23], N[Not[LessEqual[t, 2.8e+64]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.2 \cdot 10^{-23} \lor \neg \left(t \leq 2.8 \cdot 10^{+64}\right):\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + -4 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\end{array}
\end{array}
if t < -6.1999999999999998e-23 or 2.80000000000000024e64 < t Initial program 85.2%
sub-neg85.2%
*-commutative85.2%
distribute-rgt-neg-in85.2%
Simplified90.2%
Taylor expanded in i around 0 88.8%
Taylor expanded in k around 0 80.6%
if -6.1999999999999998e-23 < t < 2.80000000000000024e64Initial program 83.1%
sub-neg83.1%
associate-+l-83.1%
sub-neg83.1%
sub-neg83.1%
distribute-rgt-out--83.1%
associate-*l*82.4%
distribute-lft-neg-in82.4%
cancel-sign-sub82.4%
associate-*l*82.4%
associate-*l*82.4%
Simplified82.4%
Taylor expanded in t around 0 79.4%
Final simplification80.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -1.52e-23)
(* t (+ (* -4.0 a) (* (* x z) (* 18.0 y))))
(if (<= t 6.5e+95)
(- (* b c) (+ (* 27.0 (* j k)) (* 4.0 (* x i))))
(* 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 <= -1.52e-23) {
tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y)));
} else if (t <= 6.5e+95) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} 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 <= (-1.52d-23)) then
tmp = t * (((-4.0d0) * a) + ((x * z) * (18.0d0 * y)))
else if (t <= 6.5d+95) then
tmp = (b * c) - ((27.0d0 * (j * k)) + (4.0d0 * (x * i)))
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 <= -1.52e-23) {
tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y)));
} else if (t <= 6.5e+95) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} 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 <= -1.52e-23: tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y))) elif t <= 6.5e+95: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) 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 <= -1.52e-23) tmp = Float64(t * Float64(Float64(-4.0 * a) + Float64(Float64(x * z) * Float64(18.0 * y)))); elseif (t <= 6.5e+95) tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + Float64(4.0 * Float64(x * i)))); 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 <= -1.52e-23) tmp = t * ((-4.0 * a) + ((x * z) * (18.0 * y))); elseif (t <= 6.5e+95) tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))); 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[t, -1.52e-23], N[(t * N[(N[(-4.0 * a), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+95], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $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 -1.52 \cdot 10^{-23}:\\
\;\;\;\;t \cdot \left(-4 \cdot a + \left(x \cdot z\right) \cdot \left(18 \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+95}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\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 < -1.5200000000000001e-23Initial program 88.7%
sub-neg88.7%
associate-+l-88.7%
sub-neg88.7%
sub-neg88.7%
distribute-rgt-out--90.2%
associate-*l*90.4%
distribute-lft-neg-in90.4%
cancel-sign-sub90.4%
associate-*l*90.4%
associate-*l*90.4%
Simplified90.4%
associate-*r*90.2%
distribute-rgt-out--88.7%
associate-*r*88.8%
*-commutative88.8%
associate-*r*88.7%
*-commutative88.7%
associate-*l*88.6%
associate-*l*88.6%
Applied egg-rr88.6%
Taylor expanded in t around inf 67.0%
cancel-sign-sub-inv67.0%
associate-*r*67.1%
metadata-eval67.1%
*-commutative67.1%
Simplified67.1%
if -1.5200000000000001e-23 < t < 6.5e95Initial program 83.2%
sub-neg83.2%
associate-+l-83.2%
sub-neg83.2%
sub-neg83.2%
distribute-rgt-out--83.2%
associate-*l*82.5%
distribute-lft-neg-in82.5%
cancel-sign-sub82.5%
associate-*l*82.5%
associate-*l*82.5%
Simplified82.5%
Taylor expanded in t around 0 78.9%
if 6.5e95 < t Initial program 81.4%
sub-neg81.4%
associate-+l-81.4%
sub-neg81.4%
sub-neg81.4%
distribute-rgt-out--87.0%
associate-*l*87.0%
distribute-lft-neg-in87.0%
cancel-sign-sub87.0%
associate-*l*87.0%
associate-*l*87.0%
Simplified87.0%
associate-*r*87.0%
distribute-rgt-out--81.4%
associate-*r*79.6%
*-commutative79.6%
associate-*r*81.4%
*-commutative81.4%
associate-*l*81.4%
associate-*l*81.4%
Applied egg-rr81.4%
Taylor expanded in t around inf 75.8%
Final simplification75.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= k -1.35e-114)
(- (* -4.0 (* t a)) (* 27.0 (* j k)))
(if (<= k 9.5e-191)
(- (* b c) (* x (* i 4.0)))
(if (<= k 1.7e+183)
(- (* b c) (* 4.0 (* t a)))
(- (* 27.0 (* j (- k))) (* 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 (k <= -1.35e-114) {
tmp = (-4.0 * (t * a)) - (27.0 * (j * k));
} else if (k <= 9.5e-191) {
tmp = (b * c) - (x * (i * 4.0));
} else if (k <= 1.7e+183) {
tmp = (b * c) - (4.0 * (t * a));
} else {
tmp = (27.0 * (j * -k)) - (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 (k <= (-1.35d-114)) then
tmp = ((-4.0d0) * (t * a)) - (27.0d0 * (j * k))
else if (k <= 9.5d-191) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (k <= 1.7d+183) then
tmp = (b * c) - (4.0d0 * (t * a))
else
tmp = (27.0d0 * (j * -k)) - (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 (k <= -1.35e-114) {
tmp = (-4.0 * (t * a)) - (27.0 * (j * k));
} else if (k <= 9.5e-191) {
tmp = (b * c) - (x * (i * 4.0));
} else if (k <= 1.7e+183) {
tmp = (b * c) - (4.0 * (t * a));
} else {
tmp = (27.0 * (j * -k)) - (4.0 * (x * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if k <= -1.35e-114: tmp = (-4.0 * (t * a)) - (27.0 * (j * k)) elif k <= 9.5e-191: tmp = (b * c) - (x * (i * 4.0)) elif k <= 1.7e+183: tmp = (b * c) - (4.0 * (t * a)) else: tmp = (27.0 * (j * -k)) - (4.0 * (x * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (k <= -1.35e-114) tmp = Float64(Float64(-4.0 * Float64(t * a)) - Float64(27.0 * Float64(j * k))); elseif (k <= 9.5e-191) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (k <= 1.7e+183) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); else tmp = Float64(Float64(27.0 * Float64(j * Float64(-k))) - 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 (k <= -1.35e-114) tmp = (-4.0 * (t * a)) - (27.0 * (j * k)); elseif (k <= 9.5e-191) tmp = (b * c) - (x * (i * 4.0)); elseif (k <= 1.7e+183) tmp = (b * c) - (4.0 * (t * a)); else tmp = (27.0 * (j * -k)) - (4.0 * (x * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[k, -1.35e-114], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.5e-191], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.7e+183], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(27.0 * N[(j * (-k)), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.35 \cdot 10^{-114}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;k \leq 9.5 \cdot 10^{-191}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;k \leq 1.7 \cdot 10^{+183}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;27 \cdot \left(j \cdot \left(-k\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if k < -1.35e-114Initial program 85.0%
Taylor expanded in t around -inf 65.1%
Taylor expanded in y around 0 52.9%
if -1.35e-114 < k < 9.4999999999999996e-191Initial program 90.2%
sub-neg90.2%
associate-+l-90.2%
sub-neg90.2%
sub-neg90.2%
distribute-rgt-out--91.6%
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 t around 0 50.6%
Taylor expanded in i around inf 49.1%
associate-*r*49.1%
*-commutative49.1%
Simplified49.1%
if 9.4999999999999996e-191 < k < 1.7e183Initial program 80.0%
Taylor expanded in x around 0 62.7%
Taylor expanded in j around 0 51.7%
if 1.7e183 < k Initial program 76.6%
sub-neg76.6%
associate-+l-76.6%
sub-neg76.6%
sub-neg76.6%
distribute-rgt-out--79.9%
associate-*l*80.0%
distribute-lft-neg-in80.0%
cancel-sign-sub80.0%
associate-*l*80.0%
associate-*l*80.0%
Simplified80.0%
Taylor expanded in t around 0 76.9%
Taylor expanded in c around 0 70.5%
Final simplification53.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (* 18.0 (* y (* t z))))))
(if (<= t -1.56e+57)
t_1
(if (<= t 5.5e-236)
(* b c)
(if (<= t 5.8e-192)
(* x (* i -4.0))
(if (<= t 4.3e+94) (* -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 = x * (18.0 * (y * (t * z)));
double tmp;
if (t <= -1.56e+57) {
tmp = t_1;
} else if (t <= 5.5e-236) {
tmp = b * c;
} else if (t <= 5.8e-192) {
tmp = x * (i * -4.0);
} else if (t <= 4.3e+94) {
tmp = -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 = x * (18.0d0 * (y * (t * z)))
if (t <= (-1.56d+57)) then
tmp = t_1
else if (t <= 5.5d-236) then
tmp = b * c
else if (t <= 5.8d-192) then
tmp = x * (i * (-4.0d0))
else if (t <= 4.3d+94) then
tmp = (-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 = x * (18.0 * (y * (t * z)));
double tmp;
if (t <= -1.56e+57) {
tmp = t_1;
} else if (t <= 5.5e-236) {
tmp = b * c;
} else if (t <= 5.8e-192) {
tmp = x * (i * -4.0);
} else if (t <= 4.3e+94) {
tmp = -27.0 * (j * k);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (18.0 * (y * (t * z))) tmp = 0 if t <= -1.56e+57: tmp = t_1 elif t <= 5.5e-236: tmp = b * c elif t <= 5.8e-192: tmp = x * (i * -4.0) elif t <= 4.3e+94: tmp = -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(x * Float64(18.0 * Float64(y * Float64(t * z)))) tmp = 0.0 if (t <= -1.56e+57) tmp = t_1; elseif (t <= 5.5e-236) tmp = Float64(b * c); elseif (t <= 5.8e-192) tmp = Float64(x * Float64(i * -4.0)); elseif (t <= 4.3e+94) tmp = 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 = x * (18.0 * (y * (t * z))); tmp = 0.0; if (t <= -1.56e+57) tmp = t_1; elseif (t <= 5.5e-236) tmp = b * c; elseif (t <= 5.8e-192) tmp = x * (i * -4.0); elseif (t <= 4.3e+94) tmp = -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[(x * N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.56e+57], t$95$1, If[LessEqual[t, 5.5e-236], N[(b * c), $MachinePrecision], If[LessEqual[t, 5.8e-192], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e+94], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -1.56 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-236}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-192}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+94}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.55999999999999998e57 or 4.3e94 < t Initial program 84.8%
sub-neg84.8%
associate-+l-84.8%
sub-neg84.8%
sub-neg84.8%
distribute-rgt-out--88.8%
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 x around inf 53.2%
Taylor expanded in y around inf 47.1%
if -1.55999999999999998e57 < t < 5.49999999999999959e-236Initial program 82.0%
sub-neg82.0%
associate-+l-82.0%
sub-neg82.0%
sub-neg82.0%
distribute-rgt-out--82.0%
associate-*l*82.3%
distribute-lft-neg-in82.3%
cancel-sign-sub82.3%
associate-*l*82.3%
associate-*l*82.3%
Simplified82.3%
associate-*r*82.0%
distribute-rgt-out--82.0%
associate-*r*82.3%
*-commutative82.3%
associate-*r*82.0%
*-commutative82.0%
associate-*l*80.7%
associate-*l*82.0%
Applied egg-rr82.0%
Taylor expanded in b around inf 39.7%
if 5.49999999999999959e-236 < t < 5.80000000000000033e-192Initial program 41.5%
sub-neg41.5%
associate-+l-41.5%
sub-neg41.5%
sub-neg41.5%
distribute-rgt-out--41.5%
associate-*l*41.5%
distribute-lft-neg-in41.5%
cancel-sign-sub41.5%
associate-*l*41.5%
associate-*l*41.5%
Simplified41.5%
Taylor expanded in x around inf 90.0%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
Simplified78.6%
if 5.80000000000000033e-192 < t < 4.3e94Initial program 91.0%
sub-neg91.0%
associate-+l-91.0%
sub-neg91.0%
sub-neg91.0%
distribute-rgt-out--91.0%
associate-*l*89.5%
distribute-lft-neg-in89.5%
cancel-sign-sub89.5%
associate-*l*89.5%
associate-*l*89.6%
Simplified89.6%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification44.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j -27.0))))
(if (<= c -5.5e-105)
(* b c)
(if (<= c 1.32e-283)
t_1
(if (<= c 4.3e-154)
(* t (* -4.0 a))
(if (<= c 6.8e+19) 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 = k * (j * -27.0);
double tmp;
if (c <= -5.5e-105) {
tmp = b * c;
} else if (c <= 1.32e-283) {
tmp = t_1;
} else if (c <= 4.3e-154) {
tmp = t * (-4.0 * a);
} else if (c <= 6.8e+19) {
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 = k * (j * (-27.0d0))
if (c <= (-5.5d-105)) then
tmp = b * c
else if (c <= 1.32d-283) then
tmp = t_1
else if (c <= 4.3d-154) then
tmp = t * ((-4.0d0) * a)
else if (c <= 6.8d+19) 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 = k * (j * -27.0);
double tmp;
if (c <= -5.5e-105) {
tmp = b * c;
} else if (c <= 1.32e-283) {
tmp = t_1;
} else if (c <= 4.3e-154) {
tmp = t * (-4.0 * a);
} else if (c <= 6.8e+19) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * -27.0) tmp = 0 if c <= -5.5e-105: tmp = b * c elif c <= 1.32e-283: tmp = t_1 elif c <= 4.3e-154: tmp = t * (-4.0 * a) elif c <= 6.8e+19: tmp = t_1 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * -27.0)) tmp = 0.0 if (c <= -5.5e-105) tmp = Float64(b * c); elseif (c <= 1.32e-283) tmp = t_1; elseif (c <= 4.3e-154) tmp = Float64(t * Float64(-4.0 * a)); elseif (c <= 6.8e+19) 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 = k * (j * -27.0); tmp = 0.0; if (c <= -5.5e-105) tmp = b * c; elseif (c <= 1.32e-283) tmp = t_1; elseif (c <= 4.3e-154) tmp = t * (-4.0 * a); elseif (c <= 6.8e+19) 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[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.5e-105], N[(b * c), $MachinePrecision], If[LessEqual[c, 1.32e-283], t$95$1, If[LessEqual[c, 4.3e-154], N[(t * N[(-4.0 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.8e+19], t$95$1, N[(b * c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot -27\right)\\
\mathbf{if}\;c \leq -5.5 \cdot 10^{-105}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;c \leq 1.32 \cdot 10^{-283}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.3 \cdot 10^{-154}:\\
\;\;\;\;t \cdot \left(-4 \cdot a\right)\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if c < -5.50000000000000029e-105 or 6.8e19 < c Initial program 82.9%
sub-neg82.9%
associate-+l-82.9%
sub-neg82.9%
sub-neg82.9%
distribute-rgt-out--83.5%
associate-*l*82.9%
distribute-lft-neg-in82.9%
cancel-sign-sub82.9%
associate-*l*82.9%
associate-*l*82.9%
Simplified82.9%
associate-*r*83.5%
distribute-rgt-out--82.8%
associate-*r*81.6%
*-commutative81.6%
associate-*r*82.8%
*-commutative82.8%
associate-*l*82.2%
associate-*l*82.2%
Applied egg-rr82.2%
Taylor expanded in b around inf 36.1%
if -5.50000000000000029e-105 < c < 1.32000000000000003e-283 or 4.29999999999999992e-154 < c < 6.8e19Initial program 84.8%
sub-neg84.8%
associate-+l-84.8%
sub-neg84.8%
sub-neg84.8%
distribute-rgt-out--87.4%
associate-*l*87.4%
distribute-lft-neg-in87.4%
cancel-sign-sub87.4%
associate-*l*87.4%
associate-*l*87.4%
Simplified87.4%
Taylor expanded in j around inf 31.0%
*-commutative31.0%
associate-*r*30.9%
Simplified30.9%
if 1.32000000000000003e-283 < c < 4.29999999999999992e-154Initial program 89.2%
sub-neg89.2%
associate-+l-89.2%
sub-neg89.2%
sub-neg89.2%
distribute-rgt-out--92.7%
associate-*l*92.8%
distribute-lft-neg-in92.8%
cancel-sign-sub92.8%
associate-*l*92.8%
associate-*l*92.9%
Simplified92.9%
associate-*r*92.8%
distribute-rgt-out--89.2%
associate-*r*89.3%
*-commutative89.3%
associate-*r*89.2%
*-commutative89.2%
associate-*l*89.2%
associate-*l*89.2%
Applied egg-rr89.2%
Taylor expanded in a around inf 41.2%
*-commutative41.2%
*-commutative41.2%
associate-*l*41.2%
Simplified41.2%
Final simplification35.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (* -4.0 a))))
(if (<= t -1.55e-23)
t_1
(if (<= t 4e-236)
(* b c)
(if (<= t 7e-192)
(* x (* i -4.0))
(if (<= t 2e+60) (* k (* j -27.0)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (-4.0 * a);
double tmp;
if (t <= -1.55e-23) {
tmp = t_1;
} else if (t <= 4e-236) {
tmp = b * c;
} else if (t <= 7e-192) {
tmp = x * (i * -4.0);
} else if (t <= 2e+60) {
tmp = k * (j * -27.0);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((-4.0d0) * a)
if (t <= (-1.55d-23)) then
tmp = t_1
else if (t <= 4d-236) then
tmp = b * c
else if (t <= 7d-192) then
tmp = x * (i * (-4.0d0))
else if (t <= 2d+60) then
tmp = k * (j * (-27.0d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (-4.0 * a);
double tmp;
if (t <= -1.55e-23) {
tmp = t_1;
} else if (t <= 4e-236) {
tmp = b * c;
} else if (t <= 7e-192) {
tmp = x * (i * -4.0);
} else if (t <= 2e+60) {
tmp = k * (j * -27.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * (-4.0 * a) tmp = 0 if t <= -1.55e-23: tmp = t_1 elif t <= 4e-236: tmp = b * c elif t <= 7e-192: tmp = x * (i * -4.0) elif t <= 2e+60: tmp = k * (j * -27.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(-4.0 * a)) tmp = 0.0 if (t <= -1.55e-23) tmp = t_1; elseif (t <= 4e-236) tmp = Float64(b * c); elseif (t <= 7e-192) tmp = Float64(x * Float64(i * -4.0)); elseif (t <= 2e+60) tmp = Float64(k * Float64(j * -27.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = t * (-4.0 * a); tmp = 0.0; if (t <= -1.55e-23) tmp = t_1; elseif (t <= 4e-236) tmp = b * c; elseif (t <= 7e-192) tmp = x * (i * -4.0); elseif (t <= 2e+60) tmp = k * (j * -27.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e-23], t$95$1, If[LessEqual[t, 4e-236], N[(b * c), $MachinePrecision], If[LessEqual[t, 7e-192], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+60], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-4 \cdot a\right)\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{-23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-236}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-192}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+60}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.5499999999999999e-23 or 1.9999999999999999e60 < t Initial program 85.4%
sub-neg85.4%
associate-+l-85.4%
sub-neg85.4%
sub-neg85.4%
distribute-rgt-out--88.6%
associate-*l*88.7%
distribute-lft-neg-in88.7%
cancel-sign-sub88.7%
associate-*l*88.7%
associate-*l*88.7%
Simplified88.7%
associate-*r*88.6%
distribute-rgt-out--85.4%
associate-*r*84.6%
*-commutative84.6%
associate-*r*85.4%
*-commutative85.4%
associate-*l*85.3%
associate-*l*85.3%
Applied egg-rr85.3%
Taylor expanded in a around inf 35.0%
*-commutative35.0%
*-commutative35.0%
associate-*l*35.0%
Simplified35.0%
if -1.5499999999999999e-23 < t < 4.0000000000000002e-236Initial program 80.1%
sub-neg80.1%
associate-+l-80.1%
sub-neg80.1%
sub-neg80.1%
distribute-rgt-out--80.1%
associate-*l*80.3%
distribute-lft-neg-in80.3%
cancel-sign-sub80.3%
associate-*l*80.3%
associate-*l*80.3%
Simplified80.3%
associate-*r*80.2%
distribute-rgt-out--80.2%
associate-*r*80.3%
*-commutative80.3%
associate-*r*80.2%
*-commutative80.2%
associate-*l*78.5%
associate-*l*80.2%
Applied egg-rr80.2%
Taylor expanded in b around inf 42.6%
if 4.0000000000000002e-236 < t < 7.00000000000000029e-192Initial program 41.5%
sub-neg41.5%
associate-+l-41.5%
sub-neg41.5%
sub-neg41.5%
distribute-rgt-out--41.5%
associate-*l*41.5%
distribute-lft-neg-in41.5%
cancel-sign-sub41.5%
associate-*l*41.5%
associate-*l*41.5%
Simplified41.5%
Taylor expanded in x around inf 90.0%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
Simplified78.6%
if 7.00000000000000029e-192 < t < 1.9999999999999999e60Initial program 91.5%
sub-neg91.5%
associate-+l-91.5%
sub-neg91.5%
sub-neg91.5%
distribute-rgt-out--91.5%
associate-*l*89.9%
distribute-lft-neg-in89.9%
cancel-sign-sub89.9%
associate-*l*89.9%
associate-*l*89.9%
Simplified89.9%
Taylor expanded in j around inf 41.9%
*-commutative41.9%
associate-*r*41.9%
Simplified41.9%
Final simplification40.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (* -4.0 a))))
(if (<= t -1.3e-25)
t_1
(if (<= t 7.6e-236)
(* b c)
(if (<= t 4.2e-192)
(* x (* i -4.0))
(if (<= t 5.1e+61) (* -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 = t * (-4.0 * a);
double tmp;
if (t <= -1.3e-25) {
tmp = t_1;
} else if (t <= 7.6e-236) {
tmp = b * c;
} else if (t <= 4.2e-192) {
tmp = x * (i * -4.0);
} else if (t <= 5.1e+61) {
tmp = -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 = t * ((-4.0d0) * a)
if (t <= (-1.3d-25)) then
tmp = t_1
else if (t <= 7.6d-236) then
tmp = b * c
else if (t <= 4.2d-192) then
tmp = x * (i * (-4.0d0))
else if (t <= 5.1d+61) then
tmp = (-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 = t * (-4.0 * a);
double tmp;
if (t <= -1.3e-25) {
tmp = t_1;
} else if (t <= 7.6e-236) {
tmp = b * c;
} else if (t <= 4.2e-192) {
tmp = x * (i * -4.0);
} else if (t <= 5.1e+61) {
tmp = -27.0 * (j * k);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * (-4.0 * a) tmp = 0 if t <= -1.3e-25: tmp = t_1 elif t <= 7.6e-236: tmp = b * c elif t <= 4.2e-192: tmp = x * (i * -4.0) elif t <= 5.1e+61: tmp = -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(t * Float64(-4.0 * a)) tmp = 0.0 if (t <= -1.3e-25) tmp = t_1; elseif (t <= 7.6e-236) tmp = Float64(b * c); elseif (t <= 4.2e-192) tmp = Float64(x * Float64(i * -4.0)); elseif (t <= 5.1e+61) tmp = 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 = t * (-4.0 * a); tmp = 0.0; if (t <= -1.3e-25) tmp = t_1; elseif (t <= 7.6e-236) tmp = b * c; elseif (t <= 4.2e-192) tmp = x * (i * -4.0); elseif (t <= 5.1e+61) tmp = -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[(t * N[(-4.0 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e-25], t$95$1, If[LessEqual[t, 7.6e-236], N[(b * c), $MachinePrecision], If[LessEqual[t, 4.2e-192], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e+61], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-4 \cdot a\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-236}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-192}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+61}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.3e-25 or 5.1000000000000001e61 < t Initial program 85.4%
sub-neg85.4%
associate-+l-85.4%
sub-neg85.4%
sub-neg85.4%
distribute-rgt-out--88.6%
associate-*l*88.7%
distribute-lft-neg-in88.7%
cancel-sign-sub88.7%
associate-*l*88.7%
associate-*l*88.7%
Simplified88.7%
associate-*r*88.6%
distribute-rgt-out--85.4%
associate-*r*84.6%
*-commutative84.6%
associate-*r*85.4%
*-commutative85.4%
associate-*l*85.3%
associate-*l*85.3%
Applied egg-rr85.3%
Taylor expanded in a around inf 35.0%
*-commutative35.0%
*-commutative35.0%
associate-*l*35.0%
Simplified35.0%
if -1.3e-25 < t < 7.5999999999999998e-236Initial program 80.1%
sub-neg80.1%
associate-+l-80.1%
sub-neg80.1%
sub-neg80.1%
distribute-rgt-out--80.1%
associate-*l*80.3%
distribute-lft-neg-in80.3%
cancel-sign-sub80.3%
associate-*l*80.3%
associate-*l*80.3%
Simplified80.3%
associate-*r*80.2%
distribute-rgt-out--80.2%
associate-*r*80.3%
*-commutative80.3%
associate-*r*80.2%
*-commutative80.2%
associate-*l*78.5%
associate-*l*80.2%
Applied egg-rr80.2%
Taylor expanded in b around inf 42.6%
if 7.5999999999999998e-236 < t < 4.19999999999999986e-192Initial program 41.5%
sub-neg41.5%
associate-+l-41.5%
sub-neg41.5%
sub-neg41.5%
distribute-rgt-out--41.5%
associate-*l*41.5%
distribute-lft-neg-in41.5%
cancel-sign-sub41.5%
associate-*l*41.5%
associate-*l*41.5%
Simplified41.5%
Taylor expanded in x around inf 90.0%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
Simplified78.6%
if 4.19999999999999986e-192 < t < 5.1000000000000001e61Initial program 91.5%
sub-neg91.5%
associate-+l-91.5%
sub-neg91.5%
sub-neg91.5%
distribute-rgt-out--91.5%
associate-*l*89.9%
distribute-lft-neg-in89.9%
cancel-sign-sub89.9%
associate-*l*89.9%
associate-*l*89.9%
Simplified89.9%
Taylor expanded in j around inf 41.9%
*-commutative41.9%
Simplified41.9%
Final simplification40.2%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= j -5.8e+140) (* -27.0 (* j k)) (if (<= j 2.8e+39) (- (* b c) (* 4.0 (* t a))) (* k (* j -27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -5.8e+140) {
tmp = -27.0 * (j * k);
} else if (j <= 2.8e+39) {
tmp = (b * c) - (4.0 * (t * a));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-5.8d+140)) then
tmp = (-27.0d0) * (j * k)
else if (j <= 2.8d+39) then
tmp = (b * c) - (4.0d0 * (t * a))
else
tmp = k * (j * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -5.8e+140) {
tmp = -27.0 * (j * k);
} else if (j <= 2.8e+39) {
tmp = (b * c) - (4.0 * (t * a));
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -5.8e+140: tmp = -27.0 * (j * k) elif j <= 2.8e+39: tmp = (b * c) - (4.0 * (t * a)) else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -5.8e+140) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= 2.8e+39) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -5.8e+140) tmp = -27.0 * (j * k); elseif (j <= 2.8e+39) tmp = (b * c) - (4.0 * (t * a)); else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -5.8e+140], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+39], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5.8 \cdot 10^{+140}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+39}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if j < -5.7999999999999998e140Initial program 84.6%
sub-neg84.6%
associate-+l-84.6%
sub-neg84.6%
sub-neg84.6%
distribute-rgt-out--87.8%
associate-*l*87.8%
distribute-lft-neg-in87.8%
cancel-sign-sub87.8%
associate-*l*87.8%
associate-*l*87.8%
Simplified87.8%
Taylor expanded in j around inf 59.2%
*-commutative59.2%
Simplified59.2%
if -5.7999999999999998e140 < j < 2.80000000000000001e39Initial program 84.9%
Taylor expanded in x around 0 58.6%
Taylor expanded in j around 0 48.7%
if 2.80000000000000001e39 < j Initial program 82.4%
sub-neg82.4%
associate-+l-82.4%
sub-neg82.4%
sub-neg82.4%
distribute-rgt-out--83.8%
associate-*l*79.9%
distribute-lft-neg-in79.9%
cancel-sign-sub79.9%
associate-*l*79.9%
associate-*l*79.9%
Simplified79.9%
Taylor expanded in j around inf 34.8%
*-commutative34.8%
associate-*r*34.7%
Simplified34.7%
Final simplification46.0%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= c -6.2e-105) (* b c) (if (<= c 1e+21) (* k (* j -27.0)) (* b c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (c <= -6.2e-105) {
tmp = b * c;
} else if (c <= 1e+21) {
tmp = k * (j * -27.0);
} 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 (c <= (-6.2d-105)) then
tmp = b * c
else if (c <= 1d+21) then
tmp = k * (j * (-27.0d0))
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 (c <= -6.2e-105) {
tmp = b * c;
} else if (c <= 1e+21) {
tmp = k * (j * -27.0);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if c <= -6.2e-105: tmp = b * c elif c <= 1e+21: tmp = k * (j * -27.0) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (c <= -6.2e-105) tmp = Float64(b * c); elseif (c <= 1e+21) tmp = Float64(k * Float64(j * -27.0)); 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 (c <= -6.2e-105) tmp = b * c; elseif (c <= 1e+21) tmp = k * (j * -27.0); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[c, -6.2e-105], N[(b * c), $MachinePrecision], If[LessEqual[c, 1e+21], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.2 \cdot 10^{-105}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;c \leq 10^{+21}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if c < -6.20000000000000029e-105 or 1e21 < c Initial program 82.9%
sub-neg82.9%
associate-+l-82.9%
sub-neg82.9%
sub-neg82.9%
distribute-rgt-out--83.5%
associate-*l*82.9%
distribute-lft-neg-in82.9%
cancel-sign-sub82.9%
associate-*l*82.9%
associate-*l*82.9%
Simplified82.9%
associate-*r*83.5%
distribute-rgt-out--82.8%
associate-*r*81.6%
*-commutative81.6%
associate-*r*82.8%
*-commutative82.8%
associate-*l*82.2%
associate-*l*82.2%
Applied egg-rr82.2%
Taylor expanded in b around inf 36.1%
if -6.20000000000000029e-105 < c < 1e21Initial program 86.0%
sub-neg86.0%
associate-+l-86.0%
sub-neg86.0%
sub-neg86.0%
distribute-rgt-out--88.9%
associate-*l*88.8%
distribute-lft-neg-in88.8%
cancel-sign-sub88.8%
associate-*l*88.8%
associate-*l*88.9%
Simplified88.9%
Taylor expanded in j around inf 27.8%
*-commutative27.8%
associate-*r*27.8%
Simplified27.8%
Final simplification32.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 84.1%
sub-neg84.1%
associate-+l-84.1%
sub-neg84.1%
sub-neg84.1%
distribute-rgt-out--85.7%
associate-*l*85.4%
distribute-lft-neg-in85.4%
cancel-sign-sub85.4%
associate-*l*85.4%
associate-*l*85.4%
Simplified85.4%
associate-*r*85.7%
distribute-rgt-out--84.2%
associate-*r*83.4%
*-commutative83.4%
associate-*r*84.2%
*-commutative84.2%
associate-*l*83.8%
associate-*l*84.1%
Applied egg-rr84.1%
Taylor expanded in b around inf 24.9%
Final simplification24.9%
(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 2023229
(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)))