
(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 25 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
(if (<=
(-
(-
(- (* b c) (- (* t (* a 4.0)) (* (* (* (* x 18.0) y) z) t)))
(* (* x 4.0) i))
(* k (* j 27.0)))
INFINITY)
(-
(+ (* b c) (* t (- (* z (* x (* 18.0 y))) (* a 4.0))))
(+ (* x (* 4.0 i)) (* j (* 27.0 k))))
(* c (+ b (* (* j (/ k c)) -27.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((x * 4.0) * i)) - (k * (j * 27.0))) <= ((double) INFINITY)) {
tmp = ((b * c) + (t * ((z * (x * (18.0 * y))) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
} else {
tmp = c * (b + ((j * (k / c)) * -27.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((x * 4.0) * i)) - (k * (j * 27.0))) <= Double.POSITIVE_INFINITY) {
tmp = ((b * c) + (t * ((z * (x * (18.0 * y))) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
} else {
tmp = c * (b + ((j * (k / c)) * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((x * 4.0) * i)) - (k * (j * 27.0))) <= math.inf: tmp = ((b * c) + (t * ((z * (x * (18.0 * y))) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k))) else: tmp = c * (b + ((j * (k / c)) * -27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(Float64(Float64(Float64(b * c) - Float64(Float64(t * Float64(a * 4.0)) - Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t))) - Float64(Float64(x * 4.0) * i)) - Float64(k * Float64(j * 27.0))) <= Inf) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(z * Float64(x * Float64(18.0 * y))) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k)))); else tmp = Float64(c * Float64(b + Float64(Float64(j * Float64(k / c)) * -27.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (((((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((x * 4.0) * i)) - (k * (j * 27.0))) <= Inf) tmp = ((b * c) + (t * ((z * (x * (18.0 * y))) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k))); else tmp = c * (b + ((j * (k / c)) * -27.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(b * c), $MachinePrecision] - N[(N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(z * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b + N[(N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(b \cdot c - \left(t \cdot \left(a \cdot 4\right) - \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)\right) - \left(x \cdot 4\right) \cdot i\right) - k \cdot \left(j \cdot 27\right) \leq \infty:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(z \cdot \left(x \cdot \left(18 \cdot y\right)\right) - a \cdot 4\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + \left(j \cdot \frac{k}{c}\right) \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 94.6%
Simplified93.7%
pow193.7%
associate-*l*93.7%
associate-*r*93.3%
Applied egg-rr93.3%
unpow193.3%
associate-*r*94.6%
Simplified94.6%
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%
Simplified21.4%
Taylor expanded in b around inf 40.2%
Taylor expanded in c around inf 61.3%
*-commutative61.3%
associate-/l*64.8%
Simplified64.8%
Final simplification91.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (+ (* (* t a) -4.0) t_1))
(t_3 (* x (- (* 18.0 (* t (* y z))) (* 4.0 i))))
(t_4 (* b (- c (* j (* 27.0 (/ k b)))))))
(if (<= (* b c) -2e+179)
(* b (+ c (/ t_1 b)))
(if (<= (* b c) -1e+73)
t_3
(if (<= (* b c) -4e+46)
t_4
(if (<= (* b c) -1e-34)
t_3
(if (<= (* b c) -2e-82)
t_2
(if (<= (* b c) -1e-107)
t_3
(if (<= (* b c) 0.0)
t_2
(if (<= (* b c) 1e+129) t_3 t_4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = ((t * a) * -4.0) + t_1;
double t_3 = x * ((18.0 * (t * (y * z))) - (4.0 * i));
double t_4 = b * (c - (j * (27.0 * (k / b))));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * (c + (t_1 / b));
} else if ((b * c) <= -1e+73) {
tmp = t_3;
} else if ((b * c) <= -4e+46) {
tmp = t_4;
} else if ((b * c) <= -1e-34) {
tmp = t_3;
} else if ((b * c) <= -2e-82) {
tmp = t_2;
} else if ((b * c) <= -1e-107) {
tmp = t_3;
} else if ((b * c) <= 0.0) {
tmp = t_2;
} else if ((b * c) <= 1e+129) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = ((t * a) * (-4.0d0)) + t_1
t_3 = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
t_4 = b * (c - (j * (27.0d0 * (k / b))))
if ((b * c) <= (-2d+179)) then
tmp = b * (c + (t_1 / b))
else if ((b * c) <= (-1d+73)) then
tmp = t_3
else if ((b * c) <= (-4d+46)) then
tmp = t_4
else if ((b * c) <= (-1d-34)) then
tmp = t_3
else if ((b * c) <= (-2d-82)) then
tmp = t_2
else if ((b * c) <= (-1d-107)) then
tmp = t_3
else if ((b * c) <= 0.0d0) then
tmp = t_2
else if ((b * c) <= 1d+129) then
tmp = t_3
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = ((t * a) * -4.0) + t_1;
double t_3 = x * ((18.0 * (t * (y * z))) - (4.0 * i));
double t_4 = b * (c - (j * (27.0 * (k / b))));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * (c + (t_1 / b));
} else if ((b * c) <= -1e+73) {
tmp = t_3;
} else if ((b * c) <= -4e+46) {
tmp = t_4;
} else if ((b * c) <= -1e-34) {
tmp = t_3;
} else if ((b * c) <= -2e-82) {
tmp = t_2;
} else if ((b * c) <= -1e-107) {
tmp = t_3;
} else if ((b * c) <= 0.0) {
tmp = t_2;
} else if ((b * c) <= 1e+129) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = ((t * a) * -4.0) + t_1 t_3 = x * ((18.0 * (t * (y * z))) - (4.0 * i)) t_4 = b * (c - (j * (27.0 * (k / b)))) tmp = 0 if (b * c) <= -2e+179: tmp = b * (c + (t_1 / b)) elif (b * c) <= -1e+73: tmp = t_3 elif (b * c) <= -4e+46: tmp = t_4 elif (b * c) <= -1e-34: tmp = t_3 elif (b * c) <= -2e-82: tmp = t_2 elif (b * c) <= -1e-107: tmp = t_3 elif (b * c) <= 0.0: tmp = t_2 elif (b * c) <= 1e+129: tmp = t_3 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(Float64(Float64(t * a) * -4.0) + t_1) t_3 = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))) t_4 = Float64(b * Float64(c - Float64(j * Float64(27.0 * Float64(k / b))))) tmp = 0.0 if (Float64(b * c) <= -2e+179) tmp = Float64(b * Float64(c + Float64(t_1 / b))); elseif (Float64(b * c) <= -1e+73) tmp = t_3; elseif (Float64(b * c) <= -4e+46) tmp = t_4; elseif (Float64(b * c) <= -1e-34) tmp = t_3; elseif (Float64(b * c) <= -2e-82) tmp = t_2; elseif (Float64(b * c) <= -1e-107) tmp = t_3; elseif (Float64(b * c) <= 0.0) tmp = t_2; elseif (Float64(b * c) <= 1e+129) tmp = t_3; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = ((t * a) * -4.0) + t_1; t_3 = x * ((18.0 * (t * (y * z))) - (4.0 * i)); t_4 = b * (c - (j * (27.0 * (k / b)))); tmp = 0.0; if ((b * c) <= -2e+179) tmp = b * (c + (t_1 / b)); elseif ((b * c) <= -1e+73) tmp = t_3; elseif ((b * c) <= -4e+46) tmp = t_4; elseif ((b * c) <= -1e-34) tmp = t_3; elseif ((b * c) <= -2e-82) tmp = t_2; elseif ((b * c) <= -1e-107) tmp = t_3; elseif ((b * c) <= 0.0) tmp = t_2; elseif ((b * c) <= 1e+129) tmp = t_3; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(c - N[(j * N[(27.0 * N[(k / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2e+179], N[(b * N[(c + N[(t$95$1 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e+73], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -4e+46], t$95$4, If[LessEqual[N[(b * c), $MachinePrecision], -1e-34], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -2e-82], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -1e-107], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], 0.0], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 1e+129], t$95$3, t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := \left(t \cdot a\right) \cdot -4 + t\_1\\
t_3 := x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
t_4 := b \cdot \left(c - j \cdot \left(27 \cdot \frac{k}{b}\right)\right)\\
\mathbf{if}\;b \cdot c \leq -2 \cdot 10^{+179}:\\
\;\;\;\;b \cdot \left(c + \frac{t\_1}{b}\right)\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{+73}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \cdot c \leq -4 \cdot 10^{+46}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-34}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \cdot c \leq -2 \cdot 10^{-82}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-107}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq 10^{+129}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if (*.f64 b c) < -1.99999999999999996e179Initial program 87.8%
Simplified90.2%
Taylor expanded in b around inf 85.7%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
*-commutative88.1%
associate-*l*88.1%
Simplified88.1%
if -1.99999999999999996e179 < (*.f64 b c) < -9.99999999999999983e72 or -4e46 < (*.f64 b c) < -9.99999999999999928e-35 or -2e-82 < (*.f64 b c) < -1e-107 or 0.0 < (*.f64 b c) < 1e129Initial program 88.3%
Simplified87.4%
Taylor expanded in x around inf 63.0%
if -9.99999999999999983e72 < (*.f64 b c) < -4e46 or 1e129 < (*.f64 b c) Initial program 72.5%
Simplified77.6%
Taylor expanded in b around inf 77.4%
Taylor expanded in b around -inf 82.5%
mul-1-neg82.5%
distribute-rgt-neg-in82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
*-commutative82.5%
associate-/l*77.5%
associate-*l*77.6%
Simplified77.6%
if -9.99999999999999928e-35 < (*.f64 b c) < -2e-82 or -1e-107 < (*.f64 b c) < 0.0Initial program 86.6%
Simplified88.1%
Taylor expanded in a around inf 67.2%
*-commutative67.2%
Simplified67.2%
Final simplification71.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (+ t_1 (* 18.0 (* t (* z (* x y))))))
(t_3 (* b (- c (* j (* 27.0 (/ k b)))))))
(if (<= (* b c) -2e+179)
(* b (+ c (/ t_1 b)))
(if (<= (* b c) -1e+73)
(+ (* 18.0 (* t (* x (* y z)))) t_1)
(if (<= (* b c) -4e+46)
t_3
(if (<= (* b c) -1e-34)
t_2
(if (<= (* b c) 0.0)
(+ (* (* t a) -4.0) t_1)
(if (<= (* b c) 5e-107)
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))
(if (<= (* b c) 2e+148) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (18.0 * (t * (z * (x * y))));
double t_3 = b * (c - (j * (27.0 * (k / b))));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * (c + (t_1 / b));
} else if ((b * c) <= -1e+73) {
tmp = (18.0 * (t * (x * (y * z)))) + t_1;
} else if ((b * c) <= -4e+46) {
tmp = t_3;
} else if ((b * c) <= -1e-34) {
tmp = t_2;
} else if ((b * c) <= 0.0) {
tmp = ((t * a) * -4.0) + t_1;
} else if ((b * c) <= 5e-107) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else if ((b * c) <= 2e+148) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + (18.0d0 * (t * (z * (x * y))))
t_3 = b * (c - (j * (27.0d0 * (k / b))))
if ((b * c) <= (-2d+179)) then
tmp = b * (c + (t_1 / b))
else if ((b * c) <= (-1d+73)) then
tmp = (18.0d0 * (t * (x * (y * z)))) + t_1
else if ((b * c) <= (-4d+46)) then
tmp = t_3
else if ((b * c) <= (-1d-34)) then
tmp = t_2
else if ((b * c) <= 0.0d0) then
tmp = ((t * a) * (-4.0d0)) + t_1
else if ((b * c) <= 5d-107) then
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
else if ((b * c) <= 2d+148) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (18.0 * (t * (z * (x * y))));
double t_3 = b * (c - (j * (27.0 * (k / b))));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * (c + (t_1 / b));
} else if ((b * c) <= -1e+73) {
tmp = (18.0 * (t * (x * (y * z)))) + t_1;
} else if ((b * c) <= -4e+46) {
tmp = t_3;
} else if ((b * c) <= -1e-34) {
tmp = t_2;
} else if ((b * c) <= 0.0) {
tmp = ((t * a) * -4.0) + t_1;
} else if ((b * c) <= 5e-107) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else if ((b * c) <= 2e+148) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (18.0 * (t * (z * (x * y)))) t_3 = b * (c - (j * (27.0 * (k / b)))) tmp = 0 if (b * c) <= -2e+179: tmp = b * (c + (t_1 / b)) elif (b * c) <= -1e+73: tmp = (18.0 * (t * (x * (y * z)))) + t_1 elif (b * c) <= -4e+46: tmp = t_3 elif (b * c) <= -1e-34: tmp = t_2 elif (b * c) <= 0.0: tmp = ((t * a) * -4.0) + t_1 elif (b * c) <= 5e-107: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) elif (b * c) <= 2e+148: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(18.0 * Float64(t * Float64(z * Float64(x * y))))) t_3 = Float64(b * Float64(c - Float64(j * Float64(27.0 * Float64(k / b))))) tmp = 0.0 if (Float64(b * c) <= -2e+179) tmp = Float64(b * Float64(c + Float64(t_1 / b))); elseif (Float64(b * c) <= -1e+73) tmp = Float64(Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) + t_1); elseif (Float64(b * c) <= -4e+46) tmp = t_3; elseif (Float64(b * c) <= -1e-34) tmp = t_2; elseif (Float64(b * c) <= 0.0) tmp = Float64(Float64(Float64(t * a) * -4.0) + t_1); elseif (Float64(b * c) <= 5e-107) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); elseif (Float64(b * c) <= 2e+148) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = t_1 + (18.0 * (t * (z * (x * y)))); t_3 = b * (c - (j * (27.0 * (k / b)))); tmp = 0.0; if ((b * c) <= -2e+179) tmp = b * (c + (t_1 / b)); elseif ((b * c) <= -1e+73) tmp = (18.0 * (t * (x * (y * z)))) + t_1; elseif ((b * c) <= -4e+46) tmp = t_3; elseif ((b * c) <= -1e-34) tmp = t_2; elseif ((b * c) <= 0.0) tmp = ((t * a) * -4.0) + t_1; elseif ((b * c) <= 5e-107) tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)); elseif ((b * c) <= 2e+148) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(c - N[(j * N[(27.0 * N[(k / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2e+179], N[(b * N[(c + N[(t$95$1 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e+73], N[(N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -4e+46], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -1e-34], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 0.0], N[(N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 5e-107], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2e+148], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + 18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
t_3 := b \cdot \left(c - j \cdot \left(27 \cdot \frac{k}{b}\right)\right)\\
\mathbf{if}\;b \cdot c \leq -2 \cdot 10^{+179}:\\
\;\;\;\;b \cdot \left(c + \frac{t\_1}{b}\right)\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{+73}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right) + t\_1\\
\mathbf{elif}\;b \cdot c \leq -4 \cdot 10^{+46}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;\left(t \cdot a\right) \cdot -4 + t\_1\\
\mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-107}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+148}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if (*.f64 b c) < -1.99999999999999996e179Initial program 87.8%
Simplified90.2%
Taylor expanded in b around inf 85.7%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
*-commutative88.1%
associate-*l*88.1%
Simplified88.1%
if -1.99999999999999996e179 < (*.f64 b c) < -9.99999999999999983e72Initial program 78.6%
Simplified92.7%
Taylor expanded in y around inf 79.6%
if -9.99999999999999983e72 < (*.f64 b c) < -4e46 or 2.0000000000000001e148 < (*.f64 b c) Initial program 75.4%
Simplified79.2%
Taylor expanded in b around inf 78.8%
Taylor expanded in b around -inf 84.4%
mul-1-neg84.4%
distribute-rgt-neg-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
associate-/l*79.0%
associate-*l*79.0%
Simplified79.0%
if -4e46 < (*.f64 b c) < -9.99999999999999928e-35 or 4.99999999999999971e-107 < (*.f64 b c) < 2.0000000000000001e148Initial program 90.3%
Simplified86.5%
Taylor expanded in y around inf 58.0%
associate-*r*58.0%
Simplified58.0%
Taylor expanded in t around 0 58.0%
*-commutative58.0%
associate-*r*65.7%
Simplified65.7%
if -9.99999999999999928e-35 < (*.f64 b c) < 0.0Initial program 86.2%
Simplified87.6%
Taylor expanded in a around inf 61.8%
*-commutative61.8%
Simplified61.8%
if 0.0 < (*.f64 b c) < 4.99999999999999971e-107Initial program 83.4%
Simplified83.5%
Taylor expanded in x around inf 71.7%
Final simplification72.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* t (* x (* y z))))))
(if (<= (* b c) -2e+179)
(* b c)
(if (<= (* b c) -1e+73)
t_1
(if (<= (* b c) -4e+46)
(* b c)
(if (<= (* b c) -1e-34)
t_1
(if (<= (* b c) 0.0)
(* t (* a -4.0))
(if (<= (* b c) 1e+175) t_1 (* 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 = 18.0 * (t * (x * (y * z)));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * c;
} else if ((b * c) <= -1e+73) {
tmp = t_1;
} else if ((b * c) <= -4e+46) {
tmp = b * c;
} else if ((b * c) <= -1e-34) {
tmp = t_1;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 1e+175) {
tmp = t_1;
} 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 = 18.0d0 * (t * (x * (y * z)))
if ((b * c) <= (-2d+179)) then
tmp = b * c
else if ((b * c) <= (-1d+73)) then
tmp = t_1
else if ((b * c) <= (-4d+46)) then
tmp = b * c
else if ((b * c) <= (-1d-34)) then
tmp = t_1
else if ((b * c) <= 0.0d0) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 1d+175) then
tmp = t_1
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 = 18.0 * (t * (x * (y * z)));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * c;
} else if ((b * c) <= -1e+73) {
tmp = t_1;
} else if ((b * c) <= -4e+46) {
tmp = b * c;
} else if ((b * c) <= -1e-34) {
tmp = t_1;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 1e+175) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (t * (x * (y * z))) tmp = 0 if (b * c) <= -2e+179: tmp = b * c elif (b * c) <= -1e+73: tmp = t_1 elif (b * c) <= -4e+46: tmp = b * c elif (b * c) <= -1e-34: tmp = t_1 elif (b * c) <= 0.0: tmp = t * (a * -4.0) elif (b * c) <= 1e+175: tmp = t_1 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) tmp = 0.0 if (Float64(b * c) <= -2e+179) tmp = Float64(b * c); elseif (Float64(b * c) <= -1e+73) tmp = t_1; elseif (Float64(b * c) <= -4e+46) tmp = Float64(b * c); elseif (Float64(b * c) <= -1e-34) tmp = t_1; elseif (Float64(b * c) <= 0.0) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 1e+175) tmp = t_1; 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 = 18.0 * (t * (x * (y * z))); tmp = 0.0; if ((b * c) <= -2e+179) tmp = b * c; elseif ((b * c) <= -1e+73) tmp = t_1; elseif ((b * c) <= -4e+46) tmp = b * c; elseif ((b * c) <= -1e-34) tmp = t_1; elseif ((b * c) <= 0.0) tmp = t * (a * -4.0); elseif ((b * c) <= 1e+175) tmp = t_1; 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[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2e+179], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e+73], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -4e+46], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e-34], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 0.0], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1e+175], t$95$1, N[(b * c), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;b \cdot c \leq -2 \cdot 10^{+179}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq -4 \cdot 10^{+46}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 10^{+175}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.99999999999999996e179 or -9.99999999999999983e72 < (*.f64 b c) < -4e46 or 9.9999999999999994e174 < (*.f64 b c) Initial program 82.4%
Simplified83.5%
pow183.5%
associate-*l*83.5%
associate-*r*83.5%
Applied egg-rr83.5%
unpow183.5%
associate-*r*83.5%
Simplified83.5%
Taylor expanded in b around inf 79.0%
if -1.99999999999999996e179 < (*.f64 b c) < -9.99999999999999983e72 or -4e46 < (*.f64 b c) < -9.99999999999999928e-35 or 0.0 < (*.f64 b c) < 9.9999999999999994e174Initial program 84.7%
Simplified84.8%
Taylor expanded in j around 0 71.0%
Taylor expanded in x around inf 70.2%
Taylor expanded in y around inf 43.2%
if -9.99999999999999928e-35 < (*.f64 b c) < 0.0Initial program 86.2%
Taylor expanded in t around -inf 49.1%
associate-*r*49.1%
neg-mul-149.1%
cancel-sign-sub-inv49.1%
*-commutative49.1%
metadata-eval49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in x around 0 36.1%
*-commutative36.1%
associate-*r*36.1%
*-commutative36.1%
associate-*l*36.1%
Simplified36.1%
Final simplification54.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* t (* x (* y z))))))
(if (<= (* b c) -2e+179)
(* b c)
(if (<= (* b c) -1e+73)
t_1
(if (<= (* b c) -4e+46)
(* b c)
(if (<= (* b c) -1e-34)
t_1
(if (<= (* b c) 0.0)
(* t (* a -4.0))
(if (<= (* b c) 1e+175)
(* 18.0 (* (* y z) (* x t)))
(* 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 = 18.0 * (t * (x * (y * z)));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * c;
} else if ((b * c) <= -1e+73) {
tmp = t_1;
} else if ((b * c) <= -4e+46) {
tmp = b * c;
} else if ((b * c) <= -1e-34) {
tmp = t_1;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 1e+175) {
tmp = 18.0 * ((y * z) * (x * t));
} 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 = 18.0d0 * (t * (x * (y * z)))
if ((b * c) <= (-2d+179)) then
tmp = b * c
else if ((b * c) <= (-1d+73)) then
tmp = t_1
else if ((b * c) <= (-4d+46)) then
tmp = b * c
else if ((b * c) <= (-1d-34)) then
tmp = t_1
else if ((b * c) <= 0.0d0) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 1d+175) then
tmp = 18.0d0 * ((y * z) * (x * t))
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 = 18.0 * (t * (x * (y * z)));
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * c;
} else if ((b * c) <= -1e+73) {
tmp = t_1;
} else if ((b * c) <= -4e+46) {
tmp = b * c;
} else if ((b * c) <= -1e-34) {
tmp = t_1;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 1e+175) {
tmp = 18.0 * ((y * z) * (x * t));
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (t * (x * (y * z))) tmp = 0 if (b * c) <= -2e+179: tmp = b * c elif (b * c) <= -1e+73: tmp = t_1 elif (b * c) <= -4e+46: tmp = b * c elif (b * c) <= -1e-34: tmp = t_1 elif (b * c) <= 0.0: tmp = t * (a * -4.0) elif (b * c) <= 1e+175: tmp = 18.0 * ((y * z) * (x * t)) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) tmp = 0.0 if (Float64(b * c) <= -2e+179) tmp = Float64(b * c); elseif (Float64(b * c) <= -1e+73) tmp = t_1; elseif (Float64(b * c) <= -4e+46) tmp = Float64(b * c); elseif (Float64(b * c) <= -1e-34) tmp = t_1; elseif (Float64(b * c) <= 0.0) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 1e+175) tmp = Float64(18.0 * Float64(Float64(y * z) * Float64(x * t))); 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 = 18.0 * (t * (x * (y * z))); tmp = 0.0; if ((b * c) <= -2e+179) tmp = b * c; elseif ((b * c) <= -1e+73) tmp = t_1; elseif ((b * c) <= -4e+46) tmp = b * c; elseif ((b * c) <= -1e-34) tmp = t_1; elseif ((b * c) <= 0.0) tmp = t * (a * -4.0); elseif ((b * c) <= 1e+175) tmp = 18.0 * ((y * z) * (x * t)); 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[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2e+179], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e+73], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -4e+46], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e-34], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 0.0], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1e+175], N[(18.0 * N[(N[(y * z), $MachinePrecision] * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;b \cdot c \leq -2 \cdot 10^{+179}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq -4 \cdot 10^{+46}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 10^{+175}:\\
\;\;\;\;18 \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.99999999999999996e179 or -9.99999999999999983e72 < (*.f64 b c) < -4e46 or 9.9999999999999994e174 < (*.f64 b c) Initial program 82.4%
Simplified83.5%
pow183.5%
associate-*l*83.5%
associate-*r*83.5%
Applied egg-rr83.5%
unpow183.5%
associate-*r*83.5%
Simplified83.5%
Taylor expanded in b around inf 79.0%
if -1.99999999999999996e179 < (*.f64 b c) < -9.99999999999999983e72 or -4e46 < (*.f64 b c) < -9.99999999999999928e-35Initial program 89.2%
Simplified92.8%
Taylor expanded in j around 0 78.7%
Taylor expanded in x around inf 68.6%
Taylor expanded in y around inf 58.1%
if -9.99999999999999928e-35 < (*.f64 b c) < 0.0Initial program 86.2%
Taylor expanded in t around -inf 49.1%
associate-*r*49.1%
neg-mul-149.1%
cancel-sign-sub-inv49.1%
*-commutative49.1%
metadata-eval49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in x around 0 36.1%
*-commutative36.1%
associate-*r*36.1%
*-commutative36.1%
associate-*l*36.1%
Simplified36.1%
if 0.0 < (*.f64 b c) < 9.9999999999999994e174Initial program 83.0%
Simplified81.8%
Taylor expanded in j around 0 68.2%
Taylor expanded in x around inf 70.8%
Taylor expanded in y around inf 37.6%
associate-*r*38.7%
Simplified38.7%
Final simplification54.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* z (* x y)) (* 18.0 t))))
(if (<= (* b c) -2e+179)
(* b c)
(if (<= (* b c) -1e+73)
(* 18.0 (* t (* x (* y z))))
(if (<= (* b c) -4e+46)
(* b c)
(if (<= (* b c) -1e-34)
t_1
(if (<= (* b c) 0.0)
(* t (* a -4.0))
(if (<= (* b c) 1e+175) t_1 (* 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 = (z * (x * y)) * (18.0 * t);
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * c;
} else if ((b * c) <= -1e+73) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= -4e+46) {
tmp = b * c;
} else if ((b * c) <= -1e-34) {
tmp = t_1;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 1e+175) {
tmp = t_1;
} 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 = (z * (x * y)) * (18.0d0 * t)
if ((b * c) <= (-2d+179)) then
tmp = b * c
else if ((b * c) <= (-1d+73)) then
tmp = 18.0d0 * (t * (x * (y * z)))
else if ((b * c) <= (-4d+46)) then
tmp = b * c
else if ((b * c) <= (-1d-34)) then
tmp = t_1
else if ((b * c) <= 0.0d0) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 1d+175) then
tmp = t_1
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 = (z * (x * y)) * (18.0 * t);
double tmp;
if ((b * c) <= -2e+179) {
tmp = b * c;
} else if ((b * c) <= -1e+73) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= -4e+46) {
tmp = b * c;
} else if ((b * c) <= -1e-34) {
tmp = t_1;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 1e+175) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (z * (x * y)) * (18.0 * t) tmp = 0 if (b * c) <= -2e+179: tmp = b * c elif (b * c) <= -1e+73: tmp = 18.0 * (t * (x * (y * z))) elif (b * c) <= -4e+46: tmp = b * c elif (b * c) <= -1e-34: tmp = t_1 elif (b * c) <= 0.0: tmp = t * (a * -4.0) elif (b * c) <= 1e+175: tmp = t_1 else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(z * Float64(x * y)) * Float64(18.0 * t)) tmp = 0.0 if (Float64(b * c) <= -2e+179) tmp = Float64(b * c); elseif (Float64(b * c) <= -1e+73) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); elseif (Float64(b * c) <= -4e+46) tmp = Float64(b * c); elseif (Float64(b * c) <= -1e-34) tmp = t_1; elseif (Float64(b * c) <= 0.0) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 1e+175) tmp = t_1; 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 = (z * (x * y)) * (18.0 * t); tmp = 0.0; if ((b * c) <= -2e+179) tmp = b * c; elseif ((b * c) <= -1e+73) tmp = 18.0 * (t * (x * (y * z))); elseif ((b * c) <= -4e+46) tmp = b * c; elseif ((b * c) <= -1e-34) tmp = t_1; elseif ((b * c) <= 0.0) tmp = t * (a * -4.0); elseif ((b * c) <= 1e+175) tmp = t_1; 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2e+179], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e+73], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -4e+46], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e-34], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 0.0], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1e+175], t$95$1, N[(b * c), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot \left(x \cdot y\right)\right) \cdot \left(18 \cdot t\right)\\
\mathbf{if}\;b \cdot c \leq -2 \cdot 10^{+179}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{+73}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq -4 \cdot 10^{+46}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 10^{+175}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.99999999999999996e179 or -9.99999999999999983e72 < (*.f64 b c) < -4e46 or 9.9999999999999994e174 < (*.f64 b c) Initial program 82.4%
Simplified83.5%
pow183.5%
associate-*l*83.5%
associate-*r*83.5%
Applied egg-rr83.5%
unpow183.5%
associate-*r*83.5%
Simplified83.5%
Taylor expanded in b around inf 79.0%
if -1.99999999999999996e179 < (*.f64 b c) < -9.99999999999999983e72Initial program 78.6%
Simplified92.7%
Taylor expanded in j around 0 71.5%
Taylor expanded in x around inf 71.5%
Taylor expanded in y around inf 58.3%
if -4e46 < (*.f64 b c) < -9.99999999999999928e-35 or 0.0 < (*.f64 b c) < 9.9999999999999994e174Initial program 85.7%
Simplified83.5%
Taylor expanded in j around 0 71.0%
Taylor expanded in x around inf 70.1%
Taylor expanded in y around inf 40.8%
*-commutative40.8%
associate-*r*44.1%
*-commutative44.1%
associate-*l*44.2%
*-commutative44.2%
Simplified44.2%
if -9.99999999999999928e-35 < (*.f64 b c) < 0.0Initial program 86.2%
Taylor expanded in t around -inf 49.1%
associate-*r*49.1%
neg-mul-149.1%
cancel-sign-sub-inv49.1%
*-commutative49.1%
metadata-eval49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in x around 0 36.1%
*-commutative36.1%
associate-*r*36.1%
*-commutative36.1%
associate-*l*36.1%
Simplified36.1%
Final simplification55.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* (* t a) -4.0))) (t_2 (* (* z (* x y)) (* 18.0 t))))
(if (<= t -1.35e+191)
t_2
(if (<= t -4.4e+156)
t_1
(if (<= t -1.8e+85)
t_2
(if (<= t -1.05e+58)
t_1
(if (<= t 4.9e-213)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 3.3e+134)
(+ (* b c) (* j (* k -27.0)))
(* 18.0 (* t (* x (* 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 = (b * c) + ((t * a) * -4.0);
double t_2 = (z * (x * y)) * (18.0 * t);
double tmp;
if (t <= -1.35e+191) {
tmp = t_2;
} else if (t <= -4.4e+156) {
tmp = t_1;
} else if (t <= -1.8e+85) {
tmp = t_2;
} else if (t <= -1.05e+58) {
tmp = t_1;
} else if (t <= 4.9e-213) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 3.3e+134) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = 18.0 * (t * (x * (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) + ((t * a) * (-4.0d0))
t_2 = (z * (x * y)) * (18.0d0 * t)
if (t <= (-1.35d+191)) then
tmp = t_2
else if (t <= (-4.4d+156)) then
tmp = t_1
else if (t <= (-1.8d+85)) then
tmp = t_2
else if (t <= (-1.05d+58)) then
tmp = t_1
else if (t <= 4.9d-213) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 3.3d+134) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = 18.0d0 * (t * (x * (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + ((t * a) * -4.0);
double t_2 = (z * (x * y)) * (18.0 * t);
double tmp;
if (t <= -1.35e+191) {
tmp = t_2;
} else if (t <= -4.4e+156) {
tmp = t_1;
} else if (t <= -1.8e+85) {
tmp = t_2;
} else if (t <= -1.05e+58) {
tmp = t_1;
} else if (t <= 4.9e-213) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 3.3e+134) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = 18.0 * (t * (x * (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + ((t * a) * -4.0) t_2 = (z * (x * y)) * (18.0 * t) tmp = 0 if t <= -1.35e+191: tmp = t_2 elif t <= -4.4e+156: tmp = t_1 elif t <= -1.8e+85: tmp = t_2 elif t <= -1.05e+58: tmp = t_1 elif t <= 4.9e-213: tmp = (b * c) - (4.0 * (x * i)) elif t <= 3.3e+134: tmp = (b * c) + (j * (k * -27.0)) else: tmp = 18.0 * (t * (x * (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(Float64(t * a) * -4.0)) t_2 = Float64(Float64(z * Float64(x * y)) * Float64(18.0 * t)) tmp = 0.0 if (t <= -1.35e+191) tmp = t_2; elseif (t <= -4.4e+156) tmp = t_1; elseif (t <= -1.8e+85) tmp = t_2; elseif (t <= -1.05e+58) tmp = t_1; elseif (t <= 4.9e-213) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 3.3e+134) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (b * c) + ((t * a) * -4.0); t_2 = (z * (x * y)) * (18.0 * t); tmp = 0.0; if (t <= -1.35e+191) tmp = t_2; elseif (t <= -4.4e+156) tmp = t_1; elseif (t <= -1.8e+85) tmp = t_2; elseif (t <= -1.05e+58) tmp = t_1; elseif (t <= 4.9e-213) tmp = (b * c) - (4.0 * (x * i)); elseif (t <= 3.3e+134) tmp = (b * c) + (j * (k * -27.0)); else tmp = 18.0 * (t * (x * (y * z))); 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[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.35e+191], t$95$2, If[LessEqual[t, -4.4e+156], t$95$1, If[LessEqual[t, -1.8e+85], t$95$2, If[LessEqual[t, -1.05e+58], t$95$1, If[LessEqual[t, 4.9e-213], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e+134], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + \left(t \cdot a\right) \cdot -4\\
t_2 := \left(z \cdot \left(x \cdot y\right)\right) \cdot \left(18 \cdot t\right)\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{+191}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-213}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+134}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.34999999999999998e191 or -4.40000000000000008e156 < t < -1.7999999999999999e85Initial program 90.2%
Simplified88.3%
Taylor expanded in j around 0 78.2%
Taylor expanded in x around inf 63.1%
Taylor expanded in y around inf 51.7%
*-commutative51.7%
associate-*r*54.1%
*-commutative54.1%
associate-*l*54.1%
*-commutative54.1%
Simplified54.1%
if -1.34999999999999998e191 < t < -4.40000000000000008e156 or -1.7999999999999999e85 < t < -1.05000000000000006e58Initial program 94.4%
Simplified94.4%
Taylor expanded in j around 0 89.2%
Taylor expanded in x around inf 89.1%
Taylor expanded in x around 0 76.8%
if -1.05000000000000006e58 < t < 4.8999999999999998e-213Initial program 83.4%
Simplified83.4%
Taylor expanded in j around 0 70.9%
Taylor expanded in t around 0 67.0%
if 4.8999999999999998e-213 < t < 3.3e134Initial program 82.8%
Simplified83.8%
Taylor expanded in b around inf 61.0%
if 3.3e134 < t Initial program 77.1%
Simplified85.7%
Taylor expanded in j around 0 82.9%
Taylor expanded in x around inf 66.0%
Taylor expanded in y around inf 54.9%
Final simplification62.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (- (* (* x y) (* z (- -18.0))) (* a 4.0)))))
(if (<= t -7.6e+44)
t_1
(if (<= t 5.5e-214)
(- (* b c) (* 4.0 (* x i)))
(if (or (<= t 30000.0) (and (not (<= t 1.55e+64)) (<= t 7.4e+115)))
(+ (* b c) (* j (* k -27.0)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -7.6e+44) {
tmp = t_1;
} else if (t <= 5.5e-214) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((t <= 30000.0) || (!(t <= 1.55e+64) && (t <= 7.4e+115))) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = t * (((x * y) * (z * -(-18.0d0))) - (a * 4.0d0))
if (t <= (-7.6d+44)) then
tmp = t_1
else if (t <= 5.5d-214) then
tmp = (b * c) - (4.0d0 * (x * i))
else if ((t <= 30000.0d0) .or. (.not. (t <= 1.55d+64)) .and. (t <= 7.4d+115)) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -7.6e+44) {
tmp = t_1;
} else if (t <= 5.5e-214) {
tmp = (b * c) - (4.0 * (x * i));
} else if ((t <= 30000.0) || (!(t <= 1.55e+64) && (t <= 7.4e+115))) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)) tmp = 0 if t <= -7.6e+44: tmp = t_1 elif t <= 5.5e-214: tmp = (b * c) - (4.0 * (x * i)) elif (t <= 30000.0) or (not (t <= 1.55e+64) and (t <= 7.4e+115)): tmp = (b * c) + (j * (k * -27.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(Float64(Float64(x * y) * Float64(z * Float64(-(-18.0)))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -7.6e+44) tmp = t_1; elseif (t <= 5.5e-214) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif ((t <= 30000.0) || (!(t <= 1.55e+64) && (t <= 7.4e+115))) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)); tmp = 0.0; if (t <= -7.6e+44) tmp = t_1; elseif (t <= 5.5e-214) tmp = (b * c) - (4.0 * (x * i)); elseif ((t <= 30000.0) || (~((t <= 1.55e+64)) && (t <= 7.4e+115))) tmp = (b * c) + (j * (k * -27.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(N[(N[(x * y), $MachinePrecision] * N[(z * (--18.0)), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.6e+44], t$95$1, If[LessEqual[t, 5.5e-214], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 30000.0], And[N[Not[LessEqual[t, 1.55e+64]], $MachinePrecision], LessEqual[t, 7.4e+115]]], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(\left(x \cdot y\right) \cdot \left(z \cdot \left(--18\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -7.6 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-214}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 30000 \lor \neg \left(t \leq 1.55 \cdot 10^{+64}\right) \land t \leq 7.4 \cdot 10^{+115}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.6000000000000004e44 or 3e4 < t < 1.55e64 or 7.40000000000000012e115 < t Initial program 85.8%
Taylor expanded in t around -inf 75.8%
associate-*r*75.8%
neg-mul-175.8%
cancel-sign-sub-inv75.8%
*-commutative75.8%
metadata-eval75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in x around 0 75.8%
*-commutative75.8%
associate-*r*76.7%
associate-*l*76.7%
Simplified76.7%
if -7.6000000000000004e44 < t < 5.50000000000000024e-214Initial program 83.2%
Simplified83.2%
Taylor expanded in j around 0 70.6%
Taylor expanded in t around 0 67.7%
if 5.50000000000000024e-214 < t < 3e4 or 1.55e64 < t < 7.40000000000000012e115Initial program 83.0%
Simplified81.3%
Taylor expanded in b around inf 69.4%
Final simplification72.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z -3.7e-29)
(* y (+ (* -27.0 (/ (* j k) y)) (* 18.0 (* t (* x z)))))
(if (<= z 4.1e-22)
(- (- (- (* b c) (* 4.0 (* t a))) (* (* x 4.0) i)) (* k (* j 27.0)))
(if (or (<= z 2.6e+235) (not (<= z 8.5e+256)))
(- (+ (* b c) (* 18.0 (* t (* x (* y z))))) (* 27.0 (* j k)))
(- (+ (* b c) (* (* t a) -4.0)) (* 4.0 (* x i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -3.7e-29) {
tmp = y * ((-27.0 * ((j * k) / y)) + (18.0 * (t * (x * z))));
} else if (z <= 4.1e-22) {
tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0));
} else if ((z <= 2.6e+235) || !(z <= 8.5e+256)) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - (27.0 * (j * k));
} else {
tmp = ((b * c) + ((t * a) * -4.0)) - (4.0 * (x * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (z <= (-3.7d-29)) then
tmp = y * (((-27.0d0) * ((j * k) / y)) + (18.0d0 * (t * (x * z))))
else if (z <= 4.1d-22) then
tmp = (((b * c) - (4.0d0 * (t * a))) - ((x * 4.0d0) * i)) - (k * (j * 27.0d0))
else if ((z <= 2.6d+235) .or. (.not. (z <= 8.5d+256))) then
tmp = ((b * c) + (18.0d0 * (t * (x * (y * z))))) - (27.0d0 * (j * k))
else
tmp = ((b * c) + ((t * a) * (-4.0d0))) - (4.0d0 * (x * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= -3.7e-29) {
tmp = y * ((-27.0 * ((j * k) / y)) + (18.0 * (t * (x * z))));
} else if (z <= 4.1e-22) {
tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0));
} else if ((z <= 2.6e+235) || !(z <= 8.5e+256)) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - (27.0 * (j * k));
} else {
tmp = ((b * c) + ((t * a) * -4.0)) - (4.0 * (x * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if z <= -3.7e-29: tmp = y * ((-27.0 * ((j * k) / y)) + (18.0 * (t * (x * z)))) elif z <= 4.1e-22: tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0)) elif (z <= 2.6e+235) or not (z <= 8.5e+256): tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - (27.0 * (j * k)) else: tmp = ((b * c) + ((t * a) * -4.0)) - (4.0 * (x * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= -3.7e-29) tmp = Float64(y * Float64(Float64(-27.0 * Float64(Float64(j * k) / y)) + Float64(18.0 * Float64(t * Float64(x * z))))); elseif (z <= 4.1e-22) tmp = Float64(Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(x * 4.0) * i)) - Float64(k * Float64(j * 27.0))); elseif ((z <= 2.6e+235) || !(z <= 8.5e+256)) tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))) - Float64(27.0 * Float64(j * k))); else tmp = Float64(Float64(Float64(b * c) + Float64(Float64(t * a) * -4.0)) - Float64(4.0 * Float64(x * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (z <= -3.7e-29) tmp = y * ((-27.0 * ((j * k) / y)) + (18.0 * (t * (x * z)))); elseif (z <= 4.1e-22) tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0)); elseif ((z <= 2.6e+235) || ~((z <= 8.5e+256))) tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - (27.0 * (j * k)); else tmp = ((b * c) + ((t * a) * -4.0)) - (4.0 * (x * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, -3.7e-29], N[(y * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e-22], N[(N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 2.6e+235], N[Not[LessEqual[z, 8.5e+256]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{-29}:\\
\;\;\;\;y \cdot \left(-27 \cdot \frac{j \cdot k}{y} + 18 \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{-22}:\\
\;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+235} \lor \neg \left(z \leq 8.5 \cdot 10^{+256}\right):\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + \left(t \cdot a\right) \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if z < -3.6999999999999997e-29Initial program 81.0%
Simplified81.2%
Taylor expanded in y around inf 52.3%
associate-*r*50.8%
Simplified50.8%
Taylor expanded in y around inf 58.6%
if -3.6999999999999997e-29 < z < 4.0999999999999999e-22Initial program 89.6%
Taylor expanded in x around 0 87.9%
if 4.0999999999999999e-22 < z < 2.5999999999999998e235 or 8.5000000000000006e256 < z Initial program 82.8%
Simplified76.8%
pow176.8%
associate-*l*76.7%
associate-*r*76.8%
Applied egg-rr76.8%
unpow176.8%
associate-*r*84.4%
Simplified84.4%
Taylor expanded in x around inf 75.3%
associate-*r*75.1%
*-commutative75.1%
associate-*r*75.2%
*-commutative75.2%
associate-*r*81.4%
Simplified81.4%
Taylor expanded in i around 0 73.9%
if 2.5999999999999998e235 < z < 8.5000000000000006e256Initial program 27.0%
Simplified42.3%
Taylor expanded in j around 0 42.3%
Taylor expanded in y around 0 51.8%
Final simplification75.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* x (* 4.0 i)) (* j (* 27.0 k)))))
(if (or (<= y -7.5e+194) (not (<= y 4.1e-94)))
(- (+ (* b c) (* y (* z (* 18.0 (* x t))))) t_1)
(- (- (* b c) (* t (- (* a 4.0) (* (* x 18.0) (* y z))))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * (4.0 * i)) + (j * (27.0 * k));
double tmp;
if ((y <= -7.5e+194) || !(y <= 4.1e-94)) {
tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - t_1;
} else {
tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (x * (4.0d0 * i)) + (j * (27.0d0 * k))
if ((y <= (-7.5d+194)) .or. (.not. (y <= 4.1d-94))) then
tmp = ((b * c) + (y * (z * (18.0d0 * (x * t))))) - t_1
else
tmp = ((b * c) - (t * ((a * 4.0d0) - ((x * 18.0d0) * (y * z))))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * (4.0 * i)) + (j * (27.0 * k));
double tmp;
if ((y <= -7.5e+194) || !(y <= 4.1e-94)) {
tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - t_1;
} else {
tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (x * (4.0 * i)) + (j * (27.0 * k)) tmp = 0 if (y <= -7.5e+194) or not (y <= 4.1e-94): tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - t_1 else: tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k))) tmp = 0.0 if ((y <= -7.5e+194) || !(y <= 4.1e-94)) tmp = Float64(Float64(Float64(b * c) + Float64(y * Float64(z * Float64(18.0 * Float64(x * t))))) - t_1); else tmp = Float64(Float64(Float64(b * c) - Float64(t * Float64(Float64(a * 4.0) - Float64(Float64(x * 18.0) * Float64(y * z))))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (x * (4.0 * i)) + (j * (27.0 * k)); tmp = 0.0; if ((y <= -7.5e+194) || ~((y <= 4.1e-94))) tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - t_1; else tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y, -7.5e+194], N[Not[LessEqual[y, 4.1e-94]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(y * N[(z * N[(18.0 * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(t * N[(N[(a * 4.0), $MachinePrecision] - N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+194} \lor \neg \left(y \leq 4.1 \cdot 10^{-94}\right):\\
\;\;\;\;\left(b \cdot c + y \cdot \left(z \cdot \left(18 \cdot \left(x \cdot t\right)\right)\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - t \cdot \left(a \cdot 4 - \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\right) - t\_1\\
\end{array}
\end{array}
if y < -7.5000000000000002e194 or 4.10000000000000001e-94 < y Initial program 76.6%
Simplified74.9%
pow174.9%
associate-*l*74.8%
associate-*r*73.9%
Applied egg-rr73.9%
unpow173.9%
associate-*r*77.5%
Simplified77.5%
Taylor expanded in x around inf 71.1%
associate-*r*73.6%
*-commutative73.6%
associate-*r*73.6%
*-commutative73.6%
associate-*r*81.5%
Simplified81.5%
if -7.5000000000000002e194 < y < 4.10000000000000001e-94Initial program 89.9%
Simplified92.5%
Final simplification87.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* a 4.0) -2e-38)
(- (- (- (* b c) (* 4.0 (* t a))) (* (* x 4.0) i)) (* k (* j 27.0)))
(if (<= (* a 4.0) 5e+114)
(-
(+ (* b c) (* y (* z (* 18.0 (* x t)))))
(+ (* x (* 4.0 i)) (* j (* 27.0 k))))
(-
(- (* b c) (* t (- (* a 4.0) (* 18.0 (* x (* y z))))))
(* 4.0 (* x i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((a * 4.0) <= -2e-38) {
tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0));
} else if ((a * 4.0) <= 5e+114) {
tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
} else {
tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((a * 4.0d0) <= (-2d-38)) then
tmp = (((b * c) - (4.0d0 * (t * a))) - ((x * 4.0d0) * i)) - (k * (j * 27.0d0))
else if ((a * 4.0d0) <= 5d+114) then
tmp = ((b * c) + (y * (z * (18.0d0 * (x * t))))) - ((x * (4.0d0 * i)) + (j * (27.0d0 * k)))
else
tmp = ((b * c) - (t * ((a * 4.0d0) - (18.0d0 * (x * (y * z)))))) - (4.0d0 * (x * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((a * 4.0) <= -2e-38) {
tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0));
} else if ((a * 4.0) <= 5e+114) {
tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
} else {
tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (a * 4.0) <= -2e-38: tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0)) elif (a * 4.0) <= 5e+114: tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - ((x * (4.0 * i)) + (j * (27.0 * k))) else: tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(a * 4.0) <= -2e-38) tmp = Float64(Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(x * 4.0) * i)) - Float64(k * Float64(j * 27.0))); elseif (Float64(a * 4.0) <= 5e+114) tmp = Float64(Float64(Float64(b * c) + Float64(y * Float64(z * Float64(18.0 * Float64(x * t))))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k)))); else tmp = Float64(Float64(Float64(b * c) - Float64(t * Float64(Float64(a * 4.0) - Float64(18.0 * Float64(x * Float64(y * z)))))) - Float64(4.0 * Float64(x * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((a * 4.0) <= -2e-38) tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0)); elseif ((a * 4.0) <= 5e+114) tmp = ((b * c) + (y * (z * (18.0 * (x * t))))) - ((x * (4.0 * i)) + (j * (27.0 * k))); else tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(a * 4.0), $MachinePrecision], -2e-38], N[(N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 4.0), $MachinePrecision], 5e+114], N[(N[(N[(b * c), $MachinePrecision] + N[(y * N[(z * N[(18.0 * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(t * N[(N[(a * 4.0), $MachinePrecision] - N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 4 \leq -2 \cdot 10^{-38}:\\
\;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{elif}\;a \cdot 4 \leq 5 \cdot 10^{+114}:\\
\;\;\;\;\left(b \cdot c + y \cdot \left(z \cdot \left(18 \cdot \left(x \cdot t\right)\right)\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - t \cdot \left(a \cdot 4 - 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if (*.f64 a #s(literal 4 binary64)) < -1.9999999999999999e-38Initial program 84.5%
Taylor expanded in x around 0 83.3%
if -1.9999999999999999e-38 < (*.f64 a #s(literal 4 binary64)) < 5.0000000000000001e114Initial program 87.1%
Simplified85.6%
pow185.6%
associate-*l*85.6%
associate-*r*85.6%
Applied egg-rr85.6%
unpow185.6%
associate-*r*87.8%
Simplified87.8%
Taylor expanded in x around inf 82.7%
associate-*r*83.4%
*-commutative83.4%
associate-*r*83.4%
*-commutative83.4%
associate-*r*86.9%
Simplified86.9%
if 5.0000000000000001e114 < (*.f64 a #s(literal 4 binary64)) Initial program 73.6%
Simplified78.9%
Taylor expanded in j around 0 81.6%
Final simplification84.9%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* j (* k -27.0)) (* (* x i) -4.0)))
(t_2 (* c (+ b (* (* j (/ k c)) -27.0)))))
(if (<= c -7.2e+62)
t_2
(if (<= c 6e-171)
t_1
(if (<= c 3.3e-113)
(* t (* a -4.0))
(if (<= c 2.95e-43)
t_1
(if (<= c 1.55e+72) (+ (* b c) (* (* t a) -4.0)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + ((x * i) * -4.0);
double t_2 = c * (b + ((j * (k / c)) * -27.0));
double tmp;
if (c <= -7.2e+62) {
tmp = t_2;
} else if (c <= 6e-171) {
tmp = t_1;
} else if (c <= 3.3e-113) {
tmp = t * (a * -4.0);
} else if (c <= 2.95e-43) {
tmp = t_1;
} else if (c <= 1.55e+72) {
tmp = (b * c) + ((t * a) * -4.0);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * (k * (-27.0d0))) + ((x * i) * (-4.0d0))
t_2 = c * (b + ((j * (k / c)) * (-27.0d0)))
if (c <= (-7.2d+62)) then
tmp = t_2
else if (c <= 6d-171) then
tmp = t_1
else if (c <= 3.3d-113) then
tmp = t * (a * (-4.0d0))
else if (c <= 2.95d-43) then
tmp = t_1
else if (c <= 1.55d+72) then
tmp = (b * c) + ((t * a) * (-4.0d0))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + ((x * i) * -4.0);
double t_2 = c * (b + ((j * (k / c)) * -27.0));
double tmp;
if (c <= -7.2e+62) {
tmp = t_2;
} else if (c <= 6e-171) {
tmp = t_1;
} else if (c <= 3.3e-113) {
tmp = t * (a * -4.0);
} else if (c <= 2.95e-43) {
tmp = t_1;
} else if (c <= 1.55e+72) {
tmp = (b * c) + ((t * a) * -4.0);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * (k * -27.0)) + ((x * i) * -4.0) t_2 = c * (b + ((j * (k / c)) * -27.0)) tmp = 0 if c <= -7.2e+62: tmp = t_2 elif c <= 6e-171: tmp = t_1 elif c <= 3.3e-113: tmp = t * (a * -4.0) elif c <= 2.95e-43: tmp = t_1 elif c <= 1.55e+72: tmp = (b * c) + ((t * a) * -4.0) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * Float64(k * -27.0)) + Float64(Float64(x * i) * -4.0)) t_2 = Float64(c * Float64(b + Float64(Float64(j * Float64(k / c)) * -27.0))) tmp = 0.0 if (c <= -7.2e+62) tmp = t_2; elseif (c <= 6e-171) tmp = t_1; elseif (c <= 3.3e-113) tmp = Float64(t * Float64(a * -4.0)); elseif (c <= 2.95e-43) tmp = t_1; elseif (c <= 1.55e+72) tmp = Float64(Float64(b * c) + Float64(Float64(t * a) * -4.0)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = (j * (k * -27.0)) + ((x * i) * -4.0); t_2 = c * (b + ((j * (k / c)) * -27.0)); tmp = 0.0; if (c <= -7.2e+62) tmp = t_2; elseif (c <= 6e-171) tmp = t_1; elseif (c <= 3.3e-113) tmp = t * (a * -4.0); elseif (c <= 2.95e-43) tmp = t_1; elseif (c <= 1.55e+72) tmp = (b * c) + ((t * a) * -4.0); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x * i), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(b + N[(N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.2e+62], t$95$2, If[LessEqual[c, 6e-171], t$95$1, If[LessEqual[c, 3.3e-113], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.95e-43], t$95$1, If[LessEqual[c, 1.55e+72], N[(N[(b * c), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right) + \left(x \cdot i\right) \cdot -4\\
t_2 := c \cdot \left(b + \left(j \cdot \frac{k}{c}\right) \cdot -27\right)\\
\mathbf{if}\;c \leq -7.2 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-171}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.3 \cdot 10^{-113}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;c \leq 2.95 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+72}:\\
\;\;\;\;b \cdot c + \left(t \cdot a\right) \cdot -4\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -7.2e62 or 1.54999999999999994e72 < c Initial program 81.7%
Simplified83.5%
Taylor expanded in b around inf 70.8%
Taylor expanded in c around inf 74.4%
*-commutative74.4%
associate-/l*75.4%
Simplified75.4%
if -7.2e62 < c < 5.9999999999999999e-171 or 3.3000000000000002e-113 < c < 2.94999999999999988e-43Initial program 87.6%
Simplified89.3%
Taylor expanded in i around inf 49.0%
if 5.9999999999999999e-171 < c < 3.3000000000000002e-113Initial program 75.4%
Taylor expanded in t around -inf 72.8%
associate-*r*72.8%
neg-mul-172.8%
cancel-sign-sub-inv72.8%
*-commutative72.8%
metadata-eval72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in x around 0 42.1%
*-commutative42.1%
associate-*r*42.1%
*-commutative42.1%
associate-*l*42.1%
Simplified42.1%
if 2.94999999999999988e-43 < c < 1.54999999999999994e72Initial program 86.6%
Simplified72.8%
Taylor expanded in j around 0 65.9%
Taylor expanded in x around inf 52.4%
Taylor expanded in x around 0 57.9%
Final simplification60.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i)))
(t_2 (* 27.0 (* j k)))
(t_3 (* t (- (* (* x y) (* z (- -18.0))) (* a 4.0)))))
(if (<= t -3.6e+44)
t_3
(if (<= t 8.4e-63)
(- (* b c) (+ t_1 t_2))
(if (<= t 5.2e+59)
(- (+ (* b c) (* 18.0 (* t (* x (* y z))))) t_1)
(if (<= t 8e+115) (- (+ (* b c) (* (* t a) -4.0)) t_2) t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = 27.0 * (j * k);
double t_3 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -3.6e+44) {
tmp = t_3;
} else if (t <= 8.4e-63) {
tmp = (b * c) - (t_1 + t_2);
} else if (t <= 5.2e+59) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1;
} else if (t <= 8e+115) {
tmp = ((b * c) + ((t * a) * -4.0)) - t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
t_2 = 27.0d0 * (j * k)
t_3 = t * (((x * y) * (z * -(-18.0d0))) - (a * 4.0d0))
if (t <= (-3.6d+44)) then
tmp = t_3
else if (t <= 8.4d-63) then
tmp = (b * c) - (t_1 + t_2)
else if (t <= 5.2d+59) then
tmp = ((b * c) + (18.0d0 * (t * (x * (y * z))))) - t_1
else if (t <= 8d+115) then
tmp = ((b * c) + ((t * a) * (-4.0d0))) - t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 4.0 * (x * i);
double t_2 = 27.0 * (j * k);
double t_3 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -3.6e+44) {
tmp = t_3;
} else if (t <= 8.4e-63) {
tmp = (b * c) - (t_1 + t_2);
} else if (t <= 5.2e+59) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1;
} else if (t <= 8e+115) {
tmp = ((b * c) + ((t * a) * -4.0)) - t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 4.0 * (x * i) t_2 = 27.0 * (j * k) t_3 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)) tmp = 0 if t <= -3.6e+44: tmp = t_3 elif t <= 8.4e-63: tmp = (b * c) - (t_1 + t_2) elif t <= 5.2e+59: tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1 elif t <= 8e+115: tmp = ((b * c) + ((t * a) * -4.0)) - t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(4.0 * Float64(x * i)) t_2 = Float64(27.0 * Float64(j * k)) t_3 = Float64(t * Float64(Float64(Float64(x * y) * Float64(z * Float64(-(-18.0)))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -3.6e+44) tmp = t_3; elseif (t <= 8.4e-63) tmp = Float64(Float64(b * c) - Float64(t_1 + t_2)); elseif (t <= 5.2e+59) tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))) - t_1); elseif (t <= 8e+115) tmp = Float64(Float64(Float64(b * c) + Float64(Float64(t * a) * -4.0)) - t_2); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 4.0 * (x * i); t_2 = 27.0 * (j * k); t_3 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)); tmp = 0.0; if (t <= -3.6e+44) tmp = t_3; elseif (t <= 8.4e-63) tmp = (b * c) - (t_1 + t_2); elseif (t <= 5.2e+59) tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1; elseif (t <= 8e+115) tmp = ((b * c) + ((t * a) * -4.0)) - t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(N[(x * y), $MachinePrecision] * N[(z * (--18.0)), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+44], t$95$3, If[LessEqual[t, 8.4e-63], N[(N[(b * c), $MachinePrecision] - N[(t$95$1 + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+59], N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 8e+115], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 4 \cdot \left(x \cdot i\right)\\
t_2 := 27 \cdot \left(j \cdot k\right)\\
t_3 := t \cdot \left(\left(x \cdot y\right) \cdot \left(z \cdot \left(--18\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+44}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{-63}:\\
\;\;\;\;b \cdot c - \left(t\_1 + t\_2\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+59}:\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+115}:\\
\;\;\;\;\left(b \cdot c + \left(t \cdot a\right) \cdot -4\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -3.6e44 or 8.0000000000000001e115 < t Initial program 85.9%
Taylor expanded in t around -inf 76.1%
associate-*r*76.1%
neg-mul-176.1%
cancel-sign-sub-inv76.1%
*-commutative76.1%
metadata-eval76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in x around 0 76.1%
*-commutative76.1%
associate-*r*77.9%
associate-*l*77.9%
Simplified77.9%
if -3.6e44 < t < 8.4e-63Initial program 80.9%
Simplified80.1%
Taylor expanded in t around 0 80.6%
if 8.4e-63 < t < 5.19999999999999999e59Initial program 92.7%
Simplified95.8%
Taylor expanded in j around 0 87.2%
Taylor expanded in a around 0 74.8%
if 5.19999999999999999e59 < t < 8.0000000000000001e115Initial program 90.0%
Simplified89.8%
Taylor expanded in x around 0 90.5%
Final simplification79.4%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (- (* (* x y) (* z (- -18.0))) (* a 4.0)))))
(if (<= t -2.25e+33)
t_1
(if (<= t 1.4e-9)
(- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))
(if (or (<= t 1.3e+63) (not (<= t 7.4e+115)))
t_1
(+ (* b c) (* j (* k -27.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -2.25e+33) {
tmp = t_1;
} else if (t <= 1.4e-9) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else if ((t <= 1.3e+63) || !(t <= 7.4e+115)) {
tmp = t_1;
} 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 = t * (((x * y) * (z * -(-18.0d0))) - (a * 4.0d0))
if (t <= (-2.25d+33)) then
tmp = t_1
else if (t <= 1.4d-9) then
tmp = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
else if ((t <= 1.3d+63) .or. (.not. (t <= 7.4d+115))) then
tmp = t_1
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 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -2.25e+33) {
tmp = t_1;
} else if (t <= 1.4e-9) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else if ((t <= 1.3e+63) || !(t <= 7.4e+115)) {
tmp = t_1;
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)) tmp = 0 if t <= -2.25e+33: tmp = t_1 elif t <= 1.4e-9: tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))) elif (t <= 1.3e+63) or not (t <= 7.4e+115): tmp = t_1 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(t * Float64(Float64(Float64(x * y) * Float64(z * Float64(-(-18.0)))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -2.25e+33) tmp = t_1; elseif (t <= 1.4e-9) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); elseif ((t <= 1.3e+63) || !(t <= 7.4e+115)) tmp = t_1; 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 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)); tmp = 0.0; if (t <= -2.25e+33) tmp = t_1; elseif (t <= 1.4e-9) tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))); elseif ((t <= 1.3e+63) || ~((t <= 7.4e+115))) tmp = t_1; 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[(t * N[(N[(N[(x * y), $MachinePrecision] * N[(z * (--18.0)), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.25e+33], t$95$1, If[LessEqual[t, 1.4e-9], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 1.3e+63], N[Not[LessEqual[t, 7.4e+115]], $MachinePrecision]], t$95$1, N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(\left(x \cdot y\right) \cdot \left(z \cdot \left(--18\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -2.25 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-9}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+63} \lor \neg \left(t \leq 7.4 \cdot 10^{+115}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if t < -2.25e33 or 1.39999999999999992e-9 < t < 1.3000000000000001e63 or 7.40000000000000012e115 < t Initial program 86.0%
Taylor expanded in t around -inf 75.3%
associate-*r*75.3%
neg-mul-175.3%
cancel-sign-sub-inv75.3%
*-commutative75.3%
metadata-eval75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in x around 0 75.3%
*-commutative75.3%
associate-*r*76.2%
associate-*l*76.2%
Simplified76.2%
if -2.25e33 < t < 1.39999999999999992e-9Initial program 82.5%
Simplified81.8%
Taylor expanded in t around 0 80.0%
if 1.3000000000000001e63 < t < 7.40000000000000012e115Initial program 88.9%
Simplified88.7%
Taylor expanded in b around inf 89.2%
Final simplification78.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* j k)))
(t_2 (* t (- (* (* x y) (* z (- -18.0))) (* a 4.0)))))
(if (<= t -1.7e+49)
t_2
(if (<= t 1.55e-80)
(- (* b c) (+ (* 4.0 (* x i)) t_1))
(if (<= t 2.55e+116)
(- (+ (* b c) (* 18.0 (* t (* x (* y z))))) t_1)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double t_2 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -1.7e+49) {
tmp = t_2;
} else if (t <= 1.55e-80) {
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
} else if (t <= 2.55e+116) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 27.0d0 * (j * k)
t_2 = t * (((x * y) * (z * -(-18.0d0))) - (a * 4.0d0))
if (t <= (-1.7d+49)) then
tmp = t_2
else if (t <= 1.55d-80) then
tmp = (b * c) - ((4.0d0 * (x * i)) + t_1)
else if (t <= 2.55d+116) then
tmp = ((b * c) + (18.0d0 * (t * (x * (y * z))))) - t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double t_2 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0));
double tmp;
if (t <= -1.7e+49) {
tmp = t_2;
} else if (t <= 1.55e-80) {
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
} else if (t <= 2.55e+116) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (j * k) t_2 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)) tmp = 0 if t <= -1.7e+49: tmp = t_2 elif t <= 1.55e-80: tmp = (b * c) - ((4.0 * (x * i)) + t_1) elif t <= 2.55e+116: tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1 else: tmp = t_2 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(t * Float64(Float64(Float64(x * y) * Float64(z * Float64(-(-18.0)))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -1.7e+49) tmp = t_2; elseif (t <= 1.55e-80) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + t_1)); elseif (t <= 2.55e+116) tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))) - t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = 27.0 * (j * k); t_2 = t * (((x * y) * (z * -(-18.0))) - (a * 4.0)); tmp = 0.0; if (t <= -1.7e+49) tmp = t_2; elseif (t <= 1.55e-80) tmp = (b * c) - ((4.0 * (x * i)) + t_1); elseif (t <= 2.55e+116) tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(N[(x * y), $MachinePrecision] * N[(z * (--18.0)), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e+49], t$95$2, If[LessEqual[t, 1.55e-80], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.55e+116], N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
t_2 := t \cdot \left(\left(x \cdot y\right) \cdot \left(z \cdot \left(--18\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-80}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + t\_1\right)\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{+116}:\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.7e49 or 2.55e116 < t Initial program 85.9%
Taylor expanded in t around -inf 76.1%
associate-*r*76.1%
neg-mul-176.1%
cancel-sign-sub-inv76.1%
*-commutative76.1%
metadata-eval76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in x around 0 76.1%
*-commutative76.1%
associate-*r*77.9%
associate-*l*77.9%
Simplified77.9%
if -1.7e49 < t < 1.55000000000000008e-80Initial program 82.2%
Simplified80.6%
Taylor expanded in t around 0 81.1%
if 1.55000000000000008e-80 < t < 2.55e116Initial program 86.8%
Simplified91.5%
pow191.5%
associate-*l*91.5%
associate-*r*91.5%
Applied egg-rr91.5%
unpow191.5%
associate-*r*86.8%
Simplified86.8%
Taylor expanded in x around inf 80.4%
associate-*r*80.4%
*-commutative80.4%
associate-*r*80.4%
*-commutative80.4%
associate-*r*80.3%
Simplified80.3%
Taylor expanded in i around 0 83.4%
Final simplification80.2%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= k -2.05e+21)
(* k (- (* b (/ c k)) (* j 27.0)))
(if (<= k 3.4e+138)
(- (- (* b c) (* t (- (* a 4.0) (* 18.0 (* x (* y z)))))) (* 4.0 (* x i)))
(- (- (- (* b c) (* 4.0 (* t a))) (* (* x 4.0) i)) (* k (* j 27.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (k <= -2.05e+21) {
tmp = k * ((b * (c / k)) - (j * 27.0));
} else if (k <= 3.4e+138) {
tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i));
} else {
tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (k <= (-2.05d+21)) then
tmp = k * ((b * (c / k)) - (j * 27.0d0))
else if (k <= 3.4d+138) then
tmp = ((b * c) - (t * ((a * 4.0d0) - (18.0d0 * (x * (y * z)))))) - (4.0d0 * (x * i))
else
tmp = (((b * c) - (4.0d0 * (t * a))) - ((x * 4.0d0) * i)) - (k * (j * 27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (k <= -2.05e+21) {
tmp = k * ((b * (c / k)) - (j * 27.0));
} else if (k <= 3.4e+138) {
tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i));
} else {
tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if k <= -2.05e+21: tmp = k * ((b * (c / k)) - (j * 27.0)) elif k <= 3.4e+138: tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i)) else: tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (k <= -2.05e+21) tmp = Float64(k * Float64(Float64(b * Float64(c / k)) - Float64(j * 27.0))); elseif (k <= 3.4e+138) tmp = Float64(Float64(Float64(b * c) - Float64(t * Float64(Float64(a * 4.0) - Float64(18.0 * Float64(x * Float64(y * z)))))) - Float64(4.0 * Float64(x * i))); else tmp = Float64(Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(x * 4.0) * i)) - Float64(k * Float64(j * 27.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (k <= -2.05e+21) tmp = k * ((b * (c / k)) - (j * 27.0)); elseif (k <= 3.4e+138) tmp = ((b * c) - (t * ((a * 4.0) - (18.0 * (x * (y * z)))))) - (4.0 * (x * i)); else tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - (k * (j * 27.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[k, -2.05e+21], N[(k * N[(N[(b * N[(c / k), $MachinePrecision]), $MachinePrecision] - N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.4e+138], N[(N[(N[(b * c), $MachinePrecision] - N[(t * N[(N[(a * 4.0), $MachinePrecision] - N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -2.05 \cdot 10^{+21}:\\
\;\;\;\;k \cdot \left(b \cdot \frac{c}{k} - j \cdot 27\right)\\
\mathbf{elif}\;k \leq 3.4 \cdot 10^{+138}:\\
\;\;\;\;\left(b \cdot c - t \cdot \left(a \cdot 4 - 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if k < -2.05e21Initial program 77.9%
Simplified82.6%
Taylor expanded in b around inf 51.3%
Taylor expanded in k around -inf 51.3%
mul-1-neg51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
associate-/l*57.7%
Simplified57.7%
if -2.05e21 < k < 3.40000000000000011e138Initial program 86.8%
Simplified87.3%
Taylor expanded in j around 0 80.8%
if 3.40000000000000011e138 < k Initial program 83.9%
Taylor expanded in x around 0 90.5%
Final simplification76.3%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* (* t a) -4.0))))
(if (<= k -4.5e+98)
(* -27.0 (* j k))
(if (<= k 2.9e-27)
t_1
(if (<= k 2.6e+19)
(* (* z (* x y)) (* 18.0 t))
(if (<= k 1.45e+138) t_1 (+ (* 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 = (b * c) + ((t * a) * -4.0);
double tmp;
if (k <= -4.5e+98) {
tmp = -27.0 * (j * k);
} else if (k <= 2.9e-27) {
tmp = t_1;
} else if (k <= 2.6e+19) {
tmp = (z * (x * y)) * (18.0 * t);
} else if (k <= 1.45e+138) {
tmp = t_1;
} 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 = (b * c) + ((t * a) * (-4.0d0))
if (k <= (-4.5d+98)) then
tmp = (-27.0d0) * (j * k)
else if (k <= 2.9d-27) then
tmp = t_1
else if (k <= 2.6d+19) then
tmp = (z * (x * y)) * (18.0d0 * t)
else if (k <= 1.45d+138) then
tmp = t_1
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 = (b * c) + ((t * a) * -4.0);
double tmp;
if (k <= -4.5e+98) {
tmp = -27.0 * (j * k);
} else if (k <= 2.9e-27) {
tmp = t_1;
} else if (k <= 2.6e+19) {
tmp = (z * (x * y)) * (18.0 * t);
} else if (k <= 1.45e+138) {
tmp = t_1;
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + ((t * a) * -4.0) tmp = 0 if k <= -4.5e+98: tmp = -27.0 * (j * k) elif k <= 2.9e-27: tmp = t_1 elif k <= 2.6e+19: tmp = (z * (x * y)) * (18.0 * t) elif k <= 1.45e+138: tmp = t_1 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(b * c) + Float64(Float64(t * a) * -4.0)) tmp = 0.0 if (k <= -4.5e+98) tmp = Float64(-27.0 * Float64(j * k)); elseif (k <= 2.9e-27) tmp = t_1; elseif (k <= 2.6e+19) tmp = Float64(Float64(z * Float64(x * y)) * Float64(18.0 * t)); elseif (k <= 1.45e+138) tmp = t_1; 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 = (b * c) + ((t * a) * -4.0); tmp = 0.0; if (k <= -4.5e+98) tmp = -27.0 * (j * k); elseif (k <= 2.9e-27) tmp = t_1; elseif (k <= 2.6e+19) tmp = (z * (x * y)) * (18.0 * t); elseif (k <= 1.45e+138) tmp = t_1; 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[(b * c), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.5e+98], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.9e-27], t$95$1, If[LessEqual[k, 2.6e+19], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(18.0 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.45e+138], t$95$1, N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot c + \left(t \cdot a\right) \cdot -4\\
\mathbf{if}\;k \leq -4.5 \cdot 10^{+98}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;k \leq 2.9 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 2.6 \cdot 10^{+19}:\\
\;\;\;\;\left(z \cdot \left(x \cdot y\right)\right) \cdot \left(18 \cdot t\right)\\
\mathbf{elif}\;k \leq 1.45 \cdot 10^{+138}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if k < -4.5000000000000002e98Initial program 71.0%
Simplified77.2%
Taylor expanded in j around inf 37.2%
if -4.5000000000000002e98 < k < 2.90000000000000004e-27 or 2.6e19 < k < 1.45000000000000005e138Initial program 88.3%
Simplified88.8%
Taylor expanded in j around 0 83.1%
Taylor expanded in x around inf 77.5%
Taylor expanded in x around 0 52.1%
if 2.90000000000000004e-27 < k < 2.6e19Initial program 82.3%
Simplified82.1%
Taylor expanded in j around 0 55.1%
Taylor expanded in x around inf 64.1%
Taylor expanded in y around inf 38.5%
*-commutative38.5%
associate-*r*47.3%
*-commutative47.3%
associate-*l*47.4%
*-commutative47.4%
Simplified47.4%
if 1.45000000000000005e138 < k Initial program 83.9%
Simplified77.7%
Taylor expanded in b around inf 68.5%
Final simplification51.1%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* c (+ b (* (* j (/ k c)) -27.0)))))
(if (<= c -7.5e+62)
t_1
(if (<= c 3.5e-171)
(+ (* j (* k -27.0)) (* (* x i) -4.0))
(if (<= c 3.25e+35)
(* k (+ (* j -27.0) (* -4.0 (/ (* t a) k))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = c * (b + ((j * (k / c)) * -27.0));
double tmp;
if (c <= -7.5e+62) {
tmp = t_1;
} else if (c <= 3.5e-171) {
tmp = (j * (k * -27.0)) + ((x * i) * -4.0);
} else if (c <= 3.25e+35) {
tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = c * (b + ((j * (k / c)) * (-27.0d0)))
if (c <= (-7.5d+62)) then
tmp = t_1
else if (c <= 3.5d-171) then
tmp = (j * (k * (-27.0d0))) + ((x * i) * (-4.0d0))
else if (c <= 3.25d+35) then
tmp = k * ((j * (-27.0d0)) + ((-4.0d0) * ((t * a) / k)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = c * (b + ((j * (k / c)) * -27.0));
double tmp;
if (c <= -7.5e+62) {
tmp = t_1;
} else if (c <= 3.5e-171) {
tmp = (j * (k * -27.0)) + ((x * i) * -4.0);
} else if (c <= 3.25e+35) {
tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = c * (b + ((j * (k / c)) * -27.0)) tmp = 0 if c <= -7.5e+62: tmp = t_1 elif c <= 3.5e-171: tmp = (j * (k * -27.0)) + ((x * i) * -4.0) elif c <= 3.25e+35: tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(c * Float64(b + Float64(Float64(j * Float64(k / c)) * -27.0))) tmp = 0.0 if (c <= -7.5e+62) tmp = t_1; elseif (c <= 3.5e-171) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(Float64(x * i) * -4.0)); elseif (c <= 3.25e+35) tmp = Float64(k * Float64(Float64(j * -27.0) + Float64(-4.0 * Float64(Float64(t * a) / k)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = c * (b + ((j * (k / c)) * -27.0)); tmp = 0.0; if (c <= -7.5e+62) tmp = t_1; elseif (c <= 3.5e-171) tmp = (j * (k * -27.0)) + ((x * i) * -4.0); elseif (c <= 3.25e+35) tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(c * N[(b + N[(N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.5e+62], t$95$1, If[LessEqual[c, 3.5e-171], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x * i), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.25e+35], N[(k * N[(N[(j * -27.0), $MachinePrecision] + N[(-4.0 * N[(N[(t * a), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(b + \left(j \cdot \frac{k}{c}\right) \cdot -27\right)\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{-171}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + \left(x \cdot i\right) \cdot -4\\
\mathbf{elif}\;c \leq 3.25 \cdot 10^{+35}:\\
\;\;\;\;k \cdot \left(j \cdot -27 + -4 \cdot \frac{t \cdot a}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -7.49999999999999998e62 or 3.2500000000000002e35 < c Initial program 82.1%
Simplified83.1%
Taylor expanded in b around inf 70.7%
Taylor expanded in c around inf 74.2%
*-commutative74.2%
associate-/l*75.1%
Simplified75.1%
if -7.49999999999999998e62 < c < 3.49999999999999994e-171Initial program 88.8%
Simplified91.6%
Taylor expanded in i around inf 50.4%
if 3.49999999999999994e-171 < c < 3.2500000000000002e35Initial program 78.4%
Simplified78.4%
Taylor expanded in a around inf 53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in k around inf 48.8%
Final simplification61.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -1.9e+38)
(* b c)
(if (<= (* b c) 7.5e-42)
(* t (* a -4.0))
(if (<= (* b c) 6.8e+174) (* -27.0 (* j k)) (* b c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1.9e+38) {
tmp = b * c;
} else if ((b * c) <= 7.5e-42) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 6.8e+174) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-1.9d+38)) then
tmp = b * c
else if ((b * c) <= 7.5d-42) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 6.8d+174) then
tmp = (-27.0d0) * (j * k)
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1.9e+38) {
tmp = b * c;
} else if ((b * c) <= 7.5e-42) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 6.8e+174) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -1.9e+38: tmp = b * c elif (b * c) <= 7.5e-42: tmp = t * (a * -4.0) elif (b * c) <= 6.8e+174: tmp = -27.0 * (j * k) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -1.9e+38) tmp = Float64(b * c); elseif (Float64(b * c) <= 7.5e-42) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 6.8e+174) tmp = Float64(-27.0 * Float64(j * k)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((b * c) <= -1.9e+38) tmp = b * c; elseif ((b * c) <= 7.5e-42) tmp = t * (a * -4.0); elseif ((b * c) <= 6.8e+174) tmp = -27.0 * (j * k); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -1.9e+38], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 7.5e-42], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 6.8e+174], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -1.9 \cdot 10^{+38}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq 7.5 \cdot 10^{-42}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 6.8 \cdot 10^{+174}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.8999999999999999e38 or 6.8000000000000002e174 < (*.f64 b c) Initial program 82.2%
Simplified85.0%
pow185.0%
associate-*l*85.0%
associate-*r*85.0%
Applied egg-rr85.0%
unpow185.0%
associate-*r*84.1%
Simplified84.1%
Taylor expanded in b around inf 67.5%
if -1.8999999999999999e38 < (*.f64 b c) < 7.49999999999999972e-42Initial program 87.9%
Taylor expanded in t around -inf 51.9%
associate-*r*51.9%
neg-mul-151.9%
cancel-sign-sub-inv51.9%
*-commutative51.9%
metadata-eval51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in x around 0 29.4%
*-commutative29.4%
associate-*r*29.4%
*-commutative29.4%
associate-*l*29.4%
Simplified29.4%
if 7.49999999999999972e-42 < (*.f64 b c) < 6.8000000000000002e174Initial program 77.0%
Simplified77.2%
Taylor expanded in j around inf 34.9%
Final simplification46.0%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -1e+38)
(* b c)
(if (<= (* b c) 0.0)
(* t (* a -4.0))
(if (<= (* b c) 2e+170) (* i (* x -4.0)) (* b c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1e+38) {
tmp = b * c;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 2e+170) {
tmp = i * (x * -4.0);
} else {
tmp = b * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-1d+38)) then
tmp = b * c
else if ((b * c) <= 0.0d0) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 2d+170) then
tmp = i * (x * (-4.0d0))
else
tmp = b * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1e+38) {
tmp = b * c;
} else if ((b * c) <= 0.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 2e+170) {
tmp = i * (x * -4.0);
} else {
tmp = b * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -1e+38: tmp = b * c elif (b * c) <= 0.0: tmp = t * (a * -4.0) elif (b * c) <= 2e+170: tmp = i * (x * -4.0) else: tmp = b * c return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -1e+38) tmp = Float64(b * c); elseif (Float64(b * c) <= 0.0) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 2e+170) tmp = Float64(i * Float64(x * -4.0)); else tmp = Float64(b * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if ((b * c) <= -1e+38) tmp = b * c; elseif ((b * c) <= 0.0) tmp = t * (a * -4.0); elseif ((b * c) <= 2e+170) tmp = i * (x * -4.0); else tmp = b * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -1e+38], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 0.0], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2e+170], N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+38}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+170}:\\
\;\;\;\;i \cdot \left(x \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -9.99999999999999977e37 or 2.00000000000000007e170 < (*.f64 b c) Initial program 81.5%
Simplified84.2%
pow184.2%
associate-*l*84.2%
associate-*r*84.2%
Applied egg-rr84.2%
unpow184.2%
associate-*r*83.3%
Simplified83.3%
Taylor expanded in b around inf 66.9%
if -9.99999999999999977e37 < (*.f64 b c) < 0.0Initial program 88.4%
Taylor expanded in t around -inf 52.2%
associate-*r*52.2%
neg-mul-152.2%
cancel-sign-sub-inv52.2%
*-commutative52.2%
metadata-eval52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in x around 0 32.1%
*-commutative32.1%
associate-*r*32.1%
*-commutative32.1%
associate-*l*32.1%
Simplified32.1%
if 0.0 < (*.f64 b c) < 2.00000000000000007e170Initial program 84.1%
Simplified82.9%
pow182.9%
associate-*l*82.9%
associate-*r*82.9%
Applied egg-rr82.9%
unpow182.9%
associate-*r*85.6%
Simplified85.6%
Taylor expanded in i around inf 32.2%
*-commutative32.2%
associate-*r*32.2%
*-commutative32.2%
Simplified32.2%
Final simplification46.8%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (* c (+ b (* (* j (/ k c)) -27.0)))))
(if (<= c -6.8e+62)
t_2
(if (<= c 4.5e-171)
(+ t_1 (* (* x i) -4.0))
(if (<= c 3.35e+34) (+ (* (* t a) -4.0) t_1) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = c * (b + ((j * (k / c)) * -27.0));
double tmp;
if (c <= -6.8e+62) {
tmp = t_2;
} else if (c <= 4.5e-171) {
tmp = t_1 + ((x * i) * -4.0);
} else if (c <= 3.35e+34) {
tmp = ((t * a) * -4.0) + t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = c * (b + ((j * (k / c)) * (-27.0d0)))
if (c <= (-6.8d+62)) then
tmp = t_2
else if (c <= 4.5d-171) then
tmp = t_1 + ((x * i) * (-4.0d0))
else if (c <= 3.35d+34) then
tmp = ((t * a) * (-4.0d0)) + t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = c * (b + ((j * (k / c)) * -27.0));
double tmp;
if (c <= -6.8e+62) {
tmp = t_2;
} else if (c <= 4.5e-171) {
tmp = t_1 + ((x * i) * -4.0);
} else if (c <= 3.35e+34) {
tmp = ((t * a) * -4.0) + t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = c * (b + ((j * (k / c)) * -27.0)) tmp = 0 if c <= -6.8e+62: tmp = t_2 elif c <= 4.5e-171: tmp = t_1 + ((x * i) * -4.0) elif c <= 3.35e+34: tmp = ((t * a) * -4.0) + t_1 else: tmp = t_2 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(c * Float64(b + Float64(Float64(j * Float64(k / c)) * -27.0))) tmp = 0.0 if (c <= -6.8e+62) tmp = t_2; elseif (c <= 4.5e-171) tmp = Float64(t_1 + Float64(Float64(x * i) * -4.0)); elseif (c <= 3.35e+34) tmp = Float64(Float64(Float64(t * a) * -4.0) + t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (k * -27.0); t_2 = c * (b + ((j * (k / c)) * -27.0)); tmp = 0.0; if (c <= -6.8e+62) tmp = t_2; elseif (c <= 4.5e-171) tmp = t_1 + ((x * i) * -4.0); elseif (c <= 3.35e+34) tmp = ((t * a) * -4.0) + t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(b + N[(N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.8e+62], t$95$2, If[LessEqual[c, 4.5e-171], N[(t$95$1 + N[(N[(x * i), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.35e+34], N[(N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision] + t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := c \cdot \left(b + \left(j \cdot \frac{k}{c}\right) \cdot -27\right)\\
\mathbf{if}\;c \leq -6.8 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-171}:\\
\;\;\;\;t\_1 + \left(x \cdot i\right) \cdot -4\\
\mathbf{elif}\;c \leq 3.35 \cdot 10^{+34}:\\
\;\;\;\;\left(t \cdot a\right) \cdot -4 + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -6.80000000000000028e62 or 3.3500000000000001e34 < c Initial program 82.1%
Simplified83.1%
Taylor expanded in b around inf 70.7%
Taylor expanded in c around inf 74.2%
*-commutative74.2%
associate-/l*75.1%
Simplified75.1%
if -6.80000000000000028e62 < c < 4.5000000000000004e-171Initial program 88.8%
Simplified91.6%
Taylor expanded in i around inf 50.4%
if 4.5000000000000004e-171 < c < 3.3500000000000001e34Initial program 78.4%
Simplified78.4%
Taylor expanded in a around inf 53.5%
*-commutative53.5%
Simplified53.5%
Final simplification61.7%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -2.3e+45) (not (<= (* b c) 7.5e+174))) (* b c) (* -27.0 (* j k))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.3e+45) || !((b * c) <= 7.5e+174)) {
tmp = b * c;
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-2.3d+45)) .or. (.not. ((b * c) <= 7.5d+174))) then
tmp = b * c
else
tmp = (-27.0d0) * (j * k)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.3e+45) || !((b * c) <= 7.5e+174)) {
tmp = b * c;
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -2.3e+45) or not ((b * c) <= 7.5e+174): tmp = b * c else: tmp = -27.0 * (j * k) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -2.3e+45) || !(Float64(b * c) <= 7.5e+174)) tmp = Float64(b * c); else tmp = Float64(-27.0 * Float64(j * k)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (((b * c) <= -2.3e+45) || ~(((b * c) <= 7.5e+174))) tmp = b * c; else tmp = -27.0 * (j * k); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -2.3e+45], N[Not[LessEqual[N[(b * c), $MachinePrecision], 7.5e+174]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -2.3 \cdot 10^{+45} \lor \neg \left(b \cdot c \leq 7.5 \cdot 10^{+174}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -2.30000000000000012e45 or 7.5000000000000004e174 < (*.f64 b c) Initial program 81.9%
Simplified84.7%
pow184.7%
associate-*l*84.7%
associate-*r*84.7%
Applied egg-rr84.7%
unpow184.7%
associate-*r*83.8%
Simplified83.8%
Taylor expanded in b around inf 68.8%
if -2.30000000000000012e45 < (*.f64 b c) < 7.5000000000000004e174Initial program 85.9%
Simplified85.2%
Taylor expanded in j around inf 24.3%
Final simplification42.6%
(FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -2.65e+45) (not (<= (* b c) 1.8e+175))) (* b c) (* j (* k -27.0))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.65e+45) || !((b * c) <= 1.8e+175)) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-2.65d+45)) .or. (.not. ((b * c) <= 1.8d+175))) then
tmp = b * c
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.65e+45) || !((b * c) <= 1.8e+175)) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -2.65e+45) or not ((b * c) <= 1.8e+175): tmp = b * c else: tmp = j * (k * -27.0) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -2.65e+45) || !(Float64(b * c) <= 1.8e+175)) tmp = Float64(b * c); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (((b * c) <= -2.65e+45) || ~(((b * c) <= 1.8e+175))) tmp = b * c; else tmp = j * (k * -27.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -2.65e+45], N[Not[LessEqual[N[(b * c), $MachinePrecision], 1.8e+175]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -2.65 \cdot 10^{+45} \lor \neg \left(b \cdot c \leq 1.8 \cdot 10^{+175}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -2.64999999999999996e45 or 1.80000000000000017e175 < (*.f64 b c) Initial program 81.9%
Simplified84.7%
pow184.7%
associate-*l*84.7%
associate-*r*84.7%
Applied egg-rr84.7%
unpow184.7%
associate-*r*83.8%
Simplified83.8%
Taylor expanded in b around inf 68.8%
if -2.64999999999999996e45 < (*.f64 b c) < 1.80000000000000017e175Initial program 85.9%
Simplified85.2%
pow185.2%
associate-*l*85.2%
associate-*r*84.6%
Applied egg-rr84.6%
unpow184.6%
associate-*r*87.3%
Simplified87.3%
Taylor expanded in j around inf 24.3%
*-commutative24.3%
associate-*r*24.4%
Simplified24.4%
Final simplification42.6%
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= y -1e+203)
(* (* z (* x y)) (* 18.0 t))
(if (<= y 6e-52)
(+ (* b c) (* (* t a) -4.0))
(* 18.0 (* (* y z) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= -1e+203) {
tmp = (z * (x * y)) * (18.0 * t);
} else if (y <= 6e-52) {
tmp = (b * c) + ((t * a) * -4.0);
} else {
tmp = 18.0 * ((y * z) * (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (y <= (-1d+203)) then
tmp = (z * (x * y)) * (18.0d0 * t)
else if (y <= 6d-52) then
tmp = (b * c) + ((t * a) * (-4.0d0))
else
tmp = 18.0d0 * ((y * z) * (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= -1e+203) {
tmp = (z * (x * y)) * (18.0 * t);
} else if (y <= 6e-52) {
tmp = (b * c) + ((t * a) * -4.0);
} else {
tmp = 18.0 * ((y * z) * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if y <= -1e+203: tmp = (z * (x * y)) * (18.0 * t) elif y <= 6e-52: tmp = (b * c) + ((t * a) * -4.0) else: tmp = 18.0 * ((y * z) * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (y <= -1e+203) tmp = Float64(Float64(z * Float64(x * y)) * Float64(18.0 * t)); elseif (y <= 6e-52) tmp = Float64(Float64(b * c) + Float64(Float64(t * a) * -4.0)); else tmp = Float64(18.0 * Float64(Float64(y * z) * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0; if (y <= -1e+203) tmp = (z * (x * y)) * (18.0 * t); elseif (y <= 6e-52) tmp = (b * c) + ((t * a) * -4.0); else tmp = 18.0 * ((y * z) * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[y, -1e+203], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(18.0 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-52], N[(N[(b * c), $MachinePrecision] + N[(N[(t * a), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision], N[(18.0 * N[(N[(y * z), $MachinePrecision] * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+203}:\\
\;\;\;\;\left(z \cdot \left(x \cdot y\right)\right) \cdot \left(18 \cdot t\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-52}:\\
\;\;\;\;b \cdot c + \left(t \cdot a\right) \cdot -4\\
\mathbf{else}:\\
\;\;\;\;18 \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot t\right)\right)\\
\end{array}
\end{array}
if y < -9.9999999999999999e202Initial program 62.1%
Simplified57.9%
Taylor expanded in j around 0 53.2%
Taylor expanded in x around inf 62.7%
Taylor expanded in y around inf 39.4%
*-commutative39.4%
associate-*r*53.0%
*-commutative53.0%
associate-*l*53.1%
*-commutative53.1%
Simplified53.1%
if -9.9999999999999999e202 < y < 6e-52Initial program 89.9%
Simplified93.0%
Taylor expanded in j around 0 78.2%
Taylor expanded in x around inf 72.8%
Taylor expanded in x around 0 55.2%
if 6e-52 < y Initial program 79.0%
Simplified76.5%
Taylor expanded in j around 0 70.4%
Taylor expanded in x around inf 64.5%
Taylor expanded in y around inf 50.9%
associate-*r*47.0%
Simplified47.0%
Final simplification52.5%
(FPCore (x y z t a b c i j k) :precision binary64 (* b c))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
def code(x, y, z, t, a, b, c, i, j, k): return b * c
function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = b * c; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
\\
b \cdot c
\end{array}
Initial program 84.3%
Simplified85.0%
pow185.0%
associate-*l*85.0%
associate-*r*84.6%
Applied egg-rr84.6%
unpow184.6%
associate-*r*85.8%
Simplified85.8%
Taylor expanded in b around inf 31.5%
Final simplification31.5%
(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 2024077
(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
(if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))