
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* x 4.0) i)) (t_2 (* (* j 27.0) k)) (t_3 (* t (* a 4.0))))
(if (<=
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) t_3) (* b c)) t_1) t_2)
INFINITY)
(- (- (+ (* b c) (- (* t (* z (* x (* 18.0 y)))) t_3)) t_1) t_2)
(+ (* x (fma -4.0 i (* 18.0 (* z (* y t))))) (* 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 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = t * (a * 4.0);
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2;
} else {
tmp = (x * fma(-4.0, i, (18.0 * (z * (y * t))))) + (j * (k * -27.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(x * 4.0) * i) t_2 = Float64(Float64(j * 27.0) * k) t_3 = Float64(t * Float64(a * 4.0)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - t_3) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(x * Float64(18.0 * y)))) - t_3)) - t_1) - t_2); else tmp = Float64(Float64(x * fma(-4.0, i, Float64(18.0 * Float64(z * Float64(y * t))))) + Float64(j * Float64(k * -27.0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - t$95$3), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], Infinity], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], N[(N[(x * N[(-4.0 * i + N[(18.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot 4\right) \cdot i\\
t_2 := \left(j \cdot 27\right) \cdot k\\
t_3 := t \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t\_3\right) + b \cdot c\right) - t\_1\right) - t\_2 \leq \infty:\\
\;\;\;\;\left(\left(b \cdot c + \left(t \cdot \left(z \cdot \left(x \cdot \left(18 \cdot y\right)\right)\right) - t\_3\right)\right) - t\_1\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(-4, i, 18 \cdot \left(z \cdot \left(y \cdot t\right)\right)\right) + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.4%
Taylor expanded in x around 0 97.4%
associate-*r*97.4%
*-commutative97.4%
associate-*r*97.4%
Simplified97.4%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified24.0%
Taylor expanded in x around inf 60.0%
fma-define60.0%
associate-*r*64.0%
Simplified64.0%
Final simplification94.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* x 4.0) i)) (t_2 (* (* j 27.0) k)) (t_3 (* t (* a 4.0))))
(if (<=
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) t_3) (* b c)) t_1) t_2)
INFINITY)
(- (- (+ (* b c) (- (* t (* z (* x (* 18.0 y)))) t_3)) t_1) t_2)
(+ (* j (* k -27.0)) (* 18.0 (* (* x t) (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = t * (a * 4.0);
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2;
} else {
tmp = (j * (k * -27.0)) + (18.0 * ((x * t) * (y * z)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = t * (a * 4.0);
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= Double.POSITIVE_INFINITY) {
tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2;
} else {
tmp = (j * (k * -27.0)) + (18.0 * ((x * t) * (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (x * 4.0) * i t_2 = (j * 27.0) * k t_3 = t * (a * 4.0) tmp = 0 if ((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= math.inf: tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2 else: tmp = (j * (k * -27.0)) + (18.0 * ((x * t) * (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(x * 4.0) * i) t_2 = Float64(Float64(j * 27.0) * k) t_3 = Float64(t * Float64(a * 4.0)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - t_3) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(x * Float64(18.0 * y)))) - t_3)) - t_1) - t_2); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(18.0 * Float64(Float64(x * t) * Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (x * 4.0) * i; t_2 = (j * 27.0) * k; t_3 = t * (a * 4.0); tmp = 0.0; if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= Inf) tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2; else tmp = (j * (k * -27.0)) + (18.0 * ((x * t) * (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - t$95$3), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], Infinity], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(N[(x * t), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot 4\right) \cdot i\\
t_2 := \left(j \cdot 27\right) \cdot k\\
t_3 := t \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t\_3\right) + b \cdot c\right) - t\_1\right) - t\_2 \leq \infty:\\
\;\;\;\;\left(\left(b \cdot c + \left(t \cdot \left(z \cdot \left(x \cdot \left(18 \cdot y\right)\right)\right) - t\_3\right)\right) - t\_1\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + 18 \cdot \left(\left(x \cdot t\right) \cdot \left(y \cdot z\right)\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.4%
Taylor expanded in x around 0 97.4%
associate-*r*97.4%
*-commutative97.4%
associate-*r*97.4%
Simplified97.4%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified24.0%
Taylor expanded in y around inf 52.2%
associate-*r*60.0%
Simplified60.0%
Final simplification93.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -2e+141)
(- (* b c) t_1)
(if (<= t_1 -2e+89)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t_1 5e-229)
(- (* b c) (* (* x 4.0) i))
(if (<= t_1 1e+93)
(* t (- (* 18.0 (* z (* x y))) (* a 4.0)))
(+ (* 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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = (b * c) - t_1;
} else if (t_1 <= -2e+89) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t_1 <= 5e-229) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_1 <= 1e+93) {
tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0));
} else {
tmp = (b * c) + (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 = (j * 27.0d0) * k
if (t_1 <= (-2d+141)) then
tmp = (b * c) - t_1
else if (t_1 <= (-2d+89)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t_1 <= 5d-229) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (t_1 <= 1d+93) then
tmp = t * ((18.0d0 * (z * (x * y))) - (a * 4.0d0))
else
tmp = (b * c) + (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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = (b * c) - t_1;
} else if (t_1 <= -2e+89) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t_1 <= 5e-229) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_1 <= 1e+93) {
tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -2e+141: tmp = (b * c) - t_1 elif t_1 <= -2e+89: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t_1 <= 5e-229: tmp = (b * c) - ((x * 4.0) * i) elif t_1 <= 1e+93: tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0)) else: tmp = (b * c) + (j * (k * -27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= -2e+141) tmp = Float64(Float64(b * c) - t_1); elseif (t_1 <= -2e+89) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t_1 <= 5e-229) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (t_1 <= 1e+93) tmp = Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(a * 4.0))); else tmp = Float64(Float64(b * c) + 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 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -2e+141) tmp = (b * c) - t_1; elseif (t_1 <= -2e+89) tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)); elseif (t_1 <= 5e-229) tmp = (b * c) - ((x * 4.0) * i); elseif (t_1 <= 1e+93) tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0)); else tmp = (b * c) + (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[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+141], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$1, -2e+89], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-229], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+141}:\\
\;\;\;\;b \cdot c - t\_1\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+89}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2.00000000000000003e141Initial program 75.2%
Taylor expanded in x around 0 75.2%
associate-*r*75.2%
*-commutative75.2%
associate-*r*75.3%
Simplified75.3%
Taylor expanded in b around inf 79.1%
if -2.00000000000000003e141 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999999e89Initial program 99.8%
Simplified90.2%
Taylor expanded in t around inf 71.8%
if -1.99999999999999999e89 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.00000000000000016e-229Initial program 89.6%
Taylor expanded in y around 0 77.9%
distribute-lft-out77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in j around 0 76.1%
Taylor expanded in a around 0 59.5%
*-commutative59.5%
associate-*l*59.5%
Simplified59.5%
if 5.00000000000000016e-229 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 92.1%
Simplified87.6%
Taylor expanded in t around inf 52.4%
pow152.4%
Applied egg-rr52.4%
unpow152.4%
associate-*r*55.4%
Simplified55.4%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in b around inf 78.2%
Final simplification64.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* j 27.0) -2e+140)
(- (* b c) (* (* j 27.0) k))
(if (<= (* j 27.0) -1e-44)
(* t (- (* 18.0 (* z (* x y))) (* a 4.0)))
(if (<= (* j 27.0) -1e-236)
(- (* b c) (* (* x 4.0) i))
(if (<= (* j 27.0) 5e-196)
(- (* b c) (* t (* a 4.0)))
(if (<= (* j 27.0) 1e-78)
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))
(+ (* j (* k -27.0)) (* a (* t -4.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((j * 27.0) <= -2e+140) {
tmp = (b * c) - ((j * 27.0) * k);
} else if ((j * 27.0) <= -1e-44) {
tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0));
} else if ((j * 27.0) <= -1e-236) {
tmp = (b * c) - ((x * 4.0) * i);
} else if ((j * 27.0) <= 5e-196) {
tmp = (b * c) - (t * (a * 4.0));
} else if ((j * 27.0) <= 1e-78) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else {
tmp = (j * (k * -27.0)) + (a * (t * -4.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((j * 27.0d0) <= (-2d+140)) then
tmp = (b * c) - ((j * 27.0d0) * k)
else if ((j * 27.0d0) <= (-1d-44)) then
tmp = t * ((18.0d0 * (z * (x * y))) - (a * 4.0d0))
else if ((j * 27.0d0) <= (-1d-236)) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if ((j * 27.0d0) <= 5d-196) then
tmp = (b * c) - (t * (a * 4.0d0))
else if ((j * 27.0d0) <= 1d-78) then
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
else
tmp = (j * (k * (-27.0d0))) + (a * (t * (-4.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((j * 27.0) <= -2e+140) {
tmp = (b * c) - ((j * 27.0) * k);
} else if ((j * 27.0) <= -1e-44) {
tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0));
} else if ((j * 27.0) <= -1e-236) {
tmp = (b * c) - ((x * 4.0) * i);
} else if ((j * 27.0) <= 5e-196) {
tmp = (b * c) - (t * (a * 4.0));
} else if ((j * 27.0) <= 1e-78) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else {
tmp = (j * (k * -27.0)) + (a * (t * -4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (j * 27.0) <= -2e+140: tmp = (b * c) - ((j * 27.0) * k) elif (j * 27.0) <= -1e-44: tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0)) elif (j * 27.0) <= -1e-236: tmp = (b * c) - ((x * 4.0) * i) elif (j * 27.0) <= 5e-196: tmp = (b * c) - (t * (a * 4.0)) elif (j * 27.0) <= 1e-78: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) else: tmp = (j * (k * -27.0)) + (a * (t * -4.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(j * 27.0) <= -2e+140) tmp = Float64(Float64(b * c) - Float64(Float64(j * 27.0) * k)); elseif (Float64(j * 27.0) <= -1e-44) tmp = Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(a * 4.0))); elseif (Float64(j * 27.0) <= -1e-236) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (Float64(j * 27.0) <= 5e-196) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); elseif (Float64(j * 27.0) <= 1e-78) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(a * Float64(t * -4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((j * 27.0) <= -2e+140) tmp = (b * c) - ((j * 27.0) * k); elseif ((j * 27.0) <= -1e-44) tmp = t * ((18.0 * (z * (x * y))) - (a * 4.0)); elseif ((j * 27.0) <= -1e-236) tmp = (b * c) - ((x * 4.0) * i); elseif ((j * 27.0) <= 5e-196) tmp = (b * c) - (t * (a * 4.0)); elseif ((j * 27.0) <= 1e-78) tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)); else tmp = (j * (k * -27.0)) + (a * (t * -4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(j * 27.0), $MachinePrecision], -2e+140], N[(N[(b * c), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], -1e-44], N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], -1e-236], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], 5e-196], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], 1e-78], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \cdot 27 \leq -2 \cdot 10^{+140}:\\
\;\;\;\;b \cdot c - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;j \cdot 27 \leq -1 \cdot 10^{-44}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;j \cdot 27 \leq -1 \cdot 10^{-236}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;j \cdot 27 \leq 5 \cdot 10^{-196}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{elif}\;j \cdot 27 \leq 10^{-78}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + a \cdot \left(t \cdot -4\right)\\
\end{array}
\end{array}
if (*.f64 j #s(literal 27 binary64)) < -2.00000000000000012e140Initial program 75.7%
Taylor expanded in x around 0 75.7%
associate-*r*75.7%
*-commutative75.7%
associate-*r*75.7%
Simplified75.7%
Taylor expanded in b around inf 68.8%
if -2.00000000000000012e140 < (*.f64 j #s(literal 27 binary64)) < -9.99999999999999953e-45Initial program 94.3%
Simplified86.3%
Taylor expanded in t around inf 41.5%
pow141.5%
Applied egg-rr41.5%
unpow141.5%
associate-*r*46.9%
Simplified46.9%
if -9.99999999999999953e-45 < (*.f64 j #s(literal 27 binary64)) < -1e-236Initial program 91.0%
Taylor expanded in y around 0 79.7%
distribute-lft-out79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in j around 0 75.3%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
associate-*l*58.8%
Simplified58.8%
if -1e-236 < (*.f64 j #s(literal 27 binary64)) < 5.0000000000000005e-196Initial program 88.8%
Taylor expanded in y around 0 83.4%
distribute-lft-out83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in j around 0 80.7%
Taylor expanded in a around inf 61.9%
associate-*r*61.9%
Simplified61.9%
if 5.0000000000000005e-196 < (*.f64 j #s(literal 27 binary64)) < 9.99999999999999999e-79Initial program 89.8%
Simplified86.5%
Taylor expanded in x around inf 62.4%
if 9.99999999999999999e-79 < (*.f64 j #s(literal 27 binary64)) Initial program 87.1%
Simplified87.4%
Taylor expanded in a around inf 53.2%
metadata-eval53.2%
distribute-lft-neg-in53.2%
*-commutative53.2%
associate-*l*53.2%
distribute-lft-neg-in53.2%
distribute-lft-neg-in53.2%
metadata-eval53.2%
Simplified53.2%
Final simplification57.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 (- INFINITY))
(* -27.0 (* j k))
(if (<= t_1 1e+258)
(-
(+
(* t (- (* x (* z (* 18.0 y))) (* a 4.0)))
(- (* b c) (* (* x 4.0) i)))
t_1)
(- (* b c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = -27.0 * (j * k);
} else if (t_1 <= 1e+258) {
tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - ((x * 4.0) * i))) - t_1;
} else {
tmp = (b * c) - t_1;
}
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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = -27.0 * (j * k);
} else if (t_1 <= 1e+258) {
tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - ((x * 4.0) * i))) - t_1;
} else {
tmp = (b * c) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -math.inf: tmp = -27.0 * (j * k) elif t_1 <= 1e+258: tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - ((x * 4.0) * i))) - t_1 else: tmp = (b * c) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(-27.0 * Float64(j * k)); elseif (t_1 <= 1e+258) tmp = Float64(Float64(Float64(t * Float64(Float64(x * Float64(z * Float64(18.0 * y))) - Float64(a * 4.0))) + Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i))) - t_1); else tmp = Float64(Float64(b * c) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -Inf) tmp = -27.0 * (j * k); elseif (t_1 <= 1e+258) tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - ((x * 4.0) * i))) - t_1; else tmp = (b * c) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+258], N[(N[(N[(t * N[(N[(x * N[(z * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+258}:\\
\;\;\;\;\left(t \cdot \left(x \cdot \left(z \cdot \left(18 \cdot y\right)\right) - a \cdot 4\right) + \left(b \cdot c - \left(x \cdot 4\right) \cdot i\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -inf.0Initial program 60.0%
Simplified60.0%
Taylor expanded in j around inf 93.3%
if -inf.0 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000006e258Initial program 91.3%
associate--l+91.3%
distribute-rgt-out--92.2%
associate-*r*89.6%
associate-*l*89.6%
associate-*r*89.6%
*-commutative89.6%
Applied egg-rr89.6%
if 1.00000000000000006e258 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 73.8%
Taylor expanded in x around 0 73.8%
associate-*r*73.8%
*-commutative73.8%
associate-*r*73.8%
Simplified73.8%
Taylor expanded in b around inf 95.9%
Final simplification90.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -2e+141)
(- (* b c) t_1)
(if (<= t_1 -2e+89)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t_1 -1e-238)
(- (* b c) (* (* x 4.0) i))
(if (<= t_1 1e+93)
(- (* b c) (* t (* a 4.0)))
(+ (* 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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = (b * c) - t_1;
} else if (t_1 <= -2e+89) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t_1 <= -1e-238) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_1 <= 1e+93) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (b * c) + (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 = (j * 27.0d0) * k
if (t_1 <= (-2d+141)) then
tmp = (b * c) - t_1
else if (t_1 <= (-2d+89)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t_1 <= (-1d-238)) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (t_1 <= 1d+93) then
tmp = (b * c) - (t * (a * 4.0d0))
else
tmp = (b * c) + (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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = (b * c) - t_1;
} else if (t_1 <= -2e+89) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t_1 <= -1e-238) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_1 <= 1e+93) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -2e+141: tmp = (b * c) - t_1 elif t_1 <= -2e+89: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t_1 <= -1e-238: tmp = (b * c) - ((x * 4.0) * i) elif t_1 <= 1e+93: tmp = (b * c) - (t * (a * 4.0)) else: tmp = (b * c) + (j * (k * -27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= -2e+141) tmp = Float64(Float64(b * c) - t_1); elseif (t_1 <= -2e+89) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t_1 <= -1e-238) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (t_1 <= 1e+93) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); else tmp = Float64(Float64(b * c) + 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 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -2e+141) tmp = (b * c) - t_1; elseif (t_1 <= -2e+89) tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)); elseif (t_1 <= -1e-238) tmp = (b * c) - ((x * 4.0) * i); elseif (t_1 <= 1e+93) tmp = (b * c) - (t * (a * 4.0)); else tmp = (b * c) + (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[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+141], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$1, -2e+89], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-238], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+141}:\\
\;\;\;\;b \cdot c - t\_1\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+89}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-238}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2.00000000000000003e141Initial program 75.2%
Taylor expanded in x around 0 75.2%
associate-*r*75.2%
*-commutative75.2%
associate-*r*75.3%
Simplified75.3%
Taylor expanded in b around inf 79.1%
if -2.00000000000000003e141 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999999e89Initial program 99.8%
Simplified90.2%
Taylor expanded in t around inf 71.8%
if -1.99999999999999999e89 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -9.9999999999999999e-239Initial program 92.9%
Taylor expanded in y around 0 82.6%
distribute-lft-out82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in j around 0 79.3%
Taylor expanded in a around 0 65.4%
*-commutative65.4%
associate-*l*65.4%
Simplified65.4%
if -9.9999999999999999e-239 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 89.3%
Taylor expanded in y around 0 72.5%
distribute-lft-out72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around 0 68.4%
Taylor expanded in a around inf 53.2%
associate-*r*53.2%
Simplified53.2%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in b around inf 78.2%
Final simplification64.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -2e+179)
(- (- (* b c) (* 4.0 (* t a))) t_1)
(if (<= t_1 5e+89)
(-
(+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0))))
(* x (* 4.0 i)))
(*
j
(- (/ (* b c) j) (+ (* 4.0 (/ (+ (* t a) (* x i)) j)) (* 27.0 k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else if (t_1 <= 5e+89) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
} else {
tmp = j * (((b * c) / j) - ((4.0 * (((t * a) + (x * i)) / j)) + (27.0 * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t_1 <= (-2d+179)) then
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
else if (t_1 <= 5d+89) then
tmp = ((b * c) + (t * (((x * 18.0d0) * (y * z)) - (a * 4.0d0)))) - (x * (4.0d0 * i))
else
tmp = j * (((b * c) / j) - ((4.0d0 * (((t * a) + (x * i)) / j)) + (27.0d0 * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else if (t_1 <= 5e+89) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
} else {
tmp = j * (((b * c) / j) - ((4.0 * (((t * a) + (x * i)) / j)) + (27.0 * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -2e+179: tmp = ((b * c) - (4.0 * (t * a))) - t_1 elif t_1 <= 5e+89: tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i)) else: tmp = j * (((b * c) / j) - ((4.0 * (((t * a) + (x * i)) / j)) + (27.0 * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= -2e+179) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); elseif (t_1 <= 5e+89) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(x * 18.0) * Float64(y * z)) - Float64(a * 4.0)))) - Float64(x * Float64(4.0 * i))); else tmp = Float64(j * Float64(Float64(Float64(b * c) / j) - Float64(Float64(4.0 * Float64(Float64(Float64(t * a) + Float64(x * i)) / j)) + Float64(27.0 * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -2e+179) tmp = ((b * c) - (4.0 * (t * a))) - t_1; elseif (t_1 <= 5e+89) tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i)); else tmp = j * (((b * c) / j) - ((4.0 * (((t * a) + (x * i)) / j)) + (27.0 * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+179], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$1, 5e+89], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(N[(b * c), $MachinePrecision] / j), $MachinePrecision] - N[(N[(4.0 * N[(N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision] + N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+179}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+89}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right)\right) - x \cdot \left(4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\frac{b \cdot c}{j} - \left(4 \cdot \frac{t \cdot a + x \cdot i}{j} + 27 \cdot k\right)\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179Initial program 73.3%
Taylor expanded in x around 0 88.2%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4.99999999999999983e89Initial program 91.1%
Simplified89.6%
Taylor expanded in x around inf 85.6%
associate-*r*85.6%
*-commutative85.6%
Simplified85.6%
if 4.99999999999999983e89 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.7%
Taylor expanded in y around 0 84.1%
distribute-lft-out84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in j around inf 84.1%
Final simplification85.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)) (t_2 (* x (* y z))))
(if (<= a -1.6e+137)
(* a (- (/ (* b c) a) (+ (* t 4.0) (* 27.0 (/ (* j k) a)))))
(if (<= a -2.95e-171)
(+ (* b c) (* t (- (* 18.0 t_2) (* a 4.0))))
(if (<= a 1.35e-282)
(- (- (* b c) (* 4.0 (* x i))) t_1)
(if (<= a 1.06e-89)
(- (+ (* b c) (* 18.0 (* t t_2))) (* x (* 4.0 i)))
(- (- (* b c) (* 4.0 (* t a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double t_2 = x * (y * z);
double tmp;
if (a <= -1.6e+137) {
tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a))));
} else if (a <= -2.95e-171) {
tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0)));
} else if (a <= 1.35e-282) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (a <= 1.06e-89) {
tmp = ((b * c) + (18.0 * (t * t_2))) - (x * (4.0 * i));
} else {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * 27.0d0) * k
t_2 = x * (y * z)
if (a <= (-1.6d+137)) then
tmp = a * (((b * c) / a) - ((t * 4.0d0) + (27.0d0 * ((j * k) / a))))
else if (a <= (-2.95d-171)) then
tmp = (b * c) + (t * ((18.0d0 * t_2) - (a * 4.0d0)))
else if (a <= 1.35d-282) then
tmp = ((b * c) - (4.0d0 * (x * i))) - t_1
else if (a <= 1.06d-89) then
tmp = ((b * c) + (18.0d0 * (t * t_2))) - (x * (4.0d0 * i))
else
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double t_2 = x * (y * z);
double tmp;
if (a <= -1.6e+137) {
tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a))));
} else if (a <= -2.95e-171) {
tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0)));
} else if (a <= 1.35e-282) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (a <= 1.06e-89) {
tmp = ((b * c) + (18.0 * (t * t_2))) - (x * (4.0 * i));
} else {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k t_2 = x * (y * z) tmp = 0 if a <= -1.6e+137: tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a)))) elif a <= -2.95e-171: tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0))) elif a <= 1.35e-282: tmp = ((b * c) - (4.0 * (x * i))) - t_1 elif a <= 1.06e-89: tmp = ((b * c) + (18.0 * (t * t_2))) - (x * (4.0 * i)) else: tmp = ((b * c) - (4.0 * (t * a))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (a <= -1.6e+137) tmp = Float64(a * Float64(Float64(Float64(b * c) / a) - Float64(Float64(t * 4.0) + Float64(27.0 * Float64(Float64(j * k) / a))))); elseif (a <= -2.95e-171) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * t_2) - Float64(a * 4.0)))); elseif (a <= 1.35e-282) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - t_1); elseif (a <= 1.06e-89) tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(t * t_2))) - Float64(x * Float64(4.0 * i))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; t_2 = x * (y * z); tmp = 0.0; if (a <= -1.6e+137) tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a)))); elseif (a <= -2.95e-171) tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0))); elseif (a <= 1.35e-282) tmp = ((b * c) - (4.0 * (x * i))) - t_1; elseif (a <= 1.06e-89) tmp = ((b * c) + (18.0 * (t * t_2))) - (x * (4.0 * i)); else tmp = ((b * c) - (4.0 * (t * a))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.6e+137], N[(a * N[(N[(N[(b * c), $MachinePrecision] / a), $MachinePrecision] - N[(N[(t * 4.0), $MachinePrecision] + N[(27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.95e-171], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * t$95$2), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e-282], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[a, 1.06e-89], N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;a \leq -1.6 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(\frac{b \cdot c}{a} - \left(t \cdot 4 + 27 \cdot \frac{j \cdot k}{a}\right)\right)\\
\mathbf{elif}\;a \leq -2.95 \cdot 10^{-171}:\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot t\_2 - a \cdot 4\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-282}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t\_1\\
\mathbf{elif}\;a \leq 1.06 \cdot 10^{-89}:\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(t \cdot t\_2\right)\right) - x \cdot \left(4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\end{array}
\end{array}
if a < -1.60000000000000009e137Initial program 83.4%
Taylor expanded in y around 0 80.6%
distribute-lft-out80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in a around inf 83.3%
Taylor expanded in i around 0 86.1%
if -1.60000000000000009e137 < a < -2.9499999999999999e-171Initial program 90.1%
Simplified90.5%
Taylor expanded in x around inf 82.7%
associate-*r*82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in i around 0 73.3%
if -2.9499999999999999e-171 < a < 1.34999999999999991e-282Initial program 83.9%
Taylor expanded in t around 0 85.5%
if 1.34999999999999991e-282 < a < 1.0600000000000001e-89Initial program 87.6%
Simplified87.5%
Taylor expanded in x around inf 78.0%
associate-*r*78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in a around 0 78.1%
if 1.0600000000000001e-89 < a Initial program 90.1%
Taylor expanded in x around 0 78.4%
Final simplification79.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (* (* j 27.0) k)))
(if (<= t_2 -2e+179)
(+ t_1 (* a (* t -4.0)))
(if (<= t_2 -1e-238)
(- (* b c) (* (* x 4.0) i))
(if (<= t_2 1e+93) (- (* b c) (* t (* a 4.0))) (+ (* b c) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1 + (a * (t * -4.0));
} else if (t_2 <= -1e-238) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_2 <= 1e+93) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (b * c) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = (j * 27.0d0) * k
if (t_2 <= (-2d+179)) then
tmp = t_1 + (a * (t * (-4.0d0)))
else if (t_2 <= (-1d-238)) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (t_2 <= 1d+93) then
tmp = (b * c) - (t * (a * 4.0d0))
else
tmp = (b * c) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1 + (a * (t * -4.0));
} else if (t_2 <= -1e-238) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_2 <= 1e+93) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (b * c) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = (j * 27.0) * k tmp = 0 if t_2 <= -2e+179: tmp = t_1 + (a * (t * -4.0)) elif t_2 <= -1e-238: tmp = (b * c) - ((x * 4.0) * i) elif t_2 <= 1e+93: tmp = (b * c) - (t * (a * 4.0)) else: tmp = (b * c) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_2 <= -2e+179) tmp = Float64(t_1 + Float64(a * Float64(t * -4.0))); elseif (t_2 <= -1e-238) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (t_2 <= 1e+93) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); else tmp = Float64(Float64(b * c) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = (j * 27.0) * k; tmp = 0.0; if (t_2 <= -2e+179) tmp = t_1 + (a * (t * -4.0)); elseif (t_2 <= -1e-238) tmp = (b * c) - ((x * 4.0) * i); elseif (t_2 <= 1e+93) tmp = (b * c) - (t * (a * 4.0)); else tmp = (b * c) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+179], N[(t$95$1 + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -1e-238], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+93], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+179}:\\
\;\;\;\;t\_1 + a \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-238}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;t\_2 \leq 10^{+93}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179Initial program 73.3%
Simplified73.2%
Taylor expanded in a around inf 84.5%
metadata-eval84.5%
distribute-lft-neg-in84.5%
*-commutative84.5%
associate-*l*84.5%
distribute-lft-neg-in84.5%
distribute-lft-neg-in84.5%
metadata-eval84.5%
Simplified84.5%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -9.9999999999999999e-239Initial program 94.1%
Taylor expanded in y around 0 76.4%
distribute-lft-out76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in j around 0 73.1%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
associate-*l*58.8%
Simplified58.8%
if -9.9999999999999999e-239 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 89.3%
Taylor expanded in y around 0 72.5%
distribute-lft-out72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around 0 68.4%
Taylor expanded in a around inf 53.2%
associate-*r*53.2%
Simplified53.2%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in b around inf 78.2%
Final simplification62.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -2e+179)
(- (* b c) t_1)
(if (<= t_1 -1e-238)
(- (* b c) (* (* x 4.0) i))
(if (<= t_1 1e+93)
(- (* b c) (* t (* a 4.0)))
(+ (* 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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = (b * c) - t_1;
} else if (t_1 <= -1e-238) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_1 <= 1e+93) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (b * c) + (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 = (j * 27.0d0) * k
if (t_1 <= (-2d+179)) then
tmp = (b * c) - t_1
else if (t_1 <= (-1d-238)) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (t_1 <= 1d+93) then
tmp = (b * c) - (t * (a * 4.0d0))
else
tmp = (b * c) + (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 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = (b * c) - t_1;
} else if (t_1 <= -1e-238) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_1 <= 1e+93) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -2e+179: tmp = (b * c) - t_1 elif t_1 <= -1e-238: tmp = (b * c) - ((x * 4.0) * i) elif t_1 <= 1e+93: tmp = (b * c) - (t * (a * 4.0)) else: tmp = (b * c) + (j * (k * -27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= -2e+179) tmp = Float64(Float64(b * c) - t_1); elseif (t_1 <= -1e-238) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (t_1 <= 1e+93) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); else tmp = Float64(Float64(b * c) + 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 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -2e+179) tmp = (b * c) - t_1; elseif (t_1 <= -1e-238) tmp = (b * c) - ((x * 4.0) * i); elseif (t_1 <= 1e+93) tmp = (b * c) - (t * (a * 4.0)); else tmp = (b * c) + (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[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+179], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$1, -1e-238], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+179}:\\
\;\;\;\;b \cdot c - t\_1\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-238}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179Initial program 73.3%
Taylor expanded in x around 0 73.3%
associate-*r*73.3%
*-commutative73.3%
associate-*r*73.3%
Simplified73.3%
Taylor expanded in b around inf 81.2%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -9.9999999999999999e-239Initial program 94.1%
Taylor expanded in y around 0 76.4%
distribute-lft-out76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in j around 0 73.1%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
associate-*l*58.8%
Simplified58.8%
if -9.9999999999999999e-239 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 89.3%
Taylor expanded in y around 0 72.5%
distribute-lft-out72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around 0 68.4%
Taylor expanded in a around inf 53.2%
associate-*r*53.2%
Simplified53.2%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in b around inf 78.2%
Final simplification62.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (or (<= t_1 -2e+179) (not (<= t_1 0.01)))
(- (- (* b c) (* 4.0 (* t a))) t_1)
(- (* b c) (* 4.0 (+ (* t a) (* x i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if ((t_1 <= -2e+179) || !(t_1 <= 0.01)) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else {
tmp = (b * c) - (4.0 * ((t * a) + (x * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if ((t_1 <= (-2d+179)) .or. (.not. (t_1 <= 0.01d0))) then
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
else
tmp = (b * c) - (4.0d0 * ((t * a) + (x * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if ((t_1 <= -2e+179) || !(t_1 <= 0.01)) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else {
tmp = (b * c) - (4.0 * ((t * a) + (x * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if (t_1 <= -2e+179) or not (t_1 <= 0.01): tmp = ((b * c) - (4.0 * (t * a))) - t_1 else: tmp = (b * c) - (4.0 * ((t * a) + (x * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if ((t_1 <= -2e+179) || !(t_1 <= 0.01)) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); else tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if ((t_1 <= -2e+179) || ~((t_1 <= 0.01))) tmp = ((b * c) - (4.0 * (t * a))) - t_1; else tmp = (b * c) - (4.0 * ((t * a) + (x * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e+179], N[Not[LessEqual[t$95$1, 0.01]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+179} \lor \neg \left(t\_1 \leq 0.01\right):\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179 or 0.0100000000000000002 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 82.8%
Taylor expanded in x around 0 81.2%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 0.0100000000000000002Initial program 91.0%
Taylor expanded in y around 0 74.1%
distribute-lft-out74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in j around 0 71.0%
Final simplification74.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (* (* j 27.0) k)))
(if (<= t_2 -2e+179)
(+ t_1 (* a (* t -4.0)))
(if (<= t_2 1e+93)
(- (* b c) (* 4.0 (+ (* t a) (* x 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 = j * (k * -27.0);
double t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1 + (a * (t * -4.0));
} else if (t_2 <= 1e+93) {
tmp = (b * c) - (4.0 * ((t * a) + (x * i)));
} else {
tmp = (b * c) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = (j * 27.0d0) * k
if (t_2 <= (-2d+179)) then
tmp = t_1 + (a * (t * (-4.0d0)))
else if (t_2 <= 1d+93) then
tmp = (b * c) - (4.0d0 * ((t * a) + (x * i)))
else
tmp = (b * c) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1 + (a * (t * -4.0));
} else if (t_2 <= 1e+93) {
tmp = (b * c) - (4.0 * ((t * a) + (x * i)));
} else {
tmp = (b * c) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = (j * 27.0) * k tmp = 0 if t_2 <= -2e+179: tmp = t_1 + (a * (t * -4.0)) elif t_2 <= 1e+93: tmp = (b * c) - (4.0 * ((t * a) + (x * i))) else: tmp = (b * c) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_2 <= -2e+179) tmp = Float64(t_1 + Float64(a * Float64(t * -4.0))); elseif (t_2 <= 1e+93) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))); else tmp = Float64(Float64(b * c) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = (j * 27.0) * k; tmp = 0.0; if (t_2 <= -2e+179) tmp = t_1 + (a * (t * -4.0)); elseif (t_2 <= 1e+93) tmp = (b * c) - (4.0 * ((t * a) + (x * i))); else tmp = (b * c) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+179], N[(t$95$1 + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+93], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+179}:\\
\;\;\;\;t\_1 + a \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+93}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179Initial program 73.3%
Simplified73.2%
Taylor expanded in a around inf 84.5%
metadata-eval84.5%
distribute-lft-neg-in84.5%
*-commutative84.5%
associate-*l*84.5%
distribute-lft-neg-in84.5%
distribute-lft-neg-in84.5%
metadata-eval84.5%
Simplified84.5%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 91.2%
Taylor expanded in y around 0 74.0%
distribute-lft-out74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in j around 0 70.2%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in b around inf 78.2%
Final simplification73.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* j (* k -27.0)))))
(if (<= j -2.9e+143)
t_1
(if (<= j -6.7e+16)
(* -4.0 (+ (* t a) (* x i)))
(if (<= j -5.3e-239)
(- (* b c) (* (* x 4.0) i))
(if (<= j 1.5e-31) (- (* b c) (* t (* a 4.0))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (j * (k * -27.0));
double tmp;
if (j <= -2.9e+143) {
tmp = t_1;
} else if (j <= -6.7e+16) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (j <= -5.3e-239) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (j <= 1.5e-31) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (j * (k * (-27.0d0)))
if (j <= (-2.9d+143)) then
tmp = t_1
else if (j <= (-6.7d+16)) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if (j <= (-5.3d-239)) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (j <= 1.5d-31) then
tmp = (b * c) - (t * (a * 4.0d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (j * (k * -27.0));
double tmp;
if (j <= -2.9e+143) {
tmp = t_1;
} else if (j <= -6.7e+16) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (j <= -5.3e-239) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (j <= 1.5e-31) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (j * (k * -27.0)) tmp = 0 if j <= -2.9e+143: tmp = t_1 elif j <= -6.7e+16: tmp = -4.0 * ((t * a) + (x * i)) elif j <= -5.3e-239: tmp = (b * c) - ((x * 4.0) * i) elif j <= 1.5e-31: tmp = (b * c) - (t * (a * 4.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))) tmp = 0.0 if (j <= -2.9e+143) tmp = t_1; elseif (j <= -6.7e+16) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (j <= -5.3e-239) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (j <= 1.5e-31) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (j * (k * -27.0)); tmp = 0.0; if (j <= -2.9e+143) tmp = t_1; elseif (j <= -6.7e+16) tmp = -4.0 * ((t * a) + (x * i)); elseif (j <= -5.3e-239) tmp = (b * c) - ((x * 4.0) * i); elseif (j <= 1.5e-31) tmp = (b * c) - (t * (a * 4.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.9e+143], t$95$1, If[LessEqual[j, -6.7e+16], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.3e-239], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.5e-31], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;j \leq -2.9 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.7 \cdot 10^{+16}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;j \leq -5.3 \cdot 10^{-239}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-31}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.8999999999999998e143 or 1.49999999999999991e-31 < j Initial program 83.8%
Simplified83.0%
Taylor expanded in b around inf 62.6%
if -2.8999999999999998e143 < j < -6.7e16Initial program 91.5%
Taylor expanded in y around 0 71.6%
distribute-lft-out71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around 0 55.1%
Taylor expanded in b around 0 47.2%
if -6.7e16 < j < -5.2999999999999997e-239Initial program 93.0%
Taylor expanded in y around 0 80.9%
distribute-lft-out80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in j around 0 75.8%
Taylor expanded in a around 0 61.2%
*-commutative61.2%
associate-*l*61.2%
Simplified61.2%
if -5.2999999999999997e-239 < j < 1.49999999999999991e-31Initial program 88.2%
Taylor expanded in y around 0 77.2%
distribute-lft-out77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in j around 0 71.3%
Taylor expanded in a around inf 52.7%
associate-*r*52.7%
Simplified52.7%
Final simplification57.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* j (* k -27.0)))))
(if (<= j -2.4e+141)
t_1
(if (<= j -6.3e+16)
(* -4.0 (+ (* t a) (* x i)))
(if (<= j 9e-91)
(- (* b c) (* (* x 4.0) i))
(if (<= j 3.2e-32) (* z (* y (* x (* 18.0 t)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (j * (k * -27.0));
double tmp;
if (j <= -2.4e+141) {
tmp = t_1;
} else if (j <= -6.3e+16) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (j <= 9e-91) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (j <= 3.2e-32) {
tmp = z * (y * (x * (18.0 * t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (j * (k * (-27.0d0)))
if (j <= (-2.4d+141)) then
tmp = t_1
else if (j <= (-6.3d+16)) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else if (j <= 9d-91) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (j <= 3.2d-32) then
tmp = z * (y * (x * (18.0d0 * t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (j * (k * -27.0));
double tmp;
if (j <= -2.4e+141) {
tmp = t_1;
} else if (j <= -6.3e+16) {
tmp = -4.0 * ((t * a) + (x * i));
} else if (j <= 9e-91) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (j <= 3.2e-32) {
tmp = z * (y * (x * (18.0 * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (j * (k * -27.0)) tmp = 0 if j <= -2.4e+141: tmp = t_1 elif j <= -6.3e+16: tmp = -4.0 * ((t * a) + (x * i)) elif j <= 9e-91: tmp = (b * c) - ((x * 4.0) * i) elif j <= 3.2e-32: tmp = z * (y * (x * (18.0 * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))) tmp = 0.0 if (j <= -2.4e+141) tmp = t_1; elseif (j <= -6.3e+16) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); elseif (j <= 9e-91) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (j <= 3.2e-32) tmp = Float64(z * Float64(y * Float64(x * Float64(18.0 * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + (j * (k * -27.0)); tmp = 0.0; if (j <= -2.4e+141) tmp = t_1; elseif (j <= -6.3e+16) tmp = -4.0 * ((t * a) + (x * i)); elseif (j <= 9e-91) tmp = (b * c) - ((x * 4.0) * i); elseif (j <= 3.2e-32) tmp = z * (y * (x * (18.0 * t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e+141], t$95$1, If[LessEqual[j, -6.3e+16], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e-91], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.2e-32], N[(z * N[(y * N[(x * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.3 \cdot 10^{+16}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-91}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{-32}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.39999999999999997e141 or 3.2000000000000002e-32 < j Initial program 83.8%
Simplified83.0%
Taylor expanded in b around inf 62.6%
if -2.39999999999999997e141 < j < -6.3e16Initial program 91.5%
Taylor expanded in y around 0 71.6%
distribute-lft-out71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around 0 55.1%
Taylor expanded in b around 0 47.2%
if -6.3e16 < j < 8.99999999999999952e-91Initial program 91.6%
Taylor expanded in y around 0 78.8%
distribute-lft-out78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in j around 0 74.1%
Taylor expanded in a around 0 55.7%
*-commutative55.7%
associate-*l*55.7%
Simplified55.7%
if 8.99999999999999952e-91 < j < 3.2000000000000002e-32Initial program 78.9%
Simplified78.9%
Taylor expanded in t around inf 51.3%
Taylor expanded in z around inf 51.4%
Taylor expanded in a around 0 23.6%
associate-*r*37.4%
associate-*r*37.4%
associate-*r*37.4%
*-commutative37.4%
Simplified37.4%
Final simplification56.6%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -1.45e+150) (not (<= t 4.6e+173))) (+ (* b c) (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))) (- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) (* (* j 27.0) k))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -1.45e+150) || !(t <= 4.6e+173)) {
tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
} else {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-1.45d+150)) .or. (.not. (t <= 4.6d+173))) then
tmp = (b * c) + (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0)))
else
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - ((j * 27.0d0) * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -1.45e+150) || !(t <= 4.6e+173)) {
tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
} else {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -1.45e+150) or not (t <= 4.6e+173): tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0))) else: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -1.45e+150) || !(t <= 4.6e+173)) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - Float64(Float64(j * 27.0) * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((t <= -1.45e+150) || ~((t <= 4.6e+173))) tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0))); else tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -1.45e+150], N[Not[LessEqual[t, 4.6e+173]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{+150} \lor \neg \left(t \leq 4.6 \cdot 10^{+173}\right):\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if t < -1.45000000000000005e150 or 4.5999999999999999e173 < t Initial program 81.5%
Simplified84.9%
Taylor expanded in x around inf 83.3%
associate-*r*83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in i around 0 90.1%
if -1.45000000000000005e150 < t < 4.5999999999999999e173Initial program 89.8%
Taylor expanded in y around 0 82.8%
distribute-lft-out82.8%
*-commutative82.8%
Simplified82.8%
Final simplification84.5%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -49000000000000.0) (not (<= t 1.85e+16))) (+ (* b c) (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))) (- (- (* b c) (* 4.0 (* x i))) (* (* j 27.0) k))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -49000000000000.0) || !(t <= 1.85e+16)) {
tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
} else {
tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-49000000000000.0d0)) .or. (.not. (t <= 1.85d+16))) then
tmp = (b * c) + (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0)))
else
tmp = ((b * c) - (4.0d0 * (x * i))) - ((j * 27.0d0) * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -49000000000000.0) || !(t <= 1.85e+16)) {
tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
} else {
tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -49000000000000.0) or not (t <= 1.85e+16): tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0))) else: tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -49000000000000.0) || !(t <= 1.85e+16)) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - Float64(Float64(j * 27.0) * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((t <= -49000000000000.0) || ~((t <= 1.85e+16))) tmp = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0))); else tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -49000000000000.0], N[Not[LessEqual[t, 1.85e+16]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -49000000000000 \lor \neg \left(t \leq 1.85 \cdot 10^{+16}\right):\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if t < -4.9e13 or 1.85e16 < t Initial program 87.1%
Simplified88.0%
Taylor expanded in x around inf 79.5%
associate-*r*79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around 0 76.7%
if -4.9e13 < t < 1.85e16Initial program 88.6%
Taylor expanded in t around 0 75.5%
Final simplification76.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -2.3e+143)
(* k (* j -27.0))
(if (<= j -9.5e-56)
(* x (* i -4.0))
(if (<= j 8.6e-93)
(* b c)
(if (<= j 5e-32) (* -4.0 (* t a)) (* j (* k -27.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -2.3e+143) {
tmp = k * (j * -27.0);
} else if (j <= -9.5e-56) {
tmp = x * (i * -4.0);
} else if (j <= 8.6e-93) {
tmp = b * c;
} else if (j <= 5e-32) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-2.3d+143)) then
tmp = k * (j * (-27.0d0))
else if (j <= (-9.5d-56)) then
tmp = x * (i * (-4.0d0))
else if (j <= 8.6d-93) then
tmp = b * c
else if (j <= 5d-32) then
tmp = (-4.0d0) * (t * a)
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -2.3e+143) {
tmp = k * (j * -27.0);
} else if (j <= -9.5e-56) {
tmp = x * (i * -4.0);
} else if (j <= 8.6e-93) {
tmp = b * c;
} else if (j <= 5e-32) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -2.3e+143: tmp = k * (j * -27.0) elif j <= -9.5e-56: tmp = x * (i * -4.0) elif j <= 8.6e-93: tmp = b * c elif j <= 5e-32: tmp = -4.0 * (t * a) else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -2.3e+143) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= -9.5e-56) tmp = Float64(x * Float64(i * -4.0)); elseif (j <= 8.6e-93) tmp = Float64(b * c); elseif (j <= 5e-32) tmp = Float64(-4.0 * Float64(t * a)); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -2.3e+143) tmp = k * (j * -27.0); elseif (j <= -9.5e-56) tmp = x * (i * -4.0); elseif (j <= 8.6e-93) tmp = b * c; elseif (j <= 5e-32) tmp = -4.0 * (t * a); else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -2.3e+143], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -9.5e-56], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.6e-93], N[(b * c), $MachinePrecision], If[LessEqual[j, 5e-32], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.3 \cdot 10^{+143}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq -9.5 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;j \leq 8.6 \cdot 10^{-93}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-32}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -2.3e143Initial program 74.9%
Simplified71.9%
Taylor expanded in j around inf 61.1%
associate-*r*61.1%
*-commutative61.1%
metadata-eval61.1%
distribute-rgt-neg-in61.1%
*-commutative61.1%
distribute-rgt-neg-in61.1%
metadata-eval61.1%
*-commutative61.1%
Simplified61.1%
if -2.3e143 < j < -9.4999999999999991e-56Initial program 94.9%
Taylor expanded in y around 0 78.0%
distribute-lft-out78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in a around inf 73.1%
Taylor expanded in i around inf 26.7%
*-commutative26.7%
*-commutative26.7%
associate-*r*26.7%
Simplified26.7%
if -9.4999999999999991e-56 < j < 8.59999999999999925e-93Initial program 90.3%
Simplified90.3%
Taylor expanded in x around inf 85.9%
associate-*r*85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in b around inf 31.4%
if 8.59999999999999925e-93 < j < 5e-32Initial program 78.9%
Simplified78.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in a around inf 44.2%
if 5e-32 < j Initial program 88.0%
Taylor expanded in x around 0 88.1%
associate-*r*88.0%
*-commutative88.0%
associate-*r*88.1%
Simplified88.1%
Taylor expanded in j around inf 39.8%
metadata-eval39.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
associate-*l*39.9%
*-commutative39.9%
distribute-rgt-neg-in39.9%
distribute-lft-neg-in39.9%
metadata-eval39.9%
*-commutative39.9%
Simplified39.9%
Final simplification37.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -4.2e+113)
(* k (* j -27.0))
(if (<= j 1.4e-97)
(* b c)
(if (<= j 3.8e-32) (* -4.0 (* t a)) (* j (* k -27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -4.2e+113) {
tmp = k * (j * -27.0);
} else if (j <= 1.4e-97) {
tmp = b * c;
} else if (j <= 3.8e-32) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-4.2d+113)) then
tmp = k * (j * (-27.0d0))
else if (j <= 1.4d-97) then
tmp = b * c
else if (j <= 3.8d-32) then
tmp = (-4.0d0) * (t * a)
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -4.2e+113) {
tmp = k * (j * -27.0);
} else if (j <= 1.4e-97) {
tmp = b * c;
} else if (j <= 3.8e-32) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -4.2e+113: tmp = k * (j * -27.0) elif j <= 1.4e-97: tmp = b * c elif j <= 3.8e-32: tmp = -4.0 * (t * a) else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -4.2e+113) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= 1.4e-97) tmp = Float64(b * c); elseif (j <= 3.8e-32) tmp = Float64(-4.0 * Float64(t * a)); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -4.2e+113) tmp = k * (j * -27.0); elseif (j <= 1.4e-97) tmp = b * c; elseif (j <= 3.8e-32) tmp = -4.0 * (t * a); else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -4.2e+113], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e-97], N[(b * c), $MachinePrecision], If[LessEqual[j, 3.8e-32], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.2 \cdot 10^{+113}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-97}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-32}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -4.1999999999999998e113Initial program 76.2%
Simplified71.2%
Taylor expanded in j around inf 56.9%
associate-*r*56.9%
*-commutative56.9%
metadata-eval56.9%
distribute-rgt-neg-in56.9%
*-commutative56.9%
distribute-rgt-neg-in56.9%
metadata-eval56.9%
*-commutative56.9%
Simplified56.9%
if -4.1999999999999998e113 < j < 1.4000000000000001e-97Initial program 91.9%
Simplified90.5%
Taylor expanded in x around inf 85.7%
associate-*r*85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in b around inf 30.2%
if 1.4000000000000001e-97 < j < 3.80000000000000008e-32Initial program 80.3%
Simplified80.3%
Taylor expanded in x around inf 67.7%
associate-*r*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in a around inf 41.9%
if 3.80000000000000008e-32 < j Initial program 88.0%
Taylor expanded in x around 0 88.1%
associate-*r*88.0%
*-commutative88.0%
associate-*r*88.1%
Simplified88.1%
Taylor expanded in j around inf 39.8%
metadata-eval39.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
associate-*l*39.9%
*-commutative39.9%
distribute-rgt-neg-in39.9%
distribute-lft-neg-in39.9%
metadata-eval39.9%
*-commutative39.9%
Simplified39.9%
Final simplification37.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -4e+113)
(* -27.0 (* j k))
(if (<= j 5.3e-90)
(* b c)
(if (<= j 1.25e-31) (* -4.0 (* t a)) (* j (* k -27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -4e+113) {
tmp = -27.0 * (j * k);
} else if (j <= 5.3e-90) {
tmp = b * c;
} else if (j <= 1.25e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-4d+113)) then
tmp = (-27.0d0) * (j * k)
else if (j <= 5.3d-90) then
tmp = b * c
else if (j <= 1.25d-31) then
tmp = (-4.0d0) * (t * a)
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -4e+113) {
tmp = -27.0 * (j * k);
} else if (j <= 5.3e-90) {
tmp = b * c;
} else if (j <= 1.25e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -4e+113: tmp = -27.0 * (j * k) elif j <= 5.3e-90: tmp = b * c elif j <= 1.25e-31: tmp = -4.0 * (t * a) else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -4e+113) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= 5.3e-90) tmp = Float64(b * c); elseif (j <= 1.25e-31) tmp = Float64(-4.0 * Float64(t * a)); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -4e+113) tmp = -27.0 * (j * k); elseif (j <= 5.3e-90) tmp = b * c; elseif (j <= 1.25e-31) tmp = -4.0 * (t * a); else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -4e+113], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.3e-90], N[(b * c), $MachinePrecision], If[LessEqual[j, 1.25e-31], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4 \cdot 10^{+113}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq 5.3 \cdot 10^{-90}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -4e113Initial program 76.2%
Simplified71.2%
Taylor expanded in j around inf 56.9%
if -4e113 < j < 5.3000000000000004e-90Initial program 92.0%
Simplified90.6%
Taylor expanded in x around inf 85.8%
associate-*r*85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in b around inf 30.4%
if 5.3000000000000004e-90 < j < 1.25e-31Initial program 78.9%
Simplified78.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in a around inf 44.2%
if 1.25e-31 < j Initial program 88.0%
Taylor expanded in x around 0 88.1%
associate-*r*88.0%
*-commutative88.0%
associate-*r*88.1%
Simplified88.1%
Taylor expanded in j around inf 39.8%
metadata-eval39.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
associate-*l*39.9%
*-commutative39.9%
distribute-rgt-neg-in39.9%
distribute-lft-neg-in39.9%
metadata-eval39.9%
*-commutative39.9%
Simplified39.9%
Final simplification37.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -27.0 (* j k))))
(if (<= j -4.4e+113)
t_1
(if (<= j 6.1e-90) (* b c) (if (<= j 7.2e-32) (* -4.0 (* t a)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -4.4e+113) {
tmp = t_1;
} else if (j <= 6.1e-90) {
tmp = b * c;
} else if (j <= 7.2e-32) {
tmp = -4.0 * (t * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-27.0d0) * (j * k)
if (j <= (-4.4d+113)) then
tmp = t_1
else if (j <= 6.1d-90) then
tmp = b * c
else if (j <= 7.2d-32) then
tmp = (-4.0d0) * (t * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -4.4e+113) {
tmp = t_1;
} else if (j <= 6.1e-90) {
tmp = b * c;
} else if (j <= 7.2e-32) {
tmp = -4.0 * (t * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = -27.0 * (j * k) tmp = 0 if j <= -4.4e+113: tmp = t_1 elif j <= 6.1e-90: tmp = b * c elif j <= 7.2e-32: tmp = -4.0 * (t * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -4.4e+113) tmp = t_1; elseif (j <= 6.1e-90) tmp = Float64(b * c); elseif (j <= 7.2e-32) tmp = Float64(-4.0 * Float64(t * a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = -27.0 * (j * k); tmp = 0.0; if (j <= -4.4e+113) tmp = t_1; elseif (j <= 6.1e-90) tmp = b * c; elseif (j <= 7.2e-32) tmp = -4.0 * (t * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.4e+113], t$95$1, If[LessEqual[j, 6.1e-90], N[(b * c), $MachinePrecision], If[LessEqual[j, 7.2e-32], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -4.4 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6.1 \cdot 10^{-90}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{-32}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.40000000000000021e113 or 7.19999999999999986e-32 < j Initial program 83.8%
Simplified82.1%
Taylor expanded in j around inf 46.0%
if -4.40000000000000021e113 < j < 6.0999999999999999e-90Initial program 92.0%
Simplified90.6%
Taylor expanded in x around inf 85.8%
associate-*r*85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in b around inf 30.4%
if 6.0999999999999999e-90 < j < 7.19999999999999986e-32Initial program 78.9%
Simplified78.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in a around inf 44.2%
Final simplification37.6%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= i -6800000.0) (not (<= i 3.8e+164))) (* -4.0 (+ (* t a) (* x i))) (+ (* 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 ((i <= -6800000.0) || !(i <= 3.8e+164)) {
tmp = -4.0 * ((t * a) + (x * i));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((i <= (-6800000.0d0)) .or. (.not. (i <= 3.8d+164))) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else
tmp = (b * c) + (j * (k * (-27.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((i <= -6800000.0) || !(i <= 3.8e+164)) {
tmp = -4.0 * ((t * a) + (x * i));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (i <= -6800000.0) or not (i <= 3.8e+164): tmp = -4.0 * ((t * a) + (x * i)) else: tmp = (b * c) + (j * (k * -27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((i <= -6800000.0) || !(i <= 3.8e+164)) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); else tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((i <= -6800000.0) || ~((i <= 3.8e+164))) tmp = -4.0 * ((t * a) + (x * i)); else tmp = (b * c) + (j * (k * -27.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[i, -6800000.0], N[Not[LessEqual[i, 3.8e+164]], $MachinePrecision]], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6800000 \lor \neg \left(i \leq 3.8 \cdot 10^{+164}\right):\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if i < -6.8e6 or 3.80000000000000021e164 < i Initial program 82.9%
Taylor expanded in y around 0 77.7%
distribute-lft-out77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around 0 69.1%
Taylor expanded in b around 0 60.5%
if -6.8e6 < i < 3.80000000000000021e164Initial program 90.5%
Simplified87.7%
Taylor expanded in b around inf 53.3%
Final simplification55.8%
(FPCore (x y z t a b c i j k) :precision binary64 (if (<= j -2.5e+142) (* k (* j -27.0)) (if (<= j 2.3e-31) (* -4.0 (+ (* t a) (* x i))) (* j (* k -27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -2.5e+142) {
tmp = k * (j * -27.0);
} else if (j <= 2.3e-31) {
tmp = -4.0 * ((t * a) + (x * i));
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-2.5d+142)) then
tmp = k * (j * (-27.0d0))
else if (j <= 2.3d-31) then
tmp = (-4.0d0) * ((t * a) + (x * i))
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -2.5e+142) {
tmp = k * (j * -27.0);
} else if (j <= 2.3e-31) {
tmp = -4.0 * ((t * a) + (x * i));
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -2.5e+142: tmp = k * (j * -27.0) elif j <= 2.3e-31: tmp = -4.0 * ((t * a) + (x * i)) else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -2.5e+142) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= 2.3e-31) tmp = Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (j <= -2.5e+142) tmp = k * (j * -27.0); elseif (j <= 2.3e-31) tmp = -4.0 * ((t * a) + (x * i)); else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -2.5e+142], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-31], N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.5 \cdot 10^{+142}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -2.5000000000000001e142Initial program 74.9%
Simplified71.9%
Taylor expanded in j around inf 61.1%
associate-*r*61.1%
*-commutative61.1%
metadata-eval61.1%
distribute-rgt-neg-in61.1%
*-commutative61.1%
distribute-rgt-neg-in61.1%
metadata-eval61.1%
*-commutative61.1%
Simplified61.1%
if -2.5000000000000001e142 < j < 2.2999999999999998e-31Initial program 90.5%
Taylor expanded in y around 0 77.7%
distribute-lft-out77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around 0 70.5%
Taylor expanded in b around 0 47.9%
if 2.2999999999999998e-31 < j Initial program 88.0%
Taylor expanded in x around 0 88.1%
associate-*r*88.0%
*-commutative88.0%
associate-*r*88.1%
Simplified88.1%
Taylor expanded in j around inf 39.8%
metadata-eval39.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
associate-*l*39.9%
*-commutative39.9%
distribute-rgt-neg-in39.9%
distribute-lft-neg-in39.9%
metadata-eval39.9%
*-commutative39.9%
Simplified39.9%
Final simplification47.4%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= j -3.8e+113) (not (<= j 1.12e-77))) (* -27.0 (* j k)) (* b c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((j <= -3.8e+113) || !(j <= 1.12e-77)) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((j <= (-3.8d+113)) .or. (.not. (j <= 1.12d-77))) then
tmp = (-27.0d0) * (j * k)
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((j <= -3.8e+113) || !(j <= 1.12e-77)) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (j <= -3.8e+113) or not (j <= 1.12e-77): tmp = -27.0 * (j * k) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((j <= -3.8e+113) || !(j <= 1.12e-77)) tmp = Float64(-27.0 * Float64(j * k)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((j <= -3.8e+113) || ~((j <= 1.12e-77))) tmp = -27.0 * (j * k); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[j, -3.8e+113], N[Not[LessEqual[j, 1.12e-77]], $MachinePrecision]], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.8 \cdot 10^{+113} \lor \neg \left(j \leq 1.12 \cdot 10^{-77}\right):\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if j < -3.8000000000000003e113 or 1.12000000000000009e-77 < j Initial program 84.3%
Simplified82.8%
Taylor expanded in j around inf 44.0%
if -3.8000000000000003e113 < j < 1.12000000000000009e-77Initial program 90.8%
Simplified89.5%
Taylor expanded in x around inf 84.8%
associate-*r*84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in b around inf 29.7%
Final simplification36.1%
(FPCore (x y z t a b c i j k) :precision binary64 (* b c))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
def code(x, y, z, t, a, b, c, i, j, k): return b * c
function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = b * c; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
\\
b \cdot c
\end{array}
Initial program 87.9%
Simplified86.1%
Taylor expanded in x around inf 72.6%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around inf 24.1%
(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 2024191
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8105407698770699/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))) (if (< t 8284013971902611/50000000000000) (+ (- (* (* 18 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4)) (- (* c b) (* 27 (* k j)))) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))