
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* x 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 18.0) y) z) t) (* t (* a 4.0))) (* b c))
(* (* x 4.0) i))))
(if (<= t_1 -2e+193)
(- (+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0)))) (* x (* 4.0 i)))
(if (<= t_1 INFINITY)
(- (- (* b c) (* 4.0 (+ (* x i) (* t a)))) (* (* j 27.0) k))
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i);
double tmp;
if (t_1 <= -2e+193) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
} else if (t_1 <= ((double) INFINITY)) {
tmp = ((b * c) - (4.0 * ((x * i) + (t * a)))) - ((j * 27.0) * k);
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i);
double tmp;
if (t_1 <= -2e+193) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = ((b * c) - (4.0 * ((x * i) + (t * a)))) - ((j * 27.0) * k);
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i) tmp = 0 if t_1 <= -2e+193: tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i)) elif t_1 <= math.inf: tmp = ((b * c) - (4.0 * ((x * i) + (t * a)))) - ((j * 27.0) * k) else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) tmp = 0.0 if (t_1 <= -2e+193) 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))); elseif (t_1 <= Inf) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(x * i) + Float64(t * a)))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i); tmp = 0.0; if (t_1 <= -2e+193) tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i)); elseif (t_1 <= Inf) tmp = ((b * c) - (4.0 * ((x * i) + (t * a)))) - ((j * 27.0) * k); else tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+193], 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], If[LessEqual[t$95$1, Infinity], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+193}:\\
\;\;\;\;\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{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i + t \cdot a\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if (-.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)) < -2.00000000000000013e193Initial program 89.9%
Simplified87.3%
Taylor expanded in x around inf 87.3%
associate-*r*87.3%
*-commutative87.3%
Simplified87.3%
if -2.00000000000000013e193 < (-.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)) < +inf.0Initial program 94.7%
Taylor expanded in y around 0 85.0%
distribute-lft-out85.0%
*-commutative85.0%
Simplified85.0%
if +inf.0 < (-.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)) Initial program 0.0%
Simplified20.0%
Taylor expanded in x around inf 80.0%
Final simplification85.3%
(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 (* (* x 4.0) i)) (t_2 (* (* j 27.0) k)))
(if (<=
(-
(- (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c)) t_1)
t_2)
INFINITY)
(- (+ (* t (- (* x (* z (* 18.0 y))) (* a 4.0))) (- (* b c) 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 tmp;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - 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 tmp;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= Double.POSITIVE_INFINITY) {
tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - 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 tmp = 0 if ((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= math.inf: tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - 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) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(t * Float64(Float64(x * Float64(z * Float64(18.0 * y))) - Float64(a * 4.0))) + Float64(Float64(b * c) - 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; tmp = 0.0; if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= Inf) tmp = ((t * ((x * (z * (18.0 * y))) - (a * 4.0))) + ((b * c) - 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]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], Infinity], 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] - t$95$1), $MachinePrecision]), $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\\
\mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - t\_1\right) - t\_2 \leq \infty:\\
\;\;\;\;\left(t \cdot \left(x \cdot \left(z \cdot \left(18 \cdot y\right)\right) - a \cdot 4\right) + \left(b \cdot c - t\_1\right)\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%
associate--l+97.4%
distribute-rgt-out--97.4%
associate-*r*94.1%
associate-*l*94.1%
associate-*r*94.1%
*-commutative94.1%
Applied egg-rr94.1%
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 simplification90.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)) (t_2 (* x (* y z))))
(if (<= (* a 4.0) -2e+138)
(* a (- (/ (* b c) a) (+ (* t 4.0) (* 27.0 (/ (* j k) a)))))
(if (<= (* a 4.0) -1e-170)
(+ (* b c) (* t (- (* 18.0 t_2) (* a 4.0))))
(if (<= (* a 4.0) 1e-282)
(- (- (* b c) (* 4.0 (* x i))) t_1)
(if (<= (* a 4.0) 5e-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 * 4.0) <= -2e+138) {
tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a))));
} else if ((a * 4.0) <= -1e-170) {
tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0)));
} else if ((a * 4.0) <= 1e-282) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if ((a * 4.0) <= 5e-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 * 4.0d0) <= (-2d+138)) then
tmp = a * (((b * c) / a) - ((t * 4.0d0) + (27.0d0 * ((j * k) / a))))
else if ((a * 4.0d0) <= (-1d-170)) then
tmp = (b * c) + (t * ((18.0d0 * t_2) - (a * 4.0d0)))
else if ((a * 4.0d0) <= 1d-282) then
tmp = ((b * c) - (4.0d0 * (x * i))) - t_1
else if ((a * 4.0d0) <= 5d-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 * 4.0) <= -2e+138) {
tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a))));
} else if ((a * 4.0) <= -1e-170) {
tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0)));
} else if ((a * 4.0) <= 1e-282) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if ((a * 4.0) <= 5e-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 * 4.0) <= -2e+138: tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a)))) elif (a * 4.0) <= -1e-170: tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0))) elif (a * 4.0) <= 1e-282: tmp = ((b * c) - (4.0 * (x * i))) - t_1 elif (a * 4.0) <= 5e-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 (Float64(a * 4.0) <= -2e+138) tmp = Float64(a * Float64(Float64(Float64(b * c) / a) - Float64(Float64(t * 4.0) + Float64(27.0 * Float64(Float64(j * k) / a))))); elseif (Float64(a * 4.0) <= -1e-170) tmp = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * t_2) - Float64(a * 4.0)))); elseif (Float64(a * 4.0) <= 1e-282) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - t_1); elseif (Float64(a * 4.0) <= 5e-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 * 4.0) <= -2e+138) tmp = a * (((b * c) / a) - ((t * 4.0) + (27.0 * ((j * k) / a)))); elseif ((a * 4.0) <= -1e-170) tmp = (b * c) + (t * ((18.0 * t_2) - (a * 4.0))); elseif ((a * 4.0) <= 1e-282) tmp = ((b * c) - (4.0 * (x * i))) - t_1; elseif ((a * 4.0) <= 5e-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[N[(a * 4.0), $MachinePrecision], -2e+138], 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[N[(a * 4.0), $MachinePrecision], -1e-170], 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[N[(a * 4.0), $MachinePrecision], 1e-282], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[N[(a * 4.0), $MachinePrecision], 5e-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 \cdot 4 \leq -2 \cdot 10^{+138}:\\
\;\;\;\;a \cdot \left(\frac{b \cdot c}{a} - \left(t \cdot 4 + 27 \cdot \frac{j \cdot k}{a}\right)\right)\\
\mathbf{elif}\;a \cdot 4 \leq -1 \cdot 10^{-170}:\\
\;\;\;\;b \cdot c + t \cdot \left(18 \cdot t\_2 - a \cdot 4\right)\\
\mathbf{elif}\;a \cdot 4 \leq 10^{-282}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t\_1\\
\mathbf{elif}\;a \cdot 4 \leq 5 \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 (*.f64 a #s(literal 4 binary64)) < -2.0000000000000001e138Initial 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 -2.0000000000000001e138 < (*.f64 a #s(literal 4 binary64)) < -9.99999999999999983e-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 -9.99999999999999983e-171 < (*.f64 a #s(literal 4 binary64)) < 1e-282Initial program 83.9%
Taylor expanded in t around 0 85.5%
if 1e-282 < (*.f64 a #s(literal 4 binary64)) < 4.99999999999999967e-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 4.99999999999999967e-89 < (*.f64 a #s(literal 4 binary64)) 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 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 (* 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 (+ (* b c) (* j (* k -27.0)))) (t_2 (* (* j 27.0) k)))
(if (<= t_2 -2e+179)
t_1
(if (<= t_2 -1e-238)
(- (* b c) (* (* x 4.0) i))
(if (<= t_2 1e+93) (- (* 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 t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1;
} 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 = 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 = (b * c) + (j * (k * (-27.0d0)))
t_2 = (j * 27.0d0) * k
if (t_2 <= (-2d+179)) then
tmp = t_1
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 = 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 t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1;
} 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 = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (j * (k * -27.0)) t_2 = (j * 27.0) * k tmp = 0 if t_2 <= -2e+179: tmp = t_1 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 = 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))) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_2 <= -2e+179) tmp = t_1; 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 = 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)); t_2 = (j * 27.0) * k; tmp = 0.0; if (t_2 <= -2e+179) tmp = t_1; 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 = 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]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+179], t$95$1, 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], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + 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\\
\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}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179 or 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 79.8%
Simplified77.3%
Taylor expanded in b around inf 79.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%
Final simplification62.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* j (* k -27.0)))) (t_2 (* (* j 27.0) k)))
(if (<= t_2 -2e+179)
t_1
(if (<= t_2 5e-229)
(- (* b c) (* (* x 4.0) i))
(if (<= t_2 1e+30) (* -4.0 (+ (* x i) (* 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 = (b * c) + (j * (k * -27.0));
double t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1;
} else if (t_2 <= 5e-229) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_2 <= 1e+30) {
tmp = -4.0 * ((x * i) + (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) :: t_2
real(8) :: tmp
t_1 = (b * c) + (j * (k * (-27.0d0)))
t_2 = (j * 27.0d0) * k
if (t_2 <= (-2d+179)) then
tmp = t_1
else if (t_2 <= 5d-229) then
tmp = (b * c) - ((x * 4.0d0) * i)
else if (t_2 <= 1d+30) then
tmp = (-4.0d0) * ((x * i) + (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 = (b * c) + (j * (k * -27.0));
double t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1;
} else if (t_2 <= 5e-229) {
tmp = (b * c) - ((x * 4.0) * i);
} else if (t_2 <= 1e+30) {
tmp = -4.0 * ((x * i) + (t * a));
} 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)) t_2 = (j * 27.0) * k tmp = 0 if t_2 <= -2e+179: tmp = t_1 elif t_2 <= 5e-229: tmp = (b * c) - ((x * 4.0) * i) elif t_2 <= 1e+30: tmp = -4.0 * ((x * i) + (t * a)) 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))) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_2 <= -2e+179) tmp = t_1; elseif (t_2 <= 5e-229) tmp = Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)); elseif (t_2 <= 1e+30) tmp = Float64(-4.0 * Float64(Float64(x * i) + 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 = (b * c) + (j * (k * -27.0)); t_2 = (j * 27.0) * k; tmp = 0.0; if (t_2 <= -2e+179) tmp = t_1; elseif (t_2 <= 5e-229) tmp = (b * c) - ((x * 4.0) * i); elseif (t_2 <= 1e+30) tmp = -4.0 * ((x * i) + (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[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+179], t$95$1, If[LessEqual[t$95$2, 5e-229], N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+30], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + 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\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c - \left(x \cdot 4\right) \cdot i\\
\mathbf{elif}\;t\_2 \leq 10^{+30}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179 or 1e30 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.0%
Simplified79.8%
Taylor expanded in b around inf 72.6%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.00000000000000016e-229Initial program 90.6%
Taylor expanded in y around 0 74.8%
distribute-lft-out74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in j around 0 72.9%
Taylor expanded in a around 0 56.3%
*-commutative56.3%
associate-*l*56.3%
Simplified56.3%
if 5.00000000000000016e-229 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1e30Initial program 90.0%
Taylor expanded in y around 0 74.2%
distribute-lft-out74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in j around 0 67.0%
Taylor expanded in b around 0 51.8%
Final simplification61.0%
(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 (+ (* x i) (* t a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 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 * ((x * i) + (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: 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 * ((x * i) + (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 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 * ((x * i) + (t * a)));
}
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 * ((x * i) + (t * a))) 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(x * i) + Float64(t * a)))); 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 * ((x * i) + (t * a))); 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[(x * i), $MachinePrecision] + N[(t * a), $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(x \cdot i + t \cdot a\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 27.0) k)))
(if (<= t_1 -2e+179)
(* k (* j -27.0))
(if (<= t_1 5e-229)
(* b c)
(if (<= t_1 1e+93) (* -4.0 (* t a)) (* -27.0 (* j k)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = k * (j * -27.0);
} else if (t_1 <= 5e-229) {
tmp = b * c;
} else if (t_1 <= 1e+93) {
tmp = -4.0 * (t * a);
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t_1 <= (-2d+179)) then
tmp = k * (j * (-27.0d0))
else if (t_1 <= 5d-229) then
tmp = b * c
else if (t_1 <= 1d+93) then
tmp = (-4.0d0) * (t * a)
else
tmp = (-27.0d0) * (j * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = k * (j * -27.0);
} else if (t_1 <= 5e-229) {
tmp = b * c;
} else if (t_1 <= 1e+93) {
tmp = -4.0 * (t * a);
} else {
tmp = -27.0 * (j * 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 = k * (j * -27.0) elif t_1 <= 5e-229: tmp = b * c elif t_1 <= 1e+93: tmp = -4.0 * (t * a) else: tmp = -27.0 * (j * 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(k * Float64(j * -27.0)); elseif (t_1 <= 5e-229) tmp = Float64(b * c); elseif (t_1 <= 1e+93) tmp = Float64(-4.0 * Float64(t * a)); else tmp = Float64(-27.0 * Float64(j * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -2e+179) tmp = k * (j * -27.0); elseif (t_1 <= 5e-229) tmp = b * c; elseif (t_1 <= 1e+93) tmp = -4.0 * (t * a); else tmp = -27.0 * (j * 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[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-229], N[(b * c), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], N[(-27.0 * N[(j * k), $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}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179Initial program 73.3%
Simplified73.2%
Taylor expanded in j around inf 77.4%
associate-*r*77.5%
*-commutative77.5%
metadata-eval77.5%
distribute-rgt-neg-in77.5%
*-commutative77.5%
distribute-rgt-neg-in77.5%
metadata-eval77.5%
*-commutative77.5%
Simplified77.5%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.00000000000000016e-229Initial program 90.6%
Simplified90.8%
Taylor expanded in x around inf 88.5%
associate-*r*88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in b around inf 31.6%
if 5.00000000000000016e-229 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 92.1%
Simplified87.6%
Taylor expanded in x around inf 80.5%
associate-*r*80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in a around inf 30.8%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in j around inf 64.7%
Final simplification42.3%
(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)
(* j (* k -27.0))
(if (<= t_1 5e-229)
(* b c)
(if (<= t_1 1e+93) (* -4.0 (* t a)) (* -27.0 (* j k)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = j * (k * -27.0);
} else if (t_1 <= 5e-229) {
tmp = b * c;
} else if (t_1 <= 1e+93) {
tmp = -4.0 * (t * a);
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t_1 <= (-2d+179)) then
tmp = j * (k * (-27.0d0))
else if (t_1 <= 5d-229) then
tmp = b * c
else if (t_1 <= 1d+93) then
tmp = (-4.0d0) * (t * a)
else
tmp = (-27.0d0) * (j * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+179) {
tmp = j * (k * -27.0);
} else if (t_1 <= 5e-229) {
tmp = b * c;
} else if (t_1 <= 1e+93) {
tmp = -4.0 * (t * a);
} else {
tmp = -27.0 * (j * 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 = j * (k * -27.0) elif t_1 <= 5e-229: tmp = b * c elif t_1 <= 1e+93: tmp = -4.0 * (t * a) else: tmp = -27.0 * (j * 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(j * Float64(k * -27.0)); elseif (t_1 <= 5e-229) tmp = Float64(b * c); elseif (t_1 <= 1e+93) tmp = Float64(-4.0 * Float64(t * a)); else tmp = Float64(-27.0 * Float64(j * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -2e+179) tmp = j * (k * -27.0); elseif (t_1 <= 5e-229) tmp = b * c; elseif (t_1 <= 1e+93) tmp = -4.0 * (t * a); else tmp = -27.0 * (j * 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[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-229], N[(b * c), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], N[(-27.0 * N[(j * k), $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}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\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 j around inf 77.4%
metadata-eval77.4%
distribute-lft-neg-in77.4%
*-commutative77.4%
associate-*l*77.4%
*-commutative77.4%
distribute-rgt-neg-in77.4%
distribute-lft-neg-in77.4%
metadata-eval77.4%
*-commutative77.4%
Simplified77.4%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.00000000000000016e-229Initial program 90.6%
Simplified90.8%
Taylor expanded in x around inf 88.5%
associate-*r*88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in b around inf 31.6%
if 5.00000000000000016e-229 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 92.1%
Simplified87.6%
Taylor expanded in x around inf 80.5%
associate-*r*80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in a around inf 30.8%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in j around inf 64.7%
Final simplification42.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -27.0 (* j k))) (t_2 (* (* j 27.0) k)))
(if (<= t_2 -2e+179)
t_1
(if (<= t_2 5e-229) (* b c) (if (<= t_2 1e+93) (* -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 t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1;
} else if (t_2 <= 5e-229) {
tmp = b * c;
} else if (t_2 <= 1e+93) {
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) :: t_2
real(8) :: tmp
t_1 = (-27.0d0) * (j * k)
t_2 = (j * 27.0d0) * k
if (t_2 <= (-2d+179)) then
tmp = t_1
else if (t_2 <= 5d-229) then
tmp = b * c
else if (t_2 <= 1d+93) 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 t_2 = (j * 27.0) * k;
double tmp;
if (t_2 <= -2e+179) {
tmp = t_1;
} else if (t_2 <= 5e-229) {
tmp = b * c;
} else if (t_2 <= 1e+93) {
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) t_2 = (j * 27.0) * k tmp = 0 if t_2 <= -2e+179: tmp = t_1 elif t_2 <= 5e-229: tmp = b * c elif t_2 <= 1e+93: 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)) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_2 <= -2e+179) tmp = t_1; elseif (t_2 <= 5e-229) tmp = Float64(b * c); elseif (t_2 <= 1e+93) 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); t_2 = (j * 27.0) * k; tmp = 0.0; if (t_2 <= -2e+179) tmp = t_1; elseif (t_2 <= 5e-229) tmp = b * c; elseif (t_2 <= 1e+93) 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]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+179], t$95$1, If[LessEqual[t$95$2, 5e-229], N[(b * c), $MachinePrecision], If[LessEqual[t$95$2, 1e+93], 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)\\
t_2 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+179}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t\_2 \leq 10^{+93}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179 or 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 79.8%
Simplified77.3%
Taylor expanded in j around inf 69.1%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.00000000000000016e-229Initial program 90.6%
Simplified90.8%
Taylor expanded in x around inf 88.5%
associate-*r*88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in b around inf 31.6%
if 5.00000000000000016e-229 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 92.1%
Simplified87.6%
Taylor expanded in x around inf 80.5%
associate-*r*80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in a around inf 30.8%
Final simplification42.3%
(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 (+ (* x i) (* t a))))
(+ (* 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 * ((x * i) + (t * a)));
} 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 * ((x * i) + (t * a)))
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 * ((x * i) + (t * a)));
} 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 * ((x * i) + (t * a))) 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(x * i) + Float64(t * a)))); 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 * ((x * i) + (t * a))); 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[(x * i), $MachinePrecision] + N[(t * a), $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(x \cdot i + t \cdot a\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 (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 (+ (* x i) (* t a)))) (* (* 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 * ((x * i) + (t * a)))) - ((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 * ((x * i) + (t * a)))) - ((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 * ((x * i) + (t * a)))) - ((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 * ((x * i) + (t * a)))) - ((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(x * i) + Float64(t * a)))) - 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 * ((x * i) + (t * a)))) - ((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[(x * i), $MachinePrecision] + N[(t * a), $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(x \cdot i + t \cdot a\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 -44000000000000.0) (not (<= t 2.75e+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 <= -44000000000000.0) || !(t <= 2.75e+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 <= (-44000000000000.0d0)) .or. (.not. (t <= 2.75d+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 <= -44000000000000.0) || !(t <= 2.75e+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 <= -44000000000000.0) or not (t <= 2.75e+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 <= -44000000000000.0) || !(t <= 2.75e+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 <= -44000000000000.0) || ~((t <= 2.75e+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, -44000000000000.0], N[Not[LessEqual[t, 2.75e+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 -44000000000000 \lor \neg \left(t \leq 2.75 \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.4e13 or 2.75e16 < 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.4e13 < t < 2.75e16Initial 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
(let* ((t_1 (* (* j 27.0) k)))
(if (or (<= t_1 -0.0005) (not (<= t_1 1e+30)))
(+ (* b c) (* j (* k -27.0)))
(* -4.0 (+ (* x i) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if ((t_1 <= -0.0005) || !(t_1 <= 1e+30)) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = -4.0 * ((x * i) + (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if ((t_1 <= (-0.0005d0)) .or. (.not. (t_1 <= 1d+30))) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = (-4.0d0) * ((x * i) + (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if ((t_1 <= -0.0005) || !(t_1 <= 1e+30)) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = -4.0 * ((x * i) + (t * a));
}
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 <= -0.0005) or not (t_1 <= 1e+30): tmp = (b * c) + (j * (k * -27.0)) else: tmp = -4.0 * ((x * i) + (t * a)) 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 <= -0.0005) || !(t_1 <= 1e+30)) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); 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 <= -0.0005) || ~((t_1 <= 1e+30))) tmp = (b * c) + (j * (k * -27.0)); else tmp = -4.0 * ((x * i) + (t * a)); 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, -0.0005], N[Not[LessEqual[t$95$1, 1e+30]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -0.0005 \lor \neg \left(t\_1 \leq 10^{+30}\right):\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -5.0000000000000001e-4 or 1e30 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 86.3%
Simplified83.1%
Taylor expanded in b around inf 64.2%
if -5.0000000000000001e-4 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1e30Initial program 89.2%
Taylor expanded in y around 0 76.0%
distribute-lft-out76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in j around 0 72.7%
Taylor expanded in b around 0 49.8%
Final simplification56.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -5e+176)
(* k (* j -27.0))
(if (<= t_1 1e+93) (* -4.0 (+ (* x i) (* t a))) (* -27.0 (* j k))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -5e+176) {
tmp = k * (j * -27.0);
} else if (t_1 <= 1e+93) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t_1 <= (-5d+176)) then
tmp = k * (j * (-27.0d0))
else if (t_1 <= 1d+93) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else
tmp = (-27.0d0) * (j * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -5e+176) {
tmp = k * (j * -27.0);
} else if (t_1 <= 1e+93) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = -27.0 * (j * 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 <= -5e+176: tmp = k * (j * -27.0) elif t_1 <= 1e+93: tmp = -4.0 * ((x * i) + (t * a)) else: tmp = -27.0 * (j * 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 <= -5e+176) tmp = Float64(k * Float64(j * -27.0)); elseif (t_1 <= 1e+93) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); else tmp = Float64(-27.0 * Float64(j * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if (t_1 <= -5e+176) tmp = k * (j * -27.0); elseif (t_1 <= 1e+93) tmp = -4.0 * ((x * i) + (t * a)); else tmp = -27.0 * (j * 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, -5e+176], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+176}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -5e176Initial program 74.3%
Simplified74.2%
Taylor expanded in j around inf 74.7%
associate-*r*74.9%
*-commutative74.9%
metadata-eval74.9%
distribute-rgt-neg-in74.9%
*-commutative74.9%
distribute-rgt-neg-in74.9%
metadata-eval74.9%
*-commutative74.9%
Simplified74.9%
if -5e176 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 91.1%
Taylor expanded in y around 0 73.8%
distribute-lft-out73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in j around 0 70.0%
Taylor expanded in b around 0 45.6%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Simplified79.4%
Taylor expanded in j around inf 64.7%
Final simplification52.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 5e+81))) (* -27.0 (* j k)) (* b c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if ((t_1 <= -2e+179) || !(t_1 <= 5e+81)) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if ((t_1 <= (-2d+179)) .or. (.not. (t_1 <= 5d+81))) then
tmp = (-27.0d0) * (j * k)
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if ((t_1 <= -2e+179) || !(t_1 <= 5e+81)) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if (t_1 <= -2e+179) or not (t_1 <= 5e+81): tmp = -27.0 * (j * k) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if ((t_1 <= -2e+179) || !(t_1 <= 5e+81)) tmp = Float64(-27.0 * Float64(j * k)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * 27.0) * k; tmp = 0.0; if ((t_1 <= -2e+179) || ~((t_1 <= 5e+81))) tmp = -27.0 * (j * k); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e+179], N[Not[LessEqual[t$95$1, 5e+81]], $MachinePrecision]], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $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 5 \cdot 10^{+81}\right):\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999996e179 or 4.9999999999999998e81 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 80.8%
Simplified78.4%
Taylor expanded in j around inf 65.8%
if -1.99999999999999996e179 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4.9999999999999998e81Initial program 91.0%
Simplified89.4%
Taylor expanded in x around inf 85.3%
associate-*r*85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in b around inf 29.3%
Final simplification40.4%
(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)))