
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* (* x 18.0) y) z)))
(if (<=
(-
(- (+ (- (* t_1 t) (* t (* a 4.0))) (* b c)) (* (* x 4.0) i))
(* (* j 27.0) k))
INFINITY)
(+
(* t (+ t_1 (* a -4.0)))
(+ (+ (* b c) (* x (* i -4.0))) (* -27.0 (* j k))))
(* x (+ (* i -4.0) (* z (* y (* 18.0 t))))))))
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) * z;
double tmp;
if ((((((t_1 * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= ((double) INFINITY)) {
tmp = (t * (t_1 + (a * -4.0))) + (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k)));
} else {
tmp = x * ((i * -4.0) + (z * (y * (18.0 * t))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((x * 18.0) * y) * z;
double tmp;
if ((((((t_1 * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= Double.POSITIVE_INFINITY) {
tmp = (t * (t_1 + (a * -4.0))) + (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k)));
} else {
tmp = x * ((i * -4.0) + (z * (y * (18.0 * t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((x * 18.0) * y) * z tmp = 0 if (((((t_1 * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= math.inf: tmp = (t * (t_1 + (a * -4.0))) + (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) else: tmp = x * ((i * -4.0) + (z * (y * (18.0 * t)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(x * 18.0) * y) * z) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t_1 * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) <= Inf) tmp = Float64(Float64(t * Float64(t_1 + Float64(a * -4.0))) + Float64(Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))) + Float64(-27.0 * Float64(j * k)))); else tmp = Float64(x * Float64(Float64(i * -4.0) + Float64(z * Float64(y * Float64(18.0 * t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((x * 18.0) * y) * z; tmp = 0.0; if ((((((t_1 * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= Inf) tmp = (t * (t_1 + (a * -4.0))) + (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))); else tmp = x * ((i * -4.0) + (z * (y * (18.0 * t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t$95$1 * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $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], Infinity], N[(N[(t * N[(t$95$1 + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(i * -4.0), $MachinePrecision] + N[(z * N[(y * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x \cdot 18\right) \cdot y\right) \cdot z\\
\mathbf{if}\;\left(\left(\left(t\_1 \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\
\;\;\;\;t \cdot \left(t\_1 + a \cdot -4\right) + \left(\left(b \cdot c + x \cdot \left(i \cdot -4\right)\right) + -27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(i \cdot -4 + z \cdot \left(y \cdot \left(18 \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.0%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified97.0%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified24.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6469.0%
Simplified69.0%
Final simplification93.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* x i))))
(if (<= z -2e-34)
(* (* 18.0 t) (* y (* x z)))
(if (<= z -3.95e-199)
(* b c)
(if (<= z -9.5e-275)
t_1
(if (<= z 1.95e-42)
(* -27.0 (* j k))
(if (<= z 1.1e+114) t_1 (* 18.0 (* z (* x (* y t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (x * i);
double tmp;
if (z <= -2e-34) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -3.95e-199) {
tmp = b * c;
} else if (z <= -9.5e-275) {
tmp = t_1;
} else if (z <= 1.95e-42) {
tmp = -27.0 * (j * k);
} else if (z <= 1.1e+114) {
tmp = t_1;
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (x * i)
if (z <= (-2d-34)) then
tmp = (18.0d0 * t) * (y * (x * z))
else if (z <= (-3.95d-199)) then
tmp = b * c
else if (z <= (-9.5d-275)) then
tmp = t_1
else if (z <= 1.95d-42) then
tmp = (-27.0d0) * (j * k)
else if (z <= 1.1d+114) then
tmp = t_1
else
tmp = 18.0d0 * (z * (x * (y * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (x * i);
double tmp;
if (z <= -2e-34) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -3.95e-199) {
tmp = b * c;
} else if (z <= -9.5e-275) {
tmp = t_1;
} else if (z <= 1.95e-42) {
tmp = -27.0 * (j * k);
} else if (z <= 1.1e+114) {
tmp = t_1;
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (x * i) tmp = 0 if z <= -2e-34: tmp = (18.0 * t) * (y * (x * z)) elif z <= -3.95e-199: tmp = b * c elif z <= -9.5e-275: tmp = t_1 elif z <= 1.95e-42: tmp = -27.0 * (j * k) elif z <= 1.1e+114: tmp = t_1 else: tmp = 18.0 * (z * (x * (y * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(x * i)) tmp = 0.0 if (z <= -2e-34) tmp = Float64(Float64(18.0 * t) * Float64(y * Float64(x * z))); elseif (z <= -3.95e-199) tmp = Float64(b * c); elseif (z <= -9.5e-275) tmp = t_1; elseif (z <= 1.95e-42) tmp = Float64(-27.0 * Float64(j * k)); elseif (z <= 1.1e+114) tmp = t_1; else tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (x * i); tmp = 0.0; if (z <= -2e-34) tmp = (18.0 * t) * (y * (x * z)); elseif (z <= -3.95e-199) tmp = b * c; elseif (z <= -9.5e-275) tmp = t_1; elseif (z <= 1.95e-42) tmp = -27.0 * (j * k); elseif (z <= 1.1e+114) tmp = t_1; else tmp = 18.0 * (z * (x * (y * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e-34], N[(N[(18.0 * t), $MachinePrecision] * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.95e-199], N[(b * c), $MachinePrecision], If[LessEqual[z, -9.5e-275], t$95$1, If[LessEqual[z, 1.95e-42], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+114], t$95$1, N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;z \leq -2 \cdot 10^{-34}:\\
\;\;\;\;\left(18 \cdot t\right) \cdot \left(y \cdot \left(x \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -3.95 \cdot 10^{-199}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-275}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-42}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+114}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if z < -1.99999999999999986e-34Initial program 86.9%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.2%
Simplified48.2%
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6450.9%
Applied egg-rr50.9%
if -1.99999999999999986e-34 < z < -3.9499999999999998e-199Initial program 81.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified81.7%
Taylor expanded in b around inf
*-lowering-*.f6431.4%
Simplified31.4%
if -3.9499999999999998e-199 < z < -9.49999999999999961e-275 or 1.9500000000000001e-42 < z < 1.1e114Initial program 82.1%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified82.2%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6443.3%
Simplified43.3%
if -9.49999999999999961e-275 < z < 1.9500000000000001e-42Initial program 90.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified90.9%
Applied egg-rr92.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
if 1.1e114 < z Initial program 84.1%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified92.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.9%
Simplified47.9%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.6%
Applied egg-rr49.6%
Final simplification43.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* x i))))
(if (<= z -5.4e-34)
(* 18.0 (* x (* t (* y z))))
(if (<= z -1.32e-198)
(* b c)
(if (<= z -7.6e-275)
t_1
(if (<= z 2.6e-42)
(* -27.0 (* j k))
(if (<= z 6.6e+112) t_1 (* 18.0 (* z (* x (* y t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (x * i);
double tmp;
if (z <= -5.4e-34) {
tmp = 18.0 * (x * (t * (y * z)));
} else if (z <= -1.32e-198) {
tmp = b * c;
} else if (z <= -7.6e-275) {
tmp = t_1;
} else if (z <= 2.6e-42) {
tmp = -27.0 * (j * k);
} else if (z <= 6.6e+112) {
tmp = t_1;
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (x * i)
if (z <= (-5.4d-34)) then
tmp = 18.0d0 * (x * (t * (y * z)))
else if (z <= (-1.32d-198)) then
tmp = b * c
else if (z <= (-7.6d-275)) then
tmp = t_1
else if (z <= 2.6d-42) then
tmp = (-27.0d0) * (j * k)
else if (z <= 6.6d+112) then
tmp = t_1
else
tmp = 18.0d0 * (z * (x * (y * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (x * i);
double tmp;
if (z <= -5.4e-34) {
tmp = 18.0 * (x * (t * (y * z)));
} else if (z <= -1.32e-198) {
tmp = b * c;
} else if (z <= -7.6e-275) {
tmp = t_1;
} else if (z <= 2.6e-42) {
tmp = -27.0 * (j * k);
} else if (z <= 6.6e+112) {
tmp = t_1;
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (x * i) tmp = 0 if z <= -5.4e-34: tmp = 18.0 * (x * (t * (y * z))) elif z <= -1.32e-198: tmp = b * c elif z <= -7.6e-275: tmp = t_1 elif z <= 2.6e-42: tmp = -27.0 * (j * k) elif z <= 6.6e+112: tmp = t_1 else: tmp = 18.0 * (z * (x * (y * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(x * i)) tmp = 0.0 if (z <= -5.4e-34) tmp = Float64(18.0 * Float64(x * Float64(t * Float64(y * z)))); elseif (z <= -1.32e-198) tmp = Float64(b * c); elseif (z <= -7.6e-275) tmp = t_1; elseif (z <= 2.6e-42) tmp = Float64(-27.0 * Float64(j * k)); elseif (z <= 6.6e+112) tmp = t_1; else tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (x * i); tmp = 0.0; if (z <= -5.4e-34) tmp = 18.0 * (x * (t * (y * z))); elseif (z <= -1.32e-198) tmp = b * c; elseif (z <= -7.6e-275) tmp = t_1; elseif (z <= 2.6e-42) tmp = -27.0 * (j * k); elseif (z <= 6.6e+112) tmp = t_1; else tmp = 18.0 * (z * (x * (y * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.4e-34], N[(18.0 * N[(x * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.32e-198], N[(b * c), $MachinePrecision], If[LessEqual[z, -7.6e-275], t$95$1, If[LessEqual[z, 2.6e-42], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e+112], t$95$1, N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;z \leq -5.4 \cdot 10^{-34}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq -1.32 \cdot 10^{-198}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;z \leq -7.6 \cdot 10^{-275}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-42}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if z < -5.40000000000000034e-34Initial program 86.9%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.2%
Simplified48.2%
if -5.40000000000000034e-34 < z < -1.3200000000000001e-198Initial program 81.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified81.7%
Taylor expanded in b around inf
*-lowering-*.f6431.4%
Simplified31.4%
if -1.3200000000000001e-198 < z < -7.59999999999999943e-275 or 2.6e-42 < z < 6.5999999999999998e112Initial program 82.1%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified82.2%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6443.3%
Simplified43.3%
if -7.59999999999999943e-275 < z < 2.6e-42Initial program 90.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified90.9%
Applied egg-rr92.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
if 6.5999999999999998e112 < z Initial program 84.1%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified92.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.9%
Simplified47.9%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.6%
Applied egg-rr49.6%
Final simplification42.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* x (* t (* y z))))) (t_2 (* -4.0 (* x i))))
(if (<= z -3.6e-32)
t_1
(if (<= z -2e-200)
(* b c)
(if (<= z -8.5e-275)
t_2
(if (<= z 2.4e-42)
(* -27.0 (* j k))
(if (<= z 4.2e+118) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (x * (t * (y * z)));
double t_2 = -4.0 * (x * i);
double tmp;
if (z <= -3.6e-32) {
tmp = t_1;
} else if (z <= -2e-200) {
tmp = b * c;
} else if (z <= -8.5e-275) {
tmp = t_2;
} else if (z <= 2.4e-42) {
tmp = -27.0 * (j * k);
} else if (z <= 4.2e+118) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 18.0d0 * (x * (t * (y * z)))
t_2 = (-4.0d0) * (x * i)
if (z <= (-3.6d-32)) then
tmp = t_1
else if (z <= (-2d-200)) then
tmp = b * c
else if (z <= (-8.5d-275)) then
tmp = t_2
else if (z <= 2.4d-42) then
tmp = (-27.0d0) * (j * k)
else if (z <= 4.2d+118) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (x * (t * (y * z)));
double t_2 = -4.0 * (x * i);
double tmp;
if (z <= -3.6e-32) {
tmp = t_1;
} else if (z <= -2e-200) {
tmp = b * c;
} else if (z <= -8.5e-275) {
tmp = t_2;
} else if (z <= 2.4e-42) {
tmp = -27.0 * (j * k);
} else if (z <= 4.2e+118) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (x * (t * (y * z))) t_2 = -4.0 * (x * i) tmp = 0 if z <= -3.6e-32: tmp = t_1 elif z <= -2e-200: tmp = b * c elif z <= -8.5e-275: tmp = t_2 elif z <= 2.4e-42: tmp = -27.0 * (j * k) elif z <= 4.2e+118: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(x * Float64(t * Float64(y * z)))) t_2 = Float64(-4.0 * Float64(x * i)) tmp = 0.0 if (z <= -3.6e-32) tmp = t_1; elseif (z <= -2e-200) tmp = Float64(b * c); elseif (z <= -8.5e-275) tmp = t_2; elseif (z <= 2.4e-42) tmp = Float64(-27.0 * Float64(j * k)); elseif (z <= 4.2e+118) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 18.0 * (x * (t * (y * z))); t_2 = -4.0 * (x * i); tmp = 0.0; if (z <= -3.6e-32) tmp = t_1; elseif (z <= -2e-200) tmp = b * c; elseif (z <= -8.5e-275) tmp = t_2; elseif (z <= 2.4e-42) tmp = -27.0 * (j * k); elseif (z <= 4.2e+118) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(x * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.6e-32], t$95$1, If[LessEqual[z, -2e-200], N[(b * c), $MachinePrecision], If[LessEqual[z, -8.5e-275], t$95$2, If[LessEqual[z, 2.4e-42], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+118], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 18 \cdot \left(x \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\
t_2 := -4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;z \leq -3.6 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-200}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-275}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-42}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+118}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.59999999999999993e-32 or 4.2e118 < z Initial program 85.7%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.1%
Simplified48.1%
if -3.59999999999999993e-32 < z < -2e-200Initial program 82.4%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified82.3%
Taylor expanded in b around inf
*-lowering-*.f6430.3%
Simplified30.3%
if -2e-200 < z < -8.49999999999999952e-275 or 2.40000000000000003e-42 < z < 4.2e118Initial program 81.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified81.8%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6444.2%
Simplified44.2%
if -8.49999999999999952e-275 < z < 2.40000000000000003e-42Initial program 90.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified90.9%
Applied egg-rr92.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Final simplification42.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k))
(t_2 (* t (+ (* a -4.0) (* x (* 18.0 (* y z)))))))
(if (<= t -1.7e+81)
t_2
(if (<= t -2e-150)
(- (* z (* x (* 18.0 (* y t)))) t_1)
(if (<= t 8.5e-181)
(+ (* b c) (* x (* i -4.0)))
(if (<= t 1.72e-63) (- (* -4.0 (* x i)) 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 = (j * 27.0) * k;
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -1.7e+81) {
tmp = t_2;
} else if (t <= -2e-150) {
tmp = (z * (x * (18.0 * (y * t)))) - t_1;
} else if (t <= 8.5e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 1.72e-63) {
tmp = (-4.0 * (x * i)) - 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 = (j * 27.0d0) * k
t_2 = t * ((a * (-4.0d0)) + (x * (18.0d0 * (y * z))))
if (t <= (-1.7d+81)) then
tmp = t_2
else if (t <= (-2d-150)) then
tmp = (z * (x * (18.0d0 * (y * t)))) - t_1
else if (t <= 8.5d-181) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else if (t <= 1.72d-63) then
tmp = ((-4.0d0) * (x * i)) - 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 = (j * 27.0) * k;
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -1.7e+81) {
tmp = t_2;
} else if (t <= -2e-150) {
tmp = (z * (x * (18.0 * (y * t)))) - t_1;
} else if (t <= 8.5e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 1.72e-63) {
tmp = (-4.0 * (x * i)) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))) tmp = 0 if t <= -1.7e+81: tmp = t_2 elif t <= -2e-150: tmp = (z * (x * (18.0 * (y * t)))) - t_1 elif t <= 8.5e-181: tmp = (b * c) + (x * (i * -4.0)) elif t <= 1.72e-63: tmp = (-4.0 * (x * i)) - t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) t_2 = Float64(t * Float64(Float64(a * -4.0) + Float64(x * Float64(18.0 * Float64(y * z))))) tmp = 0.0 if (t <= -1.7e+81) tmp = t_2; elseif (t <= -2e-150) tmp = Float64(Float64(z * Float64(x * Float64(18.0 * Float64(y * t)))) - t_1); elseif (t <= 8.5e-181) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); elseif (t <= 1.72e-63) tmp = Float64(Float64(-4.0 * Float64(x * i)) - 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 = (j * 27.0) * k; t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))); tmp = 0.0; if (t <= -1.7e+81) tmp = t_2; elseif (t <= -2e-150) tmp = (z * (x * (18.0 * (y * t)))) - t_1; elseif (t <= 8.5e-181) tmp = (b * c) + (x * (i * -4.0)); elseif (t <= 1.72e-63) tmp = (-4.0 * (x * i)) - t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e+81], t$95$2, If[LessEqual[t, -2e-150], N[(N[(z * N[(x * N[(18.0 * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 8.5e-181], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.72e-63], N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
t_2 := t \cdot \left(a \cdot -4 + x \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-150}:\\
\;\;\;\;z \cdot \left(x \cdot \left(18 \cdot \left(y \cdot t\right)\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-181}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 1.72 \cdot 10^{-63}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.70000000000000001e81 or 1.71999999999999989e-63 < t Initial program 87.2%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.5%
Simplified71.5%
if -1.70000000000000001e81 < t < -2.00000000000000001e-150Initial program 81.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.4%
Simplified61.4%
associate-*r*N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.4%
Applied egg-rr63.4%
if -2.00000000000000001e-150 < t < 8.49999999999999953e-181Initial program 89.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified95.2%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.4%
Simplified76.4%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.3%
Simplified73.3%
if 8.49999999999999953e-181 < t < 1.71999999999999989e-63Initial program 82.0%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6472.3%
Simplified72.3%
Final simplification70.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k))
(t_2 (* t (+ (* a -4.0) (* x (* 18.0 (* y z)))))))
(if (<= t -3.7e+87)
t_2
(if (<= t -4e-150)
(- (* (* 18.0 (* y t)) (* x z)) t_1)
(if (<= t 4.8e-181)
(+ (* b c) (* x (* i -4.0)))
(if (<= t 1.72e-63) (- (* -4.0 (* x i)) 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 = (j * 27.0) * k;
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -3.7e+87) {
tmp = t_2;
} else if (t <= -4e-150) {
tmp = ((18.0 * (y * t)) * (x * z)) - t_1;
} else if (t <= 4.8e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 1.72e-63) {
tmp = (-4.0 * (x * i)) - 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 = (j * 27.0d0) * k
t_2 = t * ((a * (-4.0d0)) + (x * (18.0d0 * (y * z))))
if (t <= (-3.7d+87)) then
tmp = t_2
else if (t <= (-4d-150)) then
tmp = ((18.0d0 * (y * t)) * (x * z)) - t_1
else if (t <= 4.8d-181) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else if (t <= 1.72d-63) then
tmp = ((-4.0d0) * (x * i)) - 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 = (j * 27.0) * k;
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -3.7e+87) {
tmp = t_2;
} else if (t <= -4e-150) {
tmp = ((18.0 * (y * t)) * (x * z)) - t_1;
} else if (t <= 4.8e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 1.72e-63) {
tmp = (-4.0 * (x * i)) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))) tmp = 0 if t <= -3.7e+87: tmp = t_2 elif t <= -4e-150: tmp = ((18.0 * (y * t)) * (x * z)) - t_1 elif t <= 4.8e-181: tmp = (b * c) + (x * (i * -4.0)) elif t <= 1.72e-63: tmp = (-4.0 * (x * i)) - t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) t_2 = Float64(t * Float64(Float64(a * -4.0) + Float64(x * Float64(18.0 * Float64(y * z))))) tmp = 0.0 if (t <= -3.7e+87) tmp = t_2; elseif (t <= -4e-150) tmp = Float64(Float64(Float64(18.0 * Float64(y * t)) * Float64(x * z)) - t_1); elseif (t <= 4.8e-181) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); elseif (t <= 1.72e-63) tmp = Float64(Float64(-4.0 * Float64(x * i)) - 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 = (j * 27.0) * k; t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))); tmp = 0.0; if (t <= -3.7e+87) tmp = t_2; elseif (t <= -4e-150) tmp = ((18.0 * (y * t)) * (x * z)) - t_1; elseif (t <= 4.8e-181) tmp = (b * c) + (x * (i * -4.0)); elseif (t <= 1.72e-63) tmp = (-4.0 * (x * i)) - t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.7e+87], t$95$2, If[LessEqual[t, -4e-150], N[(N[(N[(18.0 * N[(y * t), $MachinePrecision]), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 4.8e-181], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.72e-63], N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
t_2 := t \cdot \left(a \cdot -4 + x \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -3.7 \cdot 10^{+87}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4 \cdot 10^{-150}:\\
\;\;\;\;\left(18 \cdot \left(y \cdot t\right)\right) \cdot \left(x \cdot z\right) - t\_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-181}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 1.72 \cdot 10^{-63}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -3.70000000000000003e87 or 1.71999999999999989e-63 < t Initial program 87.2%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.5%
Simplified71.5%
if -3.70000000000000003e87 < t < -4.00000000000000003e-150Initial program 81.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.4%
Simplified61.4%
associate-*r*N/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.6%
Applied egg-rr63.6%
if -4.00000000000000003e-150 < t < 4.8000000000000002e-181Initial program 89.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified95.2%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.4%
Simplified76.4%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.3%
Simplified73.3%
if 4.8000000000000002e-181 < t < 1.71999999999999989e-63Initial program 82.0%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6472.3%
Simplified72.3%
Final simplification70.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k))
(t_2 (* t (+ (* a -4.0) (* x (* 18.0 (* y z)))))))
(if (<= t -2.4e+81)
t_2
(if (<= t -1.4e-150)
(- (* 18.0 (* x (* t (* y z)))) t_1)
(if (<= t 9.5e-181)
(+ (* b c) (* x (* i -4.0)))
(if (<= t 4.2e-66) (- (* -4.0 (* x i)) 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 = (j * 27.0) * k;
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -2.4e+81) {
tmp = t_2;
} else if (t <= -1.4e-150) {
tmp = (18.0 * (x * (t * (y * z)))) - t_1;
} else if (t <= 9.5e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 4.2e-66) {
tmp = (-4.0 * (x * i)) - 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 = (j * 27.0d0) * k
t_2 = t * ((a * (-4.0d0)) + (x * (18.0d0 * (y * z))))
if (t <= (-2.4d+81)) then
tmp = t_2
else if (t <= (-1.4d-150)) then
tmp = (18.0d0 * (x * (t * (y * z)))) - t_1
else if (t <= 9.5d-181) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else if (t <= 4.2d-66) then
tmp = ((-4.0d0) * (x * i)) - 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 = (j * 27.0) * k;
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -2.4e+81) {
tmp = t_2;
} else if (t <= -1.4e-150) {
tmp = (18.0 * (x * (t * (y * z)))) - t_1;
} else if (t <= 9.5e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 4.2e-66) {
tmp = (-4.0 * (x * i)) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))) tmp = 0 if t <= -2.4e+81: tmp = t_2 elif t <= -1.4e-150: tmp = (18.0 * (x * (t * (y * z)))) - t_1 elif t <= 9.5e-181: tmp = (b * c) + (x * (i * -4.0)) elif t <= 4.2e-66: tmp = (-4.0 * (x * i)) - t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) t_2 = Float64(t * Float64(Float64(a * -4.0) + Float64(x * Float64(18.0 * Float64(y * z))))) tmp = 0.0 if (t <= -2.4e+81) tmp = t_2; elseif (t <= -1.4e-150) tmp = Float64(Float64(18.0 * Float64(x * Float64(t * Float64(y * z)))) - t_1); elseif (t <= 9.5e-181) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); elseif (t <= 4.2e-66) tmp = Float64(Float64(-4.0 * Float64(x * i)) - 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 = (j * 27.0) * k; t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))); tmp = 0.0; if (t <= -2.4e+81) tmp = t_2; elseif (t <= -1.4e-150) tmp = (18.0 * (x * (t * (y * z)))) - t_1; elseif (t <= 9.5e-181) tmp = (b * c) + (x * (i * -4.0)); elseif (t <= 4.2e-66) tmp = (-4.0 * (x * i)) - t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e+81], t$95$2, If[LessEqual[t, -1.4e-150], N[(N[(18.0 * N[(x * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 9.5e-181], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-66], N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
t_2 := t \cdot \left(a \cdot -4 + x \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-150}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(t \cdot \left(y \cdot z\right)\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-181}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-66}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.3999999999999999e81 or 4.2000000000000001e-66 < t Initial program 87.2%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.5%
Simplified71.5%
if -2.3999999999999999e81 < t < -1.39999999999999998e-150Initial program 81.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.4%
Simplified61.4%
if -1.39999999999999998e-150 < t < 9.49999999999999998e-181Initial program 89.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified95.2%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.4%
Simplified76.4%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.3%
Simplified73.3%
if 9.49999999999999998e-181 < t < 4.2000000000000001e-66Initial program 82.0%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6472.3%
Simplified72.3%
Final simplification70.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* -4.0 (* x i)) (* (* j 27.0) k)))
(t_2 (* t (+ (* a -4.0) (* x (* 18.0 (* y z)))))))
(if (<= t -1.75e-29)
t_2
(if (<= t -1.9e-150)
t_1
(if (<= t 7e-181)
(+ (* b c) (* x (* i -4.0)))
(if (<= t 8e-65) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (-4.0 * (x * i)) - ((j * 27.0) * k);
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -1.75e-29) {
tmp = t_2;
} else if (t <= -1.9e-150) {
tmp = t_1;
} else if (t <= 7e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 8e-65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((-4.0d0) * (x * i)) - ((j * 27.0d0) * k)
t_2 = t * ((a * (-4.0d0)) + (x * (18.0d0 * (y * z))))
if (t <= (-1.75d-29)) then
tmp = t_2
else if (t <= (-1.9d-150)) then
tmp = t_1
else if (t <= 7d-181) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else if (t <= 8d-65) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (-4.0 * (x * i)) - ((j * 27.0) * k);
double t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z))));
double tmp;
if (t <= -1.75e-29) {
tmp = t_2;
} else if (t <= -1.9e-150) {
tmp = t_1;
} else if (t <= 7e-181) {
tmp = (b * c) + (x * (i * -4.0));
} else if (t <= 8e-65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (-4.0 * (x * i)) - ((j * 27.0) * k) t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))) tmp = 0 if t <= -1.75e-29: tmp = t_2 elif t <= -1.9e-150: tmp = t_1 elif t <= 7e-181: tmp = (b * c) + (x * (i * -4.0)) elif t <= 8e-65: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(-4.0 * Float64(x * i)) - Float64(Float64(j * 27.0) * k)) t_2 = Float64(t * Float64(Float64(a * -4.0) + Float64(x * Float64(18.0 * Float64(y * z))))) tmp = 0.0 if (t <= -1.75e-29) tmp = t_2; elseif (t <= -1.9e-150) tmp = t_1; elseif (t <= 7e-181) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); elseif (t <= 8e-65) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (-4.0 * (x * i)) - ((j * 27.0) * k); t_2 = t * ((a * -4.0) + (x * (18.0 * (y * z)))); tmp = 0.0; if (t <= -1.75e-29) tmp = t_2; elseif (t <= -1.9e-150) tmp = t_1; elseif (t <= 7e-181) tmp = (b * c) + (x * (i * -4.0)); elseif (t <= 8e-65) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e-29], t$95$2, If[LessEqual[t, -1.9e-150], t$95$1, If[LessEqual[t, 7e-181], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-65], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
t_2 := t \cdot \left(a \cdot -4 + x \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -1.75 \cdot 10^{-29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-181}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.7499999999999999e-29 or 7.99999999999999939e-65 < t Initial program 85.6%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified90.6%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.5%
Simplified67.5%
if -1.7499999999999999e-29 < t < -1.8999999999999999e-150 or 6.99999999999999993e-181 < t < 7.99999999999999939e-65Initial program 83.7%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6469.7%
Simplified69.7%
if -1.8999999999999999e-150 < t < 6.99999999999999993e-181Initial program 89.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified95.2%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.4%
Simplified76.4%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.3%
Simplified73.3%
Final simplification69.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z -1.8e-87)
(+ (* b c) (* t (+ (* (* (* x 18.0) y) z) (* a -4.0))))
(if (<= z 1.85e+111)
(+ (+ (+ (* b c) (* x (* i -4.0))) (* -27.0 (* j k))) (* t (* a -4.0)))
(-
(+ (* b c) (* x (+ (* i -4.0) (* z (* y (* 18.0 t))))))
(* (* 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) {
double tmp;
if (z <= -1.8e-87) {
tmp = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0)));
} else if (z <= 1.85e+111) {
tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0));
} else {
tmp = ((b * c) + (x * ((i * -4.0) + (z * (y * (18.0 * t)))))) - ((j * 27.0) * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (z <= (-1.8d-87)) then
tmp = (b * c) + (t * ((((x * 18.0d0) * y) * z) + (a * (-4.0d0))))
else if (z <= 1.85d+111) then
tmp = (((b * c) + (x * (i * (-4.0d0)))) + ((-27.0d0) * (j * k))) + (t * (a * (-4.0d0)))
else
tmp = ((b * c) + (x * ((i * (-4.0d0)) + (z * (y * (18.0d0 * t)))))) - ((j * 27.0d0) * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -1.8e-87) {
tmp = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0)));
} else if (z <= 1.85e+111) {
tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0));
} else {
tmp = ((b * c) + (x * ((i * -4.0) + (z * (y * (18.0 * t)))))) - ((j * 27.0) * k);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if z <= -1.8e-87: tmp = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0))) elif z <= 1.85e+111: tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0)) else: tmp = ((b * c) + (x * ((i * -4.0) + (z * (y * (18.0 * t)))))) - ((j * 27.0) * k) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= -1.8e-87) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(Float64(x * 18.0) * y) * z) + Float64(a * -4.0)))); elseif (z <= 1.85e+111) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))) + Float64(-27.0 * Float64(j * k))) + Float64(t * Float64(a * -4.0))); else tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(i * -4.0) + Float64(z * Float64(y * Float64(18.0 * t)))))) - Float64(Float64(j * 27.0) * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (z <= -1.8e-87) tmp = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0))); elseif (z <= 1.85e+111) tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0)); else tmp = ((b * c) + (x * ((i * -4.0) + (z * (y * (18.0 * t)))))) - ((j * 27.0) * k); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, -1.8e-87], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e+111], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(i * -4.0), $MachinePrecision] + N[(z * N[(y * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-87}:\\
\;\;\;\;b \cdot c + t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z + a \cdot -4\right)\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+111}:\\
\;\;\;\;\left(\left(b \cdot c + x \cdot \left(i \cdot -4\right)\right) + -27 \cdot \left(j \cdot k\right)\right) + t \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(i \cdot -4 + z \cdot \left(y \cdot \left(18 \cdot t\right)\right)\right)\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if z < -1.79999999999999996e-87Initial program 85.6%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified89.6%
Taylor expanded in b around inf
*-lowering-*.f6478.2%
Simplified78.2%
if -1.79999999999999996e-87 < z < 1.8500000000000001e111Initial program 86.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified86.9%
Taylor expanded in x around 0
*-lowering-*.f6484.1%
Simplified84.1%
if 1.8500000000000001e111 < z Initial program 84.4%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified84.7%
Final simplification82.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* x (+ (* i -4.0) (* 18.0 (* t (* y z))))))))
(if (<= x -3.4e+62)
t_1
(if (<= x 2.15e+45)
(+ (+ (+ (* b c) (* x (* i -4.0))) (* -27.0 (* j k))) (* t (* a -4.0)))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z)))));
double tmp;
if (x <= -3.4e+62) {
tmp = t_1;
} else if (x <= 2.15e+45) {
tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (x * ((i * (-4.0d0)) + (18.0d0 * (t * (y * z)))))
if (x <= (-3.4d+62)) then
tmp = t_1
else if (x <= 2.15d+45) then
tmp = (((b * c) + (x * (i * (-4.0d0)))) + ((-27.0d0) * (j * k))) + (t * (a * (-4.0d0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z)))));
double tmp;
if (x <= -3.4e+62) {
tmp = t_1;
} else if (x <= 2.15e+45) {
tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z))))) tmp = 0 if x <= -3.4e+62: tmp = t_1 elif x <= 2.15e+45: tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(x * Float64(Float64(i * -4.0) + Float64(18.0 * Float64(t * Float64(y * z)))))) tmp = 0.0 if (x <= -3.4e+62) tmp = t_1; elseif (x <= 2.15e+45) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))) + Float64(-27.0 * Float64(j * k))) + Float64(t * Float64(a * -4.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z))))); tmp = 0.0; if (x <= -3.4e+62) tmp = t_1; elseif (x <= 2.15e+45) tmp = (((b * c) + (x * (i * -4.0))) + (-27.0 * (j * k))) + (t * (a * -4.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(i * -4.0), $MachinePrecision] + N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e+62], t$95$1, If[LessEqual[x, 2.15e+45], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + x \cdot \left(i \cdot -4 + 18 \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{+45}:\\
\;\;\;\;\left(\left(b \cdot c + x \cdot \left(i \cdot -4\right)\right) + -27 \cdot \left(j \cdot k\right)\right) + t \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.40000000000000014e62 or 2.1500000000000002e45 < x Initial program 77.3%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified91.7%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6488.9%
Simplified88.9%
if -3.40000000000000014e62 < x < 2.1500000000000002e45Initial program 92.4%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified95.2%
Taylor expanded in x around 0
*-lowering-*.f6481.9%
Simplified81.9%
Final simplification84.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z -5.9e+41)
(* (* 18.0 t) (* y (* x z)))
(if (<= z -3.1e-260)
(+ (* b c) (* -4.0 (* t a)))
(if (<= z 1.9e+15)
(- (* b c) (* 27.0 (* j k)))
(if (<= z 5.5e+130)
(+ (* b c) (* x (* i -4.0)))
(* 18.0 (* z (* x (* y t)))))))))
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 (z <= -5.9e+41) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -3.1e-260) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 1.9e+15) {
tmp = (b * c) - (27.0 * (j * k));
} else if (z <= 5.5e+130) {
tmp = (b * c) + (x * (i * -4.0));
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
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 (z <= (-5.9d+41)) then
tmp = (18.0d0 * t) * (y * (x * z))
else if (z <= (-3.1d-260)) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (z <= 1.9d+15) then
tmp = (b * c) - (27.0d0 * (j * k))
else if (z <= 5.5d+130) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else
tmp = 18.0d0 * (z * (x * (y * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -5.9e+41) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -3.1e-260) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 1.9e+15) {
tmp = (b * c) - (27.0 * (j * k));
} else if (z <= 5.5e+130) {
tmp = (b * c) + (x * (i * -4.0));
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if z <= -5.9e+41: tmp = (18.0 * t) * (y * (x * z)) elif z <= -3.1e-260: tmp = (b * c) + (-4.0 * (t * a)) elif z <= 1.9e+15: tmp = (b * c) - (27.0 * (j * k)) elif z <= 5.5e+130: tmp = (b * c) + (x * (i * -4.0)) else: tmp = 18.0 * (z * (x * (y * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= -5.9e+41) tmp = Float64(Float64(18.0 * t) * Float64(y * Float64(x * z))); elseif (z <= -3.1e-260) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (z <= 1.9e+15) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); elseif (z <= 5.5e+130) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); else tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (z <= -5.9e+41) tmp = (18.0 * t) * (y * (x * z)); elseif (z <= -3.1e-260) tmp = (b * c) + (-4.0 * (t * a)); elseif (z <= 1.9e+15) tmp = (b * c) - (27.0 * (j * k)); elseif (z <= 5.5e+130) tmp = (b * c) + (x * (i * -4.0)); else tmp = 18.0 * (z * (x * (y * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, -5.9e+41], N[(N[(18.0 * t), $MachinePrecision] * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-260], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+15], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+130], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.9 \cdot 10^{+41}:\\
\;\;\;\;\left(18 \cdot t\right) \cdot \left(y \cdot \left(x \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-260}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+15}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+130}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if z < -5.9000000000000001e41Initial program 86.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified89.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.1%
Simplified51.1%
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.2%
Applied egg-rr54.2%
if -5.9000000000000001e41 < z < -3.09999999999999983e-260Initial program 82.1%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.1%
Simplified59.1%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.3%
Simplified41.3%
if -3.09999999999999983e-260 < z < 1.9e15Initial program 89.0%
Taylor expanded in b around inf
*-lowering-*.f6449.8%
Simplified49.8%
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.9%
Applied egg-rr49.9%
if 1.9e15 < z < 5.4999999999999997e130Initial program 89.2%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified94.5%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6453.3%
Simplified53.3%
if 5.4999999999999997e130 < z Initial program 83.0%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.1%
Simplified49.1%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.8%
Applied egg-rr50.8%
Final simplification49.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z -4.4e+40)
(* (* 18.0 t) (* y (* x z)))
(if (<= z -3.8e-259)
(+ (* b c) (* -4.0 (* t a)))
(if (<= z 1.7e+15)
(- (* b c) (* (* j 27.0) k))
(if (<= z 3.8e+130)
(+ (* b c) (* x (* i -4.0)))
(* 18.0 (* z (* x (* y t)))))))))
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 (z <= -4.4e+40) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -3.8e-259) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 1.7e+15) {
tmp = (b * c) - ((j * 27.0) * k);
} else if (z <= 3.8e+130) {
tmp = (b * c) + (x * (i * -4.0));
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
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 (z <= (-4.4d+40)) then
tmp = (18.0d0 * t) * (y * (x * z))
else if (z <= (-3.8d-259)) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (z <= 1.7d+15) then
tmp = (b * c) - ((j * 27.0d0) * k)
else if (z <= 3.8d+130) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else
tmp = 18.0d0 * (z * (x * (y * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -4.4e+40) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -3.8e-259) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 1.7e+15) {
tmp = (b * c) - ((j * 27.0) * k);
} else if (z <= 3.8e+130) {
tmp = (b * c) + (x * (i * -4.0));
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if z <= -4.4e+40: tmp = (18.0 * t) * (y * (x * z)) elif z <= -3.8e-259: tmp = (b * c) + (-4.0 * (t * a)) elif z <= 1.7e+15: tmp = (b * c) - ((j * 27.0) * k) elif z <= 3.8e+130: tmp = (b * c) + (x * (i * -4.0)) else: tmp = 18.0 * (z * (x * (y * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= -4.4e+40) tmp = Float64(Float64(18.0 * t) * Float64(y * Float64(x * z))); elseif (z <= -3.8e-259) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (z <= 1.7e+15) tmp = Float64(Float64(b * c) - Float64(Float64(j * 27.0) * k)); elseif (z <= 3.8e+130) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); else tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (z <= -4.4e+40) tmp = (18.0 * t) * (y * (x * z)); elseif (z <= -3.8e-259) tmp = (b * c) + (-4.0 * (t * a)); elseif (z <= 1.7e+15) tmp = (b * c) - ((j * 27.0) * k); elseif (z <= 3.8e+130) tmp = (b * c) + (x * (i * -4.0)); else tmp = 18.0 * (z * (x * (y * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, -4.4e+40], N[(N[(18.0 * t), $MachinePrecision] * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.8e-259], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+15], N[(N[(b * c), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+130], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{+40}:\\
\;\;\;\;\left(18 \cdot t\right) \cdot \left(y \cdot \left(x \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{-259}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+15}:\\
\;\;\;\;b \cdot c - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+130}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if z < -4.3999999999999998e40Initial program 86.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified89.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.1%
Simplified51.1%
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.2%
Applied egg-rr54.2%
if -4.3999999999999998e40 < z < -3.8e-259Initial program 82.1%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.1%
Simplified59.1%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.3%
Simplified41.3%
if -3.8e-259 < z < 1.7e15Initial program 89.0%
Taylor expanded in b around inf
*-lowering-*.f6449.8%
Simplified49.8%
if 1.7e15 < z < 3.8000000000000002e130Initial program 89.2%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified94.5%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6453.3%
Simplified53.3%
if 3.8000000000000002e130 < z Initial program 83.0%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.1%
Simplified49.1%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.8%
Applied egg-rr50.8%
Final simplification49.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= x -5.2e+113)
(* x (* 18.0 (* z (* y t))))
(if (<= x 1.7e+45)
(+ (* b c) (* -4.0 (* t a)))
(if (<= x 4e+164)
(* 18.0 (* x (* t (* y z))))
(if (<= x 1.6e+239) (* -4.0 (* x i)) (* (* 18.0 t) (* y (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -5.2e+113) {
tmp = x * (18.0 * (z * (y * t)));
} else if (x <= 1.7e+45) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (x <= 4e+164) {
tmp = 18.0 * (x * (t * (y * z)));
} else if (x <= 1.6e+239) {
tmp = -4.0 * (x * i);
} else {
tmp = (18.0 * t) * (y * (x * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (x <= (-5.2d+113)) then
tmp = x * (18.0d0 * (z * (y * t)))
else if (x <= 1.7d+45) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (x <= 4d+164) then
tmp = 18.0d0 * (x * (t * (y * z)))
else if (x <= 1.6d+239) then
tmp = (-4.0d0) * (x * i)
else
tmp = (18.0d0 * t) * (y * (x * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -5.2e+113) {
tmp = x * (18.0 * (z * (y * t)));
} else if (x <= 1.7e+45) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (x <= 4e+164) {
tmp = 18.0 * (x * (t * (y * z)));
} else if (x <= 1.6e+239) {
tmp = -4.0 * (x * i);
} else {
tmp = (18.0 * t) * (y * (x * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -5.2e+113: tmp = x * (18.0 * (z * (y * t))) elif x <= 1.7e+45: tmp = (b * c) + (-4.0 * (t * a)) elif x <= 4e+164: tmp = 18.0 * (x * (t * (y * z))) elif x <= 1.6e+239: tmp = -4.0 * (x * i) else: tmp = (18.0 * t) * (y * (x * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -5.2e+113) tmp = Float64(x * Float64(18.0 * Float64(z * Float64(y * t)))); elseif (x <= 1.7e+45) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (x <= 4e+164) tmp = Float64(18.0 * Float64(x * Float64(t * Float64(y * z)))); elseif (x <= 1.6e+239) tmp = Float64(-4.0 * Float64(x * i)); else tmp = Float64(Float64(18.0 * t) * Float64(y * Float64(x * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (x <= -5.2e+113) tmp = x * (18.0 * (z * (y * t))); elseif (x <= 1.7e+45) tmp = (b * c) + (-4.0 * (t * a)); elseif (x <= 4e+164) tmp = 18.0 * (x * (t * (y * z))); elseif (x <= 1.6e+239) tmp = -4.0 * (x * i); else tmp = (18.0 * t) * (y * (x * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -5.2e+113], N[(x * N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e+45], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+164], N[(18.0 * N[(x * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.6e+239], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], N[(N[(18.0 * t), $MachinePrecision] * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.2 \cdot 10^{+113}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+45}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+164}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+239}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(18 \cdot t\right) \cdot \left(y \cdot \left(x \cdot z\right)\right)\\
\end{array}
\end{array}
if x < -5.1999999999999998e113Initial program 67.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified70.1%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6460.6%
Simplified60.6%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.7%
Applied egg-rr60.7%
if -5.1999999999999998e113 < x < 1.7e45Initial program 91.9%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6469.6%
Simplified69.6%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.1%
Simplified47.1%
if 1.7e45 < x < 4e164Initial program 86.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.1%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.3%
Simplified64.3%
if 4e164 < x < 1.6000000000000001e239Initial program 87.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified87.5%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6480.2%
Simplified80.2%
if 1.6000000000000001e239 < x Initial program 73.2%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified79.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.0%
Simplified51.0%
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6463.3%
Applied egg-rr63.3%
Final simplification53.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (+ (* i -4.0) (* z (* y (* 18.0 t)))))))
(if (<= x -3e+65)
t_1
(if (<= x 7e-212)
(- (* a (* t -4.0)) (* (* j 27.0) k))
(if (<= x 4.9e+36) (- (* b c) (* j (* 27.0 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 * ((i * -4.0) + (z * (y * (18.0 * t))));
double tmp;
if (x <= -3e+65) {
tmp = t_1;
} else if (x <= 7e-212) {
tmp = (a * (t * -4.0)) - ((j * 27.0) * k);
} else if (x <= 4.9e+36) {
tmp = (b * c) - (j * (27.0 * 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 * ((i * (-4.0d0)) + (z * (y * (18.0d0 * t))))
if (x <= (-3d+65)) then
tmp = t_1
else if (x <= 7d-212) then
tmp = (a * (t * (-4.0d0))) - ((j * 27.0d0) * k)
else if (x <= 4.9d+36) then
tmp = (b * c) - (j * (27.0d0 * 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 * ((i * -4.0) + (z * (y * (18.0 * t))));
double tmp;
if (x <= -3e+65) {
tmp = t_1;
} else if (x <= 7e-212) {
tmp = (a * (t * -4.0)) - ((j * 27.0) * k);
} else if (x <= 4.9e+36) {
tmp = (b * c) - (j * (27.0 * k));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((i * -4.0) + (z * (y * (18.0 * t)))) tmp = 0 if x <= -3e+65: tmp = t_1 elif x <= 7e-212: tmp = (a * (t * -4.0)) - ((j * 27.0) * k) elif x <= 4.9e+36: tmp = (b * c) - (j * (27.0 * k)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(i * -4.0) + Float64(z * Float64(y * Float64(18.0 * t))))) tmp = 0.0 if (x <= -3e+65) tmp = t_1; elseif (x <= 7e-212) tmp = Float64(Float64(a * Float64(t * -4.0)) - Float64(Float64(j * 27.0) * k)); elseif (x <= 4.9e+36) tmp = Float64(Float64(b * c) - Float64(j * Float64(27.0 * 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 * ((i * -4.0) + (z * (y * (18.0 * t)))); tmp = 0.0; if (x <= -3e+65) tmp = t_1; elseif (x <= 7e-212) tmp = (a * (t * -4.0)) - ((j * 27.0) * k); elseif (x <= 4.9e+36) tmp = (b * c) - (j * (27.0 * 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[(N[(i * -4.0), $MachinePrecision] + N[(z * N[(y * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+65], t$95$1, If[LessEqual[x, 7e-212], N[(N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.9e+36], N[(N[(b * c), $MachinePrecision] - N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(i \cdot -4 + z \cdot \left(y \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-212}:\\
\;\;\;\;a \cdot \left(t \cdot -4\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{+36}:\\
\;\;\;\;b \cdot c - j \cdot \left(27 \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.0000000000000002e65 or 4.89999999999999981e36 < x Initial program 78.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified81.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
if -3.0000000000000002e65 < x < 6.9999999999999995e-212Initial program 89.8%
Taylor expanded in a around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6455.4%
Simplified55.4%
if 6.9999999999999995e-212 < x < 4.89999999999999981e36Initial program 95.6%
Taylor expanded in b around inf
*-lowering-*.f6462.8%
Simplified62.8%
associate-*l*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6462.8%
Applied egg-rr62.8%
Final simplification68.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* t (+ (* (* (* x 18.0) y) z) (* a -4.0))))))
(if (<= t -3.4e-29)
t_1
(if (<= t 1.4e-63)
(- (- (* b c) (* (* x 4.0) i)) (* (* j 27.0) k))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0)));
double tmp;
if (t <= -3.4e-29) {
tmp = t_1;
} else if (t <= 1.4e-63) {
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (t * ((((x * 18.0d0) * y) * z) + (a * (-4.0d0))))
if (t <= (-3.4d-29)) then
tmp = t_1
else if (t <= 1.4d-63) then
tmp = ((b * c) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0)));
double tmp;
if (t <= -3.4e-29) {
tmp = t_1;
} else if (t <= 1.4e-63) {
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0))) tmp = 0 if t <= -3.4e-29: tmp = t_1 elif t <= 1.4e-63: tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(Float64(x * 18.0) * y) * z) + Float64(a * -4.0)))) tmp = 0.0 if (t <= -3.4e-29) tmp = t_1; elseif (t <= 1.4e-63) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (t * ((((x * 18.0) * y) * z) + (a * -4.0))); tmp = 0.0; if (t <= -3.4e-29) tmp = t_1; elseif (t <= 1.4e-63) tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.4e-29], t$95$1, If[LessEqual[t, 1.4e-63], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z + a \cdot -4\right)\\
\mathbf{if}\;t \leq -3.4 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-63}:\\
\;\;\;\;\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.39999999999999972e-29 or 1.4000000000000001e-63 < t Initial program 85.6%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified90.6%
Taylor expanded in b around inf
*-lowering-*.f6477.7%
Simplified77.7%
if -3.39999999999999972e-29 < t < 1.4000000000000001e-63Initial program 86.5%
Taylor expanded in t around 0
*-lowering-*.f6484.3%
Simplified84.3%
Final simplification80.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* x (+ (* i -4.0) (* 18.0 (* t (* y z))))))))
(if (<= x -3.9e+65)
t_1
(if (<= x 1.85e+18)
(- (+ (* b c) (* a (* t -4.0))) (* (* j 27.0) k))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z)))));
double tmp;
if (x <= -3.9e+65) {
tmp = t_1;
} else if (x <= 1.85e+18) {
tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (x * ((i * (-4.0d0)) + (18.0d0 * (t * (y * z)))))
if (x <= (-3.9d+65)) then
tmp = t_1
else if (x <= 1.85d+18) then
tmp = ((b * c) + (a * (t * (-4.0d0)))) - ((j * 27.0d0) * k)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z)))));
double tmp;
if (x <= -3.9e+65) {
tmp = t_1;
} else if (x <= 1.85e+18) {
tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z))))) tmp = 0 if x <= -3.9e+65: tmp = t_1 elif x <= 1.85e+18: tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * k) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(x * Float64(Float64(i * -4.0) + Float64(18.0 * Float64(t * Float64(y * z)))))) tmp = 0.0 if (x <= -3.9e+65) tmp = t_1; elseif (x <= 1.85e+18) tmp = Float64(Float64(Float64(b * c) + Float64(a * Float64(t * -4.0))) - Float64(Float64(j * 27.0) * k)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (x * ((i * -4.0) + (18.0 * (t * (y * z))))); tmp = 0.0; if (x <= -3.9e+65) tmp = t_1; elseif (x <= 1.85e+18) tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * k); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(i * -4.0), $MachinePrecision] + N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+65], t$95$1, If[LessEqual[x, 1.85e+18], N[(N[(N[(b * c), $MachinePrecision] + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + x \cdot \left(i \cdot -4 + 18 \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+18}:\\
\;\;\;\;\left(b \cdot c + a \cdot \left(t \cdot -4\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.8999999999999998e65 or 1.85e18 < x Initial program 79.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified91.2%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6488.5%
Simplified88.5%
if -3.8999999999999998e65 < x < 1.85e18Initial program 91.5%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification80.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z -6.5e+47)
(* (* 18.0 t) (* y (* x z)))
(if (<= z -1.2e-240)
(+ (* b c) (* -4.0 (* t a)))
(if (<= z 3.5e+117)
(- (* -4.0 (* x i)) (* (* j 27.0) k))
(* 18.0 (* z (* x (* y t))))))))
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 (z <= -6.5e+47) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -1.2e-240) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 3.5e+117) {
tmp = (-4.0 * (x * i)) - ((j * 27.0) * k);
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
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 (z <= (-6.5d+47)) then
tmp = (18.0d0 * t) * (y * (x * z))
else if (z <= (-1.2d-240)) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (z <= 3.5d+117) then
tmp = ((-4.0d0) * (x * i)) - ((j * 27.0d0) * k)
else
tmp = 18.0d0 * (z * (x * (y * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -6.5e+47) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -1.2e-240) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 3.5e+117) {
tmp = (-4.0 * (x * i)) - ((j * 27.0) * k);
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if z <= -6.5e+47: tmp = (18.0 * t) * (y * (x * z)) elif z <= -1.2e-240: tmp = (b * c) + (-4.0 * (t * a)) elif z <= 3.5e+117: tmp = (-4.0 * (x * i)) - ((j * 27.0) * k) else: tmp = 18.0 * (z * (x * (y * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= -6.5e+47) tmp = Float64(Float64(18.0 * t) * Float64(y * Float64(x * z))); elseif (z <= -1.2e-240) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (z <= 3.5e+117) tmp = Float64(Float64(-4.0 * Float64(x * i)) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (z <= -6.5e+47) tmp = (18.0 * t) * (y * (x * z)); elseif (z <= -1.2e-240) tmp = (b * c) + (-4.0 * (t * a)); elseif (z <= 3.5e+117) tmp = (-4.0 * (x * i)) - ((j * 27.0) * k); else tmp = 18.0 * (z * (x * (y * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, -6.5e+47], N[(N[(18.0 * t), $MachinePrecision] * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.2e-240], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+117], N[(N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+47}:\\
\;\;\;\;\left(18 \cdot t\right) \cdot \left(y \cdot \left(x \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-240}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+117}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if z < -6.49999999999999988e47Initial program 86.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified89.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.1%
Simplified51.1%
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.2%
Applied egg-rr54.2%
if -6.49999999999999988e47 < z < -1.2e-240Initial program 83.1%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.7%
Simplified58.7%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.7%
Simplified41.7%
if -1.2e-240 < z < 3.49999999999999983e117Initial program 88.0%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6454.9%
Simplified54.9%
if 3.49999999999999983e117 < z Initial program 84.1%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified92.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.9%
Simplified47.9%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.6%
Applied egg-rr49.6%
Final simplification51.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (+ (* i -4.0) (* z (* y (* 18.0 t)))))))
(if (<= x -3.4e+65)
t_1
(if (<= x 1.35e+37)
(- (+ (* b c) (* a (* t -4.0))) (* (* j 27.0) 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 * ((i * -4.0) + (z * (y * (18.0 * t))));
double tmp;
if (x <= -3.4e+65) {
tmp = t_1;
} else if (x <= 1.35e+37) {
tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * 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 * ((i * (-4.0d0)) + (z * (y * (18.0d0 * t))))
if (x <= (-3.4d+65)) then
tmp = t_1
else if (x <= 1.35d+37) then
tmp = ((b * c) + (a * (t * (-4.0d0)))) - ((j * 27.0d0) * 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 * ((i * -4.0) + (z * (y * (18.0 * t))));
double tmp;
if (x <= -3.4e+65) {
tmp = t_1;
} else if (x <= 1.35e+37) {
tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((i * -4.0) + (z * (y * (18.0 * t)))) tmp = 0 if x <= -3.4e+65: tmp = t_1 elif x <= 1.35e+37: tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * k) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(i * -4.0) + Float64(z * Float64(y * Float64(18.0 * t))))) tmp = 0.0 if (x <= -3.4e+65) tmp = t_1; elseif (x <= 1.35e+37) tmp = Float64(Float64(Float64(b * c) + Float64(a * Float64(t * -4.0))) - Float64(Float64(j * 27.0) * 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 * ((i * -4.0) + (z * (y * (18.0 * t)))); tmp = 0.0; if (x <= -3.4e+65) tmp = t_1; elseif (x <= 1.35e+37) tmp = ((b * c) + (a * (t * -4.0))) - ((j * 27.0) * 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[(N[(i * -4.0), $MachinePrecision] + N[(z * N[(y * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e+65], t$95$1, If[LessEqual[x, 1.35e+37], N[(N[(N[(b * c), $MachinePrecision] + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(i \cdot -4 + z \cdot \left(y \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+37}:\\
\;\;\;\;\left(b \cdot c + a \cdot \left(t \cdot -4\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.3999999999999999e65 or 1.34999999999999993e37 < x Initial program 78.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified81.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
if -3.3999999999999999e65 < x < 1.34999999999999993e37Initial program 91.7%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.1%
Simplified73.1%
Final simplification77.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z -1.2e+48)
(* (* 18.0 t) (* y (* x z)))
(if (<= z -1.8e-131)
(+ (* b c) (* -4.0 (* t a)))
(if (<= z 3.8e+130)
(+ (* b c) (* x (* i -4.0)))
(* 18.0 (* z (* x (* y t))))))))
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 (z <= -1.2e+48) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -1.8e-131) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 3.8e+130) {
tmp = (b * c) + (x * (i * -4.0));
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
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 (z <= (-1.2d+48)) then
tmp = (18.0d0 * t) * (y * (x * z))
else if (z <= (-1.8d-131)) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (z <= 3.8d+130) then
tmp = (b * c) + (x * (i * (-4.0d0)))
else
tmp = 18.0d0 * (z * (x * (y * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -1.2e+48) {
tmp = (18.0 * t) * (y * (x * z));
} else if (z <= -1.8e-131) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (z <= 3.8e+130) {
tmp = (b * c) + (x * (i * -4.0));
} else {
tmp = 18.0 * (z * (x * (y * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if z <= -1.2e+48: tmp = (18.0 * t) * (y * (x * z)) elif z <= -1.8e-131: tmp = (b * c) + (-4.0 * (t * a)) elif z <= 3.8e+130: tmp = (b * c) + (x * (i * -4.0)) else: tmp = 18.0 * (z * (x * (y * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= -1.2e+48) tmp = Float64(Float64(18.0 * t) * Float64(y * Float64(x * z))); elseif (z <= -1.8e-131) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (z <= 3.8e+130) tmp = Float64(Float64(b * c) + Float64(x * Float64(i * -4.0))); else tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (z <= -1.2e+48) tmp = (18.0 * t) * (y * (x * z)); elseif (z <= -1.8e-131) tmp = (b * c) + (-4.0 * (t * a)); elseif (z <= 3.8e+130) tmp = (b * c) + (x * (i * -4.0)); else tmp = 18.0 * (z * (x * (y * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, -1.2e+48], N[(N[(18.0 * t), $MachinePrecision] * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.8e-131], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+130], N[(N[(b * c), $MachinePrecision] + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+48}:\\
\;\;\;\;\left(18 \cdot t\right) \cdot \left(y \cdot \left(x \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-131}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+130}:\\
\;\;\;\;b \cdot c + x \cdot \left(i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if z < -1.2000000000000001e48Initial program 86.5%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified89.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.1%
Simplified51.1%
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.2%
Applied egg-rr54.2%
if -1.2000000000000001e48 < z < -1.8e-131Initial program 80.3%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6460.8%
Simplified60.8%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6445.0%
Simplified45.0%
if -1.8e-131 < z < 3.8000000000000002e130Initial program 88.0%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified81.1%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.5%
Simplified59.5%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6449.7%
Simplified49.7%
if 3.8000000000000002e130 < z Initial program 83.0%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.1%
Simplified49.1%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.8%
Applied egg-rr50.8%
Final simplification50.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* x i))))
(if (<= i -1.52e+141)
t_1
(if (<= i -1.25e-281)
(* a (* t -4.0))
(if (<= i 0.00135) (* j (* k -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 = -4.0 * (x * i);
double tmp;
if (i <= -1.52e+141) {
tmp = t_1;
} else if (i <= -1.25e-281) {
tmp = a * (t * -4.0);
} else if (i <= 0.00135) {
tmp = j * (k * -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 = (-4.0d0) * (x * i)
if (i <= (-1.52d+141)) then
tmp = t_1
else if (i <= (-1.25d-281)) then
tmp = a * (t * (-4.0d0))
else if (i <= 0.00135d0) then
tmp = j * (k * (-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 = -4.0 * (x * i);
double tmp;
if (i <= -1.52e+141) {
tmp = t_1;
} else if (i <= -1.25e-281) {
tmp = a * (t * -4.0);
} else if (i <= 0.00135) {
tmp = j * (k * -27.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (x * i) tmp = 0 if i <= -1.52e+141: tmp = t_1 elif i <= -1.25e-281: tmp = a * (t * -4.0) elif i <= 0.00135: tmp = j * (k * -27.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(x * i)) tmp = 0.0 if (i <= -1.52e+141) tmp = t_1; elseif (i <= -1.25e-281) tmp = Float64(a * Float64(t * -4.0)); elseif (i <= 0.00135) tmp = Float64(j * Float64(k * -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 = -4.0 * (x * i); tmp = 0.0; if (i <= -1.52e+141) tmp = t_1; elseif (i <= -1.25e-281) tmp = a * (t * -4.0); elseif (i <= 0.00135) tmp = j * (k * -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[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.52e+141], t$95$1, If[LessEqual[i, -1.25e-281], N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 0.00135], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;i \leq -1.52 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.25 \cdot 10^{-281}:\\
\;\;\;\;a \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;i \leq 0.00135:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.52e141 or 0.0013500000000000001 < i Initial program 83.2%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified85.9%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6446.6%
Simplified46.6%
if -1.52e141 < i < -1.2499999999999999e-281Initial program 82.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified87.7%
Taylor expanded in a around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.9%
Simplified30.9%
if -1.2499999999999999e-281 < i < 0.0013500000000000001Initial program 95.4%
Taylor expanded in a around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified90.1%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.7%
Simplified85.7%
Taylor expanded in j around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.3%
Simplified39.3%
Final simplification39.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* x i))))
(if (<= i -1e+141)
t_1
(if (<= i -2.4e-167) (* a (* t -4.0)) (if (<= i 8.5e+70) (* b c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (x * i);
double tmp;
if (i <= -1e+141) {
tmp = t_1;
} else if (i <= -2.4e-167) {
tmp = a * (t * -4.0);
} else if (i <= 8.5e+70) {
tmp = b * c;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (x * i)
if (i <= (-1d+141)) then
tmp = t_1
else if (i <= (-2.4d-167)) then
tmp = a * (t * (-4.0d0))
else if (i <= 8.5d+70) then
tmp = b * c
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (x * i);
double tmp;
if (i <= -1e+141) {
tmp = t_1;
} else if (i <= -2.4e-167) {
tmp = a * (t * -4.0);
} else if (i <= 8.5e+70) {
tmp = b * c;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (x * i) tmp = 0 if i <= -1e+141: tmp = t_1 elif i <= -2.4e-167: tmp = a * (t * -4.0) elif i <= 8.5e+70: tmp = b * c else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(x * i)) tmp = 0.0 if (i <= -1e+141) tmp = t_1; elseif (i <= -2.4e-167) tmp = Float64(a * Float64(t * -4.0)); elseif (i <= 8.5e+70) tmp = Float64(b * c); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (x * i); tmp = 0.0; if (i <= -1e+141) tmp = t_1; elseif (i <= -2.4e-167) tmp = a * (t * -4.0); elseif (i <= 8.5e+70) tmp = b * c; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1e+141], t$95$1, If[LessEqual[i, -2.4e-167], N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e+70], N[(b * c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;i \leq -1 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.4 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+70}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.00000000000000002e141 or 8.4999999999999996e70 < i Initial program 79.9%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified83.1%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6450.3%
Simplified50.3%
if -1.00000000000000002e141 < i < -2.39999999999999993e-167Initial program 84.4%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified91.3%
Taylor expanded in a around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6434.8%
Simplified34.8%
if -2.39999999999999993e-167 < i < 8.4999999999999996e70Initial program 92.4%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified92.4%
Taylor expanded in b around inf
*-lowering-*.f6427.7%
Simplified27.7%
Final simplification37.6%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= (* b c) -4.5e+109) (* b c) (if (<= (* b c) 1.45e+138) (* -4.0 (* x i)) (* b c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -4.5e+109) {
tmp = b * c;
} else if ((b * c) <= 1.45e+138) {
tmp = -4.0 * (x * i);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-4.5d+109)) then
tmp = b * c
else if ((b * c) <= 1.45d+138) then
tmp = (-4.0d0) * (x * i)
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -4.5e+109) {
tmp = b * c;
} else if ((b * c) <= 1.45e+138) {
tmp = -4.0 * (x * i);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -4.5e+109: tmp = b * c elif (b * c) <= 1.45e+138: tmp = -4.0 * (x * i) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -4.5e+109) tmp = Float64(b * c); elseif (Float64(b * c) <= 1.45e+138) tmp = Float64(-4.0 * Float64(x * i)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((b * c) <= -4.5e+109) tmp = b * c; elseif ((b * c) <= 1.45e+138) tmp = -4.0 * (x * i); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -4.5e+109], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.45e+138], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -4.5 \cdot 10^{+109}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq 1.45 \cdot 10^{+138}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -4.4999999999999996e109 or 1.45000000000000005e138 < (*.f64 b c) Initial program 86.3%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified87.5%
Taylor expanded in b around inf
*-lowering-*.f6448.5%
Simplified48.5%
if -4.4999999999999996e109 < (*.f64 b c) < 1.45000000000000005e138Initial program 85.8%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified89.4%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-lowering-*.f6426.2%
Simplified26.2%
Final simplification33.8%
(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 86.0%
associate--l+N/A
associate--l+N/A
+-lowering-+.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-evalN/A
Simplified88.8%
Taylor expanded in b around inf
*-lowering-*.f6419.9%
Simplified19.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 2024161
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8105407698770699/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))) (if (< t 8284013971902611/50000000000000) (+ (- (* (* 18 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4)) (- (* c b) (* 27 (* k j)))) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))