
(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 30 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 (* k (* j 27.0)))
(t_2
(-
(-
(+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i))))
(* 4.0 (* t a)))
t_1))
(t_3
(-
(-
(+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
(* i (* x 4.0)))
t_1)))
(if (<= t_3 (- INFINITY))
t_2
(if (<= t_3 2e+269)
t_3
(if (<= t_3 INFINITY) t_2 (- (fma x (* -4.0 i) (* 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 = k * (j * 27.0);
double t_2 = (((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a))) - t_1;
double t_3 = (((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - t_1;
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = t_2;
} else if (t_3 <= 2e+269) {
tmp = t_3;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = fma(x, (-4.0 * i), (b * c)) - t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * 27.0)) t_2 = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))) - t_1) t_3 = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) - t_1) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = t_2; elseif (t_3 <= 2e+269) tmp = t_3; elseif (t_3 <= Inf) tmp = t_2; else tmp = Float64(fma(x, Float64(-4.0 * i), Float64(b * c)) - t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], t$95$2, If[LessEqual[t$95$3, 2e+269], t$95$3, If[LessEqual[t$95$3, Infinity], t$95$2, N[(N[(x * N[(-4.0 * i), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
t_2 := \left(\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\right) - t_1\\
t_3 := \left(\left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\right) - t_1\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_3 \leq 2 \cdot 10^{+269}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_3 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, -4 \cdot i, b \cdot c\right) - t_1\\
\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.0 or 2.0000000000000001e269 < (-.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 89.8%
Taylor expanded in x around 0 96.2%
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)) < 2.0000000000000001e269Initial program 99.8%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) Initial program 0.0%
Taylor expanded in t around 0 44.3%
Taylor expanded in c around 0 44.3%
metadata-eval44.3%
cancel-sign-sub-inv44.3%
*-commutative44.3%
associate-*r*44.3%
*-commutative44.3%
associate-*r*44.3%
sub-neg44.3%
+-commutative44.3%
distribute-rgt-neg-in44.3%
distribute-lft-neg-in44.3%
metadata-eval44.3%
fma-def52.3%
Simplified52.3%
Final simplification93.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(-
(+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
(* i (* x 4.0)))))
(if (<= t_1 (- INFINITY))
(- (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i)))) (* 4.0 (* t a)))
(if (<= t_1 1e+293)
(- t_1 (* k (* j 27.0)))
(fma
c
b
(fma t (fma 18.0 (* y (* x z)) (* a -4.0)) (* -4.0 (* x i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a));
} else if (t_1 <= 1e+293) {
tmp = t_1 - (k * (j * 27.0));
} else {
tmp = fma(c, b, fma(t, fma(18.0, (y * (x * z)), (a * -4.0)), (-4.0 * (x * i))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))); elseif (t_1 <= 1e+293) tmp = Float64(t_1 - Float64(k * Float64(j * 27.0))); else tmp = fma(c, b, fma(t, fma(18.0, Float64(y * Float64(x * z)), Float64(a * -4.0)), Float64(-4.0 * Float64(x * i)))); end return 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[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+293], N[(t$95$1 - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * b + N[(t * N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t_1 \leq 10^{+293}:\\
\;\;\;\;t_1 - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, b, \mathsf{fma}\left(t, \mathsf{fma}\left(18, y \cdot \left(x \cdot z\right), a \cdot -4\right), -4 \cdot \left(x \cdot i\right)\right)\right)\\
\end{array}
\end{array}
if (-.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)) < -inf.0Initial program 83.7%
Taylor expanded in x around 0 94.4%
Taylor expanded in j around 0 92.7%
if -inf.0 < (-.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)) < 9.9999999999999992e292Initial program 99.8%
if 9.9999999999999992e292 < (-.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)) Initial program 62.1%
Simplified69.7%
Taylor expanded in j around 0 68.4%
associate--l+68.4%
fma-def74.8%
cancel-sign-sub-inv74.8%
metadata-eval74.8%
cancel-sign-sub-inv74.8%
metadata-eval74.8%
fma-def76.1%
fma-def76.1%
*-commutative76.1%
*-commutative76.1%
*-commutative76.1%
Simplified76.1%
Final simplification91.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(-
(+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
(* i (* x 4.0)))))
(if (<= t_1 (- INFINITY))
(- (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i)))) (* 4.0 (* t a)))
(if (<= t_1 1e+293)
(- t_1 (* k (* j 27.0)))
(fma
x
(* -4.0 i)
(fma c b (* t (fma 18.0 (* y (* x z)) (* a -4.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a));
} else if (t_1 <= 1e+293) {
tmp = t_1 - (k * (j * 27.0));
} else {
tmp = fma(x, (-4.0 * i), fma(c, b, (t * fma(18.0, (y * (x * z)), (a * -4.0)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))); elseif (t_1 <= 1e+293) tmp = Float64(t_1 - Float64(k * Float64(j * 27.0))); else tmp = fma(x, Float64(-4.0 * i), fma(c, b, Float64(t * fma(18.0, Float64(y * Float64(x * z)), Float64(a * -4.0))))); end return 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[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+293], N[(t$95$1 - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-4.0 * i), $MachinePrecision] + N[(c * b + N[(t * N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t_1 \leq 10^{+293}:\\
\;\;\;\;t_1 - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, -4 \cdot i, \mathsf{fma}\left(c, b, t \cdot \mathsf{fma}\left(18, y \cdot \left(x \cdot z\right), a \cdot -4\right)\right)\right)\\
\end{array}
\end{array}
if (-.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)) < -inf.0Initial program 83.7%
Taylor expanded in x around 0 94.4%
Taylor expanded in j around 0 92.7%
if -inf.0 < (-.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)) < 9.9999999999999992e292Initial program 99.8%
if 9.9999999999999992e292 < (-.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)) Initial program 62.1%
Simplified69.7%
Taylor expanded in j around 0 68.4%
Simplified76.1%
Final simplification91.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -5e+69) (not (<= t 1.95e+99)))
(-
(fma t (fma x (* 18.0 (* y z)) (* a -4.0)) (* b c))
(fma x (* 4.0 i) (* j (* 27.0 k))))
(-
(- (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i)))) (* 4.0 (* t a)))
(* k (* j 27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5e+69) || !(t <= 1.95e+99)) {
tmp = fma(t, fma(x, (18.0 * (y * z)), (a * -4.0)), (b * c)) - fma(x, (4.0 * i), (j * (27.0 * k)));
} else {
tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a))) - (k * (j * 27.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -5e+69) || !(t <= 1.95e+99)) tmp = Float64(fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(a * -4.0)), Float64(b * c)) - fma(x, Float64(4.0 * i), Float64(j * Float64(27.0 * k)))); else tmp = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))) - Float64(k * Float64(j * 27.0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -5e+69], N[Not[LessEqual[t, 1.95e+99]], $MachinePrecision]], N[(N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+69} \lor \neg \left(t \leq 1.95 \cdot 10^{+99}\right):\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right) - \mathsf{fma}\left(x, 4 \cdot i, j \cdot \left(27 \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -5.00000000000000036e69 or 1.94999999999999997e99 < t Initial program 80.7%
associate--l-80.7%
associate-+l-80.7%
Simplified86.8%
if -5.00000000000000036e69 < t < 1.94999999999999997e99Initial program 87.6%
Taylor expanded in x around 0 95.6%
Final simplification92.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0)))
(t_2
(-
(+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i))))
(* 4.0 (* t a))))
(t_3
(-
(+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
(* i (* x 4.0)))))
(if (<= t_3 (- INFINITY))
t_2
(if (<= t_3 4e+227)
(- t_3 t_1)
(if (<= t_3 INFINITY)
(- t_2 t_1)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double t_2 = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a));
double t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0));
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = t_2;
} else if (t_3 <= 4e+227) {
tmp = t_3 - t_1;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2 - t_1;
} else {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double t_2 = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a));
double t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0));
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = t_2;
} else if (t_3 <= 4e+227) {
tmp = t_3 - t_1;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_2 - t_1;
} else {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * 27.0) t_2 = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a)) t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0)) tmp = 0 if t_3 <= -math.inf: tmp = t_2 elif t_3 <= 4e+227: tmp = t_3 - t_1 elif t_3 <= math.inf: tmp = t_2 - t_1 else: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * 27.0)) t_2 = Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))) t_3 = Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = t_2; elseif (t_3 <= 4e+227) tmp = Float64(t_3 - t_1); elseif (t_3 <= Inf) tmp = Float64(t_2 - t_1); else tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * 27.0); t_2 = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a)); t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0)); tmp = 0.0; if (t_3 <= -Inf) tmp = t_2; elseif (t_3 <= 4e+227) tmp = t_3 - t_1; elseif (t_3 <= Inf) tmp = t_2 - t_1; else tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], t$95$2, If[LessEqual[t$95$3, 4e+227], N[(t$95$3 - t$95$1), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(t$95$2 - t$95$1), $MachinePrecision], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
t_2 := \left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\\
t_3 := \left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_3 \leq 4 \cdot 10^{+227}:\\
\;\;\;\;t_3 - t_1\\
\mathbf{elif}\;t_3 \leq \infty:\\
\;\;\;\;t_2 - t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\end{array}
\end{array}
if (-.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)) < -inf.0Initial program 83.7%
Taylor expanded in x around 0 94.4%
Taylor expanded in j around 0 92.7%
if -inf.0 < (-.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)) < 4.0000000000000004e227Initial program 99.8%
if 4.0000000000000004e227 < (-.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)) < +inf.0Initial program 87.2%
Taylor expanded in x around 0 92.1%
if +inf.0 < (-.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)) Initial program 0.0%
Simplified20.0%
Taylor expanded in t around inf 60.1%
Final simplification93.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* 4.0 (* x i)))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -1e+87)
(- (* b c) (* j (* 27.0 k)))
(if (<= t_2 2e-120)
t_1
(if (<= t_2 1e-69)
(* y (* 18.0 (* z (* t x))))
(if (<= t_2 5e+15)
t_1
(if (<= t_2 2e+48)
(* t (* a -4.0))
(if (<= t_2 5e+54)
(- (* b c) t_2)
(+ (* x (* -4.0 i)) (* k (* j -27.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else if (t_2 <= 2e+48) {
tmp = t * (a * -4.0);
} else if (t_2 <= 5e+54) {
tmp = (b * c) - t_2;
} else {
tmp = (x * (-4.0 * i)) + (k * (j * -27.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (4.0d0 * (x * i))
t_2 = k * (j * 27.0d0)
if (t_2 <= (-1d+87)) then
tmp = (b * c) - (j * (27.0d0 * k))
else if (t_2 <= 2d-120) then
tmp = t_1
else if (t_2 <= 1d-69) then
tmp = y * (18.0d0 * (z * (t * x)))
else if (t_2 <= 5d+15) then
tmp = t_1
else if (t_2 <= 2d+48) then
tmp = t * (a * (-4.0d0))
else if (t_2 <= 5d+54) then
tmp = (b * c) - t_2
else
tmp = (x * ((-4.0d0) * i)) + (k * (j * (-27.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else if (t_2 <= 2e+48) {
tmp = t * (a * -4.0);
} else if (t_2 <= 5e+54) {
tmp = (b * c) - t_2;
} else {
tmp = (x * (-4.0 * i)) + (k * (j * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (4.0 * (x * i)) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -1e+87: tmp = (b * c) - (j * (27.0 * k)) elif t_2 <= 2e-120: tmp = t_1 elif t_2 <= 1e-69: tmp = y * (18.0 * (z * (t * x))) elif t_2 <= 5e+15: tmp = t_1 elif t_2 <= 2e+48: tmp = t * (a * -4.0) elif t_2 <= 5e+54: tmp = (b * c) - t_2 else: tmp = (x * (-4.0 * i)) + (k * (j * -27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -1e+87) tmp = Float64(Float64(b * c) - Float64(j * Float64(27.0 * k))); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))); elseif (t_2 <= 5e+15) tmp = t_1; elseif (t_2 <= 2e+48) tmp = Float64(t * Float64(a * -4.0)); elseif (t_2 <= 5e+54) tmp = Float64(Float64(b * c) - t_2); else tmp = Float64(Float64(x * Float64(-4.0 * i)) + Float64(k * Float64(j * -27.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - (4.0 * (x * i)); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -1e+87) tmp = (b * c) - (j * (27.0 * k)); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = y * (18.0 * (z * (t * x))); elseif (t_2 <= 5e+15) tmp = t_1; elseif (t_2 <= 2e+48) tmp = t * (a * -4.0); elseif (t_2 <= 5e+54) tmp = (b * c) - t_2; else tmp = (x * (-4.0 * i)) + (k * (j * -27.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], N[(N[(b * c), $MachinePrecision] - N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e-120], t$95$1, If[LessEqual[t$95$2, 1e-69], N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+15], t$95$1, If[LessEqual[t$95$2, 2e+48], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+54], N[(N[(b * c), $MachinePrecision] - t$95$2), $MachinePrecision], N[(N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{+87}:\\
\;\;\;\;b \cdot c - j \cdot \left(27 \cdot k\right)\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{-69}:\\
\;\;\;\;y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+48}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+54}:\\
\;\;\;\;b \cdot c - t_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-4 \cdot i\right) + k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -9.9999999999999996e86Initial program 86.4%
Taylor expanded in x around 0 79.0%
Taylor expanded in c around inf 73.1%
sub-neg73.1%
associate-*r*73.2%
Applied egg-rr73.2%
if -9.9999999999999996e86 < (*.f64 (*.f64 j 27) k) < 1.99999999999999996e-120 or 9.9999999999999996e-70 < (*.f64 (*.f64 j 27) k) < 5e15Initial program 84.7%
Taylor expanded in t around 0 57.4%
Taylor expanded in j around 0 54.7%
if 1.99999999999999996e-120 < (*.f64 (*.f64 j 27) k) < 9.9999999999999996e-70Initial program 86.9%
Taylor expanded in x around 0 73.0%
Taylor expanded in a around 0 46.0%
Taylor expanded in y around inf 71.8%
associate-*r*72.0%
*-commutative72.0%
associate-*l*71.9%
associate-*r*72.3%
*-commutative72.3%
associate-*l*72.0%
Simplified72.0%
if 5e15 < (*.f64 (*.f64 j 27) k) < 2.00000000000000009e48Initial program 75.4%
Simplified87.5%
Taylor expanded in a around inf 62.2%
*-commutative62.2%
*-commutative62.2%
associate-*r*62.2%
Simplified62.2%
if 2.00000000000000009e48 < (*.f64 (*.f64 j 27) k) < 5.00000000000000005e54Initial program 50.0%
Taylor expanded in x around 0 50.0%
Taylor expanded in c around inf 100.0%
if 5.00000000000000005e54 < (*.f64 (*.f64 j 27) k) Initial program 87.0%
Taylor expanded in t around 0 78.9%
Taylor expanded in c around 0 76.0%
mul-1-neg76.0%
associate-*r*76.0%
*-commutative76.0%
associate-*r*76.0%
*-commutative76.0%
distribute-neg-in76.0%
distribute-rgt-neg-in76.0%
distribute-lft-neg-in76.0%
metadata-eval76.0%
associate-*r*76.1%
distribute-lft-neg-out76.1%
*-commutative76.1%
distribute-rgt-neg-in76.1%
metadata-eval76.1%
Simplified76.1%
Final simplification63.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* 4.0 (* x i)))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -1e+87)
(- (* b c) t_2)
(if (<= t_2 2e-120)
t_1
(if (<= t_2 1e-69)
(* y (* 18.0 (* z (* t x))))
(if (<= t_2 5e+15)
t_1
(if (<= t_2 2e+50)
(* t (* a -4.0))
(if (<= t_2 1e+144) t_1 (* k (* j -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - t_2;
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else if (t_2 <= 2e+50) {
tmp = t * (a * -4.0);
} else if (t_2 <= 1e+144) {
tmp = t_1;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (4.0d0 * (x * i))
t_2 = k * (j * 27.0d0)
if (t_2 <= (-1d+87)) then
tmp = (b * c) - t_2
else if (t_2 <= 2d-120) then
tmp = t_1
else if (t_2 <= 1d-69) then
tmp = y * (18.0d0 * (z * (t * x)))
else if (t_2 <= 5d+15) then
tmp = t_1
else if (t_2 <= 2d+50) then
tmp = t * (a * (-4.0d0))
else if (t_2 <= 1d+144) then
tmp = t_1
else
tmp = k * (j * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - t_2;
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else if (t_2 <= 2e+50) {
tmp = t * (a * -4.0);
} else if (t_2 <= 1e+144) {
tmp = t_1;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (4.0 * (x * i)) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -1e+87: tmp = (b * c) - t_2 elif t_2 <= 2e-120: tmp = t_1 elif t_2 <= 1e-69: tmp = y * (18.0 * (z * (t * x))) elif t_2 <= 5e+15: tmp = t_1 elif t_2 <= 2e+50: tmp = t * (a * -4.0) elif t_2 <= 1e+144: tmp = t_1 else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -1e+87) tmp = Float64(Float64(b * c) - t_2); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))); elseif (t_2 <= 5e+15) tmp = t_1; elseif (t_2 <= 2e+50) tmp = Float64(t * Float64(a * -4.0)); elseif (t_2 <= 1e+144) tmp = t_1; else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - (4.0 * (x * i)); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -1e+87) tmp = (b * c) - t_2; elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = y * (18.0 * (z * (t * x))); elseif (t_2 <= 5e+15) tmp = t_1; elseif (t_2 <= 2e+50) tmp = t * (a * -4.0); elseif (t_2 <= 1e+144) tmp = t_1; else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], N[(N[(b * c), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[t$95$2, 2e-120], t$95$1, If[LessEqual[t$95$2, 1e-69], N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+15], t$95$1, If[LessEqual[t$95$2, 2e+50], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+144], t$95$1, N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{+87}:\\
\;\;\;\;b \cdot c - t_2\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{-69}:\\
\;\;\;\;y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+50}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;t_2 \leq 10^{+144}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -9.9999999999999996e86Initial program 86.4%
Taylor expanded in x around 0 79.0%
Taylor expanded in c around inf 73.1%
if -9.9999999999999996e86 < (*.f64 (*.f64 j 27) k) < 1.99999999999999996e-120 or 9.9999999999999996e-70 < (*.f64 (*.f64 j 27) k) < 5e15 or 2.0000000000000002e50 < (*.f64 (*.f64 j 27) k) < 1.00000000000000002e144Initial program 84.6%
Taylor expanded in t around 0 57.9%
Taylor expanded in j around 0 54.2%
if 1.99999999999999996e-120 < (*.f64 (*.f64 j 27) k) < 9.9999999999999996e-70Initial program 86.9%
Taylor expanded in x around 0 73.0%
Taylor expanded in a around 0 46.0%
Taylor expanded in y around inf 71.8%
associate-*r*72.0%
*-commutative72.0%
associate-*l*71.9%
associate-*r*72.3%
*-commutative72.3%
associate-*l*72.0%
Simplified72.0%
if 5e15 < (*.f64 (*.f64 j 27) k) < 2.0000000000000002e50Initial program 78.2%
Simplified88.9%
Taylor expanded in a around inf 55.5%
*-commutative55.5%
*-commutative55.5%
associate-*r*55.5%
Simplified55.5%
if 1.00000000000000002e144 < (*.f64 (*.f64 j 27) k) Initial program 86.2%
Simplified89.4%
Taylor expanded in j around inf 90.2%
*-commutative90.2%
associate-*l*90.3%
Simplified90.3%
Final simplification62.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* 4.0 (* x i)))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -1e+87)
(- (* b c) (* j (* 27.0 k)))
(if (<= t_2 2e-120)
t_1
(if (<= t_2 1e-69)
(* y (* 18.0 (* z (* t x))))
(if (<= t_2 5e+15)
t_1
(if (<= t_2 2e+50)
(* t (* a -4.0))
(if (<= t_2 1e+144) t_1 (* k (* j -27.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else if (t_2 <= 2e+50) {
tmp = t * (a * -4.0);
} else if (t_2 <= 1e+144) {
tmp = t_1;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (4.0d0 * (x * i))
t_2 = k * (j * 27.0d0)
if (t_2 <= (-1d+87)) then
tmp = (b * c) - (j * (27.0d0 * k))
else if (t_2 <= 2d-120) then
tmp = t_1
else if (t_2 <= 1d-69) then
tmp = y * (18.0d0 * (z * (t * x)))
else if (t_2 <= 5d+15) then
tmp = t_1
else if (t_2 <= 2d+50) then
tmp = t * (a * (-4.0d0))
else if (t_2 <= 1d+144) then
tmp = t_1
else
tmp = k * (j * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else if (t_2 <= 2e+50) {
tmp = t * (a * -4.0);
} else if (t_2 <= 1e+144) {
tmp = t_1;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (4.0 * (x * i)) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -1e+87: tmp = (b * c) - (j * (27.0 * k)) elif t_2 <= 2e-120: tmp = t_1 elif t_2 <= 1e-69: tmp = y * (18.0 * (z * (t * x))) elif t_2 <= 5e+15: tmp = t_1 elif t_2 <= 2e+50: tmp = t * (a * -4.0) elif t_2 <= 1e+144: tmp = t_1 else: tmp = k * (j * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -1e+87) tmp = Float64(Float64(b * c) - Float64(j * Float64(27.0 * k))); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))); elseif (t_2 <= 5e+15) tmp = t_1; elseif (t_2 <= 2e+50) tmp = Float64(t * Float64(a * -4.0)); elseif (t_2 <= 1e+144) tmp = t_1; else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - (4.0 * (x * i)); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -1e+87) tmp = (b * c) - (j * (27.0 * k)); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = y * (18.0 * (z * (t * x))); elseif (t_2 <= 5e+15) tmp = t_1; elseif (t_2 <= 2e+50) tmp = t * (a * -4.0); elseif (t_2 <= 1e+144) tmp = t_1; else tmp = k * (j * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], N[(N[(b * c), $MachinePrecision] - N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e-120], t$95$1, If[LessEqual[t$95$2, 1e-69], N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+15], t$95$1, If[LessEqual[t$95$2, 2e+50], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+144], t$95$1, N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{+87}:\\
\;\;\;\;b \cdot c - j \cdot \left(27 \cdot k\right)\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{-69}:\\
\;\;\;\;y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+50}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;t_2 \leq 10^{+144}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -9.9999999999999996e86Initial program 86.4%
Taylor expanded in x around 0 79.0%
Taylor expanded in c around inf 73.1%
sub-neg73.1%
associate-*r*73.2%
Applied egg-rr73.2%
if -9.9999999999999996e86 < (*.f64 (*.f64 j 27) k) < 1.99999999999999996e-120 or 9.9999999999999996e-70 < (*.f64 (*.f64 j 27) k) < 5e15 or 2.0000000000000002e50 < (*.f64 (*.f64 j 27) k) < 1.00000000000000002e144Initial program 84.6%
Taylor expanded in t around 0 57.9%
Taylor expanded in j around 0 54.2%
if 1.99999999999999996e-120 < (*.f64 (*.f64 j 27) k) < 9.9999999999999996e-70Initial program 86.9%
Taylor expanded in x around 0 73.0%
Taylor expanded in a around 0 46.0%
Taylor expanded in y around inf 71.8%
associate-*r*72.0%
*-commutative72.0%
associate-*l*71.9%
associate-*r*72.3%
*-commutative72.3%
associate-*l*72.0%
Simplified72.0%
if 5e15 < (*.f64 (*.f64 j 27) k) < 2.0000000000000002e50Initial program 78.2%
Simplified88.9%
Taylor expanded in a around inf 55.5%
*-commutative55.5%
*-commutative55.5%
associate-*r*55.5%
Simplified55.5%
if 1.00000000000000002e144 < (*.f64 (*.f64 j 27) k) Initial program 86.2%
Simplified89.4%
Taylor expanded in j around inf 90.2%
*-commutative90.2%
associate-*l*90.3%
Simplified90.3%
Final simplification62.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* 4.0 (* x i)))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -1e+87)
(- (* b c) (* j (* 27.0 k)))
(if (<= t_2 2e-120)
t_1
(if (<= t_2 1e-69)
(* y (* 18.0 (* z (* t x))))
(if (<= t_2 5e+15) t_1 (- (* a (* t -4.0)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else {
tmp = (a * (t * -4.0)) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (4.0d0 * (x * i))
t_2 = k * (j * 27.0d0)
if (t_2 <= (-1d+87)) then
tmp = (b * c) - (j * (27.0d0 * k))
else if (t_2 <= 2d-120) then
tmp = t_1
else if (t_2 <= 1d-69) then
tmp = y * (18.0d0 * (z * (t * x)))
else if (t_2 <= 5d+15) then
tmp = t_1
else
tmp = (a * (t * (-4.0d0))) - t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_2 <= 2e-120) {
tmp = t_1;
} else if (t_2 <= 1e-69) {
tmp = y * (18.0 * (z * (t * x)));
} else if (t_2 <= 5e+15) {
tmp = t_1;
} else {
tmp = (a * (t * -4.0)) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (4.0 * (x * i)) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -1e+87: tmp = (b * c) - (j * (27.0 * k)) elif t_2 <= 2e-120: tmp = t_1 elif t_2 <= 1e-69: tmp = y * (18.0 * (z * (t * x))) elif t_2 <= 5e+15: tmp = t_1 else: tmp = (a * (t * -4.0)) - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -1e+87) tmp = Float64(Float64(b * c) - Float64(j * Float64(27.0 * k))); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))); elseif (t_2 <= 5e+15) tmp = t_1; else tmp = Float64(Float64(a * Float64(t * -4.0)) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) - (4.0 * (x * i)); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -1e+87) tmp = (b * c) - (j * (27.0 * k)); elseif (t_2 <= 2e-120) tmp = t_1; elseif (t_2 <= 1e-69) tmp = y * (18.0 * (z * (t * x))); elseif (t_2 <= 5e+15) tmp = t_1; else tmp = (a * (t * -4.0)) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], N[(N[(b * c), $MachinePrecision] - N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e-120], t$95$1, If[LessEqual[t$95$2, 1e-69], N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+15], t$95$1, N[(N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{+87}:\\
\;\;\;\;b \cdot c - j \cdot \left(27 \cdot k\right)\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{-69}:\\
\;\;\;\;y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot -4\right) - t_2\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -9.9999999999999996e86Initial program 86.4%
Taylor expanded in x around 0 79.0%
Taylor expanded in c around inf 73.1%
sub-neg73.1%
associate-*r*73.2%
Applied egg-rr73.2%
if -9.9999999999999996e86 < (*.f64 (*.f64 j 27) k) < 1.99999999999999996e-120 or 9.9999999999999996e-70 < (*.f64 (*.f64 j 27) k) < 5e15Initial program 84.7%
Taylor expanded in t around 0 57.4%
Taylor expanded in j around 0 54.7%
if 1.99999999999999996e-120 < (*.f64 (*.f64 j 27) k) < 9.9999999999999996e-70Initial program 86.9%
Taylor expanded in x around 0 73.0%
Taylor expanded in a around 0 46.0%
Taylor expanded in y around inf 71.8%
associate-*r*72.0%
*-commutative72.0%
associate-*l*71.9%
associate-*r*72.3%
*-commutative72.3%
associate-*l*72.0%
Simplified72.0%
if 5e15 < (*.f64 (*.f64 j 27) k) Initial program 84.0%
Taylor expanded in x around 0 87.6%
Taylor expanded in a around inf 71.6%
*-commutative71.6%
associate-*r*71.6%
Simplified71.6%
Final simplification62.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0))))
(if (<= t_1 -2e+94)
(- (+ (* b c) (* -4.0 (* t a))) (+ (* j (* 27.0 k)) (* x (* 4.0 i))))
(if (<= t_1 5e-13)
(-
(+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i))))
(* 4.0 (* t a)))
(- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (t_1 <= -2e+94) {
tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
} else if (t_1 <= 5e-13) {
tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a));
} else {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - 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 = k * (j * 27.0d0)
if (t_1 <= (-2d+94)) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - ((j * (27.0d0 * k)) + (x * (4.0d0 * i)))
else if (t_1 <= 5d-13) then
tmp = ((b * c) + (x * ((18.0d0 * (y * (t * z))) - (4.0d0 * i)))) - (4.0d0 * (t * a))
else
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (t_1 <= -2e+94) {
tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
} else if (t_1 <= 5e-13) {
tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a));
} else {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * 27.0) tmp = 0 if t_1 <= -2e+94: tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i))) elif t_1 <= 5e-13: tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a)) else: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_1 <= -2e+94) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(Float64(j * Float64(27.0 * k)) + Float64(x * Float64(4.0 * i)))); elseif (t_1 <= 5e-13) tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * 27.0); tmp = 0.0; if (t_1 <= -2e+94) tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i))); elseif (t_1 <= 5e-13) tmp = ((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a)); else tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+94], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision] + N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-13], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{+94}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - \left(j \cdot \left(27 \cdot k\right) + x \cdot \left(4 \cdot i\right)\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{-13}:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - t_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -2e94Initial program 87.3%
Simplified87.3%
Taylor expanded in x around 0 87.5%
if -2e94 < (*.f64 (*.f64 j 27) k) < 4.9999999999999999e-13Initial program 84.0%
Taylor expanded in x around 0 87.3%
Taylor expanded in j around 0 84.3%
if 4.9999999999999999e-13 < (*.f64 (*.f64 j 27) k) Initial program 85.3%
Taylor expanded in y around 0 86.7%
distribute-lft-out86.7%
*-commutative86.7%
*-commutative86.7%
Simplified86.7%
Final simplification85.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i)))))
(t_2 (* k (* j 27.0)))
(t_3 (- t_1 t_2)))
(if (<= x -8e+117)
t_3
(if (<= x -7.8e+31)
(- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) t_2)
(if (<= x -3.8e-92)
t_3
(if (<= x 1.65e+82)
(-
(+ (* b c) (* t (+ (* a -4.0) (* 18.0 (* y (* x z))))))
(* 27.0 (* j k)))
(- 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 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
double t_2 = k * (j * 27.0);
double t_3 = t_1 - t_2;
double tmp;
if (x <= -8e+117) {
tmp = t_3;
} else if (x <= -7.8e+31) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_2;
} else if (x <= -3.8e-92) {
tmp = t_3;
} else if (x <= 1.65e+82) {
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k));
} 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 = (b * c) + (x * ((18.0d0 * (y * (t * z))) - (4.0d0 * i)))
t_2 = k * (j * 27.0d0)
t_3 = t_1 - t_2
if (x <= (-8d+117)) then
tmp = t_3
else if (x <= (-7.8d+31)) then
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - t_2
else if (x <= (-3.8d-92)) then
tmp = t_3
else if (x <= 1.65d+82) then
tmp = ((b * c) + (t * ((a * (-4.0d0)) + (18.0d0 * (y * (x * z)))))) - (27.0d0 * (j * k))
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 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
double t_2 = k * (j * 27.0);
double t_3 = t_1 - t_2;
double tmp;
if (x <= -8e+117) {
tmp = t_3;
} else if (x <= -7.8e+31) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_2;
} else if (x <= -3.8e-92) {
tmp = t_3;
} else if (x <= 1.65e+82) {
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k));
} else {
tmp = t_1 - (4.0 * (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))) t_2 = k * (j * 27.0) t_3 = t_1 - t_2 tmp = 0 if x <= -8e+117: tmp = t_3 elif x <= -7.8e+31: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_2 elif x <= -3.8e-92: tmp = t_3 elif x <= 1.65e+82: tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k)) 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(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) t_2 = Float64(k * Float64(j * 27.0)) t_3 = Float64(t_1 - t_2) tmp = 0.0 if (x <= -8e+117) tmp = t_3; elseif (x <= -7.8e+31) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - t_2); elseif (x <= -3.8e-92) tmp = t_3; elseif (x <= 1.65e+82) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(y * Float64(x * z)))))) - Float64(27.0 * Float64(j * k))); 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 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))); t_2 = k * (j * 27.0); t_3 = t_1 - t_2; tmp = 0.0; if (x <= -8e+117) tmp = t_3; elseif (x <= -7.8e+31) tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_2; elseif (x <= -3.8e-92) tmp = t_3; elseif (x <= 1.65e+82) tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k)); 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[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 - t$95$2), $MachinePrecision]}, If[LessEqual[x, -8e+117], t$95$3, If[LessEqual[x, -7.8e+31], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[x, -3.8e-92], t$95$3, If[LessEqual[x, 1.65e+82], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
t_3 := t_1 - t_2\\
\mathbf{if}\;x \leq -8 \cdot 10^{+117}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{+31}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - t_2\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-92}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{+82}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(a \cdot -4 + 18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 - 4 \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if x < -8.0000000000000004e117 or -7.79999999999999999e31 < x < -3.8000000000000001e-92Initial program 75.4%
Taylor expanded in x around 0 82.4%
Taylor expanded in a around 0 86.6%
if -8.0000000000000004e117 < x < -7.79999999999999999e31Initial program 86.9%
Taylor expanded in y around 0 95.4%
distribute-lft-out95.4%
*-commutative95.4%
*-commutative95.4%
Simplified95.4%
if -3.8000000000000001e-92 < x < 1.6499999999999999e82Initial program 91.9%
associate--l-91.9%
associate-+l-91.9%
Simplified91.3%
Taylor expanded in i around 0 91.2%
if 1.6499999999999999e82 < x Initial program 78.6%
Taylor expanded in x around 0 97.5%
Taylor expanded in j around 0 88.1%
Final simplification89.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t 2.6e+93)
(-
(- (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i)))) (* 4.0 (* t a)))
(* k (* j 27.0)))
(-
(+ (* b c) (* t (+ (* a -4.0) (* 18.0 (* y (* x z))))))
(* 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 (t <= 2.6e+93) {
tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a))) - (k * (j * 27.0));
} else {
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (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 (t <= 2.6d+93) then
tmp = (((b * c) + (x * ((18.0d0 * (y * (t * z))) - (4.0d0 * i)))) - (4.0d0 * (t * a))) - (k * (j * 27.0d0))
else
tmp = ((b * c) + (t * ((a * (-4.0d0)) + (18.0d0 * (y * (x * z)))))) - (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 (t <= 2.6e+93) {
tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a))) - (k * (j * 27.0));
} else {
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= 2.6e+93: tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a))) - (k * (j * 27.0)) else: tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= 2.6e+93) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) - Float64(4.0 * Float64(t * a))) - Float64(k * Float64(j * 27.0))); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(y * Float64(x * z)))))) - 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 (t <= 2.6e+93) tmp = (((b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)))) - (4.0 * (t * a))) - (k * (j * 27.0)); else tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (y * (x * z)))))) - (27.0 * (j * k)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, 2.6e+93], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.6 \cdot 10^{+93}:\\
\;\;\;\;\left(\left(b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\right) - 4 \cdot \left(t \cdot a\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(a \cdot -4 + 18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if t < 2.6e93Initial program 85.7%
Taylor expanded in x around 0 91.3%
if 2.6e93 < t Initial program 81.6%
associate--l-81.6%
associate-+l-81.6%
Simplified85.6%
Taylor expanded in i around 0 83.8%
Final simplification89.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i)))
(t_2 (* k (* j 27.0)))
(t_3 (- (+ (* b c) (* 18.0 (* (* x z) (* t y)))) t_2)))
(if (<= t -2.1e+146)
t_3
(if (<= t -2.3e+36)
(- (+ (* b c) (* -4.0 (* t a))) t_1)
(if (<= t -2.8e-104)
(+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i))))
(if (<= t 1.45e-103)
(- (- (* b c) t_1) t_2)
(if (<= t 2.6e+90) t_3 (- (* -4.0 (+ (* t a) (* x i))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = k * (j * 27.0);
double t_3 = ((b * c) + (18.0 * ((x * z) * (t * y)))) - t_2;
double tmp;
if (t <= -2.1e+146) {
tmp = t_3;
} else if (t <= -2.3e+36) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (t <= -2.8e-104) {
tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
} else if (t <= 1.45e-103) {
tmp = ((b * c) - t_1) - t_2;
} else if (t <= 2.6e+90) {
tmp = t_3;
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - 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) :: t_3
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
t_2 = k * (j * 27.0d0)
t_3 = ((b * c) + (18.0d0 * ((x * z) * (t * y)))) - t_2
if (t <= (-2.1d+146)) then
tmp = t_3
else if (t <= (-2.3d+36)) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - t_1
else if (t <= (-2.8d-104)) then
tmp = (b * c) + (x * ((18.0d0 * (y * (t * z))) - (4.0d0 * i)))
else if (t <= 1.45d-103) then
tmp = ((b * c) - t_1) - t_2
else if (t <= 2.6d+90) then
tmp = t_3
else
tmp = ((-4.0d0) * ((t * a) + (x * i))) - t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = k * (j * 27.0);
double t_3 = ((b * c) + (18.0 * ((x * z) * (t * y)))) - t_2;
double tmp;
if (t <= -2.1e+146) {
tmp = t_3;
} else if (t <= -2.3e+36) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (t <= -2.8e-104) {
tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
} else if (t <= 1.45e-103) {
tmp = ((b * c) - t_1) - t_2;
} else if (t <= 2.6e+90) {
tmp = t_3;
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = k * (j * 27.0) t_3 = ((b * c) + (18.0 * ((x * z) * (t * y)))) - t_2 tmp = 0 if t <= -2.1e+146: tmp = t_3 elif t <= -2.3e+36: tmp = ((b * c) + (-4.0 * (t * a))) - t_1 elif t <= -2.8e-104: tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))) elif t <= 1.45e-103: tmp = ((b * c) - t_1) - t_2 elif t <= 2.6e+90: tmp = t_3 else: tmp = (-4.0 * ((t * a) + (x * i))) - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) t_2 = Float64(k * Float64(j * 27.0)) t_3 = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(Float64(x * z) * Float64(t * y)))) - t_2) tmp = 0.0 if (t <= -2.1e+146) tmp = t_3; elseif (t <= -2.3e+36) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1); elseif (t <= -2.8e-104) tmp = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))); elseif (t <= 1.45e-103) tmp = Float64(Float64(Float64(b * c) - t_1) - t_2); elseif (t <= 2.6e+90) tmp = t_3; else tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (x * i); t_2 = k * (j * 27.0); t_3 = ((b * c) + (18.0 * ((x * z) * (t * y)))) - t_2; tmp = 0.0; if (t <= -2.1e+146) tmp = t_3; elseif (t <= -2.3e+36) tmp = ((b * c) + (-4.0 * (t * a))) - t_1; elseif (t <= -2.8e-104) tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))); elseif (t <= 1.45e-103) tmp = ((b * c) - t_1) - t_2; elseif (t <= 2.6e+90) tmp = t_3; else tmp = (-4.0 * ((t * a) + (x * i))) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]}, If[LessEqual[t, -2.1e+146], t$95$3, If[LessEqual[t, -2.3e+36], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, -2.8e-104], N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-103], N[(N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[t, 2.6e+90], t$95$3, N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
t_3 := \left(b \cdot c + 18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\right) - t_2\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+146}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{+36}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-104}:\\
\;\;\;\;b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-103}:\\
\;\;\;\;\left(b \cdot c - t_1\right) - t_2\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+90}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - t_2\\
\end{array}
\end{array}
if t < -2.1000000000000001e146 or 1.4499999999999999e-103 < t < 2.5999999999999998e90Initial program 82.6%
Taylor expanded in x around 0 84.0%
Taylor expanded in a around 0 84.2%
Taylor expanded in y around inf 74.4%
associate-*r*75.7%
*-commutative75.7%
Simplified75.7%
if -2.1000000000000001e146 < t < -2.29999999999999996e36Initial program 85.5%
Simplified85.5%
Taylor expanded in x around 0 82.1%
Taylor expanded in j around 0 75.1%
if -2.29999999999999996e36 < t < -2.8e-104Initial program 92.4%
Taylor expanded in x around 0 96.0%
Taylor expanded in a around 0 87.8%
Taylor expanded in j around 0 75.5%
if -2.8e-104 < t < 1.4499999999999999e-103Initial program 87.4%
Taylor expanded in t around 0 86.5%
if 2.5999999999999998e90 < t Initial program 79.9%
Taylor expanded in b around 0 70.9%
associate-*r*70.9%
*-commutative70.9%
distribute-lft-out70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in y around 0 80.7%
Final simplification80.2%
(FPCore (x y z t a b c i j k) :precision binary64 (- (+ (* b c) (* t (- (* (* y z) (* x 18.0)) (* a 4.0)))) (+ (* j (* 27.0 k)) (* x (* 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) {
return ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
}
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) + (t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0)))) - ((j * (27.0d0 * k)) + (x * (4.0d0 * i)))
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) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
}
def code(x, y, z, t, a, b, c, i, j, k): return ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (27.0 * k)) + (x * (4.0 * i)))
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(j * Float64(27.0 * k)) + Float64(x * Float64(4.0 * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (27.0 * k)) + (x * (4.0 * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(y * z), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision] + N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(b \cdot c + t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(j \cdot \left(27 \cdot k\right) + x \cdot \left(4 \cdot i\right)\right)
\end{array}
Initial program 84.9%
Simplified86.2%
Final simplification86.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i)))
(t_2 (* k (* j 27.0)))
(t_3 (+ (* b c) (* x (- (* 18.0 (* y (* t z))) (* 4.0 i))))))
(if (<= t -6e+158)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= t -6.5e+35)
(- (+ (* b c) (* -4.0 (* t a))) t_1)
(if (<= t -5.2e-107)
t_3
(if (<= t 2.25e-91)
(- (- (* b c) t_1) t_2)
(if (<= t 1.12e+91) t_3 (- (* -4.0 (+ (* t a) (* x i))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = k * (j * 27.0);
double t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
double tmp;
if (t <= -6e+158) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (t <= -6.5e+35) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (t <= -5.2e-107) {
tmp = t_3;
} else if (t <= 2.25e-91) {
tmp = ((b * c) - t_1) - t_2;
} else if (t <= 1.12e+91) {
tmp = t_3;
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - 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) :: t_3
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
t_2 = k * (j * 27.0d0)
t_3 = (b * c) + (x * ((18.0d0 * (y * (t * z))) - (4.0d0 * i)))
if (t <= (-6d+158)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (t <= (-6.5d+35)) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - t_1
else if (t <= (-5.2d-107)) then
tmp = t_3
else if (t <= 2.25d-91) then
tmp = ((b * c) - t_1) - t_2
else if (t <= 1.12d+91) then
tmp = t_3
else
tmp = ((-4.0d0) * ((t * a) + (x * i))) - t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = k * (j * 27.0);
double t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
double tmp;
if (t <= -6e+158) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (t <= -6.5e+35) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (t <= -5.2e-107) {
tmp = t_3;
} else if (t <= 2.25e-91) {
tmp = ((b * c) - t_1) - t_2;
} else if (t <= 1.12e+91) {
tmp = t_3;
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = k * (j * 27.0) t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))) tmp = 0 if t <= -6e+158: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif t <= -6.5e+35: tmp = ((b * c) + (-4.0 * (t * a))) - t_1 elif t <= -5.2e-107: tmp = t_3 elif t <= 2.25e-91: tmp = ((b * c) - t_1) - t_2 elif t <= 1.12e+91: tmp = t_3 else: tmp = (-4.0 * ((t * a) + (x * i))) - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) t_2 = Float64(k * Float64(j * 27.0)) t_3 = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))) tmp = 0.0 if (t <= -6e+158) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (t <= -6.5e+35) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1); elseif (t <= -5.2e-107) tmp = t_3; elseif (t <= 2.25e-91) tmp = Float64(Float64(Float64(b * c) - t_1) - t_2); elseif (t <= 1.12e+91) tmp = t_3; else tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (x * i); t_2 = k * (j * 27.0); t_3 = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))); tmp = 0.0; if (t <= -6e+158) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (t <= -6.5e+35) tmp = ((b * c) + (-4.0 * (t * a))) - t_1; elseif (t <= -5.2e-107) tmp = t_3; elseif (t <= 2.25e-91) tmp = ((b * c) - t_1) - t_2; elseif (t <= 1.12e+91) tmp = t_3; else tmp = (-4.0 * ((t * a) + (x * i))) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+158], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.5e+35], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, -5.2e-107], t$95$3, If[LessEqual[t, 2.25e-91], N[(N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[t, 1.12e+91], t$95$3, N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
t_3 := b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+158}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{+35}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-107}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-91}:\\
\;\;\;\;\left(b \cdot c - t_1\right) - t_2\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - t_2\\
\end{array}
\end{array}
if t < -6e158Initial program 79.3%
Simplified86.2%
Taylor expanded in t around inf 69.6%
if -6e158 < t < -6.5000000000000003e35Initial program 83.7%
Simplified83.7%
Taylor expanded in x around 0 80.9%
Taylor expanded in j around 0 71.4%
if -6.5000000000000003e35 < t < -5.2000000000000001e-107 or 2.24999999999999988e-91 < t < 1.12e91Initial program 88.4%
Taylor expanded in x around 0 93.1%
Taylor expanded in a around 0 88.1%
Taylor expanded in j around 0 76.3%
if -5.2000000000000001e-107 < t < 2.24999999999999988e-91Initial program 87.8%
Taylor expanded in t around 0 85.9%
if 1.12e91 < t Initial program 79.9%
Taylor expanded in b around 0 70.9%
associate-*r*70.9%
*-commutative70.9%
distribute-lft-out70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in y around 0 80.7%
Final simplification79.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 (- (- (* b c) t_1) (* k (* j 27.0)))))
(if (<= y -8e+220)
(- (* 18.0 (* y (* t (* x z)))) t_1)
(if (<= y -8.5e+149)
t_2
(if (<= y -4.1e+123)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= y 2e+112)
t_2
(+ (* b c) (* x (- (* 18.0 (* y (* t 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 = 4.0 * ((t * a) + (x * i));
double t_2 = ((b * c) - t_1) - (k * (j * 27.0));
double tmp;
if (y <= -8e+220) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (y <= -8.5e+149) {
tmp = t_2;
} else if (y <= -4.1e+123) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (y <= 2e+112) {
tmp = t_2;
} else {
tmp = (b * c) + (x * ((18.0 * (y * (t * 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 = 4.0d0 * ((t * a) + (x * i))
t_2 = ((b * c) - t_1) - (k * (j * 27.0d0))
if (y <= (-8d+220)) then
tmp = (18.0d0 * (y * (t * (x * z)))) - t_1
else if (y <= (-8.5d+149)) then
tmp = t_2
else if (y <= (-4.1d+123)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (y <= 2d+112) then
tmp = t_2
else
tmp = (b * c) + (x * ((18.0d0 * (y * (t * 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 = 4.0 * ((t * a) + (x * i));
double t_2 = ((b * c) - t_1) - (k * (j * 27.0));
double tmp;
if (y <= -8e+220) {
tmp = (18.0 * (y * (t * (x * z)))) - t_1;
} else if (y <= -8.5e+149) {
tmp = t_2;
} else if (y <= -4.1e+123) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (y <= 2e+112) {
tmp = t_2;
} else {
tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
}
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) - (k * (j * 27.0)) tmp = 0 if y <= -8e+220: tmp = (18.0 * (y * (t * (x * z)))) - t_1 elif y <= -8.5e+149: tmp = t_2 elif y <= -4.1e+123: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif y <= 2e+112: tmp = t_2 else: tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))) 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(Float64(b * c) - t_1) - Float64(k * Float64(j * 27.0))) tmp = 0.0 if (y <= -8e+220) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - t_1); elseif (y <= -8.5e+149) tmp = t_2; elseif (y <= -4.1e+123) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (y <= 2e+112) tmp = t_2; else tmp = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * 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 = 4.0 * ((t * a) + (x * i)); t_2 = ((b * c) - t_1) - (k * (j * 27.0)); tmp = 0.0; if (y <= -8e+220) tmp = (18.0 * (y * (t * (x * z)))) - t_1; elseif (y <= -8.5e+149) tmp = t_2; elseif (y <= -4.1e+123) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (y <= 2e+112) tmp = t_2; else tmp = (b * c) + (x * ((18.0 * (y * (t * 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[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8e+220], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[y, -8.5e+149], t$95$2, If[LessEqual[y, -4.1e+123], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+112], t$95$2, N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(t \cdot a + x \cdot i\right)\\
t_2 := \left(b \cdot c - t_1\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;y \leq -8 \cdot 10^{+220}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t_1\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{+149}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{+123}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+112}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if y < -8e220Initial program 54.3%
Taylor expanded in b around 0 76.9%
associate-*r*76.8%
*-commutative76.8%
distribute-lft-out76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in j around 0 76.9%
if -8e220 < y < -8.49999999999999956e149 or -4.09999999999999989e123 < y < 1.9999999999999999e112Initial program 90.2%
Taylor expanded in y around 0 87.0%
distribute-lft-out87.0%
*-commutative87.0%
*-commutative87.0%
Simplified87.0%
if -8.49999999999999956e149 < y < -4.09999999999999989e123Initial program 77.8%
Simplified56.5%
Taylor expanded in t around inf 67.6%
if 1.9999999999999999e112 < y Initial program 77.0%
Taylor expanded in x around 0 78.9%
Taylor expanded in a around 0 76.9%
Taylor expanded in j around 0 70.6%
Final simplification82.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0))))
(if (<= t_1 -1e+93)
(- (* b c) (* j (* 27.0 k)))
(if (<= t_1 5e+15)
(- (+ (* b c) (* -4.0 (* t a))) (* 4.0 (* x i)))
(- (* -4.0 (+ (* t a) (* x i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (t_1 <= -1e+93) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_1 <= 5e+15) {
tmp = ((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i));
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - 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 = k * (j * 27.0d0)
if (t_1 <= (-1d+93)) then
tmp = (b * c) - (j * (27.0d0 * k))
else if (t_1 <= 5d+15) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - (4.0d0 * (x * i))
else
tmp = ((-4.0d0) * ((t * a) + (x * i))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (t_1 <= -1e+93) {
tmp = (b * c) - (j * (27.0 * k));
} else if (t_1 <= 5e+15) {
tmp = ((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i));
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * 27.0) tmp = 0 if t_1 <= -1e+93: tmp = (b * c) - (j * (27.0 * k)) elif t_1 <= 5e+15: tmp = ((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i)) else: tmp = (-4.0 * ((t * a) + (x * i))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_1 <= -1e+93) tmp = Float64(Float64(b * c) - Float64(j * Float64(27.0 * k))); elseif (t_1 <= 5e+15) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(4.0 * Float64(x * i))); else tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = k * (j * 27.0); tmp = 0.0; if (t_1 <= -1e+93) tmp = (b * c) - (j * (27.0 * k)); elseif (t_1 <= 5e+15) tmp = ((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i)); else tmp = (-4.0 * ((t * a) + (x * i))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+93], N[(N[(b * c), $MachinePrecision] - N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+15], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{+93}:\\
\;\;\;\;b \cdot c - j \cdot \left(27 \cdot k\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+15}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - t_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -1.00000000000000004e93Initial program 85.5%
Taylor expanded in x around 0 77.7%
Taylor expanded in c around inf 75.4%
sub-neg75.4%
associate-*r*75.5%
Applied egg-rr75.5%
if -1.00000000000000004e93 < (*.f64 (*.f64 j 27) k) < 5e15Initial program 85.1%
Simplified85.3%
Taylor expanded in x around 0 72.2%
Taylor expanded in j around 0 70.0%
if 5e15 < (*.f64 (*.f64 j 27) k) Initial program 84.0%
Taylor expanded in b around 0 81.9%
associate-*r*81.9%
*-commutative81.9%
distribute-lft-out81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in y around 0 83.4%
Final simplification74.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* -4.0 (* t a)))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -1e+87)
(- t_1 (* 27.0 (* j k)))
(if (<= t_2 5e+15)
(- t_1 (* 4.0 (* x i)))
(- (* -4.0 (+ (* t a) (* x i))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = t_1 - (27.0 * (j * k));
} else if (t_2 <= 5e+15) {
tmp = t_1 - (4.0 * (x * i));
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) + ((-4.0d0) * (t * a))
t_2 = k * (j * 27.0d0)
if (t_2 <= (-1d+87)) then
tmp = t_1 - (27.0d0 * (j * k))
else if (t_2 <= 5d+15) then
tmp = t_1 - (4.0d0 * (x * i))
else
tmp = ((-4.0d0) * ((t * a) + (x * i))) - t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (-4.0 * (t * a));
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+87) {
tmp = t_1 - (27.0 * (j * k));
} else if (t_2 <= 5e+15) {
tmp = t_1 - (4.0 * (x * i));
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (-4.0 * (t * a)) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -1e+87: tmp = t_1 - (27.0 * (j * k)) elif t_2 <= 5e+15: tmp = t_1 - (4.0 * (x * i)) else: tmp = (-4.0 * ((t * a) + (x * i))) - t_2 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(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -1e+87) tmp = Float64(t_1 - Float64(27.0 * Float64(j * k))); elseif (t_2 <= 5e+15) tmp = Float64(t_1 - Float64(4.0 * Float64(x * i))); else tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (-4.0 * (t * a)); t_2 = k * (j * 27.0); tmp = 0.0; if (t_2 <= -1e+87) tmp = t_1 - (27.0 * (j * k)); elseif (t_2 <= 5e+15) tmp = t_1 - (4.0 * (x * i)); else tmp = (-4.0 * ((t * a) + (x * i))) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], N[(t$95$1 - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+15], N[(t$95$1 - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{+87}:\\
\;\;\;\;t_1 - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+15}:\\
\;\;\;\;t_1 - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - t_2\\
\end{array}
\end{array}
if (*.f64 (*.f64 j 27) k) < -9.9999999999999996e86Initial program 86.4%
Simplified86.4%
Taylor expanded in x around 0 82.7%
if -9.9999999999999996e86 < (*.f64 (*.f64 j 27) k) < 5e15Initial program 84.8%
Simplified85.0%
Taylor expanded in x around 0 72.3%
Taylor expanded in j around 0 70.0%
if 5e15 < (*.f64 (*.f64 j 27) k) Initial program 84.0%
Taylor expanded in b around 0 81.9%
associate-*r*81.9%
*-commutative81.9%
distribute-lft-out81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in y around 0 83.4%
Final simplification75.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* x i))) (t_2 (* 18.0 (* (* x z) (* t y)))))
(if (<= k -6e-47)
(* k (* j -27.0))
(if (<= k 8.1e-206)
t_1
(if (<= k 9e-115)
t_2
(if (<= k 2e-98)
t_1
(if (<= k 7.2e-75)
(* b c)
(if (<= k 3.1e-56)
(* 18.0 (* y (* t (* x z))))
(if (<= k 360000.0)
(* b c)
(if (<= k 1.35e+105) 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 = -4.0 * (x * i);
double t_2 = 18.0 * ((x * z) * (t * y));
double tmp;
if (k <= -6e-47) {
tmp = k * (j * -27.0);
} else if (k <= 8.1e-206) {
tmp = t_1;
} else if (k <= 9e-115) {
tmp = t_2;
} else if (k <= 2e-98) {
tmp = t_1;
} else if (k <= 7.2e-75) {
tmp = b * c;
} else if (k <= 3.1e-56) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (k <= 360000.0) {
tmp = b * c;
} else if (k <= 1.35e+105) {
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 = (-4.0d0) * (x * i)
t_2 = 18.0d0 * ((x * z) * (t * y))
if (k <= (-6d-47)) then
tmp = k * (j * (-27.0d0))
else if (k <= 8.1d-206) then
tmp = t_1
else if (k <= 9d-115) then
tmp = t_2
else if (k <= 2d-98) then
tmp = t_1
else if (k <= 7.2d-75) then
tmp = b * c
else if (k <= 3.1d-56) then
tmp = 18.0d0 * (y * (t * (x * z)))
else if (k <= 360000.0d0) then
tmp = b * c
else if (k <= 1.35d+105) 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 = -4.0 * (x * i);
double t_2 = 18.0 * ((x * z) * (t * y));
double tmp;
if (k <= -6e-47) {
tmp = k * (j * -27.0);
} else if (k <= 8.1e-206) {
tmp = t_1;
} else if (k <= 9e-115) {
tmp = t_2;
} else if (k <= 2e-98) {
tmp = t_1;
} else if (k <= 7.2e-75) {
tmp = b * c;
} else if (k <= 3.1e-56) {
tmp = 18.0 * (y * (t * (x * z)));
} else if (k <= 360000.0) {
tmp = b * c;
} else if (k <= 1.35e+105) {
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 = -4.0 * (x * i) t_2 = 18.0 * ((x * z) * (t * y)) tmp = 0 if k <= -6e-47: tmp = k * (j * -27.0) elif k <= 8.1e-206: tmp = t_1 elif k <= 9e-115: tmp = t_2 elif k <= 2e-98: tmp = t_1 elif k <= 7.2e-75: tmp = b * c elif k <= 3.1e-56: tmp = 18.0 * (y * (t * (x * z))) elif k <= 360000.0: tmp = b * c elif k <= 1.35e+105: 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(-4.0 * Float64(x * i)) t_2 = Float64(18.0 * Float64(Float64(x * z) * Float64(t * y))) tmp = 0.0 if (k <= -6e-47) tmp = Float64(k * Float64(j * -27.0)); elseif (k <= 8.1e-206) tmp = t_1; elseif (k <= 9e-115) tmp = t_2; elseif (k <= 2e-98) tmp = t_1; elseif (k <= 7.2e-75) tmp = Float64(b * c); elseif (k <= 3.1e-56) tmp = Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))); elseif (k <= 360000.0) tmp = Float64(b * c); elseif (k <= 1.35e+105) 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 = -4.0 * (x * i); t_2 = 18.0 * ((x * z) * (t * y)); tmp = 0.0; if (k <= -6e-47) tmp = k * (j * -27.0); elseif (k <= 8.1e-206) tmp = t_1; elseif (k <= 9e-115) tmp = t_2; elseif (k <= 2e-98) tmp = t_1; elseif (k <= 7.2e-75) tmp = b * c; elseif (k <= 3.1e-56) tmp = 18.0 * (y * (t * (x * z))); elseif (k <= 360000.0) tmp = b * c; elseif (k <= 1.35e+105) 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[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -6e-47], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.1e-206], t$95$1, If[LessEqual[k, 9e-115], t$95$2, If[LessEqual[k, 2e-98], t$95$1, If[LessEqual[k, 7.2e-75], N[(b * c), $MachinePrecision], If[LessEqual[k, 3.1e-56], N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 360000.0], N[(b * c), $MachinePrecision], If[LessEqual[k, 1.35e+105], t$95$2, N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right)\\
t_2 := 18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\\
\mathbf{if}\;k \leq -6 \cdot 10^{-47}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;k \leq 8.1 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 9 \cdot 10^{-115}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 2 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 7.2 \cdot 10^{-75}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;k \leq 3.1 \cdot 10^{-56}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{elif}\;k \leq 360000:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;k \leq 1.35 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -6.00000000000000033e-47Initial program 87.2%
Simplified87.3%
Taylor expanded in j around inf 41.9%
*-commutative41.9%
associate-*l*41.9%
Simplified41.9%
if -6.00000000000000033e-47 < k < 8.1000000000000003e-206 or 9.00000000000000046e-115 < k < 1.99999999999999988e-98Initial program 86.2%
Simplified88.8%
Taylor expanded in i around inf 24.9%
*-commutative24.9%
*-commutative24.9%
Simplified24.9%
if 8.1000000000000003e-206 < k < 9.00000000000000046e-115 or 3.6e5 < k < 1.35000000000000008e105Initial program 77.3%
Simplified83.7%
Taylor expanded in x around inf 56.1%
*-commutative56.1%
cancel-sign-sub-inv56.1%
associate-*r*56.1%
metadata-eval56.1%
fma-def56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in y around inf 37.9%
associate-*r*39.8%
*-commutative39.8%
Simplified39.8%
if 1.99999999999999988e-98 < k < 7.2000000000000001e-75 or 3.09999999999999987e-56 < k < 3.6e5Initial program 89.3%
Simplified89.3%
Taylor expanded in b around inf 34.7%
if 7.2000000000000001e-75 < k < 3.09999999999999987e-56Initial program 99.5%
Simplified71.4%
Taylor expanded in y around inf 44.0%
if 1.35000000000000008e105 < k Initial program 84.3%
Simplified81.7%
Taylor expanded in j around inf 69.9%
*-commutative69.9%
*-commutative69.9%
associate-*l*70.0%
Simplified70.0%
Final simplification39.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= y -6e+220)
(- (* 18.0 (* y (* t (* x z)))) (* 4.0 (+ (* t a) (* x i))))
(if (<= y 2.3e+112)
(- (+ (* b c) (* -4.0 (* t a))) (+ (* j (* 27.0 k)) (* x (* 4.0 i))))
(+ (* b c) (* x (- (* 18.0 (* y (* t 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 tmp;
if (y <= -6e+220) {
tmp = (18.0 * (y * (t * (x * z)))) - (4.0 * ((t * a) + (x * i)));
} else if (y <= 2.3e+112) {
tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
} else {
tmp = (b * c) + (x * ((18.0 * (y * (t * 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) :: tmp
if (y <= (-6d+220)) then
tmp = (18.0d0 * (y * (t * (x * z)))) - (4.0d0 * ((t * a) + (x * i)))
else if (y <= 2.3d+112) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - ((j * (27.0d0 * k)) + (x * (4.0d0 * i)))
else
tmp = (b * c) + (x * ((18.0d0 * (y * (t * 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 tmp;
if (y <= -6e+220) {
tmp = (18.0 * (y * (t * (x * z)))) - (4.0 * ((t * a) + (x * i)));
} else if (y <= 2.3e+112) {
tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
} else {
tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if y <= -6e+220: tmp = (18.0 * (y * (t * (x * z)))) - (4.0 * ((t * a) + (x * i))) elif y <= 2.3e+112: tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i))) else: tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (y <= -6e+220) tmp = Float64(Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))); elseif (y <= 2.3e+112) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(Float64(j * Float64(27.0 * k)) + Float64(x * Float64(4.0 * i)))); else tmp = Float64(Float64(b * c) + Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (y <= -6e+220) tmp = (18.0 * (y * (t * (x * z)))) - (4.0 * ((t * a) + (x * i))); elseif (y <= 2.3e+112) tmp = ((b * c) + (-4.0 * (t * a))) - ((j * (27.0 * k)) + (x * (4.0 * i))); else tmp = (b * c) + (x * ((18.0 * (y * (t * z))) - (4.0 * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[y, -6e+220], N[(N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+112], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision] + N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+220}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - 4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+112}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - \left(j \cdot \left(27 \cdot k\right) + x \cdot \left(4 \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if y < -6.00000000000000048e220Initial program 54.3%
Taylor expanded in b around 0 76.9%
associate-*r*76.8%
*-commutative76.8%
distribute-lft-out76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in j around 0 76.9%
if -6.00000000000000048e220 < y < 2.3e112Initial program 89.6%
Simplified88.7%
Taylor expanded in x around 0 85.1%
if 2.3e112 < y Initial program 77.0%
Taylor expanded in x around 0 78.9%
Taylor expanded in a around 0 76.9%
Taylor expanded in j around 0 70.6%
Final simplification81.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i)))
(t_2 (* t (- (* 18.0 (* y (* x z))) (* a 4.0))))
(t_3 (* k (* j 27.0))))
(if (<= b -7.2e+140)
(- (* b c) t_1)
(if (<= b -3.1e-9)
(- (* a (* t -4.0)) t_3)
(if (<= b -3.7e-68)
t_2
(if (<= b 2.7e-89)
(- (* 27.0 (* j (- k))) t_1)
(if (<= b 1.8e-32) t_2 (- (* b c) t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double t_3 = k * (j * 27.0);
double tmp;
if (b <= -7.2e+140) {
tmp = (b * c) - t_1;
} else if (b <= -3.1e-9) {
tmp = (a * (t * -4.0)) - t_3;
} else if (b <= -3.7e-68) {
tmp = t_2;
} else if (b <= 2.7e-89) {
tmp = (27.0 * (j * -k)) - t_1;
} else if (b <= 1.8e-32) {
tmp = t_2;
} else {
tmp = (b * c) - t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
t_2 = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
t_3 = k * (j * 27.0d0)
if (b <= (-7.2d+140)) then
tmp = (b * c) - t_1
else if (b <= (-3.1d-9)) then
tmp = (a * (t * (-4.0d0))) - t_3
else if (b <= (-3.7d-68)) then
tmp = t_2
else if (b <= 2.7d-89) then
tmp = (27.0d0 * (j * -k)) - t_1
else if (b <= 1.8d-32) then
tmp = t_2
else
tmp = (b * c) - t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0));
double t_3 = k * (j * 27.0);
double tmp;
if (b <= -7.2e+140) {
tmp = (b * c) - t_1;
} else if (b <= -3.1e-9) {
tmp = (a * (t * -4.0)) - t_3;
} else if (b <= -3.7e-68) {
tmp = t_2;
} else if (b <= 2.7e-89) {
tmp = (27.0 * (j * -k)) - t_1;
} else if (b <= 1.8e-32) {
tmp = t_2;
} else {
tmp = (b * c) - t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = t * ((18.0 * (y * (x * z))) - (a * 4.0)) t_3 = k * (j * 27.0) tmp = 0 if b <= -7.2e+140: tmp = (b * c) - t_1 elif b <= -3.1e-9: tmp = (a * (t * -4.0)) - t_3 elif b <= -3.7e-68: tmp = t_2 elif b <= 2.7e-89: tmp = (27.0 * (j * -k)) - t_1 elif b <= 1.8e-32: tmp = t_2 else: tmp = (b * c) - t_3 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(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))) t_3 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (b <= -7.2e+140) tmp = Float64(Float64(b * c) - t_1); elseif (b <= -3.1e-9) tmp = Float64(Float64(a * Float64(t * -4.0)) - t_3); elseif (b <= -3.7e-68) tmp = t_2; elseif (b <= 2.7e-89) tmp = Float64(Float64(27.0 * Float64(j * Float64(-k))) - t_1); elseif (b <= 1.8e-32) tmp = t_2; else tmp = Float64(Float64(b * c) - t_3); 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 = t * ((18.0 * (y * (x * z))) - (a * 4.0)); t_3 = k * (j * 27.0); tmp = 0.0; if (b <= -7.2e+140) tmp = (b * c) - t_1; elseif (b <= -3.1e-9) tmp = (a * (t * -4.0)) - t_3; elseif (b <= -3.7e-68) tmp = t_2; elseif (b <= 2.7e-89) tmp = (27.0 * (j * -k)) - t_1; elseif (b <= 1.8e-32) tmp = t_2; else tmp = (b * c) - t_3; 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[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+140], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, -3.1e-9], N[(N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision], If[LessEqual[b, -3.7e-68], t$95$2, If[LessEqual[b, 2.7e-89], N[(N[(27.0 * N[(j * (-k)), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, 1.8e-32], t$95$2, N[(N[(b * c), $MachinePrecision] - t$95$3), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
t_3 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+140}:\\
\;\;\;\;b \cdot c - t_1\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(t \cdot -4\right) - t_3\\
\mathbf{elif}\;b \leq -3.7 \cdot 10^{-68}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-89}:\\
\;\;\;\;27 \cdot \left(j \cdot \left(-k\right)\right) - t_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-32}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - t_3\\
\end{array}
\end{array}
if b < -7.1999999999999999e140Initial program 82.8%
Taylor expanded in t around 0 69.7%
Taylor expanded in j around 0 59.7%
if -7.1999999999999999e140 < b < -3.10000000000000005e-9Initial program 83.1%
Taylor expanded in x around 0 85.7%
Taylor expanded in a around inf 53.0%
*-commutative53.0%
associate-*r*53.0%
Simplified53.0%
if -3.10000000000000005e-9 < b < -3.70000000000000002e-68 or 2.69999999999999988e-89 < b < 1.79999999999999996e-32Initial program 83.7%
Simplified80.0%
Taylor expanded in t around inf 47.3%
if -3.70000000000000002e-68 < b < 2.69999999999999988e-89Initial program 88.2%
Taylor expanded in b around 0 83.7%
associate-*r*83.7%
*-commutative83.7%
distribute-lft-out83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in t around 0 50.3%
if 1.79999999999999996e-32 < b Initial program 83.0%
Taylor expanded in x around 0 86.9%
Taylor expanded in c around inf 52.8%
Final simplification52.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i))) (t_2 (* k (* j 27.0))))
(if (<= b -6.8e+140)
(- (* b c) t_1)
(if (<= b -7.5e-9)
(- (* a (* t -4.0)) t_2)
(if (<= b -4e-68)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= b 1.05e-108)
(- (* 27.0 (* j (- k))) t_1)
(if (<= b 1.35e-31)
(* x (- (* 18.0 (* y (* t z))) (* 4.0 i)))
(- (* 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 = 4.0 * (x * i);
double t_2 = k * (j * 27.0);
double tmp;
if (b <= -6.8e+140) {
tmp = (b * c) - t_1;
} else if (b <= -7.5e-9) {
tmp = (a * (t * -4.0)) - t_2;
} else if (b <= -4e-68) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (b <= 1.05e-108) {
tmp = (27.0 * (j * -k)) - t_1;
} else if (b <= 1.35e-31) {
tmp = x * ((18.0 * (y * (t * z))) - (4.0 * i));
} 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 = 4.0d0 * (x * i)
t_2 = k * (j * 27.0d0)
if (b <= (-6.8d+140)) then
tmp = (b * c) - t_1
else if (b <= (-7.5d-9)) then
tmp = (a * (t * (-4.0d0))) - t_2
else if (b <= (-4d-68)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (b <= 1.05d-108) then
tmp = (27.0d0 * (j * -k)) - t_1
else if (b <= 1.35d-31) then
tmp = x * ((18.0d0 * (y * (t * z))) - (4.0d0 * i))
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 = 4.0 * (x * i);
double t_2 = k * (j * 27.0);
double tmp;
if (b <= -6.8e+140) {
tmp = (b * c) - t_1;
} else if (b <= -7.5e-9) {
tmp = (a * (t * -4.0)) - t_2;
} else if (b <= -4e-68) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (b <= 1.05e-108) {
tmp = (27.0 * (j * -k)) - t_1;
} else if (b <= 1.35e-31) {
tmp = x * ((18.0 * (y * (t * z))) - (4.0 * i));
} else {
tmp = (b * c) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = k * (j * 27.0) tmp = 0 if b <= -6.8e+140: tmp = (b * c) - t_1 elif b <= -7.5e-9: tmp = (a * (t * -4.0)) - t_2 elif b <= -4e-68: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif b <= 1.05e-108: tmp = (27.0 * (j * -k)) - t_1 elif b <= 1.35e-31: tmp = x * ((18.0 * (y * (t * z))) - (4.0 * i)) else: tmp = (b * c) - t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (b <= -6.8e+140) tmp = Float64(Float64(b * c) - t_1); elseif (b <= -7.5e-9) tmp = Float64(Float64(a * Float64(t * -4.0)) - t_2); elseif (b <= -4e-68) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (b <= 1.05e-108) tmp = Float64(Float64(27.0 * Float64(j * Float64(-k))) - t_1); elseif (b <= 1.35e-31) tmp = Float64(x * Float64(Float64(18.0 * Float64(y * Float64(t * z))) - Float64(4.0 * i))); 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 = 4.0 * (x * i); t_2 = k * (j * 27.0); tmp = 0.0; if (b <= -6.8e+140) tmp = (b * c) - t_1; elseif (b <= -7.5e-9) tmp = (a * (t * -4.0)) - t_2; elseif (b <= -4e-68) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (b <= 1.05e-108) tmp = (27.0 * (j * -k)) - t_1; elseif (b <= 1.35e-31) tmp = x * ((18.0 * (y * (t * z))) - (4.0 * i)); 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[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.8e+140], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, -7.5e-9], N[(N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[b, -4e-68], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-108], N[(N[(27.0 * N[(j * (-k)), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, 1.35e-31], N[(x * N[(N[(18.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{+140}:\\
\;\;\;\;b \cdot c - t_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(t \cdot -4\right) - t_2\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-68}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-108}:\\
\;\;\;\;27 \cdot \left(j \cdot \left(-k\right)\right) - t_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-31}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - t_2\\
\end{array}
\end{array}
if b < -6.8e140Initial program 82.8%
Taylor expanded in t around 0 69.7%
Taylor expanded in j around 0 59.7%
if -6.8e140 < b < -7.49999999999999933e-9Initial program 83.1%
Taylor expanded in x around 0 85.7%
Taylor expanded in a around inf 53.0%
*-commutative53.0%
associate-*r*53.0%
Simplified53.0%
if -7.49999999999999933e-9 < b < -4.00000000000000027e-68Initial program 71.0%
Simplified62.1%
Taylor expanded in t around inf 61.7%
if -4.00000000000000027e-68 < b < 1.05e-108Initial program 87.9%
Taylor expanded in b around 0 84.3%
associate-*r*84.3%
*-commutative84.3%
distribute-lft-out84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in t around 0 48.6%
if 1.05e-108 < b < 1.35000000000000007e-31Initial program 94.4%
Simplified94.4%
Taylor expanded in x around inf 29.7%
if 1.35000000000000007e-31 < b Initial program 82.8%
Taylor expanded in x around 0 86.7%
Taylor expanded in c around inf 53.5%
Final simplification51.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* -4.0 (+ (* t a) (* x i))) (* k (* j 27.0))))
(t_2 (- (* b c) (* 4.0 (* x i)))))
(if (<= b -3.4e+143)
t_2
(if (<= b -8e-11)
t_1
(if (<= b -1.8e-67)
(* t (- (* 18.0 (* y (* x z))) (* a 4.0)))
(if (<= b 2.6e-15) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (-4.0 * ((t * a) + (x * i))) - (k * (j * 27.0));
double t_2 = (b * c) - (4.0 * (x * i));
double tmp;
if (b <= -3.4e+143) {
tmp = t_2;
} else if (b <= -8e-11) {
tmp = t_1;
} else if (b <= -1.8e-67) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (b <= 2.6e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((-4.0d0) * ((t * a) + (x * i))) - (k * (j * 27.0d0))
t_2 = (b * c) - (4.0d0 * (x * i))
if (b <= (-3.4d+143)) then
tmp = t_2
else if (b <= (-8d-11)) then
tmp = t_1
else if (b <= (-1.8d-67)) then
tmp = t * ((18.0d0 * (y * (x * z))) - (a * 4.0d0))
else if (b <= 2.6d-15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (-4.0 * ((t * a) + (x * i))) - (k * (j * 27.0));
double t_2 = (b * c) - (4.0 * (x * i));
double tmp;
if (b <= -3.4e+143) {
tmp = t_2;
} else if (b <= -8e-11) {
tmp = t_1;
} else if (b <= -1.8e-67) {
tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0));
} else if (b <= 2.6e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (-4.0 * ((t * a) + (x * i))) - (k * (j * 27.0)) t_2 = (b * c) - (4.0 * (x * i)) tmp = 0 if b <= -3.4e+143: tmp = t_2 elif b <= -8e-11: tmp = t_1 elif b <= -1.8e-67: tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)) elif b <= 2.6e-15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - Float64(k * Float64(j * 27.0))) t_2 = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) tmp = 0.0 if (b <= -3.4e+143) tmp = t_2; elseif (b <= -8e-11) tmp = t_1; elseif (b <= -1.8e-67) tmp = Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) - Float64(a * 4.0))); elseif (b <= 2.6e-15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (-4.0 * ((t * a) + (x * i))) - (k * (j * 27.0)); t_2 = (b * c) - (4.0 * (x * i)); tmp = 0.0; if (b <= -3.4e+143) tmp = t_2; elseif (b <= -8e-11) tmp = t_1; elseif (b <= -1.8e-67) tmp = t * ((18.0 * (y * (x * z))) - (a * 4.0)); elseif (b <= 2.6e-15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e+143], t$95$2, If[LessEqual[b, -8e-11], t$95$1, If[LessEqual[b, -1.8e-67], N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-15], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a + x \cdot i\right) - k \cdot \left(j \cdot 27\right)\\
t_2 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{+143}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-11}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-67}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.39999999999999982e143 or 2.60000000000000004e-15 < b Initial program 83.4%
Taylor expanded in t around 0 67.9%
Taylor expanded in j around 0 54.7%
if -3.39999999999999982e143 < b < -7.99999999999999952e-11 or -1.8e-67 < b < 2.60000000000000004e-15Initial program 87.1%
Taylor expanded in b around 0 76.8%
associate-*r*76.8%
*-commutative76.8%
distribute-lft-out76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in y around 0 73.6%
if -7.99999999999999952e-11 < b < -1.8e-67Initial program 67.8%
Simplified57.9%
Taylor expanded in t around inf 68.1%
Final simplification65.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -4.0 (* x i))) (t_2 (* 18.0 (* y (* t (* x z))))))
(if (<= k -6e-48)
(* k (* j -27.0))
(if (<= k 9.6e-206)
t_1
(if (<= k 2e-114)
t_2
(if (<= k 2.02e-97)
t_1
(if (<= k 2.35e+35)
(* b c)
(if (<= k 5.4e+72)
t_2
(if (<= k 1.5e+93) (* b c) (* 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 * (x * i);
double t_2 = 18.0 * (y * (t * (x * z)));
double tmp;
if (k <= -6e-48) {
tmp = k * (j * -27.0);
} else if (k <= 9.6e-206) {
tmp = t_1;
} else if (k <= 2e-114) {
tmp = t_2;
} else if (k <= 2.02e-97) {
tmp = t_1;
} else if (k <= 2.35e+35) {
tmp = b * c;
} else if (k <= 5.4e+72) {
tmp = t_2;
} else if (k <= 1.5e+93) {
tmp = b * c;
} 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) * (x * i)
t_2 = 18.0d0 * (y * (t * (x * z)))
if (k <= (-6d-48)) then
tmp = k * (j * (-27.0d0))
else if (k <= 9.6d-206) then
tmp = t_1
else if (k <= 2d-114) then
tmp = t_2
else if (k <= 2.02d-97) then
tmp = t_1
else if (k <= 2.35d+35) then
tmp = b * c
else if (k <= 5.4d+72) then
tmp = t_2
else if (k <= 1.5d+93) then
tmp = b * c
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 * (x * i);
double t_2 = 18.0 * (y * (t * (x * z)));
double tmp;
if (k <= -6e-48) {
tmp = k * (j * -27.0);
} else if (k <= 9.6e-206) {
tmp = t_1;
} else if (k <= 2e-114) {
tmp = t_2;
} else if (k <= 2.02e-97) {
tmp = t_1;
} else if (k <= 2.35e+35) {
tmp = b * c;
} else if (k <= 5.4e+72) {
tmp = t_2;
} else if (k <= 1.5e+93) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -4.0 * (x * i) t_2 = 18.0 * (y * (t * (x * z))) tmp = 0 if k <= -6e-48: tmp = k * (j * -27.0) elif k <= 9.6e-206: tmp = t_1 elif k <= 2e-114: tmp = t_2 elif k <= 2.02e-97: tmp = t_1 elif k <= 2.35e+35: tmp = b * c elif k <= 5.4e+72: tmp = t_2 elif k <= 1.5e+93: tmp = b * c 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(x * i)) t_2 = Float64(18.0 * Float64(y * Float64(t * Float64(x * z)))) tmp = 0.0 if (k <= -6e-48) tmp = Float64(k * Float64(j * -27.0)); elseif (k <= 9.6e-206) tmp = t_1; elseif (k <= 2e-114) tmp = t_2; elseif (k <= 2.02e-97) tmp = t_1; elseif (k <= 2.35e+35) tmp = Float64(b * c); elseif (k <= 5.4e+72) tmp = t_2; elseif (k <= 1.5e+93) tmp = Float64(b * c); 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 * (x * i); t_2 = 18.0 * (y * (t * (x * z))); tmp = 0.0; if (k <= -6e-48) tmp = k * (j * -27.0); elseif (k <= 9.6e-206) tmp = t_1; elseif (k <= 2e-114) tmp = t_2; elseif (k <= 2.02e-97) tmp = t_1; elseif (k <= 2.35e+35) tmp = b * c; elseif (k <= 5.4e+72) tmp = t_2; elseif (k <= 1.5e+93) tmp = b * c; 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[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -6e-48], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.6e-206], t$95$1, If[LessEqual[k, 2e-114], t$95$2, If[LessEqual[k, 2.02e-97], t$95$1, If[LessEqual[k, 2.35e+35], N[(b * c), $MachinePrecision], If[LessEqual[k, 5.4e+72], t$95$2, If[LessEqual[k, 1.5e+93], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(x \cdot i\right)\\
t_2 := 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{if}\;k \leq -6 \cdot 10^{-48}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;k \leq 9.6 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 2 \cdot 10^{-114}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 2.02 \cdot 10^{-97}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 2.35 \cdot 10^{+35}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;k \leq 5.4 \cdot 10^{+72}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{+93}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -5.9999999999999998e-48Initial program 87.2%
Simplified87.3%
Taylor expanded in j around inf 41.9%
*-commutative41.9%
associate-*l*41.9%
Simplified41.9%
if -5.9999999999999998e-48 < k < 9.5999999999999998e-206 or 2.0000000000000001e-114 < k < 2.0200000000000001e-97Initial program 86.4%
Simplified89.0%
Taylor expanded in i around inf 24.6%
*-commutative24.6%
*-commutative24.6%
Simplified24.6%
if 9.5999999999999998e-206 < k < 2.0000000000000001e-114 or 2.35000000000000017e35 < k < 5.4000000000000001e72Initial program 72.4%
Simplified78.1%
Taylor expanded in y around inf 35.9%
if 2.0200000000000001e-97 < k < 2.35000000000000017e35 or 5.4000000000000001e72 < k < 1.49999999999999989e93Initial program 90.5%
Simplified91.0%
Taylor expanded in b around inf 40.2%
if 1.49999999999999989e93 < k Initial program 84.7%
Simplified82.2%
Taylor expanded in j around inf 68.1%
*-commutative68.1%
*-commutative68.1%
associate-*l*68.3%
Simplified68.3%
Final simplification39.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* 4.0 (* x i)))))
(if (<= k -3.9e-85)
(* k (* j -27.0))
(if (<= k 1.5e+21)
t_1
(if (<= k 3.3e+72)
(* 18.0 (* (* x z) (* t y)))
(if (<= k 3.2e+92) 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 = (b * c) - (4.0 * (x * i));
double tmp;
if (k <= -3.9e-85) {
tmp = k * (j * -27.0);
} else if (k <= 1.5e+21) {
tmp = t_1;
} else if (k <= 3.3e+72) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (k <= 3.2e+92) {
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) :: tmp
t_1 = (b * c) - (4.0d0 * (x * i))
if (k <= (-3.9d-85)) then
tmp = k * (j * (-27.0d0))
else if (k <= 1.5d+21) then
tmp = t_1
else if (k <= 3.3d+72) then
tmp = 18.0d0 * ((x * z) * (t * y))
else if (k <= 3.2d+92) 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 = (b * c) - (4.0 * (x * i));
double tmp;
if (k <= -3.9e-85) {
tmp = k * (j * -27.0);
} else if (k <= 1.5e+21) {
tmp = t_1;
} else if (k <= 3.3e+72) {
tmp = 18.0 * ((x * z) * (t * y));
} else if (k <= 3.2e+92) {
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 = (b * c) - (4.0 * (x * i)) tmp = 0 if k <= -3.9e-85: tmp = k * (j * -27.0) elif k <= 1.5e+21: tmp = t_1 elif k <= 3.3e+72: tmp = 18.0 * ((x * z) * (t * y)) elif k <= 3.2e+92: 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(Float64(b * c) - Float64(4.0 * Float64(x * i))) tmp = 0.0 if (k <= -3.9e-85) tmp = Float64(k * Float64(j * -27.0)); elseif (k <= 1.5e+21) tmp = t_1; elseif (k <= 3.3e+72) tmp = Float64(18.0 * Float64(Float64(x * z) * Float64(t * y))); elseif (k <= 3.2e+92) 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 = (b * c) - (4.0 * (x * i)); tmp = 0.0; if (k <= -3.9e-85) tmp = k * (j * -27.0); elseif (k <= 1.5e+21) tmp = t_1; elseif (k <= 3.3e+72) tmp = 18.0 * ((x * z) * (t * y)); elseif (k <= 3.2e+92) 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[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -3.9e-85], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.5e+21], t$95$1, If[LessEqual[k, 3.3e+72], N[(18.0 * N[(N[(x * z), $MachinePrecision] * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.2e+92], t$95$1, N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;k \leq -3.9 \cdot 10^{-85}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 3.3 \cdot 10^{+72}:\\
\;\;\;\;18 \cdot \left(\left(x \cdot z\right) \cdot \left(t \cdot y\right)\right)\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{+92}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -3.89999999999999988e-85Initial program 88.2%
Simplified88.3%
Taylor expanded in j around inf 41.4%
*-commutative41.4%
associate-*l*41.4%
Simplified41.4%
if -3.89999999999999988e-85 < k < 1.5e21 or 3.3e72 < k < 3.20000000000000025e92Initial program 83.5%
Taylor expanded in t around 0 54.4%
Taylor expanded in j around 0 48.5%
if 1.5e21 < k < 3.3e72Initial program 80.8%
Simplified81.1%
Taylor expanded in x around inf 49.2%
*-commutative49.2%
cancel-sign-sub-inv49.2%
associate-*r*49.2%
metadata-eval49.2%
fma-def49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in y around inf 48.7%
associate-*r*61.0%
*-commutative61.0%
Simplified61.0%
if 3.20000000000000025e92 < k Initial program 84.7%
Simplified82.2%
Taylor expanded in j around inf 68.1%
*-commutative68.1%
*-commutative68.1%
associate-*l*68.3%
Simplified68.3%
Final simplification50.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (* a -4.0))))
(if (<= k -2.6e-93)
(* k (* j -27.0))
(if (<= k 5.5e-96)
t_1
(if (<= k 4.2e+50)
(* b c)
(if (<= k 4.5e+72)
t_1
(if (<= k 2.4e+92) (* b c) (* 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 = t * (a * -4.0);
double tmp;
if (k <= -2.6e-93) {
tmp = k * (j * -27.0);
} else if (k <= 5.5e-96) {
tmp = t_1;
} else if (k <= 4.2e+50) {
tmp = b * c;
} else if (k <= 4.5e+72) {
tmp = t_1;
} else if (k <= 2.4e+92) {
tmp = b * c;
} 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) :: tmp
t_1 = t * (a * (-4.0d0))
if (k <= (-2.6d-93)) then
tmp = k * (j * (-27.0d0))
else if (k <= 5.5d-96) then
tmp = t_1
else if (k <= 4.2d+50) then
tmp = b * c
else if (k <= 4.5d+72) then
tmp = t_1
else if (k <= 2.4d+92) then
tmp = b * c
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 = t * (a * -4.0);
double tmp;
if (k <= -2.6e-93) {
tmp = k * (j * -27.0);
} else if (k <= 5.5e-96) {
tmp = t_1;
} else if (k <= 4.2e+50) {
tmp = b * c;
} else if (k <= 4.5e+72) {
tmp = t_1;
} else if (k <= 2.4e+92) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * (a * -4.0) tmp = 0 if k <= -2.6e-93: tmp = k * (j * -27.0) elif k <= 5.5e-96: tmp = t_1 elif k <= 4.2e+50: tmp = b * c elif k <= 4.5e+72: tmp = t_1 elif k <= 2.4e+92: tmp = b * c else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(a * -4.0)) tmp = 0.0 if (k <= -2.6e-93) tmp = Float64(k * Float64(j * -27.0)); elseif (k <= 5.5e-96) tmp = t_1; elseif (k <= 4.2e+50) tmp = Float64(b * c); elseif (k <= 4.5e+72) tmp = t_1; elseif (k <= 2.4e+92) tmp = Float64(b * c); 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 = t * (a * -4.0); tmp = 0.0; if (k <= -2.6e-93) tmp = k * (j * -27.0); elseif (k <= 5.5e-96) tmp = t_1; elseif (k <= 4.2e+50) tmp = b * c; elseif (k <= 4.5e+72) tmp = t_1; elseif (k <= 2.4e+92) tmp = b * c; 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[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2.6e-93], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.5e-96], t$95$1, If[LessEqual[k, 4.2e+50], N[(b * c), $MachinePrecision], If[LessEqual[k, 4.5e+72], t$95$1, If[LessEqual[k, 2.4e+92], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot -4\right)\\
\mathbf{if}\;k \leq -2.6 \cdot 10^{-93}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;k \leq 5.5 \cdot 10^{-96}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 4.2 \cdot 10^{+50}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;k \leq 4.5 \cdot 10^{+72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 2.4 \cdot 10^{+92}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -2.5999999999999998e-93Initial program 88.6%
Simplified88.6%
Taylor expanded in j around inf 40.4%
*-commutative40.4%
associate-*l*40.4%
Simplified40.4%
if -2.5999999999999998e-93 < k < 5.4999999999999997e-96 or 4.1999999999999999e50 < k < 4.4999999999999998e72Initial program 81.3%
Simplified85.2%
Taylor expanded in a around inf 32.2%
*-commutative32.2%
*-commutative32.2%
associate-*r*32.2%
Simplified32.2%
if 5.4999999999999997e-96 < k < 4.1999999999999999e50 or 4.4999999999999998e72 < k < 2.40000000000000005e92Initial program 88.3%
Simplified88.8%
Taylor expanded in b around inf 38.2%
if 2.40000000000000005e92 < k Initial program 84.7%
Simplified82.2%
Taylor expanded in j around inf 68.1%
*-commutative68.1%
*-commutative68.1%
associate-*l*68.3%
Simplified68.3%
Final simplification40.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= k -1.8e-47)
(* k (* j -27.0))
(if (<= k 1.04e-97)
(* -4.0 (* x i))
(if (<= k 1.12e+51)
(* b c)
(if (<= k 5e+72)
(* t (* a -4.0))
(if (<= k 4.1e+92) (* b c) (* 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 (k <= -1.8e-47) {
tmp = k * (j * -27.0);
} else if (k <= 1.04e-97) {
tmp = -4.0 * (x * i);
} else if (k <= 1.12e+51) {
tmp = b * c;
} else if (k <= 5e+72) {
tmp = t * (a * -4.0);
} else if (k <= 4.1e+92) {
tmp = b * c;
} 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 (k <= (-1.8d-47)) then
tmp = k * (j * (-27.0d0))
else if (k <= 1.04d-97) then
tmp = (-4.0d0) * (x * i)
else if (k <= 1.12d+51) then
tmp = b * c
else if (k <= 5d+72) then
tmp = t * (a * (-4.0d0))
else if (k <= 4.1d+92) then
tmp = b * c
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 (k <= -1.8e-47) {
tmp = k * (j * -27.0);
} else if (k <= 1.04e-97) {
tmp = -4.0 * (x * i);
} else if (k <= 1.12e+51) {
tmp = b * c;
} else if (k <= 5e+72) {
tmp = t * (a * -4.0);
} else if (k <= 4.1e+92) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if k <= -1.8e-47: tmp = k * (j * -27.0) elif k <= 1.04e-97: tmp = -4.0 * (x * i) elif k <= 1.12e+51: tmp = b * c elif k <= 5e+72: tmp = t * (a * -4.0) elif k <= 4.1e+92: tmp = b * c else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (k <= -1.8e-47) tmp = Float64(k * Float64(j * -27.0)); elseif (k <= 1.04e-97) tmp = Float64(-4.0 * Float64(x * i)); elseif (k <= 1.12e+51) tmp = Float64(b * c); elseif (k <= 5e+72) tmp = Float64(t * Float64(a * -4.0)); elseif (k <= 4.1e+92) tmp = Float64(b * c); 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 (k <= -1.8e-47) tmp = k * (j * -27.0); elseif (k <= 1.04e-97) tmp = -4.0 * (x * i); elseif (k <= 1.12e+51) tmp = b * c; elseif (k <= 5e+72) tmp = t * (a * -4.0); elseif (k <= 4.1e+92) tmp = b * c; else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[k, -1.8e-47], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.04e-97], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.12e+51], N[(b * c), $MachinePrecision], If[LessEqual[k, 5e+72], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.1e+92], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.8 \cdot 10^{-47}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;k \leq 1.04 \cdot 10^{-97}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;k \leq 1.12 \cdot 10^{+51}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;k \leq 5 \cdot 10^{+72}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;k \leq 4.1 \cdot 10^{+92}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -1.79999999999999995e-47Initial program 87.2%
Simplified87.3%
Taylor expanded in j around inf 41.9%
*-commutative41.9%
associate-*l*41.9%
Simplified41.9%
if -1.79999999999999995e-47 < k < 1.04000000000000005e-97Initial program 83.5%
Simplified87.2%
Taylor expanded in i around inf 27.8%
*-commutative27.8%
*-commutative27.8%
Simplified27.8%
if 1.04000000000000005e-97 < k < 1.11999999999999992e51 or 4.99999999999999992e72 < k < 4.10000000000000024e92Initial program 88.3%
Simplified88.8%
Taylor expanded in b around inf 38.2%
if 1.11999999999999992e51 < k < 4.99999999999999992e72Initial program 67.4%
Simplified68.1%
Taylor expanded in a around inf 67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*67.3%
Simplified67.3%
if 4.10000000000000024e92 < k Initial program 84.7%
Simplified82.2%
Taylor expanded in j around inf 68.1%
*-commutative68.1%
*-commutative68.1%
associate-*l*68.3%
Simplified68.3%
Final simplification40.1%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= k -3.9e-85) (not (<= k 9.2e+91))) (* j (* k -27.0)) (* b c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((k <= -3.9e-85) || !(k <= 9.2e+91)) {
tmp = j * (k * -27.0);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((k <= (-3.9d-85)) .or. (.not. (k <= 9.2d+91))) then
tmp = j * (k * (-27.0d0))
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((k <= -3.9e-85) || !(k <= 9.2e+91)) {
tmp = j * (k * -27.0);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (k <= -3.9e-85) or not (k <= 9.2e+91): tmp = j * (k * -27.0) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((k <= -3.9e-85) || !(k <= 9.2e+91)) tmp = Float64(j * Float64(k * -27.0)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((k <= -3.9e-85) || ~((k <= 9.2e+91))) tmp = j * (k * -27.0); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[k, -3.9e-85], N[Not[LessEqual[k, 9.2e+91]], $MachinePrecision]], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -3.9 \cdot 10^{-85} \lor \neg \left(k \leq 9.2 \cdot 10^{+91}\right):\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if k < -3.89999999999999988e-85 or 9.19999999999999965e91 < k Initial program 87.0%
Simplified86.2%
Taylor expanded in j around inf 50.5%
*-commutative50.5%
*-commutative50.5%
associate-*l*49.7%
Simplified49.7%
if -3.89999999999999988e-85 < k < 9.19999999999999965e91Initial program 83.2%
Simplified86.2%
Taylor expanded in b around inf 27.4%
Final simplification37.4%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= k -3.9e-85) (* k (* j -27.0)) (if (<= k 1e+92) (* b c) (* 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 (k <= -3.9e-85) {
tmp = k * (j * -27.0);
} else if (k <= 1e+92) {
tmp = b * c;
} 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 (k <= (-3.9d-85)) then
tmp = k * (j * (-27.0d0))
else if (k <= 1d+92) then
tmp = b * c
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 (k <= -3.9e-85) {
tmp = k * (j * -27.0);
} else if (k <= 1e+92) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if k <= -3.9e-85: tmp = k * (j * -27.0) elif k <= 1e+92: tmp = b * c else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (k <= -3.9e-85) tmp = Float64(k * Float64(j * -27.0)); elseif (k <= 1e+92) tmp = Float64(b * c); 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 (k <= -3.9e-85) tmp = k * (j * -27.0); elseif (k <= 1e+92) tmp = b * c; else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[k, -3.9e-85], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1e+92], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -3.9 \cdot 10^{-85}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;k \leq 10^{+92}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -3.89999999999999988e-85Initial program 88.2%
Simplified88.3%
Taylor expanded in j around inf 41.4%
*-commutative41.4%
associate-*l*41.4%
Simplified41.4%
if -3.89999999999999988e-85 < k < 1e92Initial program 83.2%
Simplified86.2%
Taylor expanded in b around inf 27.4%
if 1e92 < k Initial program 84.7%
Simplified82.2%
Taylor expanded in j around inf 68.1%
*-commutative68.1%
*-commutative68.1%
associate-*l*68.3%
Simplified68.3%
Final simplification37.8%
(FPCore (x y z t a b c i j k) :precision binary64 (* b c))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
def code(x, y, z, t, a, b, c, i, j, k): return b * c
function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = b * c; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
\\
b \cdot c
\end{array}
Initial program 84.9%
Simplified86.2%
Taylor expanded in b around inf 24.3%
Final simplification24.3%
(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 2023279
(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)))