
(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 27 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) t) (* t (* a 4.0))) (* b c))
(* (* x 4.0) i))
(* (* j 27.0) k))))
(if (<= t_1 INFINITY) t_1 (* x (+ (* 18.0 (* z (* y t))) (* i -4.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * 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]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \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\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < +inf.0Initial program 94.9%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) Initial program 0.0%
associate--l-0.0%
associate-+l-0.0%
associate--l-0.0%
*-commutative0.0%
associate-*r*0.0%
associate-*l*3.2%
associate-*r*6.5%
*-commutative6.5%
associate-*l*3.2%
associate--l-3.2%
Simplified19.6%
Taylor expanded in a around 0 26.0%
+-commutative26.0%
*-commutative26.0%
associate-*r*29.0%
associate-*l*29.0%
associate-*r*29.0%
*-commutative29.0%
associate-*r*26.0%
fma-def26.0%
*-commutative26.0%
associate-*l*32.3%
*-commutative32.3%
associate-*l*32.3%
*-commutative32.3%
associate-*r*32.3%
*-commutative32.3%
*-commutative32.3%
associate-*r*32.3%
associate-*l*32.2%
*-commutative32.2%
Simplified32.2%
Taylor expanded in x around inf 64.9%
cancel-sign-sub-inv64.9%
metadata-eval64.9%
*-commutative64.9%
associate-*r*64.9%
Simplified64.9%
Final simplification91.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* t a) (* x i))))
(t_2 (+ (* b c) t_1))
(t_3 (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))))
(t_4 (+ t_1 (* -27.0 (* j k)))))
(if (<= (* b c) -5.7e+135)
t_2
(if (<= (* b c) -7.5e-98)
t_4
(if (<= (* b c) -4.8e-148)
t_3
(if (<= (* b c) -2.1e-185)
t_2
(if (<= (* b c) -3.6e-286)
t_3
(if (<= (* b c) 9.5e+203) t_4 (* b c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = (b * c) + t_1;
double t_3 = t * ((18.0 * (x * (y * z))) + (a * -4.0));
double t_4 = t_1 + (-27.0 * (j * k));
double tmp;
if ((b * c) <= -5.7e+135) {
tmp = t_2;
} else if ((b * c) <= -7.5e-98) {
tmp = t_4;
} else if ((b * c) <= -4.8e-148) {
tmp = t_3;
} else if ((b * c) <= -2.1e-185) {
tmp = t_2;
} else if ((b * c) <= -3.6e-286) {
tmp = t_3;
} else if ((b * c) <= 9.5e+203) {
tmp = t_4;
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (-4.0d0) * ((t * a) + (x * i))
t_2 = (b * c) + t_1
t_3 = t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))
t_4 = t_1 + ((-27.0d0) * (j * k))
if ((b * c) <= (-5.7d+135)) then
tmp = t_2
else if ((b * c) <= (-7.5d-98)) then
tmp = t_4
else if ((b * c) <= (-4.8d-148)) then
tmp = t_3
else if ((b * c) <= (-2.1d-185)) then
tmp = t_2
else if ((b * c) <= (-3.6d-286)) then
tmp = t_3
else if ((b * c) <= 9.5d+203) then
tmp = t_4
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = (b * c) + t_1;
double t_3 = t * ((18.0 * (x * (y * z))) + (a * -4.0));
double t_4 = t_1 + (-27.0 * (j * k));
double tmp;
if ((b * c) <= -5.7e+135) {
tmp = t_2;
} else if ((b * c) <= -7.5e-98) {
tmp = t_4;
} else if ((b * c) <= -4.8e-148) {
tmp = t_3;
} else if ((b * c) <= -2.1e-185) {
tmp = t_2;
} else if ((b * c) <= -3.6e-286) {
tmp = t_3;
} else if ((b * c) <= 9.5e+203) {
tmp = t_4;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((t * a) + (x * i)) t_2 = (b * c) + t_1 t_3 = t * ((18.0 * (x * (y * z))) + (a * -4.0)) t_4 = t_1 + (-27.0 * (j * k)) tmp = 0 if (b * c) <= -5.7e+135: tmp = t_2 elif (b * c) <= -7.5e-98: tmp = t_4 elif (b * c) <= -4.8e-148: tmp = t_3 elif (b * c) <= -2.1e-185: tmp = t_2 elif (b * c) <= -3.6e-286: tmp = t_3 elif (b * c) <= 9.5e+203: tmp = t_4 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) t_2 = Float64(Float64(b * c) + t_1) t_3 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))) t_4 = Float64(t_1 + Float64(-27.0 * Float64(j * k))) tmp = 0.0 if (Float64(b * c) <= -5.7e+135) tmp = t_2; elseif (Float64(b * c) <= -7.5e-98) tmp = t_4; elseif (Float64(b * c) <= -4.8e-148) tmp = t_3; elseif (Float64(b * c) <= -2.1e-185) tmp = t_2; elseif (Float64(b * c) <= -3.6e-286) tmp = t_3; elseif (Float64(b * c) <= 9.5e+203) tmp = t_4; else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * ((t * a) + (x * i)); t_2 = (b * c) + t_1; t_3 = t * ((18.0 * (x * (y * z))) + (a * -4.0)); t_4 = t_1 + (-27.0 * (j * k)); tmp = 0.0; if ((b * c) <= -5.7e+135) tmp = t_2; elseif ((b * c) <= -7.5e-98) tmp = t_4; elseif ((b * c) <= -4.8e-148) tmp = t_3; elseif ((b * c) <= -2.1e-185) tmp = t_2; elseif ((b * c) <= -3.6e-286) tmp = t_3; elseif ((b * c) <= 9.5e+203) tmp = t_4; else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$1 + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -5.7e+135], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -7.5e-98], t$95$4, If[LessEqual[N[(b * c), $MachinePrecision], -4.8e-148], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -2.1e-185], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -3.6e-286], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], 9.5e+203], t$95$4, N[(b * c), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a + x \cdot i\right)\\
t_2 := b \cdot c + t_1\\
t_3 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
t_4 := t_1 + -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;b \cdot c \leq -5.7 \cdot 10^{+135}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -7.5 \cdot 10^{-98}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \cdot c \leq -4.8 \cdot 10^{-148}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \cdot c \leq -2.1 \cdot 10^{-185}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -3.6 \cdot 10^{-286}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \cdot c \leq 9.5 \cdot 10^{+203}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -5.7000000000000002e135 or -4.8000000000000002e-148 < (*.f64 b c) < -2.1e-185Initial program 87.8%
Simplified90.2%
Taylor expanded in y around 0 90.2%
associate-+r+90.2%
+-commutative90.2%
distribute-lft-out90.2%
metadata-eval90.2%
cancel-sign-sub-inv90.2%
distribute-lft-out90.2%
fma-neg92.7%
distribute-lft-out92.7%
distribute-lft-neg-in92.7%
metadata-eval92.7%
+-commutative92.7%
*-commutative92.7%
Simplified92.7%
Taylor expanded in j around 0 85.6%
if -5.7000000000000002e135 < (*.f64 b c) < -7.5000000000000006e-98 or -3.60000000000000013e-286 < (*.f64 b c) < 9.4999999999999995e203Initial program 85.0%
Simplified84.4%
Taylor expanded in y around 0 76.9%
associate-+r+76.9%
+-commutative76.9%
distribute-lft-out76.9%
metadata-eval76.9%
cancel-sign-sub-inv76.9%
distribute-lft-out76.9%
fma-neg77.0%
distribute-lft-out77.0%
distribute-lft-neg-in77.0%
metadata-eval77.0%
+-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in b around 0 70.2%
if -7.5000000000000006e-98 < (*.f64 b c) < -4.8000000000000002e-148 or -2.1e-185 < (*.f64 b c) < -3.60000000000000013e-286Initial program 84.3%
Simplified94.8%
Taylor expanded in b around 0 94.8%
Simplified94.9%
Taylor expanded in t around inf 84.4%
if 9.4999999999999995e203 < (*.f64 b c) Initial program 60.2%
Simplified75.2%
Taylor expanded in y around 0 64.0%
associate-+r+64.0%
+-commutative64.0%
distribute-lft-out64.0%
metadata-eval64.0%
cancel-sign-sub-inv64.0%
distribute-lft-out64.0%
fma-neg74.0%
distribute-lft-out74.0%
distribute-lft-neg-in74.0%
metadata-eval74.0%
+-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in b around inf 78.7%
Final simplification74.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* t a) (* x i))))
(t_2 (+ (* b c) t_1))
(t_3 (+ t_1 (* -27.0 (* j k)))))
(if (<= (* b c) -3.2e+137)
t_2
(if (<= (* b c) -6.6e-97)
t_3
(if (<= (* b c) -9.6e-148)
(* t (+ (* 18.0 (* x (* y z))) (* a -4.0)))
(if (<= (* b c) -6.2e-185)
t_2
(if (<= (* b c) -1.32e-307)
(+ (* j (* k -27.0)) (* 18.0 (* t (* z (* x y)))))
(if (<= (* b c) 2.05e+201) t_3 (* b c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = (b * c) + t_1;
double t_3 = t_1 + (-27.0 * (j * k));
double tmp;
if ((b * c) <= -3.2e+137) {
tmp = t_2;
} else if ((b * c) <= -6.6e-97) {
tmp = t_3;
} else if ((b * c) <= -9.6e-148) {
tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0));
} else if ((b * c) <= -6.2e-185) {
tmp = t_2;
} else if ((b * c) <= -1.32e-307) {
tmp = (j * (k * -27.0)) + (18.0 * (t * (z * (x * y))));
} else if ((b * c) <= 2.05e+201) {
tmp = t_3;
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (-4.0d0) * ((t * a) + (x * i))
t_2 = (b * c) + t_1
t_3 = t_1 + ((-27.0d0) * (j * k))
if ((b * c) <= (-3.2d+137)) then
tmp = t_2
else if ((b * c) <= (-6.6d-97)) then
tmp = t_3
else if ((b * c) <= (-9.6d-148)) then
tmp = t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))
else if ((b * c) <= (-6.2d-185)) then
tmp = t_2
else if ((b * c) <= (-1.32d-307)) then
tmp = (j * (k * (-27.0d0))) + (18.0d0 * (t * (z * (x * y))))
else if ((b * c) <= 2.05d+201) then
tmp = t_3
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = (b * c) + t_1;
double t_3 = t_1 + (-27.0 * (j * k));
double tmp;
if ((b * c) <= -3.2e+137) {
tmp = t_2;
} else if ((b * c) <= -6.6e-97) {
tmp = t_3;
} else if ((b * c) <= -9.6e-148) {
tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0));
} else if ((b * c) <= -6.2e-185) {
tmp = t_2;
} else if ((b * c) <= -1.32e-307) {
tmp = (j * (k * -27.0)) + (18.0 * (t * (z * (x * y))));
} else if ((b * c) <= 2.05e+201) {
tmp = t_3;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((t * a) + (x * i)) t_2 = (b * c) + t_1 t_3 = t_1 + (-27.0 * (j * k)) tmp = 0 if (b * c) <= -3.2e+137: tmp = t_2 elif (b * c) <= -6.6e-97: tmp = t_3 elif (b * c) <= -9.6e-148: tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0)) elif (b * c) <= -6.2e-185: tmp = t_2 elif (b * c) <= -1.32e-307: tmp = (j * (k * -27.0)) + (18.0 * (t * (z * (x * y)))) elif (b * c) <= 2.05e+201: tmp = t_3 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) t_2 = Float64(Float64(b * c) + t_1) t_3 = Float64(t_1 + Float64(-27.0 * Float64(j * k))) tmp = 0.0 if (Float64(b * c) <= -3.2e+137) tmp = t_2; elseif (Float64(b * c) <= -6.6e-97) tmp = t_3; elseif (Float64(b * c) <= -9.6e-148) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))); elseif (Float64(b * c) <= -6.2e-185) tmp = t_2; elseif (Float64(b * c) <= -1.32e-307) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(18.0 * Float64(t * Float64(z * Float64(x * y))))); elseif (Float64(b * c) <= 2.05e+201) tmp = t_3; else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * ((t * a) + (x * i)); t_2 = (b * c) + t_1; t_3 = t_1 + (-27.0 * (j * k)); tmp = 0.0; if ((b * c) <= -3.2e+137) tmp = t_2; elseif ((b * c) <= -6.6e-97) tmp = t_3; elseif ((b * c) <= -9.6e-148) tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0)); elseif ((b * c) <= -6.2e-185) tmp = t_2; elseif ((b * c) <= -1.32e-307) tmp = (j * (k * -27.0)) + (18.0 * (t * (z * (x * y)))); elseif ((b * c) <= 2.05e+201) tmp = t_3; else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -3.2e+137], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -6.6e-97], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -9.6e-148], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -6.2e-185], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -1.32e-307], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.05e+201], t$95$3, N[(b * c), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a + x \cdot i\right)\\
t_2 := b \cdot c + t_1\\
t_3 := t_1 + -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;b \cdot c \leq -3.2 \cdot 10^{+137}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -6.6 \cdot 10^{-97}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \cdot c \leq -9.6 \cdot 10^{-148}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq -6.2 \cdot 10^{-185}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -1.32 \cdot 10^{-307}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + 18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 2.05 \cdot 10^{+201}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -3.20000000000000019e137 or -9.6000000000000005e-148 < (*.f64 b c) < -6.1999999999999994e-185Initial program 87.8%
Simplified90.2%
Taylor expanded in y around 0 90.2%
associate-+r+90.2%
+-commutative90.2%
distribute-lft-out90.2%
metadata-eval90.2%
cancel-sign-sub-inv90.2%
distribute-lft-out90.2%
fma-neg92.7%
distribute-lft-out92.7%
distribute-lft-neg-in92.7%
metadata-eval92.7%
+-commutative92.7%
*-commutative92.7%
Simplified92.7%
Taylor expanded in j around 0 85.6%
if -3.20000000000000019e137 < (*.f64 b c) < -6.6000000000000002e-97 or -1.3199999999999999e-307 < (*.f64 b c) < 2.0500000000000001e201Initial program 84.6%
Simplified84.6%
Taylor expanded in y around 0 77.6%
associate-+r+77.6%
+-commutative77.6%
distribute-lft-out77.6%
metadata-eval77.6%
cancel-sign-sub-inv77.6%
distribute-lft-out77.6%
fma-neg77.6%
distribute-lft-out77.6%
distribute-lft-neg-in77.6%
metadata-eval77.6%
+-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in b around 0 70.6%
if -6.6000000000000002e-97 < (*.f64 b c) < -9.6000000000000005e-148Initial program 75.4%
Simplified87.9%
Taylor expanded in b around 0 87.9%
Simplified87.9%
Taylor expanded in t around inf 87.9%
if -6.1999999999999994e-185 < (*.f64 b c) < -1.3199999999999999e-307Initial program 93.2%
Simplified93.4%
Taylor expanded in y around inf 68.5%
*-commutative68.5%
*-commutative68.5%
associate-*l*62.1%
*-commutative62.1%
associate-*r*62.1%
associate-*r*62.1%
associate-*l*62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in x around 0 68.5%
associate-*r*74.9%
Simplified74.9%
if 2.0500000000000001e201 < (*.f64 b c) Initial program 60.2%
Simplified75.2%
Taylor expanded in y around 0 64.0%
associate-+r+64.0%
+-commutative64.0%
distribute-lft-out64.0%
metadata-eval64.0%
cancel-sign-sub-inv64.0%
distribute-lft-out64.0%
fma-neg74.0%
distribute-lft-out74.0%
distribute-lft-neg-in74.0%
metadata-eval74.0%
+-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in b around inf 78.7%
Final simplification74.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (+ t_1 (* -4.0 (* t a)))))
(if (<= (* b c) -4.9e+110)
(- (* b c) (* 4.0 (* x i)))
(if (<= (* b c) -1.9e-114)
t_2
(if (<= (* b c) -4.2e-237)
(* -4.0 (+ (* t a) (* x i)))
(if (<= (* b c) 1.15e-172)
t_2
(if (<= (* b c) 9.8e-117)
(* 18.0 (* z (* t (* x y))))
(if (<= (* b c) 3.7e-20) t_2 (+ (* 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 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double tmp;
if ((b * c) <= -4.9e+110) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((b * c) <= -1.9e-114) {
tmp = t_2;
} else if ((b * c) <= -4.2e-237) {
tmp = -4.0 * ((t * a) + (x * i));
} else if ((b * c) <= 1.15e-172) {
tmp = t_2;
} else if ((b * c) <= 9.8e-117) {
tmp = 18.0 * (z * (t * (x * y)));
} else if ((b * c) <= 3.7e-20) {
tmp = t_2;
} else {
tmp = (b * c) + 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 = j * (k * (-27.0d0))
t_2 = t_1 + ((-4.0d0) * (t * a))
if ((b * c) <= (-4.9d+110)) then
tmp = (b * c) - (4.0d0 * (x * i))
else if ((b * c) <= (-1.9d-114)) then
tmp = t_2
else if ((b * c) <= (-4.2d-237)) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if ((b * c) <= 1.15d-172) then
tmp = t_2
else if ((b * c) <= 9.8d-117) then
tmp = 18.0d0 * (z * (t * (x * y)))
else if ((b * c) <= 3.7d-20) then
tmp = t_2
else
tmp = (b * c) + 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 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double tmp;
if ((b * c) <= -4.9e+110) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((b * c) <= -1.9e-114) {
tmp = t_2;
} else if ((b * c) <= -4.2e-237) {
tmp = -4.0 * ((t * a) + (x * i));
} else if ((b * c) <= 1.15e-172) {
tmp = t_2;
} else if ((b * c) <= 9.8e-117) {
tmp = 18.0 * (z * (t * (x * y)));
} else if ((b * c) <= 3.7e-20) {
tmp = t_2;
} else {
tmp = (b * c) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (-4.0 * (t * a)) tmp = 0 if (b * c) <= -4.9e+110: tmp = (b * c) - (4.0 * (x * i)) elif (b * c) <= -1.9e-114: tmp = t_2 elif (b * c) <= -4.2e-237: tmp = -4.0 * ((t * a) + (x * i)) elif (b * c) <= 1.15e-172: tmp = t_2 elif (b * c) <= 9.8e-117: tmp = 18.0 * (z * (t * (x * y))) elif (b * c) <= 3.7e-20: tmp = t_2 else: tmp = (b * c) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(-4.0 * Float64(t * a))) tmp = 0.0 if (Float64(b * c) <= -4.9e+110) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (Float64(b * c) <= -1.9e-114) tmp = t_2; elseif (Float64(b * c) <= -4.2e-237) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (Float64(b * c) <= 1.15e-172) tmp = t_2; elseif (Float64(b * c) <= 9.8e-117) tmp = Float64(18.0 * Float64(z * Float64(t * Float64(x * y)))); elseif (Float64(b * c) <= 3.7e-20) tmp = t_2; else tmp = Float64(Float64(b * c) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = t_1 + (-4.0 * (t * a)); tmp = 0.0; if ((b * c) <= -4.9e+110) tmp = (b * c) - (4.0 * (x * i)); elseif ((b * c) <= -1.9e-114) tmp = t_2; elseif ((b * c) <= -4.2e-237) tmp = -4.0 * ((t * a) + (x * i)); elseif ((b * c) <= 1.15e-172) tmp = t_2; elseif ((b * c) <= 9.8e-117) tmp = 18.0 * (z * (t * (x * y))); elseif ((b * c) <= 3.7e-20) tmp = t_2; else tmp = (b * c) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -4.9e+110], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.9e-114], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -4.2e-237], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.15e-172], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 9.8e-117], N[(18.0 * N[(z * N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 3.7e-20], t$95$2, N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t_1 + -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;b \cdot c \leq -4.9 \cdot 10^{+110}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq -1.9 \cdot 10^{-114}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -4.2 \cdot 10^{-237}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq 1.15 \cdot 10^{-172}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq 9.8 \cdot 10^{-117}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(t \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 3.7 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t_1\\
\end{array}
\end{array}
if (*.f64 b c) < -4.90000000000000002e110Initial program 88.9%
Taylor expanded in y around 0 88.9%
Taylor expanded in a around 0 83.6%
associate-*r*83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in j around 0 75.0%
if -4.90000000000000002e110 < (*.f64 b c) < -1.8999999999999999e-114 or -4.2000000000000002e-237 < (*.f64 b c) < 1.14999999999999998e-172 or 9.7999999999999995e-117 < (*.f64 b c) < 3.7000000000000001e-20Initial program 84.4%
Simplified85.9%
Taylor expanded in a around inf 64.0%
*-commutative64.0%
Simplified64.0%
if -1.8999999999999999e-114 < (*.f64 b c) < -4.2000000000000002e-237Initial program 87.0%
Simplified91.4%
Taylor expanded in y around 0 62.7%
associate-+r+62.7%
+-commutative62.7%
distribute-lft-out62.7%
metadata-eval62.7%
cancel-sign-sub-inv62.7%
distribute-lft-out62.7%
fma-neg62.7%
distribute-lft-out62.7%
distribute-lft-neg-in62.7%
metadata-eval62.7%
+-commutative62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in j around 0 62.7%
Taylor expanded in b around 0 58.5%
if 1.14999999999999998e-172 < (*.f64 b c) < 9.7999999999999995e-117Initial program 75.2%
Simplified67.4%
Taylor expanded in b around 0 67.4%
Simplified67.4%
Taylor expanded in y around inf 42.7%
associate-*r*46.1%
associate-*r*54.1%
Simplified54.1%
if 3.7000000000000001e-20 < (*.f64 b c) Initial program 78.4%
Simplified81.9%
Taylor expanded in b around inf 56.9%
Final simplification62.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))))
(t_2 (* j (* k -27.0))))
(if (<= (* b c) -3.25e+109)
(- (* b c) (* 4.0 (* x i)))
(if (<= (* b c) -1.45e-28)
(+ t_2 (* -4.0 (* t a)))
(if (<= (* b c) -7e-147)
t_1
(if (<= (* b c) -2.1e-183)
(* -4.0 (+ (* t a) (* x i)))
(if (<= (* b c) -6.5e-287)
t_1
(if (<= (* b c) 1e-16)
(+ t_2 (* x (* i -4.0)))
(+ (* b c) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * ((18.0 * (x * (y * z))) + (a * -4.0));
double t_2 = j * (k * -27.0);
double tmp;
if ((b * c) <= -3.25e+109) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((b * c) <= -1.45e-28) {
tmp = t_2 + (-4.0 * (t * a));
} else if ((b * c) <= -7e-147) {
tmp = t_1;
} else if ((b * c) <= -2.1e-183) {
tmp = -4.0 * ((t * a) + (x * i));
} else if ((b * c) <= -6.5e-287) {
tmp = t_1;
} else if ((b * c) <= 1e-16) {
tmp = t_2 + (x * (i * -4.0));
} else {
tmp = (b * c) + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))
t_2 = j * (k * (-27.0d0))
if ((b * c) <= (-3.25d+109)) then
tmp = (b * c) - (4.0d0 * (x * i))
else if ((b * c) <= (-1.45d-28)) then
tmp = t_2 + ((-4.0d0) * (t * a))
else if ((b * c) <= (-7d-147)) then
tmp = t_1
else if ((b * c) <= (-2.1d-183)) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if ((b * c) <= (-6.5d-287)) then
tmp = t_1
else if ((b * c) <= 1d-16) then
tmp = t_2 + (x * (i * (-4.0d0)))
else
tmp = (b * c) + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * ((18.0 * (x * (y * z))) + (a * -4.0));
double t_2 = j * (k * -27.0);
double tmp;
if ((b * c) <= -3.25e+109) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((b * c) <= -1.45e-28) {
tmp = t_2 + (-4.0 * (t * a));
} else if ((b * c) <= -7e-147) {
tmp = t_1;
} else if ((b * c) <= -2.1e-183) {
tmp = -4.0 * ((t * a) + (x * i));
} else if ((b * c) <= -6.5e-287) {
tmp = t_1;
} else if ((b * c) <= 1e-16) {
tmp = t_2 + (x * (i * -4.0));
} else {
tmp = (b * c) + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * ((18.0 * (x * (y * z))) + (a * -4.0)) t_2 = j * (k * -27.0) tmp = 0 if (b * c) <= -3.25e+109: tmp = (b * c) - (4.0 * (x * i)) elif (b * c) <= -1.45e-28: tmp = t_2 + (-4.0 * (t * a)) elif (b * c) <= -7e-147: tmp = t_1 elif (b * c) <= -2.1e-183: tmp = -4.0 * ((t * a) + (x * i)) elif (b * c) <= -6.5e-287: tmp = t_1 elif (b * c) <= 1e-16: tmp = t_2 + (x * (i * -4.0)) else: tmp = (b * c) + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))) t_2 = Float64(j * Float64(k * -27.0)) tmp = 0.0 if (Float64(b * c) <= -3.25e+109) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (Float64(b * c) <= -1.45e-28) tmp = Float64(t_2 + Float64(-4.0 * Float64(t * a))); elseif (Float64(b * c) <= -7e-147) tmp = t_1; elseif (Float64(b * c) <= -2.1e-183) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (Float64(b * c) <= -6.5e-287) tmp = t_1; elseif (Float64(b * c) <= 1e-16) tmp = Float64(t_2 + Float64(x * Float64(i * -4.0))); else tmp = Float64(Float64(b * c) + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = t * ((18.0 * (x * (y * z))) + (a * -4.0)); t_2 = j * (k * -27.0); tmp = 0.0; if ((b * c) <= -3.25e+109) tmp = (b * c) - (4.0 * (x * i)); elseif ((b * c) <= -1.45e-28) tmp = t_2 + (-4.0 * (t * a)); elseif ((b * c) <= -7e-147) tmp = t_1; elseif ((b * c) <= -2.1e-183) tmp = -4.0 * ((t * a) + (x * i)); elseif ((b * c) <= -6.5e-287) tmp = t_1; elseif ((b * c) <= 1e-16) tmp = t_2 + (x * (i * -4.0)); else tmp = (b * c) + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -3.25e+109], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.45e-28], N[(t$95$2 + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -7e-147], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -2.1e-183], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -6.5e-287], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1e-16], N[(t$95$2 + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + t$95$2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
t_2 := j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;b \cdot c \leq -3.25 \cdot 10^{+109}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq -1.45 \cdot 10^{-28}:\\
\;\;\;\;t_2 + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;b \cdot c \leq -7 \cdot 10^{-147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq -2.1 \cdot 10^{-183}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq -6.5 \cdot 10^{-287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq 10^{-16}:\\
\;\;\;\;t_2 + x \cdot \left(i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t_2\\
\end{array}
\end{array}
if (*.f64 b c) < -3.25e109Initial program 88.9%
Taylor expanded in y around 0 88.9%
Taylor expanded in a around 0 83.6%
associate-*r*83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in j around 0 75.0%
if -3.25e109 < (*.f64 b c) < -1.45000000000000006e-28Initial program 83.7%
Simplified86.8%
Taylor expanded in a around inf 71.5%
*-commutative71.5%
Simplified71.5%
if -1.45000000000000006e-28 < (*.f64 b c) < -7.00000000000000007e-147 or -2.1000000000000002e-183 < (*.f64 b c) < -6.4999999999999999e-287Initial program 88.1%
Simplified96.1%
Taylor expanded in b around 0 96.1%
Simplified96.1%
Taylor expanded in t around inf 80.4%
if -7.00000000000000007e-147 < (*.f64 b c) < -2.1000000000000002e-183Initial program 80.0%
Simplified90.0%
Taylor expanded in y around 0 90.0%
associate-+r+90.0%
+-commutative90.0%
distribute-lft-out90.0%
metadata-eval90.0%
cancel-sign-sub-inv90.0%
distribute-lft-out90.0%
fma-neg90.0%
distribute-lft-out90.0%
distribute-lft-neg-in90.0%
metadata-eval90.0%
+-commutative90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in j around 0 90.0%
Taylor expanded in b around 0 80.4%
if -6.4999999999999999e-287 < (*.f64 b c) < 9.9999999999999998e-17Initial program 83.9%
Simplified81.8%
Taylor expanded in i around inf 58.3%
associate-*r*58.3%
*-commutative58.3%
Simplified58.3%
if 9.9999999999999998e-17 < (*.f64 b c) Initial program 77.7%
Simplified81.2%
Taylor expanded in b around inf 57.0%
Final simplification65.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i))) (t_2 (* (* j 27.0) k)))
(if (or (<= t_2 -5e-15) (not (<= t_2 1e+17)))
(- (- (* b c) (+ (* 4.0 (* t a)) t_1)) t_2)
(- (+ (* b c) (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = (j * 27.0) * k;
double tmp;
if ((t_2 <= -5e-15) || !(t_2 <= 1e+17)) {
tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - t_2;
} else {
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
t_2 = (j * 27.0d0) * k
if ((t_2 <= (-5d-15)) .or. (.not. (t_2 <= 1d+17))) then
tmp = ((b * c) - ((4.0d0 * (t * a)) + t_1)) - t_2
else
tmp = ((b * c) + (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0)))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = (j * 27.0) * k;
double tmp;
if ((t_2 <= -5e-15) || !(t_2 <= 1e+17)) {
tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - t_2;
} else {
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = (j * 27.0) * k tmp = 0 if (t_2 <= -5e-15) or not (t_2 <= 1e+17): tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - t_2 else: tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if ((t_2 <= -5e-15) || !(t_2 <= 1e+17)) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + t_1)) - t_2); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (x * i); t_2 = (j * 27.0) * k; tmp = 0.0; if ((t_2 <= -5e-15) || ~((t_2 <= 1e+17))) tmp = ((b * c) - ((4.0 * (t * a)) + t_1)) - t_2; else tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -5e-15], N[Not[LessEqual[t$95$2, 1e+17]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{-15} \lor \neg \left(t_2 \leq 10^{+17}\right):\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + t_1\right)\right) - t_2\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\right) - t_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -4.99999999999999999e-15 or 1e17 < (*.f64 (*.f64 j 27) k) Initial program 83.5%
Taylor expanded in y around 0 83.1%
if -4.99999999999999999e-15 < (*.f64 (*.f64 j 27) k) < 1e17Initial program 83.4%
associate--l-83.4%
associate-+l-83.4%
associate--l-83.4%
*-commutative83.4%
associate-*r*83.3%
associate-*l*83.3%
associate-*r*84.1%
*-commutative84.1%
associate-*l*84.1%
associate--l-84.1%
Simplified87.6%
Taylor expanded in j around 0 85.3%
Final simplification84.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (+ t_1 (* -4.0 (* t a)))))
(if (<= (* b c) -1.1e+111)
(- (* b c) (* 4.0 (* x i)))
(if (<= (* b c) -3.6e-112)
t_2
(if (<= (* b c) -8e-239)
(* -4.0 (+ (* t a) (* x i)))
(if (<= (* b c) 1.8e-229)
t_2
(if (<= (* b c) 3.3e-15)
(+ t_1 (* x (* i -4.0)))
(+ (* 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 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double tmp;
if ((b * c) <= -1.1e+111) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((b * c) <= -3.6e-112) {
tmp = t_2;
} else if ((b * c) <= -8e-239) {
tmp = -4.0 * ((t * a) + (x * i));
} else if ((b * c) <= 1.8e-229) {
tmp = t_2;
} else if ((b * c) <= 3.3e-15) {
tmp = t_1 + (x * (i * -4.0));
} else {
tmp = (b * c) + 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 = j * (k * (-27.0d0))
t_2 = t_1 + ((-4.0d0) * (t * a))
if ((b * c) <= (-1.1d+111)) then
tmp = (b * c) - (4.0d0 * (x * i))
else if ((b * c) <= (-3.6d-112)) then
tmp = t_2
else if ((b * c) <= (-8d-239)) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if ((b * c) <= 1.8d-229) then
tmp = t_2
else if ((b * c) <= 3.3d-15) then
tmp = t_1 + (x * (i * (-4.0d0)))
else
tmp = (b * c) + 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 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double tmp;
if ((b * c) <= -1.1e+111) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((b * c) <= -3.6e-112) {
tmp = t_2;
} else if ((b * c) <= -8e-239) {
tmp = -4.0 * ((t * a) + (x * i));
} else if ((b * c) <= 1.8e-229) {
tmp = t_2;
} else if ((b * c) <= 3.3e-15) {
tmp = t_1 + (x * (i * -4.0));
} else {
tmp = (b * c) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (-4.0 * (t * a)) tmp = 0 if (b * c) <= -1.1e+111: tmp = (b * c) - (4.0 * (x * i)) elif (b * c) <= -3.6e-112: tmp = t_2 elif (b * c) <= -8e-239: tmp = -4.0 * ((t * a) + (x * i)) elif (b * c) <= 1.8e-229: tmp = t_2 elif (b * c) <= 3.3e-15: tmp = t_1 + (x * (i * -4.0)) else: tmp = (b * c) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(-4.0 * Float64(t * a))) tmp = 0.0 if (Float64(b * c) <= -1.1e+111) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (Float64(b * c) <= -3.6e-112) tmp = t_2; elseif (Float64(b * c) <= -8e-239) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (Float64(b * c) <= 1.8e-229) tmp = t_2; elseif (Float64(b * c) <= 3.3e-15) tmp = Float64(t_1 + Float64(x * Float64(i * -4.0))); else tmp = Float64(Float64(b * c) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = t_1 + (-4.0 * (t * a)); tmp = 0.0; if ((b * c) <= -1.1e+111) tmp = (b * c) - (4.0 * (x * i)); elseif ((b * c) <= -3.6e-112) tmp = t_2; elseif ((b * c) <= -8e-239) tmp = -4.0 * ((t * a) + (x * i)); elseif ((b * c) <= 1.8e-229) tmp = t_2; elseif ((b * c) <= 3.3e-15) tmp = t_1 + (x * (i * -4.0)); else tmp = (b * c) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1.1e+111], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -3.6e-112], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -8e-239], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.8e-229], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 3.3e-15], N[(t$95$1 + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t_1 + -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;b \cdot c \leq -1.1 \cdot 10^{+111}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq -3.6 \cdot 10^{-112}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -8 \cdot 10^{-239}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq 1.8 \cdot 10^{-229}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq 3.3 \cdot 10^{-15}:\\
\;\;\;\;t_1 + x \cdot \left(i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t_1\\
\end{array}
\end{array}
if (*.f64 b c) < -1.09999999999999999e111Initial program 88.9%
Taylor expanded in y around 0 88.9%
Taylor expanded in a around 0 83.6%
associate-*r*83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in j around 0 75.0%
if -1.09999999999999999e111 < (*.f64 b c) < -3.6000000000000001e-112 or -8.0000000000000006e-239 < (*.f64 b c) < 1.80000000000000001e-229Initial program 82.5%
Simplified87.6%
Taylor expanded in a around inf 61.9%
*-commutative61.9%
Simplified61.9%
if -3.6000000000000001e-112 < (*.f64 b c) < -8.0000000000000006e-239Initial program 87.0%
Simplified91.4%
Taylor expanded in y around 0 62.7%
associate-+r+62.7%
+-commutative62.7%
distribute-lft-out62.7%
metadata-eval62.7%
cancel-sign-sub-inv62.7%
distribute-lft-out62.7%
fma-neg62.7%
distribute-lft-out62.7%
distribute-lft-neg-in62.7%
metadata-eval62.7%
+-commutative62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in j around 0 62.7%
Taylor expanded in b around 0 58.5%
if 1.80000000000000001e-229 < (*.f64 b c) < 3.3e-15Initial program 86.6%
Simplified77.9%
Taylor expanded in i around inf 64.8%
associate-*r*64.8%
*-commutative64.8%
Simplified64.8%
if 3.3e-15 < (*.f64 b c) Initial program 77.7%
Simplified81.2%
Taylor expanded in b around inf 57.0%
Final simplification62.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= x -3.5e+167)
(* x (+ (* 18.0 (* z (* y t))) (* i -4.0)))
(-
(+ (* b c) (* t (- (* (* 18.0 y) (* x z)) (* a 4.0))))
(+ (* 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) {
double tmp;
if (x <= -3.5e+167) {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
} else {
tmp = ((b * c) + (t * (((18.0 * y) * (x * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (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 (x <= (-3.5d+167)) then
tmp = x * ((18.0d0 * (z * (y * t))) + (i * (-4.0d0)))
else
tmp = ((b * c) + (t * (((18.0d0 * y) * (x * z)) - (a * 4.0d0)))) - ((x * (4.0d0 * i)) + (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 (x <= -3.5e+167) {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
} else {
tmp = ((b * c) + (t * (((18.0 * y) * (x * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -3.5e+167: tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)) else: tmp = ((b * c) + (t * (((18.0 * y) * (x * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -3.5e+167) tmp = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(18.0 * y) * Float64(x * z)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(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 (x <= -3.5e+167) tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)); else tmp = ((b * c) + (t * (((18.0 * y) * (x * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -3.5e+167], N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(18.0 * y), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{+167}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(18 \cdot y\right) \cdot \left(x \cdot z\right) - a \cdot 4\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)\\
\end{array}
\end{array}
if x < -3.49999999999999987e167Initial program 46.7%
associate--l-46.7%
associate-+l-46.7%
associate--l-46.7%
*-commutative46.7%
associate-*r*49.9%
associate-*l*53.4%
associate-*r*50.3%
*-commutative50.3%
associate-*l*46.7%
associate--l-46.7%
Simplified53.9%
Taylor expanded in a around 0 57.3%
+-commutative57.3%
*-commutative57.3%
associate-*r*53.8%
associate-*l*53.7%
associate-*r*53.7%
*-commutative53.7%
associate-*r*57.4%
fma-def57.4%
*-commutative57.4%
associate-*l*64.2%
*-commutative64.2%
associate-*l*64.2%
*-commutative64.2%
associate-*r*64.2%
*-commutative64.2%
*-commutative64.2%
associate-*r*64.2%
associate-*l*64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in x around inf 89.4%
cancel-sign-sub-inv89.4%
metadata-eval89.4%
*-commutative89.4%
associate-*r*89.4%
Simplified89.4%
if -3.49999999999999987e167 < x Initial program 87.9%
associate--l-87.9%
associate-+l-87.9%
associate--l-87.9%
*-commutative87.9%
associate-*r*88.7%
associate-*l*86.9%
associate-*r*85.9%
*-commutative85.9%
associate-*l*87.0%
associate--l-87.0%
Simplified88.3%
Final simplification88.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))))
(if (<= (* b c) -6.6e+102)
(* b c)
(if (<= (* b c) -0.02)
t_1
(if (<= (* b c) -4.8e-28)
(* k (* j -27.0))
(if (<= (* b c) -1.6e-132)
t_1
(if (<= (* b c) -1.45e-235)
(* x (* i -4.0))
(if (<= (* b c) 4.2e+196) (* -27.0 (* j k)) (* b c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if ((b * c) <= -6.6e+102) {
tmp = b * c;
} else if ((b * c) <= -0.02) {
tmp = t_1;
} else if ((b * c) <= -4.8e-28) {
tmp = k * (j * -27.0);
} else if ((b * c) <= -1.6e-132) {
tmp = t_1;
} else if ((b * c) <= -1.45e-235) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 4.2e+196) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (t * a)
if ((b * c) <= (-6.6d+102)) then
tmp = b * c
else if ((b * c) <= (-0.02d0)) then
tmp = t_1
else if ((b * c) <= (-4.8d-28)) then
tmp = k * (j * (-27.0d0))
else if ((b * c) <= (-1.6d-132)) then
tmp = t_1
else if ((b * c) <= (-1.45d-235)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= 4.2d+196) then
tmp = (-27.0d0) * (j * k)
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if ((b * c) <= -6.6e+102) {
tmp = b * c;
} else if ((b * c) <= -0.02) {
tmp = t_1;
} else if ((b * c) <= -4.8e-28) {
tmp = k * (j * -27.0);
} else if ((b * c) <= -1.6e-132) {
tmp = t_1;
} else if ((b * c) <= -1.45e-235) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 4.2e+196) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (t * a) tmp = 0 if (b * c) <= -6.6e+102: tmp = b * c elif (b * c) <= -0.02: tmp = t_1 elif (b * c) <= -4.8e-28: tmp = k * (j * -27.0) elif (b * c) <= -1.6e-132: tmp = t_1 elif (b * c) <= -1.45e-235: tmp = x * (i * -4.0) elif (b * c) <= 4.2e+196: tmp = -27.0 * (j * k) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (Float64(b * c) <= -6.6e+102) tmp = Float64(b * c); elseif (Float64(b * c) <= -0.02) tmp = t_1; elseif (Float64(b * c) <= -4.8e-28) tmp = Float64(k * Float64(j * -27.0)); elseif (Float64(b * c) <= -1.6e-132) tmp = t_1; elseif (Float64(b * c) <= -1.45e-235) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= 4.2e+196) tmp = Float64(-27.0 * Float64(j * k)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (t * a); tmp = 0.0; if ((b * c) <= -6.6e+102) tmp = b * c; elseif ((b * c) <= -0.02) tmp = t_1; elseif ((b * c) <= -4.8e-28) tmp = k * (j * -27.0); elseif ((b * c) <= -1.6e-132) tmp = t_1; elseif ((b * c) <= -1.45e-235) tmp = x * (i * -4.0); elseif ((b * c) <= 4.2e+196) tmp = -27.0 * (j * k); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -6.6e+102], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -0.02], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -4.8e-28], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.6e-132], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -1.45e-235], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 4.2e+196], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;b \cdot c \leq -6.6 \cdot 10^{+102}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -0.02:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq -4.8 \cdot 10^{-28}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq -1.6 \cdot 10^{-132}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq -1.45 \cdot 10^{-235}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 4.2 \cdot 10^{+196}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -6.59999999999999997e102 or 4.20000000000000029e196 < (*.f64 b c) Initial program 78.0%
Simplified84.8%
Taylor expanded in y around 0 81.0%
associate-+r+81.0%
+-commutative81.0%
distribute-lft-out81.0%
metadata-eval81.0%
cancel-sign-sub-inv81.0%
distribute-lft-out81.0%
fma-neg86.1%
distribute-lft-out86.1%
distribute-lft-neg-in86.1%
metadata-eval86.1%
+-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in b around inf 66.4%
if -6.59999999999999997e102 < (*.f64 b c) < -0.0200000000000000004 or -4.8000000000000004e-28 < (*.f64 b c) < -1.6000000000000001e-132Initial program 86.7%
Simplified93.2%
Taylor expanded in y around 0 71.1%
associate-+r+71.1%
+-commutative71.1%
distribute-lft-out71.1%
metadata-eval71.1%
cancel-sign-sub-inv71.1%
distribute-lft-out71.1%
fma-neg71.1%
distribute-lft-out71.1%
distribute-lft-neg-in71.1%
metadata-eval71.1%
+-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 48.1%
if -0.0200000000000000004 < (*.f64 b c) < -4.8000000000000004e-28Initial program 79.8%
Simplified89.7%
Taylor expanded in j around inf 70.5%
associate-*r*70.6%
*-commutative70.6%
Simplified70.6%
if -1.6000000000000001e-132 < (*.f64 b c) < -1.45000000000000004e-235Initial program 84.2%
Simplified89.6%
Taylor expanded in y around 0 64.7%
associate-+r+64.7%
+-commutative64.7%
distribute-lft-out64.7%
metadata-eval64.7%
cancel-sign-sub-inv64.7%
distribute-lft-out64.7%
fma-neg64.7%
distribute-lft-out64.7%
distribute-lft-neg-in64.7%
metadata-eval64.7%
+-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in i around inf 44.2%
associate-*r*44.2%
*-commutative44.2%
Simplified44.2%
if -1.45000000000000004e-235 < (*.f64 b c) < 4.20000000000000029e196Initial program 85.2%
Simplified83.1%
Taylor expanded in j around inf 37.3%
Final simplification47.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(- (- (* b c) (+ (* 4.0 (* t a)) (* 4.0 (* x i)))) (* (* j 27.0) k)))
(t_2 (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))))
(t_3 (+ t_2 (* j (* k -27.0)))))
(if (<= t -3.2e+117)
t_3
(if (<= t 2.4e+47)
t_1
(if (<= t 7.4e+117) t_2 (if (<= t 3.7e+208) t_1 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - ((j * 27.0) * k);
double t_2 = t * ((18.0 * (x * (y * z))) + (a * -4.0));
double t_3 = t_2 + (j * (k * -27.0));
double tmp;
if (t <= -3.2e+117) {
tmp = t_3;
} else if (t <= 2.4e+47) {
tmp = t_1;
} else if (t <= 7.4e+117) {
tmp = t_2;
} else if (t <= 3.7e+208) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = ((b * c) - ((4.0d0 * (t * a)) + (4.0d0 * (x * i)))) - ((j * 27.0d0) * k)
t_2 = t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))
t_3 = t_2 + (j * (k * (-27.0d0)))
if (t <= (-3.2d+117)) then
tmp = t_3
else if (t <= 2.4d+47) then
tmp = t_1
else if (t <= 7.4d+117) then
tmp = t_2
else if (t <= 3.7d+208) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - ((j * 27.0) * k);
double t_2 = t * ((18.0 * (x * (y * z))) + (a * -4.0));
double t_3 = t_2 + (j * (k * -27.0));
double tmp;
if (t <= -3.2e+117) {
tmp = t_3;
} else if (t <= 2.4e+47) {
tmp = t_1;
} else if (t <= 7.4e+117) {
tmp = t_2;
} else if (t <= 3.7e+208) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - ((j * 27.0) * k) t_2 = t * ((18.0 * (x * (y * z))) + (a * -4.0)) t_3 = t_2 + (j * (k * -27.0)) tmp = 0 if t <= -3.2e+117: tmp = t_3 elif t <= 2.4e+47: tmp = t_1 elif t <= 7.4e+117: tmp = t_2 elif t <= 3.7e+208: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + Float64(4.0 * Float64(x * i)))) - Float64(Float64(j * 27.0) * k)) t_2 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))) t_3 = Float64(t_2 + Float64(j * Float64(k * -27.0))) tmp = 0.0 if (t <= -3.2e+117) tmp = t_3; elseif (t <= 2.4e+47) tmp = t_1; elseif (t <= 7.4e+117) tmp = t_2; elseif (t <= 3.7e+208) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - ((j * 27.0) * k); t_2 = t * ((18.0 * (x * (y * z))) + (a * -4.0)); t_3 = t_2 + (j * (k * -27.0)); tmp = 0.0; if (t <= -3.2e+117) tmp = t_3; elseif (t <= 2.4e+47) tmp = t_1; elseif (t <= 7.4e+117) tmp = t_2; elseif (t <= 3.7e+208) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+117], t$95$3, If[LessEqual[t, 2.4e+47], t$95$1, If[LessEqual[t, 7.4e+117], t$95$2, If[LessEqual[t, 3.7e+208], t$95$1, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\right) - \left(j \cdot 27\right) \cdot k\\
t_2 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
t_3 := t_2 + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+117}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{+117}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{+208}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -3.20000000000000005e117 or 3.69999999999999989e208 < t Initial program 78.7%
Simplified90.1%
Taylor expanded in t around inf 84.1%
if -3.20000000000000005e117 < t < 2.40000000000000019e47 or 7.3999999999999997e117 < t < 3.69999999999999989e208Initial program 85.3%
Taylor expanded in y around 0 85.5%
if 2.40000000000000019e47 < t < 7.3999999999999997e117Initial program 81.0%
Simplified80.2%
Taylor expanded in b around 0 80.0%
Simplified80.2%
Taylor expanded in t around inf 86.6%
Final simplification85.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -1.3e+45)
(and (not (<= t 6.3e-80)) (or (<= t 5.6e+148) (not (<= t 5e+172)))))
(+ (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))) (* j (* k -27.0)))
(- (- (* b c) (* 4.0 (* x 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) {
double tmp;
if ((t <= -1.3e+45) || (!(t <= 6.3e-80) && ((t <= 5.6e+148) || !(t <= 5e+172)))) {
tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0));
} else {
tmp = ((b * c) - (4.0 * (x * i))) - ((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 ((t <= (-1.3d+45)) .or. (.not. (t <= 6.3d-80)) .and. (t <= 5.6d+148) .or. (.not. (t <= 5d+172))) then
tmp = (t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))) + (j * (k * (-27.0d0)))
else
tmp = ((b * c) - (4.0d0 * (x * i))) - ((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 ((t <= -1.3e+45) || (!(t <= 6.3e-80) && ((t <= 5.6e+148) || !(t <= 5e+172)))) {
tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0));
} else {
tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -1.3e+45) or (not (t <= 6.3e-80) and ((t <= 5.6e+148) or not (t <= 5e+172))): tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0)) else: tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -1.3e+45) || (!(t <= 6.3e-80) && ((t <= 5.6e+148) || !(t <= 5e+172)))) tmp = Float64(Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))) + Float64(j * Float64(k * -27.0))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - 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 ((t <= -1.3e+45) || (~((t <= 6.3e-80)) && ((t <= 5.6e+148) || ~((t <= 5e+172))))) tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0)); else tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -1.3e+45], And[N[Not[LessEqual[t, 6.3e-80]], $MachinePrecision], Or[LessEqual[t, 5.6e+148], N[Not[LessEqual[t, 5e+172]], $MachinePrecision]]]], N[(N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{+45} \lor \neg \left(t \leq 6.3 \cdot 10^{-80}\right) \land \left(t \leq 5.6 \cdot 10^{+148} \lor \neg \left(t \leq 5 \cdot 10^{+172}\right)\right):\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if t < -1.30000000000000004e45 or 6.29999999999999966e-80 < t < 5.59999999999999959e148 or 5.0000000000000001e172 < t Initial program 83.3%
Simplified86.5%
Taylor expanded in t around inf 79.6%
if -1.30000000000000004e45 < t < 6.29999999999999966e-80 or 5.59999999999999959e148 < t < 5.0000000000000001e172Initial program 83.5%
Taylor expanded in t around 0 82.4%
Final simplification81.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (+ t_1 (* -4.0 (* t a))))
(t_3 (+ (* b c) t_1))
(t_4 (* x (+ (* 18.0 (* z (* y t))) (* i -4.0)))))
(if (<= x -3.3e+167)
t_4
(if (<= x -2.6e+53)
t_3
(if (<= x -1.5e-16)
t_4
(if (<= x -2.6e-307)
t_2
(if (<= x 9.5e-210) t_3 (if (<= x 4.5e-30) t_2 t_4))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double t_3 = (b * c) + t_1;
double t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0));
double tmp;
if (x <= -3.3e+167) {
tmp = t_4;
} else if (x <= -2.6e+53) {
tmp = t_3;
} else if (x <= -1.5e-16) {
tmp = t_4;
} else if (x <= -2.6e-307) {
tmp = t_2;
} else if (x <= 9.5e-210) {
tmp = t_3;
} else if (x <= 4.5e-30) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + ((-4.0d0) * (t * a))
t_3 = (b * c) + t_1
t_4 = x * ((18.0d0 * (z * (y * t))) + (i * (-4.0d0)))
if (x <= (-3.3d+167)) then
tmp = t_4
else if (x <= (-2.6d+53)) then
tmp = t_3
else if (x <= (-1.5d-16)) then
tmp = t_4
else if (x <= (-2.6d-307)) then
tmp = t_2
else if (x <= 9.5d-210) then
tmp = t_3
else if (x <= 4.5d-30) then
tmp = t_2
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double t_3 = (b * c) + t_1;
double t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0));
double tmp;
if (x <= -3.3e+167) {
tmp = t_4;
} else if (x <= -2.6e+53) {
tmp = t_3;
} else if (x <= -1.5e-16) {
tmp = t_4;
} else if (x <= -2.6e-307) {
tmp = t_2;
} else if (x <= 9.5e-210) {
tmp = t_3;
} else if (x <= 4.5e-30) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (-4.0 * (t * a)) t_3 = (b * c) + t_1 t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0)) tmp = 0 if x <= -3.3e+167: tmp = t_4 elif x <= -2.6e+53: tmp = t_3 elif x <= -1.5e-16: tmp = t_4 elif x <= -2.6e-307: tmp = t_2 elif x <= 9.5e-210: tmp = t_3 elif x <= 4.5e-30: tmp = t_2 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(-4.0 * Float64(t * a))) t_3 = Float64(Float64(b * c) + t_1) t_4 = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))) tmp = 0.0 if (x <= -3.3e+167) tmp = t_4; elseif (x <= -2.6e+53) tmp = t_3; elseif (x <= -1.5e-16) tmp = t_4; elseif (x <= -2.6e-307) tmp = t_2; elseif (x <= 9.5e-210) tmp = t_3; elseif (x <= 4.5e-30) tmp = t_2; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = t_1 + (-4.0 * (t * a)); t_3 = (b * c) + t_1; t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0)); tmp = 0.0; if (x <= -3.3e+167) tmp = t_4; elseif (x <= -2.6e+53) tmp = t_3; elseif (x <= -1.5e-16) tmp = t_4; elseif (x <= -2.6e-307) tmp = t_2; elseif (x <= 9.5e-210) tmp = t_3; elseif (x <= 4.5e-30) tmp = t_2; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+167], t$95$4, If[LessEqual[x, -2.6e+53], t$95$3, If[LessEqual[x, -1.5e-16], t$95$4, If[LessEqual[x, -2.6e-307], t$95$2, If[LessEqual[x, 9.5e-210], t$95$3, If[LessEqual[x, 4.5e-30], t$95$2, t$95$4]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t_1 + -4 \cdot \left(t \cdot a\right)\\
t_3 := b \cdot c + t_1\\
t_4 := x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+167}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{+53}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-16}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-307}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-210}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-30}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if x < -3.30000000000000018e167 or -2.59999999999999998e53 < x < -1.49999999999999997e-16 or 4.49999999999999967e-30 < x Initial program 70.2%
associate--l-70.2%
associate-+l-70.2%
associate--l-70.2%
*-commutative70.2%
associate-*r*71.9%
associate-*l*72.8%
associate-*r*71.8%
*-commutative71.8%
associate-*l*68.1%
associate--l-68.1%
Simplified71.1%
Taylor expanded in a around 0 71.3%
+-commutative71.3%
*-commutative71.3%
associate-*r*72.9%
associate-*l*72.9%
associate-*r*72.9%
*-commutative72.9%
associate-*r*71.4%
fma-def71.4%
*-commutative71.4%
associate-*l*78.6%
*-commutative78.6%
associate-*l*78.6%
*-commutative78.6%
associate-*r*78.6%
*-commutative78.6%
*-commutative78.6%
associate-*r*78.7%
associate-*l*78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in x around inf 73.4%
cancel-sign-sub-inv73.4%
metadata-eval73.4%
*-commutative73.4%
associate-*r*72.4%
Simplified72.4%
if -3.30000000000000018e167 < x < -2.59999999999999998e53 or -2.59999999999999996e-307 < x < 9.4999999999999997e-210Initial program 89.9%
Simplified87.4%
Taylor expanded in b around inf 66.0%
if -1.49999999999999997e-16 < x < -2.59999999999999996e-307 or 9.4999999999999997e-210 < x < 4.49999999999999967e-30Initial program 93.0%
Simplified89.6%
Taylor expanded in a around inf 64.9%
*-commutative64.9%
Simplified64.9%
Final simplification68.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (+ t_1 (* -4.0 (* t a))))
(t_3 (+ (* b c) t_1))
(t_4 (* x (+ (* 18.0 (* z (* y t))) (* i -4.0)))))
(if (<= x -3.3e+167)
t_4
(if (<= x -5.4e+52)
t_3
(if (<= x -4.1e-20)
t_4
(if (<= x -2.8e-305)
t_2
(if (<= x 1.75e-209)
t_3
(if (<= x 2.7e-30)
t_2
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double t_3 = (b * c) + t_1;
double t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0));
double tmp;
if (x <= -3.3e+167) {
tmp = t_4;
} else if (x <= -5.4e+52) {
tmp = t_3;
} else if (x <= -4.1e-20) {
tmp = t_4;
} else if (x <= -2.8e-305) {
tmp = t_2;
} else if (x <= 1.75e-209) {
tmp = t_3;
} else if (x <= 2.7e-30) {
tmp = t_2;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + ((-4.0d0) * (t * a))
t_3 = (b * c) + t_1
t_4 = x * ((18.0d0 * (z * (y * t))) + (i * (-4.0d0)))
if (x <= (-3.3d+167)) then
tmp = t_4
else if (x <= (-5.4d+52)) then
tmp = t_3
else if (x <= (-4.1d-20)) then
tmp = t_4
else if (x <= (-2.8d-305)) then
tmp = t_2
else if (x <= 1.75d-209) then
tmp = t_3
else if (x <= 2.7d-30) then
tmp = t_2
else
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (-4.0 * (t * a));
double t_3 = (b * c) + t_1;
double t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0));
double tmp;
if (x <= -3.3e+167) {
tmp = t_4;
} else if (x <= -5.4e+52) {
tmp = t_3;
} else if (x <= -4.1e-20) {
tmp = t_4;
} else if (x <= -2.8e-305) {
tmp = t_2;
} else if (x <= 1.75e-209) {
tmp = t_3;
} else if (x <= 2.7e-30) {
tmp = t_2;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (-4.0 * (t * a)) t_3 = (b * c) + t_1 t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0)) tmp = 0 if x <= -3.3e+167: tmp = t_4 elif x <= -5.4e+52: tmp = t_3 elif x <= -4.1e-20: tmp = t_4 elif x <= -2.8e-305: tmp = t_2 elif x <= 1.75e-209: tmp = t_3 elif x <= 2.7e-30: tmp = t_2 else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(-4.0 * Float64(t * a))) t_3 = Float64(Float64(b * c) + t_1) t_4 = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))) tmp = 0.0 if (x <= -3.3e+167) tmp = t_4; elseif (x <= -5.4e+52) tmp = t_3; elseif (x <= -4.1e-20) tmp = t_4; elseif (x <= -2.8e-305) tmp = t_2; elseif (x <= 1.75e-209) tmp = t_3; elseif (x <= 2.7e-30) tmp = t_2; else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = t_1 + (-4.0 * (t * a)); t_3 = (b * c) + t_1; t_4 = x * ((18.0 * (z * (y * t))) + (i * -4.0)); tmp = 0.0; if (x <= -3.3e+167) tmp = t_4; elseif (x <= -5.4e+52) tmp = t_3; elseif (x <= -4.1e-20) tmp = t_4; elseif (x <= -2.8e-305) tmp = t_2; elseif (x <= 1.75e-209) tmp = t_3; elseif (x <= 2.7e-30) tmp = t_2; else tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+167], t$95$4, If[LessEqual[x, -5.4e+52], t$95$3, If[LessEqual[x, -4.1e-20], t$95$4, If[LessEqual[x, -2.8e-305], t$95$2, If[LessEqual[x, 1.75e-209], t$95$3, If[LessEqual[x, 2.7e-30], t$95$2, N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t_1 + -4 \cdot \left(t \cdot a\right)\\
t_3 := b \cdot c + t_1\\
t_4 := x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+167}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{+52}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -4.1 \cdot 10^{-20}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-305}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-209}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-30}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if x < -3.30000000000000018e167 or -5.4e52 < x < -4.1000000000000001e-20Initial program 62.0%
associate--l-62.0%
associate-+l-62.0%
associate--l-62.0%
*-commutative62.0%
associate-*r*61.9%
associate-*l*64.3%
associate-*r*62.2%
*-commutative62.2%
associate-*l*62.1%
associate--l-62.1%
Simplified66.8%
Taylor expanded in a around 0 69.4%
+-commutative69.4%
*-commutative69.4%
associate-*r*67.0%
associate-*l*67.0%
associate-*r*67.0%
*-commutative67.0%
associate-*r*69.5%
fma-def69.5%
*-commutative69.5%
associate-*l*74.0%
*-commutative74.0%
associate-*l*74.0%
*-commutative74.0%
associate-*r*74.0%
*-commutative74.0%
*-commutative74.0%
associate-*r*71.8%
associate-*l*71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around inf 83.1%
cancel-sign-sub-inv83.1%
metadata-eval83.1%
*-commutative83.1%
associate-*r*80.9%
Simplified80.9%
if -3.30000000000000018e167 < x < -5.4e52 or -2.80000000000000014e-305 < x < 1.75000000000000001e-209Initial program 89.9%
Simplified87.4%
Taylor expanded in b around inf 66.0%
if -4.1000000000000001e-20 < x < -2.80000000000000014e-305 or 1.75000000000000001e-209 < x < 2.69999999999999987e-30Initial program 93.0%
Simplified89.6%
Taylor expanded in a around inf 64.9%
*-commutative64.9%
Simplified64.9%
if 2.69999999999999987e-30 < x Initial program 75.8%
associate--l-75.8%
associate-+l-75.8%
associate--l-75.8%
*-commutative75.8%
associate-*r*78.8%
associate-*l*78.8%
associate-*r*78.4%
*-commutative78.4%
associate-*l*72.4%
associate--l-72.4%
Simplified74.1%
Taylor expanded in x around inf 66.6%
Final simplification68.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (+ (* b c) (* -4.0 (+ (* t a) (* x i)))))
(t_3 (+ (* b c) t_1)))
(if (<= k -1.7e-71)
t_3
(if (<= k -4.2e-194)
t_2
(if (<= k -9.6e-226)
t_3
(if (<= k 5.6e-275)
(* x (+ (* 18.0 (* z (* y t))) (* i -4.0)))
(if (<= k 1.5e+84)
t_2
(if (<= k 4.7e+201)
(* t (+ (* 18.0 (* x (* y z))) (* a -4.0)))
(+ t_1 (* -4.0 (* t a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = (b * c) + (-4.0 * ((t * a) + (x * i)));
double t_3 = (b * c) + t_1;
double tmp;
if (k <= -1.7e-71) {
tmp = t_3;
} else if (k <= -4.2e-194) {
tmp = t_2;
} else if (k <= -9.6e-226) {
tmp = t_3;
} else if (k <= 5.6e-275) {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
} else if (k <= 1.5e+84) {
tmp = t_2;
} else if (k <= 4.7e+201) {
tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0));
} else {
tmp = t_1 + (-4.0 * (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = (b * c) + ((-4.0d0) * ((t * a) + (x * i)))
t_3 = (b * c) + t_1
if (k <= (-1.7d-71)) then
tmp = t_3
else if (k <= (-4.2d-194)) then
tmp = t_2
else if (k <= (-9.6d-226)) then
tmp = t_3
else if (k <= 5.6d-275) then
tmp = x * ((18.0d0 * (z * (y * t))) + (i * (-4.0d0)))
else if (k <= 1.5d+84) then
tmp = t_2
else if (k <= 4.7d+201) then
tmp = t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))
else
tmp = t_1 + ((-4.0d0) * (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = (b * c) + (-4.0 * ((t * a) + (x * i)));
double t_3 = (b * c) + t_1;
double tmp;
if (k <= -1.7e-71) {
tmp = t_3;
} else if (k <= -4.2e-194) {
tmp = t_2;
} else if (k <= -9.6e-226) {
tmp = t_3;
} else if (k <= 5.6e-275) {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
} else if (k <= 1.5e+84) {
tmp = t_2;
} else if (k <= 4.7e+201) {
tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0));
} else {
tmp = t_1 + (-4.0 * (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = (b * c) + (-4.0 * ((t * a) + (x * i))) t_3 = (b * c) + t_1 tmp = 0 if k <= -1.7e-71: tmp = t_3 elif k <= -4.2e-194: tmp = t_2 elif k <= -9.6e-226: tmp = t_3 elif k <= 5.6e-275: tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)) elif k <= 1.5e+84: tmp = t_2 elif k <= 4.7e+201: tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0)) else: tmp = t_1 + (-4.0 * (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(Float64(b * c) + Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i)))) t_3 = Float64(Float64(b * c) + t_1) tmp = 0.0 if (k <= -1.7e-71) tmp = t_3; elseif (k <= -4.2e-194) tmp = t_2; elseif (k <= -9.6e-226) tmp = t_3; elseif (k <= 5.6e-275) tmp = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))); elseif (k <= 1.5e+84) tmp = t_2; elseif (k <= 4.7e+201) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))); else tmp = Float64(t_1 + Float64(-4.0 * Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = (b * c) + (-4.0 * ((t * a) + (x * i))); t_3 = (b * c) + t_1; tmp = 0.0; if (k <= -1.7e-71) tmp = t_3; elseif (k <= -4.2e-194) tmp = t_2; elseif (k <= -9.6e-226) tmp = t_3; elseif (k <= 5.6e-275) tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)); elseif (k <= 1.5e+84) tmp = t_2; elseif (k <= 4.7e+201) tmp = t * ((18.0 * (x * (y * z))) + (a * -4.0)); else tmp = t_1 + (-4.0 * (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[k, -1.7e-71], t$95$3, If[LessEqual[k, -4.2e-194], t$95$2, If[LessEqual[k, -9.6e-226], t$95$3, If[LessEqual[k, 5.6e-275], N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.5e+84], t$95$2, If[LessEqual[k, 4.7e+201], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := b \cdot c + -4 \cdot \left(t \cdot a + x \cdot i\right)\\
t_3 := b \cdot c + t_1\\
\mathbf{if}\;k \leq -1.7 \cdot 10^{-71}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq -4.2 \cdot 10^{-194}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq -9.6 \cdot 10^{-226}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 5.6 \cdot 10^{-275}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 4.7 \cdot 10^{+201}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + -4 \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if k < -1.70000000000000002e-71 or -4.2e-194 < k < -9.5999999999999998e-226Initial program 82.4%
Simplified81.2%
Taylor expanded in b around inf 57.2%
if -1.70000000000000002e-71 < k < -4.2e-194 or 5.59999999999999989e-275 < k < 1.49999999999999998e84Initial program 88.6%
Simplified91.9%
Taylor expanded in y around 0 73.5%
associate-+r+73.5%
+-commutative73.5%
distribute-lft-out73.5%
metadata-eval73.5%
cancel-sign-sub-inv73.5%
distribute-lft-out73.5%
fma-neg74.6%
distribute-lft-out74.6%
distribute-lft-neg-in74.6%
metadata-eval74.6%
+-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in j around 0 62.9%
if -9.5999999999999998e-226 < k < 5.59999999999999989e-275Initial program 69.3%
associate--l-69.3%
associate-+l-69.3%
associate--l-69.3%
*-commutative69.3%
associate-*r*79.1%
associate-*l*79.1%
associate-*r*75.3%
*-commutative75.3%
associate-*l*68.7%
associate--l-68.7%
Simplified79.4%
Taylor expanded in a around 0 58.7%
+-commutative58.7%
*-commutative58.7%
associate-*r*68.6%
associate-*l*68.5%
associate-*r*68.5%
*-commutative68.5%
associate-*r*58.7%
fma-def58.7%
*-commutative58.7%
associate-*l*65.0%
*-commutative65.0%
associate-*l*65.0%
*-commutative65.0%
associate-*r*65.0%
*-commutative65.0%
*-commutative65.0%
associate-*r*68.4%
associate-*l*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in x around inf 58.5%
cancel-sign-sub-inv58.5%
metadata-eval58.5%
*-commutative58.5%
associate-*r*62.0%
Simplified62.0%
if 1.49999999999999998e84 < k < 4.6999999999999998e201Initial program 89.5%
Simplified84.4%
Taylor expanded in b around 0 84.3%
Simplified84.5%
Taylor expanded in t around inf 59.0%
if 4.6999999999999998e201 < k Initial program 78.8%
Simplified82.1%
Taylor expanded in a around inf 74.6%
*-commutative74.6%
Simplified74.6%
Final simplification61.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))) (t_2 (* -27.0 (* j k))))
(if (<= (* b c) -7.2e+102)
(* b c)
(if (<= (* b c) -0.059)
t_1
(if (<= (* b c) -2.6e-29)
t_2
(if (<= (* b c) -6.8e-240)
t_1
(if (<= (* b c) 1.66e+196) t_2 (* b c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double t_2 = -27.0 * (j * k);
double tmp;
if ((b * c) <= -7.2e+102) {
tmp = b * c;
} else if ((b * c) <= -0.059) {
tmp = t_1;
} else if ((b * c) <= -2.6e-29) {
tmp = t_2;
} else if ((b * c) <= -6.8e-240) {
tmp = t_1;
} else if ((b * c) <= 1.66e+196) {
tmp = t_2;
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-4.0d0) * (t * a)
t_2 = (-27.0d0) * (j * k)
if ((b * c) <= (-7.2d+102)) then
tmp = b * c
else if ((b * c) <= (-0.059d0)) then
tmp = t_1
else if ((b * c) <= (-2.6d-29)) then
tmp = t_2
else if ((b * c) <= (-6.8d-240)) then
tmp = t_1
else if ((b * c) <= 1.66d+196) then
tmp = t_2
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double t_2 = -27.0 * (j * k);
double tmp;
if ((b * c) <= -7.2e+102) {
tmp = b * c;
} else if ((b * c) <= -0.059) {
tmp = t_1;
} else if ((b * c) <= -2.6e-29) {
tmp = t_2;
} else if ((b * c) <= -6.8e-240) {
tmp = t_1;
} else if ((b * c) <= 1.66e+196) {
tmp = t_2;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (t * a) t_2 = -27.0 * (j * k) tmp = 0 if (b * c) <= -7.2e+102: tmp = b * c elif (b * c) <= -0.059: tmp = t_1 elif (b * c) <= -2.6e-29: tmp = t_2 elif (b * c) <= -6.8e-240: tmp = t_1 elif (b * c) <= 1.66e+196: tmp = t_2 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(t * a)) t_2 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (Float64(b * c) <= -7.2e+102) tmp = Float64(b * c); elseif (Float64(b * c) <= -0.059) tmp = t_1; elseif (Float64(b * c) <= -2.6e-29) tmp = t_2; elseif (Float64(b * c) <= -6.8e-240) tmp = t_1; elseif (Float64(b * c) <= 1.66e+196) tmp = t_2; else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (t * a); t_2 = -27.0 * (j * k); tmp = 0.0; if ((b * c) <= -7.2e+102) tmp = b * c; elseif ((b * c) <= -0.059) tmp = t_1; elseif ((b * c) <= -2.6e-29) tmp = t_2; elseif ((b * c) <= -6.8e-240) tmp = t_1; elseif ((b * c) <= 1.66e+196) tmp = t_2; else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -7.2e+102], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -0.059], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -2.6e-29], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -6.8e-240], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1.66e+196], t$95$2, N[(b * c), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right)\\
t_2 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;b \cdot c \leq -7.2 \cdot 10^{+102}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -0.059:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq -2.6 \cdot 10^{-29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \cdot c \leq -6.8 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq 1.66 \cdot 10^{+196}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -7.2000000000000003e102 or 1.65999999999999994e196 < (*.f64 b c) Initial program 78.0%
Simplified84.8%
Taylor expanded in y around 0 81.0%
associate-+r+81.0%
+-commutative81.0%
distribute-lft-out81.0%
metadata-eval81.0%
cancel-sign-sub-inv81.0%
distribute-lft-out81.0%
fma-neg86.1%
distribute-lft-out86.1%
distribute-lft-neg-in86.1%
metadata-eval86.1%
+-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in b around inf 66.4%
if -7.2000000000000003e102 < (*.f64 b c) < -0.058999999999999997 or -2.6000000000000002e-29 < (*.f64 b c) < -6.79999999999999979e-240Initial program 86.0%
Simplified91.9%
Taylor expanded in y around 0 67.3%
associate-+r+67.3%
+-commutative67.3%
distribute-lft-out67.3%
metadata-eval67.3%
cancel-sign-sub-inv67.3%
distribute-lft-out67.3%
fma-neg67.3%
distribute-lft-out67.3%
distribute-lft-neg-in67.3%
metadata-eval67.3%
+-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in t around inf 35.9%
if -0.058999999999999997 < (*.f64 b c) < -2.6000000000000002e-29 or -6.79999999999999979e-240 < (*.f64 b c) < 1.65999999999999994e196Initial program 84.7%
Simplified83.4%
Taylor expanded in j around inf 39.8%
Final simplification45.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* t a))))
(if (<= (* b c) -1.15e+103)
(* b c)
(if (<= (* b c) -0.0145)
t_1
(if (<= (* b c) -1.9e-28)
(* k (* j -27.0))
(if (<= (* b c) -7.8e-240)
t_1
(if (<= (* b c) 1.9e+196) (* -27.0 (* j k)) (* b c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if ((b * c) <= -1.15e+103) {
tmp = b * c;
} else if ((b * c) <= -0.0145) {
tmp = t_1;
} else if ((b * c) <= -1.9e-28) {
tmp = k * (j * -27.0);
} else if ((b * c) <= -7.8e-240) {
tmp = t_1;
} else if ((b * c) <= 1.9e+196) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-4.0d0) * (t * a)
if ((b * c) <= (-1.15d+103)) then
tmp = b * c
else if ((b * c) <= (-0.0145d0)) then
tmp = t_1
else if ((b * c) <= (-1.9d-28)) then
tmp = k * (j * (-27.0d0))
else if ((b * c) <= (-7.8d-240)) then
tmp = t_1
else if ((b * c) <= 1.9d+196) then
tmp = (-27.0d0) * (j * k)
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * (t * a);
double tmp;
if ((b * c) <= -1.15e+103) {
tmp = b * c;
} else if ((b * c) <= -0.0145) {
tmp = t_1;
} else if ((b * c) <= -1.9e-28) {
tmp = k * (j * -27.0);
} else if ((b * c) <= -7.8e-240) {
tmp = t_1;
} else if ((b * c) <= 1.9e+196) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (t * a) tmp = 0 if (b * c) <= -1.15e+103: tmp = b * c elif (b * c) <= -0.0145: tmp = t_1 elif (b * c) <= -1.9e-28: tmp = k * (j * -27.0) elif (b * c) <= -7.8e-240: tmp = t_1 elif (b * c) <= 1.9e+196: tmp = -27.0 * (j * k) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(t * a)) tmp = 0.0 if (Float64(b * c) <= -1.15e+103) tmp = Float64(b * c); elseif (Float64(b * c) <= -0.0145) tmp = t_1; elseif (Float64(b * c) <= -1.9e-28) tmp = Float64(k * Float64(j * -27.0)); elseif (Float64(b * c) <= -7.8e-240) tmp = t_1; elseif (Float64(b * c) <= 1.9e+196) tmp = Float64(-27.0 * Float64(j * k)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * (t * a); tmp = 0.0; if ((b * c) <= -1.15e+103) tmp = b * c; elseif ((b * c) <= -0.0145) tmp = t_1; elseif ((b * c) <= -1.9e-28) tmp = k * (j * -27.0); elseif ((b * c) <= -7.8e-240) tmp = t_1; elseif ((b * c) <= 1.9e+196) tmp = -27.0 * (j * k); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1.15e+103], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -0.0145], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -1.9e-28], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -7.8e-240], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1.9e+196], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right)\\
\mathbf{if}\;b \cdot c \leq -1.15 \cdot 10^{+103}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -0.0145:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq -1.9 \cdot 10^{-28}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq -7.8 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \cdot c \leq 1.9 \cdot 10^{+196}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.15000000000000004e103 or 1.9000000000000001e196 < (*.f64 b c) Initial program 78.0%
Simplified84.8%
Taylor expanded in y around 0 81.0%
associate-+r+81.0%
+-commutative81.0%
distribute-lft-out81.0%
metadata-eval81.0%
cancel-sign-sub-inv81.0%
distribute-lft-out81.0%
fma-neg86.1%
distribute-lft-out86.1%
distribute-lft-neg-in86.1%
metadata-eval86.1%
+-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in b around inf 66.4%
if -1.15000000000000004e103 < (*.f64 b c) < -0.0145000000000000007 or -1.90000000000000005e-28 < (*.f64 b c) < -7.80000000000000029e-240Initial program 86.0%
Simplified91.9%
Taylor expanded in y around 0 67.3%
associate-+r+67.3%
+-commutative67.3%
distribute-lft-out67.3%
metadata-eval67.3%
cancel-sign-sub-inv67.3%
distribute-lft-out67.3%
fma-neg67.3%
distribute-lft-out67.3%
distribute-lft-neg-in67.3%
metadata-eval67.3%
+-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in t around inf 35.9%
if -0.0145000000000000007 < (*.f64 b c) < -1.90000000000000005e-28Initial program 79.8%
Simplified89.7%
Taylor expanded in j around inf 70.5%
associate-*r*70.6%
*-commutative70.6%
Simplified70.6%
if -7.80000000000000029e-240 < (*.f64 b c) < 1.9000000000000001e196Initial program 85.1%
Simplified82.9%
Taylor expanded in j around inf 37.6%
Final simplification45.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* t a) (* x i)))) (t_2 (* 18.0 (* t (* z (* x y))))))
(if (<= j -9.5e+140)
(* -27.0 (* j k))
(if (<= j -4.2e+93)
t_2
(if (<= j -1e-54)
t_1
(if (<= j -1.42e-139)
t_2
(if (<= j 1.2e-253)
t_1
(if (<= j 4.9e-204)
(* 18.0 (* t (* x (* y z))))
(if (<= j 2e-41) t_1 (* j (* k -27.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = 18.0 * (t * (z * (x * y)));
double tmp;
if (j <= -9.5e+140) {
tmp = -27.0 * (j * k);
} else if (j <= -4.2e+93) {
tmp = t_2;
} else if (j <= -1e-54) {
tmp = t_1;
} else if (j <= -1.42e-139) {
tmp = t_2;
} else if (j <= 1.2e-253) {
tmp = t_1;
} else if (j <= 4.9e-204) {
tmp = 18.0 * (t * (x * (y * z)));
} else if (j <= 2e-41) {
tmp = t_1;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-4.0d0) * ((t * a) + (x * i))
t_2 = 18.0d0 * (t * (z * (x * y)))
if (j <= (-9.5d+140)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-4.2d+93)) then
tmp = t_2
else if (j <= (-1d-54)) then
tmp = t_1
else if (j <= (-1.42d-139)) then
tmp = t_2
else if (j <= 1.2d-253) then
tmp = t_1
else if (j <= 4.9d-204) then
tmp = 18.0d0 * (t * (x * (y * z)))
else if (j <= 2d-41) then
tmp = t_1
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = 18.0 * (t * (z * (x * y)));
double tmp;
if (j <= -9.5e+140) {
tmp = -27.0 * (j * k);
} else if (j <= -4.2e+93) {
tmp = t_2;
} else if (j <= -1e-54) {
tmp = t_1;
} else if (j <= -1.42e-139) {
tmp = t_2;
} else if (j <= 1.2e-253) {
tmp = t_1;
} else if (j <= 4.9e-204) {
tmp = 18.0 * (t * (x * (y * z)));
} else if (j <= 2e-41) {
tmp = t_1;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((t * a) + (x * i)) t_2 = 18.0 * (t * (z * (x * y))) tmp = 0 if j <= -9.5e+140: tmp = -27.0 * (j * k) elif j <= -4.2e+93: tmp = t_2 elif j <= -1e-54: tmp = t_1 elif j <= -1.42e-139: tmp = t_2 elif j <= 1.2e-253: tmp = t_1 elif j <= 4.9e-204: tmp = 18.0 * (t * (x * (y * z))) elif j <= 2e-41: tmp = t_1 else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) t_2 = Float64(18.0 * Float64(t * Float64(z * Float64(x * y)))) tmp = 0.0 if (j <= -9.5e+140) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -4.2e+93) tmp = t_2; elseif (j <= -1e-54) tmp = t_1; elseif (j <= -1.42e-139) tmp = t_2; elseif (j <= 1.2e-253) tmp = t_1; elseif (j <= 4.9e-204) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); elseif (j <= 2e-41) tmp = t_1; else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * ((t * a) + (x * i)); t_2 = 18.0 * (t * (z * (x * y))); tmp = 0.0; if (j <= -9.5e+140) tmp = -27.0 * (j * k); elseif (j <= -4.2e+93) tmp = t_2; elseif (j <= -1e-54) tmp = t_1; elseif (j <= -1.42e-139) tmp = t_2; elseif (j <= 1.2e-253) tmp = t_1; elseif (j <= 4.9e-204) tmp = 18.0 * (t * (x * (y * z))); elseif (j <= 2e-41) tmp = t_1; else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.5e+140], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.2e+93], t$95$2, If[LessEqual[j, -1e-54], t$95$1, If[LessEqual[j, -1.42e-139], t$95$2, If[LessEqual[j, 1.2e-253], t$95$1, If[LessEqual[j, 4.9e-204], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e-41], t$95$1, N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a + x \cdot i\right)\\
t_2 := 18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{if}\;j \leq -9.5 \cdot 10^{+140}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{+93}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.42 \cdot 10^{-139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{-253}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{-204}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{-41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -9.4999999999999994e140Initial program 83.4%
Simplified83.4%
Taylor expanded in j around inf 62.3%
if -9.4999999999999994e140 < j < -4.1999999999999996e93 or -1e-54 < j < -1.41999999999999997e-139Initial program 90.5%
Simplified81.5%
Taylor expanded in b around 0 66.1%
Simplified66.1%
Taylor expanded in y around inf 43.2%
associate-*r*50.6%
Simplified50.6%
if -4.1999999999999996e93 < j < -1e-54 or -1.41999999999999997e-139 < j < 1.20000000000000005e-253 or 4.90000000000000009e-204 < j < 2.00000000000000001e-41Initial program 85.8%
Simplified89.0%
Taylor expanded in y around 0 80.3%
associate-+r+80.3%
+-commutative80.3%
distribute-lft-out80.3%
metadata-eval80.3%
cancel-sign-sub-inv80.3%
distribute-lft-out80.3%
fma-neg81.4%
distribute-lft-out81.4%
distribute-lft-neg-in81.4%
metadata-eval81.4%
+-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in j around 0 65.8%
Taylor expanded in b around 0 48.5%
if 1.20000000000000005e-253 < j < 4.90000000000000009e-204Initial program 90.4%
associate--l-90.4%
associate-+l-90.4%
associate--l-90.4%
*-commutative90.4%
associate-*r*100.0%
associate-*l*100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*l*90.4%
associate--l-90.4%
Simplified90.4%
Taylor expanded in a around 0 80.4%
+-commutative80.4%
*-commutative80.4%
associate-*r*90.0%
associate-*l*90.0%
associate-*r*89.9%
*-commutative89.9%
associate-*r*80.4%
fma-def80.4%
*-commutative80.4%
associate-*l*89.9%
*-commutative89.9%
associate-*l*89.9%
*-commutative89.9%
associate-*r*90.0%
*-commutative90.0%
*-commutative90.0%
associate-*r*89.9%
associate-*l*90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in t around inf 41.8%
if 2.00000000000000001e-41 < j Initial program 77.7%
Simplified83.3%
Taylor expanded in y around 0 73.2%
associate-+r+73.2%
+-commutative73.2%
distribute-lft-out73.2%
metadata-eval73.2%
cancel-sign-sub-inv73.2%
distribute-lft-out73.2%
fma-neg74.3%
distribute-lft-out74.3%
distribute-lft-neg-in74.3%
metadata-eval74.3%
+-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in j around inf 35.8%
*-commutative35.8%
associate-*r*35.8%
*-commutative35.8%
Simplified35.8%
Final simplification46.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (+ (* t a) (* x i)))) (t_2 (* 18.0 (* t (* z (* x y))))))
(if (<= j -1.85e+140)
(* -27.0 (* j k))
(if (<= j -4.3e+93)
t_2
(if (<= j -9e-49)
t_1
(if (<= j -3.1e-139)
t_2
(if (<= j 1.5e-253)
t_1
(if (<= j 1.06e-203)
(* 18.0 (* x (* z (* y t))))
(if (<= j 2.15e-41) t_1 (* j (* k -27.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = 18.0 * (t * (z * (x * y)));
double tmp;
if (j <= -1.85e+140) {
tmp = -27.0 * (j * k);
} else if (j <= -4.3e+93) {
tmp = t_2;
} else if (j <= -9e-49) {
tmp = t_1;
} else if (j <= -3.1e-139) {
tmp = t_2;
} else if (j <= 1.5e-253) {
tmp = t_1;
} else if (j <= 1.06e-203) {
tmp = 18.0 * (x * (z * (y * t)));
} else if (j <= 2.15e-41) {
tmp = t_1;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-4.0d0) * ((t * a) + (x * i))
t_2 = 18.0d0 * (t * (z * (x * y)))
if (j <= (-1.85d+140)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-4.3d+93)) then
tmp = t_2
else if (j <= (-9d-49)) then
tmp = t_1
else if (j <= (-3.1d-139)) then
tmp = t_2
else if (j <= 1.5d-253) then
tmp = t_1
else if (j <= 1.06d-203) then
tmp = 18.0d0 * (x * (z * (y * t)))
else if (j <= 2.15d-41) then
tmp = t_1
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -4.0 * ((t * a) + (x * i));
double t_2 = 18.0 * (t * (z * (x * y)));
double tmp;
if (j <= -1.85e+140) {
tmp = -27.0 * (j * k);
} else if (j <= -4.3e+93) {
tmp = t_2;
} else if (j <= -9e-49) {
tmp = t_1;
} else if (j <= -3.1e-139) {
tmp = t_2;
} else if (j <= 1.5e-253) {
tmp = t_1;
} else if (j <= 1.06e-203) {
tmp = 18.0 * (x * (z * (y * t)));
} else if (j <= 2.15e-41) {
tmp = t_1;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * ((t * a) + (x * i)) t_2 = 18.0 * (t * (z * (x * y))) tmp = 0 if j <= -1.85e+140: tmp = -27.0 * (j * k) elif j <= -4.3e+93: tmp = t_2 elif j <= -9e-49: tmp = t_1 elif j <= -3.1e-139: tmp = t_2 elif j <= 1.5e-253: tmp = t_1 elif j <= 1.06e-203: tmp = 18.0 * (x * (z * (y * t))) elif j <= 2.15e-41: tmp = t_1 else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) t_2 = Float64(18.0 * Float64(t * Float64(z * Float64(x * y)))) tmp = 0.0 if (j <= -1.85e+140) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -4.3e+93) tmp = t_2; elseif (j <= -9e-49) tmp = t_1; elseif (j <= -3.1e-139) tmp = t_2; elseif (j <= 1.5e-253) tmp = t_1; elseif (j <= 1.06e-203) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(y * t)))); elseif (j <= 2.15e-41) tmp = t_1; else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -4.0 * ((t * a) + (x * i)); t_2 = 18.0 * (t * (z * (x * y))); tmp = 0.0; if (j <= -1.85e+140) tmp = -27.0 * (j * k); elseif (j <= -4.3e+93) tmp = t_2; elseif (j <= -9e-49) tmp = t_1; elseif (j <= -3.1e-139) tmp = t_2; elseif (j <= 1.5e-253) tmp = t_1; elseif (j <= 1.06e-203) tmp = 18.0 * (x * (z * (y * t))); elseif (j <= 2.15e-41) tmp = t_1; else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.85e+140], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.3e+93], t$95$2, If[LessEqual[j, -9e-49], t$95$1, If[LessEqual[j, -3.1e-139], t$95$2, If[LessEqual[j, 1.5e-253], t$95$1, If[LessEqual[j, 1.06e-203], N[(18.0 * N[(x * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.15e-41], t$95$1, N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a + x \cdot i\right)\\
t_2 := 18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{if}\;j \leq -1.85 \cdot 10^{+140}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{+93}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -9 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.1 \cdot 10^{-139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-253}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.06 \cdot 10^{-203}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(y \cdot t\right)\right)\right)\\
\mathbf{elif}\;j \leq 2.15 \cdot 10^{-41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -1.85000000000000001e140Initial program 83.4%
Simplified83.4%
Taylor expanded in j around inf 62.3%
if -1.85000000000000001e140 < j < -4.3e93 or -9.0000000000000004e-49 < j < -3.0999999999999999e-139Initial program 88.1%
Simplified79.6%
Taylor expanded in b around 0 65.1%
Simplified65.1%
Taylor expanded in y around inf 40.7%
associate-*r*47.7%
Simplified47.7%
if -4.3e93 < j < -9.0000000000000004e-49 or -3.0999999999999999e-139 < j < 1.5000000000000001e-253 or 1.0599999999999999e-203 < j < 2.1499999999999999e-41Initial program 86.6%
Simplified89.9%
Taylor expanded in y around 0 79.9%
associate-+r+79.9%
+-commutative79.9%
distribute-lft-out79.9%
metadata-eval79.9%
cancel-sign-sub-inv79.9%
distribute-lft-out79.9%
fma-neg81.0%
distribute-lft-out81.0%
distribute-lft-neg-in81.0%
metadata-eval81.0%
+-commutative81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in j around 0 66.1%
Taylor expanded in b around 0 48.4%
if 1.5000000000000001e-253 < j < 1.0599999999999999e-203Initial program 90.4%
associate--l-90.4%
associate-+l-90.4%
associate--l-90.4%
*-commutative90.4%
associate-*r*100.0%
associate-*l*100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*l*90.4%
associate--l-90.4%
Simplified90.4%
Taylor expanded in a around 0 80.4%
+-commutative80.4%
*-commutative80.4%
associate-*r*90.0%
associate-*l*90.0%
associate-*r*89.9%
*-commutative89.9%
associate-*r*80.4%
fma-def80.4%
*-commutative80.4%
associate-*l*89.9%
*-commutative89.9%
associate-*l*89.9%
*-commutative89.9%
associate-*r*90.0%
*-commutative90.0%
*-commutative90.0%
associate-*r*89.9%
associate-*l*90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in t around inf 41.8%
*-commutative41.8%
associate-*l*51.4%
*-commutative51.4%
associate-*r*51.3%
*-commutative51.3%
Simplified51.3%
if 2.1499999999999999e-41 < j Initial program 77.7%
Simplified83.3%
Taylor expanded in y around 0 73.2%
associate-+r+73.2%
+-commutative73.2%
distribute-lft-out73.2%
metadata-eval73.2%
cancel-sign-sub-inv73.2%
distribute-lft-out73.2%
fma-neg74.3%
distribute-lft-out74.3%
distribute-lft-neg-in74.3%
metadata-eval74.3%
+-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in j around inf 35.8%
*-commutative35.8%
associate-*r*35.8%
*-commutative35.8%
Simplified35.8%
Final simplification46.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a))))
(t_2 (* 18.0 (* t (* z (* x y)))))
(t_3 (* -27.0 (* j k))))
(if (<= j -8.5e+139)
t_3
(if (<= j -4.8e+93)
t_2
(if (<= j -3.7e-67)
t_1
(if (<= j -3.3e-139)
t_2
(if (<= j 3.5e-254)
(* -4.0 (+ (* t a) (* x i)))
(if (<= j 6.5e-222)
(* 18.0 (* x (* z (* y t))))
(if (<= j 5e-19) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double t_2 = 18.0 * (t * (z * (x * y)));
double t_3 = -27.0 * (j * k);
double tmp;
if (j <= -8.5e+139) {
tmp = t_3;
} else if (j <= -4.8e+93) {
tmp = t_2;
} else if (j <= -3.7e-67) {
tmp = t_1;
} else if (j <= -3.3e-139) {
tmp = t_2;
} else if (j <= 3.5e-254) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (j <= 6.5e-222) {
tmp = 18.0 * (x * (z * (y * t)));
} else if (j <= 5e-19) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
t_2 = 18.0d0 * (t * (z * (x * y)))
t_3 = (-27.0d0) * (j * k)
if (j <= (-8.5d+139)) then
tmp = t_3
else if (j <= (-4.8d+93)) then
tmp = t_2
else if (j <= (-3.7d-67)) then
tmp = t_1
else if (j <= (-3.3d-139)) then
tmp = t_2
else if (j <= 3.5d-254) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if (j <= 6.5d-222) then
tmp = 18.0d0 * (x * (z * (y * t)))
else if (j <= 5d-19) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double t_2 = 18.0 * (t * (z * (x * y)));
double t_3 = -27.0 * (j * k);
double tmp;
if (j <= -8.5e+139) {
tmp = t_3;
} else if (j <= -4.8e+93) {
tmp = t_2;
} else if (j <= -3.7e-67) {
tmp = t_1;
} else if (j <= -3.3e-139) {
tmp = t_2;
} else if (j <= 3.5e-254) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (j <= 6.5e-222) {
tmp = 18.0 * (x * (z * (y * t)));
} else if (j <= 5e-19) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (-4.0 * (t * a)) t_2 = 18.0 * (t * (z * (x * y))) t_3 = -27.0 * (j * k) tmp = 0 if j <= -8.5e+139: tmp = t_3 elif j <= -4.8e+93: tmp = t_2 elif j <= -3.7e-67: tmp = t_1 elif j <= -3.3e-139: tmp = t_2 elif j <= 3.5e-254: tmp = -4.0 * ((t * a) + (x * i)) elif j <= 6.5e-222: tmp = 18.0 * (x * (z * (y * t))) elif j <= 5e-19: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) t_2 = Float64(18.0 * Float64(t * Float64(z * Float64(x * y)))) t_3 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -8.5e+139) tmp = t_3; elseif (j <= -4.8e+93) tmp = t_2; elseif (j <= -3.7e-67) tmp = t_1; elseif (j <= -3.3e-139) tmp = t_2; elseif (j <= 3.5e-254) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (j <= 6.5e-222) tmp = Float64(18.0 * Float64(x * Float64(z * Float64(y * t)))); elseif (j <= 5e-19) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (-4.0 * (t * a)); t_2 = 18.0 * (t * (z * (x * y))); t_3 = -27.0 * (j * k); tmp = 0.0; if (j <= -8.5e+139) tmp = t_3; elseif (j <= -4.8e+93) tmp = t_2; elseif (j <= -3.7e-67) tmp = t_1; elseif (j <= -3.3e-139) tmp = t_2; elseif (j <= 3.5e-254) tmp = -4.0 * ((t * a) + (x * i)); elseif (j <= 6.5e-222) tmp = 18.0 * (x * (z * (y * t))); elseif (j <= 5e-19) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.5e+139], t$95$3, If[LessEqual[j, -4.8e+93], t$95$2, If[LessEqual[j, -3.7e-67], t$95$1, If[LessEqual[j, -3.3e-139], t$95$2, If[LessEqual[j, 3.5e-254], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e-222], N[(18.0 * N[(x * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-19], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_2 := 18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
t_3 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -8.5 \cdot 10^{+139}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -4.8 \cdot 10^{+93}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.3 \cdot 10^{-139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-254}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-222}:\\
\;\;\;\;18 \cdot \left(x \cdot \left(z \cdot \left(y \cdot t\right)\right)\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -8.5e139 or 5.0000000000000004e-19 < j Initial program 78.1%
Simplified82.3%
Taylor expanded in j around inf 45.1%
if -8.5e139 < j < -4.80000000000000021e93 or -3.6999999999999999e-67 < j < -3.3e-139Initial program 89.2%
Simplified78.9%
Taylor expanded in b around 0 64.8%
Simplified64.8%
Taylor expanded in y around inf 42.1%
associate-*r*50.6%
Simplified50.6%
if -4.80000000000000021e93 < j < -3.6999999999999999e-67 or 6.5000000000000005e-222 < j < 5.0000000000000004e-19Initial program 87.0%
Simplified89.8%
Taylor expanded in y around 0 85.2%
associate-+r+85.2%
+-commutative85.2%
distribute-lft-out85.2%
metadata-eval85.2%
cancel-sign-sub-inv85.2%
distribute-lft-out85.2%
fma-neg86.7%
distribute-lft-out86.7%
distribute-lft-neg-in86.7%
metadata-eval86.7%
+-commutative86.7%
*-commutative86.7%
Simplified86.7%
Taylor expanded in j around 0 68.4%
Taylor expanded in a around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -3.3e-139 < j < 3.50000000000000007e-254Initial program 89.9%
Simplified92.4%
Taylor expanded in y around 0 75.4%
associate-+r+75.4%
+-commutative75.4%
distribute-lft-out75.4%
metadata-eval75.4%
cancel-sign-sub-inv75.4%
distribute-lft-out75.4%
fma-neg75.4%
distribute-lft-out75.4%
distribute-lft-neg-in75.4%
metadata-eval75.4%
+-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in j around 0 63.6%
Taylor expanded in b around 0 55.9%
if 3.50000000000000007e-254 < j < 6.5000000000000005e-222Initial program 75.9%
associate--l-75.9%
associate-+l-75.9%
associate--l-75.9%
*-commutative75.9%
associate-*r*100.0%
associate-*l*100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*l*75.9%
associate--l-75.9%
Simplified75.9%
Taylor expanded in a around 0 75.9%
+-commutative75.9%
*-commutative75.9%
associate-*r*100.0%
associate-*l*100.0%
associate-*r*99.6%
*-commutative99.6%
associate-*r*75.9%
fma-def75.9%
*-commutative75.9%
associate-*l*99.6%
*-commutative99.6%
associate-*l*99.6%
*-commutative99.6%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
associate-*r*99.6%
associate-*l*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around inf 51.4%
*-commutative51.4%
associate-*l*75.5%
*-commutative75.5%
associate-*r*75.2%
*-commutative75.2%
Simplified75.2%
Final simplification50.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (- (* b c) (* 4.0 (* t a))) (* (* j 27.0) k)))
(t_2 (* x (+ (* 18.0 (* z (* y t))) (* i -4.0)))))
(if (<= x -3.3e+167)
t_2
(if (<= x -2.25e+52)
t_1
(if (<= x -1.9e-6)
t_2
(if (<= x 8.8e-30)
t_1
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k);
double t_2 = x * ((18.0 * (z * (y * t))) + (i * -4.0));
double tmp;
if (x <= -3.3e+167) {
tmp = t_2;
} else if (x <= -2.25e+52) {
tmp = t_1;
} else if (x <= -1.9e-6) {
tmp = t_2;
} else if (x <= 8.8e-30) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((b * c) - (4.0d0 * (t * a))) - ((j * 27.0d0) * k)
t_2 = x * ((18.0d0 * (z * (y * t))) + (i * (-4.0d0)))
if (x <= (-3.3d+167)) then
tmp = t_2
else if (x <= (-2.25d+52)) then
tmp = t_1
else if (x <= (-1.9d-6)) then
tmp = t_2
else if (x <= 8.8d-30) then
tmp = t_1
else
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k);
double t_2 = x * ((18.0 * (z * (y * t))) + (i * -4.0));
double tmp;
if (x <= -3.3e+167) {
tmp = t_2;
} else if (x <= -2.25e+52) {
tmp = t_1;
} else if (x <= -1.9e-6) {
tmp = t_2;
} else if (x <= 8.8e-30) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k) t_2 = x * ((18.0 * (z * (y * t))) + (i * -4.0)) tmp = 0 if x <= -3.3e+167: tmp = t_2 elif x <= -2.25e+52: tmp = t_1 elif x <= -1.9e-6: tmp = t_2 elif x <= 8.8e-30: tmp = t_1 else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(j * 27.0) * k)) t_2 = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))) tmp = 0.0 if (x <= -3.3e+167) tmp = t_2; elseif (x <= -2.25e+52) tmp = t_1; elseif (x <= -1.9e-6) tmp = t_2; elseif (x <= 8.8e-30) tmp = t_1; else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k); t_2 = x * ((18.0 * (z * (y * t))) + (i * -4.0)); tmp = 0.0; if (x <= -3.3e+167) tmp = t_2; elseif (x <= -2.25e+52) tmp = t_1; elseif (x <= -1.9e-6) tmp = t_2; elseif (x <= 8.8e-30) tmp = t_1; else tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+167], t$95$2, If[LessEqual[x, -2.25e+52], t$95$1, If[LessEqual[x, -1.9e-6], t$95$2, If[LessEqual[x, 8.8e-30], t$95$1, N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(j \cdot 27\right) \cdot k\\
t_2 := x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+167}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.25 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-6}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if x < -3.30000000000000018e167 or -2.25e52 < x < -1.9e-6Initial program 62.0%
associate--l-62.0%
associate-+l-62.0%
associate--l-62.0%
*-commutative62.0%
associate-*r*61.9%
associate-*l*64.3%
associate-*r*62.2%
*-commutative62.2%
associate-*l*62.1%
associate--l-62.1%
Simplified66.8%
Taylor expanded in a around 0 69.4%
+-commutative69.4%
*-commutative69.4%
associate-*r*67.0%
associate-*l*67.0%
associate-*r*67.0%
*-commutative67.0%
associate-*r*69.5%
fma-def69.5%
*-commutative69.5%
associate-*l*74.0%
*-commutative74.0%
associate-*l*74.0%
*-commutative74.0%
associate-*r*74.0%
*-commutative74.0%
*-commutative74.0%
associate-*r*71.8%
associate-*l*71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around inf 83.1%
cancel-sign-sub-inv83.1%
metadata-eval83.1%
*-commutative83.1%
associate-*r*80.9%
Simplified80.9%
if -3.30000000000000018e167 < x < -2.25e52 or -1.9e-6 < x < 8.79999999999999933e-30Initial program 92.2%
Taylor expanded in x around 0 79.0%
if 8.79999999999999933e-30 < x Initial program 75.8%
associate--l-75.8%
associate-+l-75.8%
associate--l-75.8%
*-commutative75.8%
associate-*r*78.8%
associate-*l*78.8%
associate-*r*78.4%
*-commutative78.4%
associate-*l*72.4%
associate--l-72.4%
Simplified74.1%
Taylor expanded in x around inf 66.6%
Final simplification76.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* t (* x (* y z))))) (t_2 (* -4.0 (+ (* t a) (* x i)))))
(if (<= j -2e+139)
(* -27.0 (* j k))
(if (<= j -1.2e-53)
t_2
(if (<= j -3.7e-140)
t_1
(if (<= j 1.6e-253)
t_2
(if (<= j 4.4e-204)
t_1
(if (<= j 2.2e-41) t_2 (* j (* k -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (t * (x * (y * z)));
double t_2 = -4.0 * ((t * a) + (x * i));
double tmp;
if (j <= -2e+139) {
tmp = -27.0 * (j * k);
} else if (j <= -1.2e-53) {
tmp = t_2;
} else if (j <= -3.7e-140) {
tmp = t_1;
} else if (j <= 1.6e-253) {
tmp = t_2;
} else if (j <= 4.4e-204) {
tmp = t_1;
} else if (j <= 2.2e-41) {
tmp = t_2;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 18.0d0 * (t * (x * (y * z)))
t_2 = (-4.0d0) * ((t * a) + (x * i))
if (j <= (-2d+139)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-1.2d-53)) then
tmp = t_2
else if (j <= (-3.7d-140)) then
tmp = t_1
else if (j <= 1.6d-253) then
tmp = t_2
else if (j <= 4.4d-204) then
tmp = t_1
else if (j <= 2.2d-41) then
tmp = t_2
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (t * (x * (y * z)));
double t_2 = -4.0 * ((t * a) + (x * i));
double tmp;
if (j <= -2e+139) {
tmp = -27.0 * (j * k);
} else if (j <= -1.2e-53) {
tmp = t_2;
} else if (j <= -3.7e-140) {
tmp = t_1;
} else if (j <= 1.6e-253) {
tmp = t_2;
} else if (j <= 4.4e-204) {
tmp = t_1;
} else if (j <= 2.2e-41) {
tmp = t_2;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (t * (x * (y * z))) t_2 = -4.0 * ((t * a) + (x * i)) tmp = 0 if j <= -2e+139: tmp = -27.0 * (j * k) elif j <= -1.2e-53: tmp = t_2 elif j <= -3.7e-140: tmp = t_1 elif j <= 1.6e-253: tmp = t_2 elif j <= 4.4e-204: tmp = t_1 elif j <= 2.2e-41: tmp = t_2 else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) t_2 = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) tmp = 0.0 if (j <= -2e+139) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -1.2e-53) tmp = t_2; elseif (j <= -3.7e-140) tmp = t_1; elseif (j <= 1.6e-253) tmp = t_2; elseif (j <= 4.4e-204) tmp = t_1; elseif (j <= 2.2e-41) tmp = t_2; else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 18.0 * (t * (x * (y * z))); t_2 = -4.0 * ((t * a) + (x * i)); tmp = 0.0; if (j <= -2e+139) tmp = -27.0 * (j * k); elseif (j <= -1.2e-53) tmp = t_2; elseif (j <= -3.7e-140) tmp = t_1; elseif (j <= 1.6e-253) tmp = t_2; elseif (j <= 4.4e-204) tmp = t_1; elseif (j <= 2.2e-41) tmp = t_2; else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2e+139], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e-53], t$95$2, If[LessEqual[j, -3.7e-140], t$95$1, If[LessEqual[j, 1.6e-253], t$95$2, If[LessEqual[j, 4.4e-204], t$95$1, If[LessEqual[j, 2.2e-41], t$95$2, N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
t_2 := -4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{if}\;j \leq -2 \cdot 10^{+139}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-253}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-204}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{-41}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -2.00000000000000007e139Initial program 83.8%
Simplified83.9%
Taylor expanded in j around inf 60.7%
if -2.00000000000000007e139 < j < -1.20000000000000004e-53 or -3.69999999999999977e-140 < j < 1.5999999999999999e-253 or 4.3999999999999997e-204 < j < 2.2e-41Initial program 86.9%
Simplified89.0%
Taylor expanded in y around 0 78.9%
associate-+r+78.9%
+-commutative78.9%
distribute-lft-out78.9%
metadata-eval78.9%
cancel-sign-sub-inv78.9%
distribute-lft-out78.9%
fma-neg79.9%
distribute-lft-out79.9%
distribute-lft-neg-in79.9%
metadata-eval79.9%
+-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in j around 0 65.1%
Taylor expanded in b around 0 46.7%
if -1.20000000000000004e-53 < j < -3.69999999999999977e-140 or 1.5999999999999999e-253 < j < 4.3999999999999997e-204Initial program 87.9%
associate--l-87.9%
associate-+l-87.9%
associate--l-87.9%
*-commutative87.9%
associate-*r*90.8%
associate-*l*90.8%
associate-*r*90.8%
*-commutative90.8%
associate-*l*87.8%
associate--l-87.8%
Simplified87.8%
Taylor expanded in a around 0 69.9%
+-commutative69.9%
*-commutative69.9%
associate-*r*72.8%
associate-*l*72.8%
associate-*r*72.7%
*-commutative72.7%
associate-*r*69.9%
fma-def69.9%
*-commutative69.9%
associate-*l*72.8%
*-commutative72.8%
associate-*l*72.8%
*-commutative72.8%
associate-*r*72.8%
*-commutative72.8%
*-commutative72.8%
associate-*r*72.8%
associate-*l*72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in t around inf 42.2%
if 2.2e-41 < j Initial program 77.7%
Simplified83.3%
Taylor expanded in y around 0 73.2%
associate-+r+73.2%
+-commutative73.2%
distribute-lft-out73.2%
metadata-eval73.2%
cancel-sign-sub-inv73.2%
distribute-lft-out73.2%
fma-neg74.3%
distribute-lft-out74.3%
distribute-lft-neg-in74.3%
metadata-eval74.3%
+-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in j around inf 35.8%
*-commutative35.8%
associate-*r*35.8%
*-commutative35.8%
Simplified35.8%
Final simplification44.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= x -3.3e+167)
(* x (+ (* 18.0 (* z (* y t))) (* i -4.0)))
(if (<= x -5.6e-36)
(- (- (* b c) (* 4.0 (* x i))) t_1)
(if (<= x 8.5e-30)
(- (- (* b c) (* 4.0 (* t a))) t_1)
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (x <= -3.3e+167) {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
} else if (x <= -5.6e-36) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (x <= 8.5e-30) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (x <= (-3.3d+167)) then
tmp = x * ((18.0d0 * (z * (y * t))) + (i * (-4.0d0)))
else if (x <= (-5.6d-36)) then
tmp = ((b * c) - (4.0d0 * (x * i))) - t_1
else if (x <= 8.5d-30) then
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
else
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (x <= -3.3e+167) {
tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0));
} else if (x <= -5.6e-36) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (x <= 8.5e-30) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if x <= -3.3e+167: tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)) elif x <= -5.6e-36: tmp = ((b * c) - (4.0 * (x * i))) - t_1 elif x <= 8.5e-30: tmp = ((b * c) - (4.0 * (t * a))) - t_1 else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (x <= -3.3e+167) tmp = Float64(x * Float64(Float64(18.0 * Float64(z * Float64(y * t))) + Float64(i * -4.0))); elseif (x <= -5.6e-36) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - t_1); elseif (x <= 8.5e-30) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if (x <= -3.3e+167) tmp = x * ((18.0 * (z * (y * t))) + (i * -4.0)); elseif (x <= -5.6e-36) tmp = ((b * c) - (4.0 * (x * i))) - t_1; elseif (x <= 8.5e-30) tmp = ((b * c) - (4.0 * (t * a))) - t_1; else tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)); 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]}, If[LessEqual[x, -3.3e+167], N[(x * N[(N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.6e-36], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 8.5e-30], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+167}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(z \cdot \left(y \cdot t\right)\right) + i \cdot -4\right)\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-36}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t_1\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-30}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if x < -3.30000000000000018e167Initial program 46.7%
associate--l-46.7%
associate-+l-46.7%
associate--l-46.7%
*-commutative46.7%
associate-*r*49.9%
associate-*l*53.4%
associate-*r*50.3%
*-commutative50.3%
associate-*l*46.7%
associate--l-46.7%
Simplified53.9%
Taylor expanded in a around 0 57.3%
+-commutative57.3%
*-commutative57.3%
associate-*r*53.8%
associate-*l*53.7%
associate-*r*53.7%
*-commutative53.7%
associate-*r*57.4%
fma-def57.4%
*-commutative57.4%
associate-*l*64.2%
*-commutative64.2%
associate-*l*64.2%
*-commutative64.2%
associate-*r*64.2%
*-commutative64.2%
*-commutative64.2%
associate-*r*64.2%
associate-*l*64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in x around inf 89.4%
cancel-sign-sub-inv89.4%
metadata-eval89.4%
*-commutative89.4%
associate-*r*89.4%
Simplified89.4%
if -3.30000000000000018e167 < x < -5.6000000000000002e-36Initial program 89.8%
Taylor expanded in t around 0 72.9%
if -5.6000000000000002e-36 < x < 8.49999999999999931e-30Initial program 93.0%
Taylor expanded in x around 0 80.7%
if 8.49999999999999931e-30 < x Initial program 75.8%
associate--l-75.8%
associate-+l-75.8%
associate--l-75.8%
*-commutative75.8%
associate-*r*78.8%
associate-*l*78.8%
associate-*r*78.4%
*-commutative78.4%
associate-*l*72.4%
associate--l-72.4%
Simplified74.1%
Taylor expanded in x around inf 66.6%
Final simplification77.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* j (* k -27.0)))))
(if (<= a -3.3e+59)
(+ (* b c) (* -4.0 (* t a)))
(if (<= a -7.8e-263)
t_1
(if (<= a -2.5e-306)
(* 18.0 (* (* y z) (* x t)))
(if (<= a 2.7e+85) t_1 (* -4.0 (+ (* t a) (* x i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (j * (k * -27.0));
double tmp;
if (a <= -3.3e+59) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (a <= -7.8e-263) {
tmp = t_1;
} else if (a <= -2.5e-306) {
tmp = 18.0 * ((y * z) * (x * t));
} else if (a <= 2.7e+85) {
tmp = t_1;
} else {
tmp = -4.0 * ((t * a) + (x * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (j * (k * (-27.0d0)))
if (a <= (-3.3d+59)) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if (a <= (-7.8d-263)) then
tmp = t_1
else if (a <= (-2.5d-306)) then
tmp = 18.0d0 * ((y * z) * (x * t))
else if (a <= 2.7d+85) then
tmp = t_1
else
tmp = (-4.0d0) * ((t * a) + (x * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (j * (k * -27.0));
double tmp;
if (a <= -3.3e+59) {
tmp = (b * c) + (-4.0 * (t * a));
} else if (a <= -7.8e-263) {
tmp = t_1;
} else if (a <= -2.5e-306) {
tmp = 18.0 * ((y * z) * (x * t));
} else if (a <= 2.7e+85) {
tmp = t_1;
} else {
tmp = -4.0 * ((t * a) + (x * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (j * (k * -27.0)) tmp = 0 if a <= -3.3e+59: tmp = (b * c) + (-4.0 * (t * a)) elif a <= -7.8e-263: tmp = t_1 elif a <= -2.5e-306: tmp = 18.0 * ((y * z) * (x * t)) elif a <= 2.7e+85: tmp = t_1 else: tmp = -4.0 * ((t * a) + (x * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))) tmp = 0.0 if (a <= -3.3e+59) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (a <= -7.8e-263) tmp = t_1; elseif (a <= -2.5e-306) tmp = Float64(18.0 * Float64(Float64(y * z) * Float64(x * t))); elseif (a <= 2.7e+85) tmp = t_1; else tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (j * (k * -27.0)); tmp = 0.0; if (a <= -3.3e+59) tmp = (b * c) + (-4.0 * (t * a)); elseif (a <= -7.8e-263) tmp = t_1; elseif (a <= -2.5e-306) tmp = 18.0 * ((y * z) * (x * t)); elseif (a <= 2.7e+85) tmp = t_1; else tmp = -4.0 * ((t * a) + (x * i)); 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[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.3e+59], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.8e-263], t$95$1, If[LessEqual[a, -2.5e-306], N[(18.0 * N[(N[(y * z), $MachinePrecision] * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+85], t$95$1, N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;a \leq -3.3 \cdot 10^{+59}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{-263}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-306}:\\
\;\;\;\;18 \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot t\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+85}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\end{array}
\end{array}
if a < -3.2999999999999999e59Initial program 83.8%
Simplified90.7%
Taylor expanded in y around 0 77.1%
associate-+r+77.1%
+-commutative77.1%
distribute-lft-out77.1%
metadata-eval77.1%
cancel-sign-sub-inv77.1%
distribute-lft-out77.1%
fma-neg77.2%
distribute-lft-out77.2%
distribute-lft-neg-in77.2%
metadata-eval77.2%
+-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in j around 0 58.7%
Taylor expanded in a around inf 51.6%
*-commutative51.6%
Simplified51.6%
if -3.2999999999999999e59 < a < -7.79999999999999939e-263 or -2.49999999999999999e-306 < a < 2.69999999999999983e85Initial program 83.4%
Simplified82.7%
Taylor expanded in b around inf 56.3%
if -7.79999999999999939e-263 < a < -2.49999999999999999e-306Initial program 82.2%
associate--l-82.2%
associate-+l-82.2%
associate--l-82.2%
*-commutative82.2%
associate-*r*90.6%
associate-*l*82.1%
associate-*r*73.7%
*-commutative73.7%
associate-*l*82.1%
associate--l-82.1%
Simplified82.1%
Taylor expanded in a around 0 82.2%
+-commutative82.2%
*-commutative82.2%
associate-*r*90.8%
associate-*l*90.6%
associate-*r*90.6%
*-commutative90.6%
associate-*r*82.2%
fma-def82.2%
*-commutative82.2%
associate-*l*73.6%
*-commutative73.6%
associate-*l*73.6%
*-commutative73.6%
associate-*r*73.6%
*-commutative73.6%
*-commutative73.6%
associate-*r*73.6%
associate-*l*73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in t around inf 55.7%
associate-*r*64.3%
Simplified64.3%
if 2.69999999999999983e85 < a Initial program 83.6%
Simplified89.8%
Taylor expanded in y around 0 79.9%
associate-+r+79.9%
+-commutative79.9%
distribute-lft-out79.9%
metadata-eval79.9%
cancel-sign-sub-inv79.9%
distribute-lft-out79.9%
fma-neg86.0%
distribute-lft-out86.0%
distribute-lft-neg-in86.0%
metadata-eval86.0%
+-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in j around 0 72.0%
Taylor expanded in b around 0 68.3%
Final simplification58.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* j (* k -27.0)))))
(if (<= k -3e-224)
t_1
(if (<= k 5.3e-180)
(* -4.0 (+ (* t a) (* x i)))
(if (<= k 3.6e+86)
(- (* b c) (* 4.0 (* x i)))
(if (<= k 1.3e+190) (* 18.0 (* t (* z (* x y)))) 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) + (j * (k * -27.0));
double tmp;
if (k <= -3e-224) {
tmp = t_1;
} else if (k <= 5.3e-180) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (k <= 3.6e+86) {
tmp = (b * c) - (4.0 * (x * i));
} else if (k <= 1.3e+190) {
tmp = 18.0 * (t * (z * (x * y)));
} 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) + (j * (k * (-27.0d0)))
if (k <= (-3d-224)) then
tmp = t_1
else if (k <= 5.3d-180) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if (k <= 3.6d+86) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (k <= 1.3d+190) then
tmp = 18.0d0 * (t * (z * (x * y)))
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) + (j * (k * -27.0));
double tmp;
if (k <= -3e-224) {
tmp = t_1;
} else if (k <= 5.3e-180) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (k <= 3.6e+86) {
tmp = (b * c) - (4.0 * (x * i));
} else if (k <= 1.3e+190) {
tmp = 18.0 * (t * (z * (x * y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (j * (k * -27.0)) tmp = 0 if k <= -3e-224: tmp = t_1 elif k <= 5.3e-180: tmp = -4.0 * ((t * a) + (x * i)) elif k <= 3.6e+86: tmp = (b * c) - (4.0 * (x * i)) elif k <= 1.3e+190: tmp = 18.0 * (t * (z * (x * y))) 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(j * Float64(k * -27.0))) tmp = 0.0 if (k <= -3e-224) tmp = t_1; elseif (k <= 5.3e-180) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (k <= 3.6e+86) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (k <= 1.3e+190) tmp = Float64(18.0 * Float64(t * Float64(z * Float64(x * y)))); 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) + (j * (k * -27.0)); tmp = 0.0; if (k <= -3e-224) tmp = t_1; elseif (k <= 5.3e-180) tmp = -4.0 * ((t * a) + (x * i)); elseif (k <= 3.6e+86) tmp = (b * c) - (4.0 * (x * i)); elseif (k <= 1.3e+190) tmp = 18.0 * (t * (z * (x * y))); 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[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -3e-224], t$95$1, If[LessEqual[k, 5.3e-180], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.6e+86], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.3e+190], N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;k \leq -3 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 5.3 \cdot 10^{-180}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;k \leq 3.6 \cdot 10^{+86}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;k \leq 1.3 \cdot 10^{+190}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -2.99999999999999982e-224 or 1.30000000000000005e190 < k Initial program 83.9%
Simplified83.8%
Taylor expanded in b around inf 57.3%
if -2.99999999999999982e-224 < k < 5.2999999999999996e-180Initial program 78.0%
Simplified85.6%
Taylor expanded in y around 0 73.2%
associate-+r+73.2%
+-commutative73.2%
distribute-lft-out73.2%
metadata-eval73.2%
cancel-sign-sub-inv73.2%
distribute-lft-out73.2%
fma-neg73.2%
distribute-lft-out73.2%
distribute-lft-neg-in73.2%
metadata-eval73.2%
+-commutative73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in j around 0 73.2%
Taylor expanded in b around 0 52.7%
if 5.2999999999999996e-180 < k < 3.60000000000000005e86Initial program 85.7%
Taylor expanded in y around 0 71.9%
Taylor expanded in a around 0 61.5%
associate-*r*61.5%
*-commutative61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in j around 0 48.5%
if 3.60000000000000005e86 < k < 1.30000000000000005e190Initial program 88.9%
Simplified83.5%
Taylor expanded in b around 0 83.4%
Simplified83.6%
Taylor expanded in y around inf 45.4%
associate-*r*50.7%
Simplified50.7%
Final simplification54.0%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -7e+138) (not (<= (* b c) 1.3e+196))) (* b c) (* -27.0 (* j k))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -7e+138) || !((b * c) <= 1.3e+196)) {
tmp = b * c;
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-7d+138)) .or. (.not. ((b * c) <= 1.3d+196))) then
tmp = b * c
else
tmp = (-27.0d0) * (j * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -7e+138) || !((b * c) <= 1.3e+196)) {
tmp = b * c;
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -7e+138) or not ((b * c) <= 1.3e+196): tmp = b * c else: tmp = -27.0 * (j * k) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -7e+138) || !(Float64(b * c) <= 1.3e+196)) tmp = Float64(b * c); else tmp = Float64(-27.0 * Float64(j * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (((b * c) <= -7e+138) || ~(((b * c) <= 1.3e+196))) tmp = b * c; else tmp = -27.0 * (j * k); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -7e+138], N[Not[LessEqual[N[(b * c), $MachinePrecision], 1.3e+196]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -7 \cdot 10^{+138} \lor \neg \left(b \cdot c \leq 1.3 \cdot 10^{+196}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -6.9999999999999996e138 or 1.30000000000000006e196 < (*.f64 b c) Initial program 78.5%
Simplified84.4%
Taylor expanded in y around 0 80.0%
associate-+r+80.0%
+-commutative80.0%
distribute-lft-out80.0%
metadata-eval80.0%
cancel-sign-sub-inv80.0%
distribute-lft-out80.0%
fma-neg85.9%
distribute-lft-out85.9%
distribute-lft-neg-in85.9%
metadata-eval85.9%
+-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in b around inf 74.5%
if -6.9999999999999996e138 < (*.f64 b c) < 1.30000000000000006e196Initial program 84.7%
Simplified85.6%
Taylor expanded in j around inf 32.7%
Final simplification41.0%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= j -4.8e+138) (* -27.0 (* j k)) (if (<= j 2.15e-41) (* -4.0 (+ (* t a) (* x i))) (* j (* k -27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -4.8e+138) {
tmp = -27.0 * (j * k);
} else if (j <= 2.15e-41) {
tmp = -4.0 * ((t * a) + (x * i));
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-4.8d+138)) then
tmp = (-27.0d0) * (j * k)
else if (j <= 2.15d-41) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -4.8e+138) {
tmp = -27.0 * (j * k);
} else if (j <= 2.15e-41) {
tmp = -4.0 * ((t * a) + (x * i));
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -4.8e+138: tmp = -27.0 * (j * k) elif j <= 2.15e-41: tmp = -4.0 * ((t * a) + (x * i)) else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -4.8e+138) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= 2.15e-41) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -4.8e+138) tmp = -27.0 * (j * k); elseif (j <= 2.15e-41) tmp = -4.0 * ((t * a) + (x * i)); else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -4.8e+138], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.15e-41], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.8 \cdot 10^{+138}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq 2.15 \cdot 10^{-41}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -4.8000000000000002e138Initial program 83.8%
Simplified83.9%
Taylor expanded in j around inf 60.7%
if -4.8000000000000002e138 < j < 2.1499999999999999e-41Initial program 87.2%
Simplified87.2%
Taylor expanded in y around 0 73.9%
associate-+r+73.9%
+-commutative73.9%
distribute-lft-out73.9%
metadata-eval73.9%
cancel-sign-sub-inv73.9%
distribute-lft-out73.9%
fma-neg75.4%
distribute-lft-out75.4%
distribute-lft-neg-in75.4%
metadata-eval75.4%
+-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in j around 0 60.5%
Taylor expanded in b around 0 43.0%
if 2.1499999999999999e-41 < j Initial program 77.7%
Simplified83.3%
Taylor expanded in y around 0 73.2%
associate-+r+73.2%
+-commutative73.2%
distribute-lft-out73.2%
metadata-eval73.2%
cancel-sign-sub-inv73.2%
distribute-lft-out73.2%
fma-neg74.3%
distribute-lft-out74.3%
distribute-lft-neg-in74.3%
metadata-eval74.3%
+-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in j around inf 35.8%
*-commutative35.8%
associate-*r*35.8%
*-commutative35.8%
Simplified35.8%
Final simplification43.1%
(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 83.4%
Simplified85.4%
Taylor expanded in y around 0 75.3%
associate-+r+75.3%
+-commutative75.3%
distribute-lft-out75.3%
metadata-eval75.3%
cancel-sign-sub-inv75.3%
distribute-lft-out75.3%
fma-neg76.5%
distribute-lft-out76.5%
distribute-lft-neg-in76.5%
metadata-eval76.5%
+-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in b around inf 20.9%
Final simplification20.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 2023301
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:herbie-target
(if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))