
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -2.2e-17) (not (<= z 190000.0))) (* (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) (/ 1.0 c)) (/ (/ (fma 9.0 (* x y) (fma a (* t (* z -4.0)) b)) c) z)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -2.2e-17) || !(z <= 190000.0)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) * (1.0 / c);
} else {
tmp = (fma(9.0, (x * y), fma(a, (t * (z * -4.0)), b)) / c) / z;
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -2.2e-17) || !(z <= 190000.0)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) * Float64(1.0 / c)); else tmp = Float64(Float64(fma(9.0, Float64(x * y), fma(a, Float64(t * Float64(z * -4.0)), b)) / c) / z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -2.2e-17], N[Not[LessEqual[z, 190000.0]], $MachinePrecision]], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision] + N[(a * N[(t * N[(z * -4.0), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{-17} \lor \neg \left(z \leq 190000\right):\\
\;\;\;\;\left(\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)\right) \cdot \frac{1}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(9, x \cdot y, \mathsf{fma}\left(a, t \cdot \left(z \cdot -4\right), b\right)\right)}{c}}{z}\\
\end{array}
\end{array}
if z < -2.2e-17 or 1.9e5 < z Initial program 62.1%
associate-+l-62.1%
*-commutative62.1%
associate-*r*60.2%
*-commutative60.2%
associate-+l-60.2%
Simplified65.0%
associate-/r*77.4%
div-inv77.5%
associate-+l-77.5%
associate-*r*70.7%
associate-+l-70.7%
associate-*l*70.7%
associate-*r*77.5%
Applied egg-rr77.5%
Taylor expanded in x around 0 88.9%
if -2.2e-17 < z < 1.9e5Initial program 94.4%
associate-+l-94.4%
*-commutative94.4%
associate-*r*94.4%
*-commutative94.4%
associate-+l-94.4%
Simplified86.9%
Taylor expanded in c around 0 94.4%
Simplified96.4%
Final simplification92.2%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -5.6e+44) (not (<= z 32000000.0))) (* (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) (/ 1.0 c)) (/ (fma x (* 9.0 y) (+ b (* t (* a (* z -4.0))))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -5.6e+44) || !(z <= 32000000.0)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) * (1.0 / c);
} else {
tmp = fma(x, (9.0 * y), (b + (t * (a * (z * -4.0))))) / (z * c);
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -5.6e+44) || !(z <= 32000000.0)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) * Float64(1.0 / c)); else tmp = Float64(fma(x, Float64(9.0 * y), Float64(b + Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(z * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -5.6e+44], N[Not[LessEqual[z, 32000000.0]], $MachinePrecision]], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(9.0 * y), $MachinePrecision] + N[(b + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+44} \lor \neg \left(z \leq 32000000\right):\\
\;\;\;\;\left(\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)\right) \cdot \frac{1}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, 9 \cdot y, b + t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -5.6000000000000002e44 or 3.2e7 < z Initial program 61.3%
associate-+l-61.3%
*-commutative61.3%
associate-*r*59.2%
*-commutative59.2%
associate-+l-59.2%
Simplified64.3%
associate-/r*77.5%
div-inv77.5%
associate-+l-77.5%
associate-*r*70.4%
associate-+l-70.4%
associate-*l*70.4%
associate-*r*77.6%
Applied egg-rr77.6%
Taylor expanded in x around 0 89.7%
if -5.6000000000000002e44 < z < 3.2e7Initial program 93.2%
associate-+l-93.2%
associate-*l*93.3%
fma-neg93.3%
neg-sub093.3%
associate-+l-93.3%
neg-sub093.3%
+-commutative93.3%
distribute-rgt-neg-out93.3%
*-commutative93.3%
associate-*l*93.3%
distribute-rgt-neg-in93.3%
*-commutative93.3%
distribute-rgt-neg-in93.3%
distribute-rgt-neg-in93.3%
metadata-eval93.3%
Simplified93.3%
Final simplification91.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (/ x z) (/ 9.0 (/ c y)))) (t_2 (* -4.0 (* a (/ t c)))))
(if (<= (* 9.0 x) -5e+163)
(* 9.0 (/ x (* c (/ z y))))
(if (<= (* 9.0 x) -5e+107)
(* -4.0 (* a (/ 1.0 (/ c t))))
(if (<= (* 9.0 x) -2e+38)
t_1
(if (<= (* 9.0 x) -5e-87)
t_2
(if (<= (* 9.0 x) -2e-146)
(/ (/ b c) z)
(if (<= (* 9.0 x) 200000000000.0) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (x / z) * (9.0 / (c / y));
double t_2 = -4.0 * (a * (t / c));
double tmp;
if ((9.0 * x) <= -5e+163) {
tmp = 9.0 * (x / (c * (z / y)));
} else if ((9.0 * x) <= -5e+107) {
tmp = -4.0 * (a * (1.0 / (c / t)));
} else if ((9.0 * x) <= -2e+38) {
tmp = t_1;
} else if ((9.0 * x) <= -5e-87) {
tmp = t_2;
} else if ((9.0 * x) <= -2e-146) {
tmp = (b / c) / z;
} else if ((9.0 * x) <= 200000000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x / z) * (9.0d0 / (c / y))
t_2 = (-4.0d0) * (a * (t / c))
if ((9.0d0 * x) <= (-5d+163)) then
tmp = 9.0d0 * (x / (c * (z / y)))
else if ((9.0d0 * x) <= (-5d+107)) then
tmp = (-4.0d0) * (a * (1.0d0 / (c / t)))
else if ((9.0d0 * x) <= (-2d+38)) then
tmp = t_1
else if ((9.0d0 * x) <= (-5d-87)) then
tmp = t_2
else if ((9.0d0 * x) <= (-2d-146)) then
tmp = (b / c) / z
else if ((9.0d0 * x) <= 200000000000.0d0) then
tmp = t_2
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 t_1 = (x / z) * (9.0 / (c / y));
double t_2 = -4.0 * (a * (t / c));
double tmp;
if ((9.0 * x) <= -5e+163) {
tmp = 9.0 * (x / (c * (z / y)));
} else if ((9.0 * x) <= -5e+107) {
tmp = -4.0 * (a * (1.0 / (c / t)));
} else if ((9.0 * x) <= -2e+38) {
tmp = t_1;
} else if ((9.0 * x) <= -5e-87) {
tmp = t_2;
} else if ((9.0 * x) <= -2e-146) {
tmp = (b / c) / z;
} else if ((9.0 * x) <= 200000000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (x / z) * (9.0 / (c / y)) t_2 = -4.0 * (a * (t / c)) tmp = 0 if (9.0 * x) <= -5e+163: tmp = 9.0 * (x / (c * (z / y))) elif (9.0 * x) <= -5e+107: tmp = -4.0 * (a * (1.0 / (c / t))) elif (9.0 * x) <= -2e+38: tmp = t_1 elif (9.0 * x) <= -5e-87: tmp = t_2 elif (9.0 * x) <= -2e-146: tmp = (b / c) / z elif (9.0 * x) <= 200000000000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(x / z) * Float64(9.0 / Float64(c / y))) t_2 = Float64(-4.0 * Float64(a * Float64(t / c))) tmp = 0.0 if (Float64(9.0 * x) <= -5e+163) tmp = Float64(9.0 * Float64(x / Float64(c * Float64(z / y)))); elseif (Float64(9.0 * x) <= -5e+107) tmp = Float64(-4.0 * Float64(a * Float64(1.0 / Float64(c / t)))); elseif (Float64(9.0 * x) <= -2e+38) tmp = t_1; elseif (Float64(9.0 * x) <= -5e-87) tmp = t_2; elseif (Float64(9.0 * x) <= -2e-146) tmp = Float64(Float64(b / c) / z); elseif (Float64(9.0 * x) <= 200000000000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (x / z) * (9.0 / (c / y)); t_2 = -4.0 * (a * (t / c)); tmp = 0.0; if ((9.0 * x) <= -5e+163) tmp = 9.0 * (x / (c * (z / y))); elseif ((9.0 * x) <= -5e+107) tmp = -4.0 * (a * (1.0 / (c / t))); elseif ((9.0 * x) <= -2e+38) tmp = t_1; elseif ((9.0 * x) <= -5e-87) tmp = t_2; elseif ((9.0 * x) <= -2e-146) tmp = (b / c) / z; elseif ((9.0 * x) <= 200000000000.0) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * N[(9.0 / N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(9.0 * x), $MachinePrecision], -5e+163], N[(9.0 * N[(x / N[(c * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(9.0 * x), $MachinePrecision], -5e+107], N[(-4.0 * N[(a * N[(1.0 / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(9.0 * x), $MachinePrecision], -2e+38], t$95$1, If[LessEqual[N[(9.0 * x), $MachinePrecision], -5e-87], t$95$2, If[LessEqual[N[(9.0 * x), $MachinePrecision], -2e-146], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[N[(9.0 * x), $MachinePrecision], 200000000000.0], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{z} \cdot \frac{9}{\frac{c}{y}}\\
t_2 := -4 \cdot \left(a \cdot \frac{t}{c}\right)\\
\mathbf{if}\;9 \cdot x \leq -5 \cdot 10^{+163}:\\
\;\;\;\;9 \cdot \frac{x}{c \cdot \frac{z}{y}}\\
\mathbf{elif}\;9 \cdot x \leq -5 \cdot 10^{+107}:\\
\;\;\;\;-4 \cdot \left(a \cdot \frac{1}{\frac{c}{t}}\right)\\
\mathbf{elif}\;9 \cdot x \leq -2 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;9 \cdot x \leq -5 \cdot 10^{-87}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;9 \cdot x \leq -2 \cdot 10^{-146}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;9 \cdot x \leq 200000000000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (*.f64 x 9) < -5e163Initial program 80.5%
associate-+l-80.5%
*-commutative80.5%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
Simplified80.8%
associate-/r*77.9%
div-inv77.9%
associate-+l-77.9%
associate-*r*71.5%
associate-+l-71.5%
associate-*l*71.6%
associate-*r*78.0%
Applied egg-rr78.0%
Taylor expanded in x around inf 70.7%
times-frac70.9%
Simplified70.9%
*-commutative70.9%
clear-num70.8%
frac-times76.9%
*-un-lft-identity76.9%
Applied egg-rr76.9%
if -5e163 < (*.f64 x 9) < -5.0000000000000002e107Initial program 67.3%
associate-+l-67.3%
*-commutative67.3%
associate-*r*67.3%
*-commutative67.3%
associate-+l-67.3%
Simplified67.3%
Taylor expanded in z around inf 51.8%
*-commutative51.8%
associate-/l*51.7%
Simplified51.7%
div-inv51.9%
Applied egg-rr51.9%
if -5.0000000000000002e107 < (*.f64 x 9) < -1.99999999999999995e38 or 2e11 < (*.f64 x 9) Initial program 76.4%
associate-+l-76.4%
*-commutative76.4%
associate-*r*76.4%
*-commutative76.4%
associate-+l-76.4%
Simplified75.1%
Taylor expanded in x around inf 44.3%
associate-*r/44.2%
associate-*r*44.2%
*-commutative44.2%
associate-*r*44.3%
*-commutative44.3%
times-frac51.7%
associate-/l*51.7%
Simplified51.7%
if -1.99999999999999995e38 < (*.f64 x 9) < -5.00000000000000042e-87 or -2.00000000000000005e-146 < (*.f64 x 9) < 2e11Initial program 76.2%
associate-+l-76.2%
*-commutative76.2%
associate-*r*73.3%
*-commutative73.3%
associate-+l-73.3%
Simplified74.0%
Taylor expanded in z around inf 59.8%
*-commutative59.8%
associate-/l*60.3%
Simplified60.3%
div-inv60.2%
Applied egg-rr60.2%
Taylor expanded in a around 0 59.8%
associate-*r/60.3%
Simplified60.3%
if -5.00000000000000042e-87 < (*.f64 x 9) < -2.00000000000000005e-146Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
associate-*r*85.4%
*-commutative85.4%
associate-+l-85.4%
Simplified71.8%
Taylor expanded in b around inf 53.0%
associate-/r*65.7%
Simplified65.7%
Final simplification59.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (- (/ b z) (* 4.0 (* a t))) c)))
(if (<= (* 9.0 x) -5e+163)
(* 9.0 (/ x (* c (/ z y))))
(if (<= (* 9.0 x) -5e+76)
t_1
(if (<= (* 9.0 x) -2e+52)
(/ (* 9.0 x) (* z (/ c y)))
(if (or (<= (* 9.0 x) 200000000000.0) (not (<= (* 9.0 x) 5e+140)))
t_1
(* (/ x z) (/ 9.0 (/ c y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((b / z) - (4.0 * (a * t))) / c;
double tmp;
if ((9.0 * x) <= -5e+163) {
tmp = 9.0 * (x / (c * (z / y)));
} else if ((9.0 * x) <= -5e+76) {
tmp = t_1;
} else if ((9.0 * x) <= -2e+52) {
tmp = (9.0 * x) / (z * (c / y));
} else if (((9.0 * x) <= 200000000000.0) || !((9.0 * x) <= 5e+140)) {
tmp = t_1;
} else {
tmp = (x / z) * (9.0 / (c / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = ((b / z) - (4.0d0 * (a * t))) / c
if ((9.0d0 * x) <= (-5d+163)) then
tmp = 9.0d0 * (x / (c * (z / y)))
else if ((9.0d0 * x) <= (-5d+76)) then
tmp = t_1
else if ((9.0d0 * x) <= (-2d+52)) then
tmp = (9.0d0 * x) / (z * (c / y))
else if (((9.0d0 * x) <= 200000000000.0d0) .or. (.not. ((9.0d0 * x) <= 5d+140))) then
tmp = t_1
else
tmp = (x / z) * (9.0d0 / (c / y))
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 t_1 = ((b / z) - (4.0 * (a * t))) / c;
double tmp;
if ((9.0 * x) <= -5e+163) {
tmp = 9.0 * (x / (c * (z / y)));
} else if ((9.0 * x) <= -5e+76) {
tmp = t_1;
} else if ((9.0 * x) <= -2e+52) {
tmp = (9.0 * x) / (z * (c / y));
} else if (((9.0 * x) <= 200000000000.0) || !((9.0 * x) <= 5e+140)) {
tmp = t_1;
} else {
tmp = (x / z) * (9.0 / (c / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((b / z) - (4.0 * (a * t))) / c tmp = 0 if (9.0 * x) <= -5e+163: tmp = 9.0 * (x / (c * (z / y))) elif (9.0 * x) <= -5e+76: tmp = t_1 elif (9.0 * x) <= -2e+52: tmp = (9.0 * x) / (z * (c / y)) elif ((9.0 * x) <= 200000000000.0) or not ((9.0 * x) <= 5e+140): tmp = t_1 else: tmp = (x / z) * (9.0 / (c / y)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c) tmp = 0.0 if (Float64(9.0 * x) <= -5e+163) tmp = Float64(9.0 * Float64(x / Float64(c * Float64(z / y)))); elseif (Float64(9.0 * x) <= -5e+76) tmp = t_1; elseif (Float64(9.0 * x) <= -2e+52) tmp = Float64(Float64(9.0 * x) / Float64(z * Float64(c / y))); elseif ((Float64(9.0 * x) <= 200000000000.0) || !(Float64(9.0 * x) <= 5e+140)) tmp = t_1; else tmp = Float64(Float64(x / z) * Float64(9.0 / Float64(c / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((b / z) - (4.0 * (a * t))) / c; tmp = 0.0; if ((9.0 * x) <= -5e+163) tmp = 9.0 * (x / (c * (z / y))); elseif ((9.0 * x) <= -5e+76) tmp = t_1; elseif ((9.0 * x) <= -2e+52) tmp = (9.0 * x) / (z * (c / y)); elseif (((9.0 * x) <= 200000000000.0) || ~(((9.0 * x) <= 5e+140))) tmp = t_1; else tmp = (x / z) * (9.0 / (c / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[N[(9.0 * x), $MachinePrecision], -5e+163], N[(9.0 * N[(x / N[(c * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(9.0 * x), $MachinePrecision], -5e+76], t$95$1, If[LessEqual[N[(9.0 * x), $MachinePrecision], -2e+52], N[(N[(9.0 * x), $MachinePrecision] / N[(z * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[N[(9.0 * x), $MachinePrecision], 200000000000.0], N[Not[LessEqual[N[(9.0 * x), $MachinePrecision], 5e+140]], $MachinePrecision]], t$95$1, N[(N[(x / z), $MachinePrecision] * N[(9.0 / N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{if}\;9 \cdot x \leq -5 \cdot 10^{+163}:\\
\;\;\;\;9 \cdot \frac{x}{c \cdot \frac{z}{y}}\\
\mathbf{elif}\;9 \cdot x \leq -5 \cdot 10^{+76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;9 \cdot x \leq -2 \cdot 10^{+52}:\\
\;\;\;\;\frac{9 \cdot x}{z \cdot \frac{c}{y}}\\
\mathbf{elif}\;9 \cdot x \leq 200000000000 \lor \neg \left(9 \cdot x \leq 5 \cdot 10^{+140}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \frac{9}{\frac{c}{y}}\\
\end{array}
\end{array}
if (*.f64 x 9) < -5e163Initial program 80.5%
associate-+l-80.5%
*-commutative80.5%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
Simplified80.8%
associate-/r*77.9%
div-inv77.9%
associate-+l-77.9%
associate-*r*71.5%
associate-+l-71.5%
associate-*l*71.6%
associate-*r*78.0%
Applied egg-rr78.0%
Taylor expanded in x around inf 70.7%
times-frac70.9%
Simplified70.9%
*-commutative70.9%
clear-num70.8%
frac-times76.9%
*-un-lft-identity76.9%
Applied egg-rr76.9%
if -5e163 < (*.f64 x 9) < -4.99999999999999991e76 or -2e52 < (*.f64 x 9) < 2e11 or 5.00000000000000008e140 < (*.f64 x 9) Initial program 76.5%
associate-+l-76.5%
*-commutative76.5%
associate-*r*75.6%
*-commutative75.6%
associate-+l-75.6%
Simplified75.1%
associate-/r*81.5%
div-inv81.5%
associate-+l-81.5%
associate-*r*78.6%
associate-+l-78.6%
associate-*l*78.6%
associate-*r*81.5%
Applied egg-rr81.5%
Taylor expanded in x around 0 87.8%
Taylor expanded in x around 0 73.3%
if -4.99999999999999991e76 < (*.f64 x 9) < -2e52Initial program 98.8%
associate-+l-98.8%
*-commutative98.8%
associate-*r*98.8%
*-commutative98.8%
associate-+l-98.8%
Simplified98.8%
Taylor expanded in x around inf 98.8%
associate-*r/98.8%
*-commutative98.8%
Simplified98.8%
times-frac99.6%
Applied egg-rr99.6%
*-commutative99.6%
associate-/l*99.6%
frac-times100.0%
Applied egg-rr100.0%
if 2e11 < (*.f64 x 9) < 5.00000000000000008e140Initial program 69.1%
associate-+l-69.1%
*-commutative69.1%
associate-*r*65.7%
*-commutative65.7%
associate-+l-65.7%
Simplified62.4%
Taylor expanded in x around inf 38.1%
associate-*r/38.0%
associate-*r*38.0%
*-commutative38.0%
associate-*r*38.0%
*-commutative38.0%
times-frac51.4%
associate-/l*51.5%
Simplified51.5%
Final simplification71.8%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -2e+45) (not (<= z 100000.0))) (* (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) (/ 1.0 c)) (/ (+ b (- (* x (* 9.0 y)) (* a (* z (* 4.0 t))))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -2e+45) || !(z <= 100000.0)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) * (1.0 / c);
} else {
tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-2d+45)) .or. (.not. (z <= 100000.0d0))) then
tmp = (((9.0d0 * ((x * y) / z)) + (b / z)) - (4.0d0 * (a * t))) * (1.0d0 / c)
else
tmp = (b + ((x * (9.0d0 * y)) - (a * (z * (4.0d0 * t))))) / (z * 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 tmp;
if ((z <= -2e+45) || !(z <= 100000.0)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) * (1.0 / c);
} else {
tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -2e+45) or not (z <= 100000.0): tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) * (1.0 / c) else: tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -2e+45) || !(z <= 100000.0)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) * Float64(1.0 / c)); else tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(a * Float64(z * Float64(4.0 * t))))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -2e+45) || ~((z <= 100000.0))) tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) * (1.0 / c); else tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -2e+45], N[Not[LessEqual[z, 100000.0]], $MachinePrecision]], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(z * N[(4.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+45} \lor \neg \left(z \leq 100000\right):\\
\;\;\;\;\left(\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)\right) \cdot \frac{1}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - a \cdot \left(z \cdot \left(4 \cdot t\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -1.9999999999999999e45 or 1e5 < z Initial program 61.3%
associate-+l-61.3%
*-commutative61.3%
associate-*r*59.2%
*-commutative59.2%
associate-+l-59.2%
Simplified64.3%
associate-/r*77.5%
div-inv77.5%
associate-+l-77.5%
associate-*r*70.4%
associate-+l-70.4%
associate-*l*70.4%
associate-*r*77.6%
Applied egg-rr77.6%
Taylor expanded in x around 0 89.7%
if -1.9999999999999999e45 < z < 1e5Initial program 93.2%
associate-+l-93.2%
*-commutative93.2%
associate-*r*93.2%
*-commutative93.2%
associate-+l-93.2%
Simplified86.2%
associate-*r*93.2%
cancel-sign-sub-inv93.2%
associate-*l*93.3%
associate-*l*93.3%
Applied egg-rr93.3%
Final simplification91.4%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -7.6e+217) (not (<= z 1.6e+180))) (/ (- (/ b z) (* 4.0 (* a t))) c) (/ (+ b (- (* y (* 9.0 x)) (* (* a t) (* z 4.0)))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -7.6e+217) || !(z <= 1.6e+180)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (9.0 * x)) - ((a * t) * (z * 4.0)))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-7.6d+217)) .or. (.not. (z <= 1.6d+180))) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((y * (9.0d0 * x)) - ((a * t) * (z * 4.0d0)))) / (z * 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 tmp;
if ((z <= -7.6e+217) || !(z <= 1.6e+180)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (9.0 * x)) - ((a * t) * (z * 4.0)))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -7.6e+217) or not (z <= 1.6e+180): tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = (b + ((y * (9.0 * x)) - ((a * t) * (z * 4.0)))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -7.6e+217) || !(z <= 1.6e+180)) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -7.6e+217) || ~((z <= 1.6e+180))) tmp = ((b / z) - (4.0 * (a * t))) / c; else tmp = (b + ((y * (9.0 * x)) - ((a * t) * (z * 4.0)))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -7.6e+217], N[Not[LessEqual[z, 1.6e+180]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(9.0 * x), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{+217} \lor \neg \left(z \leq 1.6 \cdot 10^{+180}\right):\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -7.60000000000000004e217 or 1.59999999999999997e180 < z Initial program 43.0%
associate-+l-43.0%
*-commutative43.0%
associate-*r*39.0%
*-commutative39.0%
associate-+l-39.0%
Simplified46.3%
associate-/r*65.5%
div-inv65.4%
associate-+l-65.4%
associate-*r*55.4%
associate-+l-55.4%
associate-*l*55.4%
associate-*r*65.4%
Applied egg-rr65.4%
Taylor expanded in x around 0 88.2%
Taylor expanded in x around 0 85.2%
if -7.60000000000000004e217 < z < 1.59999999999999997e180Initial program 88.4%
associate-+l-88.4%
*-commutative88.4%
associate-*r*88.3%
*-commutative88.3%
associate-+l-88.3%
Simplified84.8%
Final simplification84.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -3.6e+180) (not (<= z 1.5e+180))) (/ (- (/ b z) (* 4.0 (* a t))) c) (/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -3.6e+180) || !(z <= 1.5e+180)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-3.6d+180)) .or. (.not. (z <= 1.5d+180))) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (z * 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 tmp;
if ((z <= -3.6e+180) || !(z <= 1.5e+180)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -3.6e+180) or not (z <= 1.5e+180): tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -3.6e+180) || !(z <= 1.5e+180)) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -3.6e+180) || ~((z <= 1.5e+180))) tmp = ((b / z) - (4.0 * (a * t))) / c; else tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -3.6e+180], N[Not[LessEqual[z, 1.5e+180]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(9.0 * x), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{+180} \lor \neg \left(z \leq 1.5 \cdot 10^{+180}\right):\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -3.6000000000000002e180 or 1.50000000000000001e180 < z Initial program 43.5%
associate-+l-43.5%
*-commutative43.5%
associate-*r*41.1%
*-commutative41.1%
associate-+l-41.1%
Simplified47.9%
associate-/r*67.4%
div-inv67.4%
associate-+l-67.4%
associate-*r*56.5%
associate-+l-56.5%
associate-*l*56.5%
associate-*r*67.4%
Applied egg-rr67.4%
Taylor expanded in x around 0 88.8%
Taylor expanded in x around 0 84.7%
if -3.6000000000000002e180 < z < 1.50000000000000001e180Initial program 89.2%
Final simplification87.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -1.35e+183) (not (<= z 1.55e+180))) (/ (- (/ b z) (* 4.0 (* a t))) c) (/ (+ b (- (* x (* 9.0 y)) (* a (* z (* 4.0 t))))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1.35e+183) || !(z <= 1.55e+180)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-1.35d+183)) .or. (.not. (z <= 1.55d+180))) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((x * (9.0d0 * y)) - (a * (z * (4.0d0 * t))))) / (z * 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 tmp;
if ((z <= -1.35e+183) || !(z <= 1.55e+180)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -1.35e+183) or not (z <= 1.55e+180): tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -1.35e+183) || !(z <= 1.55e+180)) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(a * Float64(z * Float64(4.0 * t))))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -1.35e+183) || ~((z <= 1.55e+180))) tmp = ((b / z) - (4.0 * (a * t))) / c; else tmp = (b + ((x * (9.0 * y)) - (a * (z * (4.0 * t))))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.35e+183], N[Not[LessEqual[z, 1.55e+180]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(z * N[(4.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+183} \lor \neg \left(z \leq 1.55 \cdot 10^{+180}\right):\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - a \cdot \left(z \cdot \left(4 \cdot t\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -1.34999999999999991e183 or 1.54999999999999999e180 < z Initial program 43.5%
associate-+l-43.5%
*-commutative43.5%
associate-*r*41.1%
*-commutative41.1%
associate-+l-41.1%
Simplified47.9%
associate-/r*67.4%
div-inv67.4%
associate-+l-67.4%
associate-*r*56.5%
associate-+l-56.5%
associate-*l*56.5%
associate-*r*67.4%
Applied egg-rr67.4%
Taylor expanded in x around 0 88.8%
Taylor expanded in x around 0 84.7%
if -1.34999999999999991e183 < z < 1.54999999999999999e180Initial program 89.2%
associate-+l-89.2%
*-commutative89.2%
associate-*r*88.6%
*-commutative88.6%
associate-+l-88.6%
Simplified85.0%
associate-*r*89.2%
cancel-sign-sub-inv89.2%
associate-*l*89.2%
associate-*l*89.2%
Applied egg-rr89.2%
Final simplification88.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* -4.0 (* a (/ t c)))) (t_2 (* 9.0 (* (/ x c) (/ y z)))))
(if (<= x -6e+162)
t_2
(if (<= x -1e+106)
t_1
(if (<= x -4.4e+35)
t_2
(if (<= x -2.6e-88)
t_1
(if (<= x -2.2e-147)
(/ (/ b c) z)
(if (<= x 3.7e+67) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * (a * (t / c));
double t_2 = 9.0 * ((x / c) * (y / z));
double tmp;
if (x <= -6e+162) {
tmp = t_2;
} else if (x <= -1e+106) {
tmp = t_1;
} else if (x <= -4.4e+35) {
tmp = t_2;
} else if (x <= -2.6e-88) {
tmp = t_1;
} else if (x <= -2.2e-147) {
tmp = (b / c) / z;
} else if (x <= 3.7e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-4.0d0) * (a * (t / c))
t_2 = 9.0d0 * ((x / c) * (y / z))
if (x <= (-6d+162)) then
tmp = t_2
else if (x <= (-1d+106)) then
tmp = t_1
else if (x <= (-4.4d+35)) then
tmp = t_2
else if (x <= (-2.6d-88)) then
tmp = t_1
else if (x <= (-2.2d-147)) then
tmp = (b / c) / z
else if (x <= 3.7d+67) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * (a * (t / c));
double t_2 = 9.0 * ((x / c) * (y / z));
double tmp;
if (x <= -6e+162) {
tmp = t_2;
} else if (x <= -1e+106) {
tmp = t_1;
} else if (x <= -4.4e+35) {
tmp = t_2;
} else if (x <= -2.6e-88) {
tmp = t_1;
} else if (x <= -2.2e-147) {
tmp = (b / c) / z;
} else if (x <= 3.7e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = -4.0 * (a * (t / c)) t_2 = 9.0 * ((x / c) * (y / z)) tmp = 0 if x <= -6e+162: tmp = t_2 elif x <= -1e+106: tmp = t_1 elif x <= -4.4e+35: tmp = t_2 elif x <= -2.6e-88: tmp = t_1 elif x <= -2.2e-147: tmp = (b / c) / z elif x <= 3.7e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(-4.0 * Float64(a * Float64(t / c))) t_2 = Float64(9.0 * Float64(Float64(x / c) * Float64(y / z))) tmp = 0.0 if (x <= -6e+162) tmp = t_2; elseif (x <= -1e+106) tmp = t_1; elseif (x <= -4.4e+35) tmp = t_2; elseif (x <= -2.6e-88) tmp = t_1; elseif (x <= -2.2e-147) tmp = Float64(Float64(b / c) / z); elseif (x <= 3.7e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = -4.0 * (a * (t / c)); t_2 = 9.0 * ((x / c) * (y / z)); tmp = 0.0; if (x <= -6e+162) tmp = t_2; elseif (x <= -1e+106) tmp = t_1; elseif (x <= -4.4e+35) tmp = t_2; elseif (x <= -2.6e-88) tmp = t_1; elseif (x <= -2.2e-147) tmp = (b / c) / z; elseif (x <= 3.7e+67) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(9.0 * N[(N[(x / c), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6e+162], t$95$2, If[LessEqual[x, -1e+106], t$95$1, If[LessEqual[x, -4.4e+35], t$95$2, If[LessEqual[x, -2.6e-88], t$95$1, If[LessEqual[x, -2.2e-147], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 3.7e+67], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(a \cdot \frac{t}{c}\right)\\
t_2 := 9 \cdot \left(\frac{x}{c} \cdot \frac{y}{z}\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{+162}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{+35}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-147}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+67}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -5.9999999999999996e162 or -1.00000000000000009e106 < x < -4.3999999999999997e35 or 3.6999999999999997e67 < x Initial program 78.6%
associate-+l-78.6%
*-commutative78.6%
associate-*r*77.5%
*-commutative77.5%
associate-+l-77.5%
Simplified77.6%
associate-/r*79.6%
div-inv79.5%
associate-+l-79.5%
associate-*r*78.5%
associate-+l-78.5%
associate-*l*78.6%
associate-*r*79.5%
Applied egg-rr79.5%
Taylor expanded in x around inf 55.2%
times-frac63.3%
Simplified63.3%
if -5.9999999999999996e162 < x < -1.00000000000000009e106 or -4.3999999999999997e35 < x < -2.60000000000000014e-88 or -2.2000000000000001e-147 < x < 3.6999999999999997e67Initial program 75.0%
associate-+l-75.0%
*-commutative75.0%
associate-*r*73.2%
*-commutative73.2%
associate-+l-73.2%
Simplified73.2%
Taylor expanded in z around inf 58.8%
*-commutative58.8%
associate-/l*60.5%
Simplified60.5%
div-inv60.4%
Applied egg-rr60.4%
Taylor expanded in a around 0 58.8%
associate-*r/60.5%
Simplified60.5%
if -2.60000000000000014e-88 < x < -2.2000000000000001e-147Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
associate-*r*85.4%
*-commutative85.4%
associate-+l-85.4%
Simplified71.8%
Taylor expanded in b around inf 53.0%
associate-/r*65.7%
Simplified65.7%
Final simplification61.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* -4.0 (* a (/ t c)))) (t_2 (* 9.0 (* (/ x c) (/ y z)))))
(if (<= x -3e+161)
(* 9.0 (/ x (* c (/ z y))))
(if (<= x -3.8e+106)
t_1
(if (<= x -9.6e+36)
t_2
(if (<= x -3.3e-88)
t_1
(if (<= x -2.45e-147)
(/ (/ b c) z)
(if (<= x 3.8e+70) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * (a * (t / c));
double t_2 = 9.0 * ((x / c) * (y / z));
double tmp;
if (x <= -3e+161) {
tmp = 9.0 * (x / (c * (z / y)));
} else if (x <= -3.8e+106) {
tmp = t_1;
} else if (x <= -9.6e+36) {
tmp = t_2;
} else if (x <= -3.3e-88) {
tmp = t_1;
} else if (x <= -2.45e-147) {
tmp = (b / c) / z;
} else if (x <= 3.8e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-4.0d0) * (a * (t / c))
t_2 = 9.0d0 * ((x / c) * (y / z))
if (x <= (-3d+161)) then
tmp = 9.0d0 * (x / (c * (z / y)))
else if (x <= (-3.8d+106)) then
tmp = t_1
else if (x <= (-9.6d+36)) then
tmp = t_2
else if (x <= (-3.3d-88)) then
tmp = t_1
else if (x <= (-2.45d-147)) then
tmp = (b / c) / z
else if (x <= 3.8d+70) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * (a * (t / c));
double t_2 = 9.0 * ((x / c) * (y / z));
double tmp;
if (x <= -3e+161) {
tmp = 9.0 * (x / (c * (z / y)));
} else if (x <= -3.8e+106) {
tmp = t_1;
} else if (x <= -9.6e+36) {
tmp = t_2;
} else if (x <= -3.3e-88) {
tmp = t_1;
} else if (x <= -2.45e-147) {
tmp = (b / c) / z;
} else if (x <= 3.8e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = -4.0 * (a * (t / c)) t_2 = 9.0 * ((x / c) * (y / z)) tmp = 0 if x <= -3e+161: tmp = 9.0 * (x / (c * (z / y))) elif x <= -3.8e+106: tmp = t_1 elif x <= -9.6e+36: tmp = t_2 elif x <= -3.3e-88: tmp = t_1 elif x <= -2.45e-147: tmp = (b / c) / z elif x <= 3.8e+70: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(-4.0 * Float64(a * Float64(t / c))) t_2 = Float64(9.0 * Float64(Float64(x / c) * Float64(y / z))) tmp = 0.0 if (x <= -3e+161) tmp = Float64(9.0 * Float64(x / Float64(c * Float64(z / y)))); elseif (x <= -3.8e+106) tmp = t_1; elseif (x <= -9.6e+36) tmp = t_2; elseif (x <= -3.3e-88) tmp = t_1; elseif (x <= -2.45e-147) tmp = Float64(Float64(b / c) / z); elseif (x <= 3.8e+70) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = -4.0 * (a * (t / c)); t_2 = 9.0 * ((x / c) * (y / z)); tmp = 0.0; if (x <= -3e+161) tmp = 9.0 * (x / (c * (z / y))); elseif (x <= -3.8e+106) tmp = t_1; elseif (x <= -9.6e+36) tmp = t_2; elseif (x <= -3.3e-88) tmp = t_1; elseif (x <= -2.45e-147) tmp = (b / c) / z; elseif (x <= 3.8e+70) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(9.0 * N[(N[(x / c), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+161], N[(9.0 * N[(x / N[(c * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.8e+106], t$95$1, If[LessEqual[x, -9.6e+36], t$95$2, If[LessEqual[x, -3.3e-88], t$95$1, If[LessEqual[x, -2.45e-147], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 3.8e+70], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \left(a \cdot \frac{t}{c}\right)\\
t_2 := 9 \cdot \left(\frac{x}{c} \cdot \frac{y}{z}\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+161}:\\
\;\;\;\;9 \cdot \frac{x}{c \cdot \frac{z}{y}}\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{+36}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -3.3 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.45 \cdot 10^{-147}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -3.00000000000000011e161Initial program 80.5%
associate-+l-80.5%
*-commutative80.5%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
Simplified80.8%
associate-/r*77.9%
div-inv77.9%
associate-+l-77.9%
associate-*r*71.5%
associate-+l-71.5%
associate-*l*71.6%
associate-*r*78.0%
Applied egg-rr78.0%
Taylor expanded in x around inf 70.7%
times-frac70.9%
Simplified70.9%
*-commutative70.9%
clear-num70.8%
frac-times76.9%
*-un-lft-identity76.9%
Applied egg-rr76.9%
if -3.00000000000000011e161 < x < -3.7999999999999998e106 or -9.5999999999999997e36 < x < -3.29999999999999994e-88 or -2.45000000000000002e-147 < x < 3.7999999999999998e70Initial program 75.6%
associate-+l-75.6%
*-commutative75.6%
associate-*r*73.2%
*-commutative73.2%
associate-+l-73.2%
Simplified73.2%
Taylor expanded in z around inf 59.5%
*-commutative59.5%
associate-/l*61.2%
Simplified61.2%
div-inv61.1%
Applied egg-rr61.1%
Taylor expanded in a around 0 59.5%
associate-*r/61.2%
Simplified61.2%
if -3.7999999999999998e106 < x < -9.5999999999999997e36 or 3.7999999999999998e70 < x Initial program 76.2%
associate-+l-76.2%
*-commutative76.2%
associate-*r*76.1%
*-commutative76.1%
associate-+l-76.1%
Simplified76.1%
associate-/r*80.3%
div-inv80.2%
associate-+l-80.2%
associate-*r*80.4%
associate-+l-80.4%
associate-*l*80.4%
associate-*r*80.2%
Applied egg-rr80.2%
Taylor expanded in x around inf 49.5%
times-frac59.8%
Simplified59.8%
if -3.29999999999999994e-88 < x < -2.45000000000000002e-147Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
associate-*r*85.4%
*-commutative85.4%
associate-+l-85.4%
Simplified71.8%
Taylor expanded in b around inf 53.0%
associate-/r*65.7%
Simplified65.7%
Final simplification62.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* (/ x c) (/ y z)))) (t_2 (* -4.0 (* a (/ t c)))))
(if (<= x -4.3e+161)
(* 9.0 (/ x (* c (/ z y))))
(if (<= x -8.4e+105)
(* -4.0 (* a (/ 1.0 (/ c t))))
(if (<= x -4.5e+36)
t_1
(if (<= x -3.6e-88)
t_2
(if (<= x -1.45e-147)
(/ (/ b c) z)
(if (<= x 2.2e+70) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((x / c) * (y / z));
double t_2 = -4.0 * (a * (t / c));
double tmp;
if (x <= -4.3e+161) {
tmp = 9.0 * (x / (c * (z / y)));
} else if (x <= -8.4e+105) {
tmp = -4.0 * (a * (1.0 / (c / t)));
} else if (x <= -4.5e+36) {
tmp = t_1;
} else if (x <= -3.6e-88) {
tmp = t_2;
} else if (x <= -1.45e-147) {
tmp = (b / c) / z;
} else if (x <= 2.2e+70) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 9.0d0 * ((x / c) * (y / z))
t_2 = (-4.0d0) * (a * (t / c))
if (x <= (-4.3d+161)) then
tmp = 9.0d0 * (x / (c * (z / y)))
else if (x <= (-8.4d+105)) then
tmp = (-4.0d0) * (a * (1.0d0 / (c / t)))
else if (x <= (-4.5d+36)) then
tmp = t_1
else if (x <= (-3.6d-88)) then
tmp = t_2
else if (x <= (-1.45d-147)) then
tmp = (b / c) / z
else if (x <= 2.2d+70) then
tmp = t_2
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 t_1 = 9.0 * ((x / c) * (y / z));
double t_2 = -4.0 * (a * (t / c));
double tmp;
if (x <= -4.3e+161) {
tmp = 9.0 * (x / (c * (z / y)));
} else if (x <= -8.4e+105) {
tmp = -4.0 * (a * (1.0 / (c / t)));
} else if (x <= -4.5e+36) {
tmp = t_1;
} else if (x <= -3.6e-88) {
tmp = t_2;
} else if (x <= -1.45e-147) {
tmp = (b / c) / z;
} else if (x <= 2.2e+70) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * ((x / c) * (y / z)) t_2 = -4.0 * (a * (t / c)) tmp = 0 if x <= -4.3e+161: tmp = 9.0 * (x / (c * (z / y))) elif x <= -8.4e+105: tmp = -4.0 * (a * (1.0 / (c / t))) elif x <= -4.5e+36: tmp = t_1 elif x <= -3.6e-88: tmp = t_2 elif x <= -1.45e-147: tmp = (b / c) / z elif x <= 2.2e+70: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(Float64(x / c) * Float64(y / z))) t_2 = Float64(-4.0 * Float64(a * Float64(t / c))) tmp = 0.0 if (x <= -4.3e+161) tmp = Float64(9.0 * Float64(x / Float64(c * Float64(z / y)))); elseif (x <= -8.4e+105) tmp = Float64(-4.0 * Float64(a * Float64(1.0 / Float64(c / t)))); elseif (x <= -4.5e+36) tmp = t_1; elseif (x <= -3.6e-88) tmp = t_2; elseif (x <= -1.45e-147) tmp = Float64(Float64(b / c) / z); elseif (x <= 2.2e+70) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * ((x / c) * (y / z)); t_2 = -4.0 * (a * (t / c)); tmp = 0.0; if (x <= -4.3e+161) tmp = 9.0 * (x / (c * (z / y))); elseif (x <= -8.4e+105) tmp = -4.0 * (a * (1.0 / (c / t))); elseif (x <= -4.5e+36) tmp = t_1; elseif (x <= -3.6e-88) tmp = t_2; elseif (x <= -1.45e-147) tmp = (b / c) / z; elseif (x <= 2.2e+70) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(N[(x / c), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.3e+161], N[(9.0 * N[(x / N[(c * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.4e+105], N[(-4.0 * N[(a * N[(1.0 / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.5e+36], t$95$1, If[LessEqual[x, -3.6e-88], t$95$2, If[LessEqual[x, -1.45e-147], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 2.2e+70], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(\frac{x}{c} \cdot \frac{y}{z}\right)\\
t_2 := -4 \cdot \left(a \cdot \frac{t}{c}\right)\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{+161}:\\
\;\;\;\;9 \cdot \frac{x}{c \cdot \frac{z}{y}}\\
\mathbf{elif}\;x \leq -8.4 \cdot 10^{+105}:\\
\;\;\;\;-4 \cdot \left(a \cdot \frac{1}{\frac{c}{t}}\right)\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{+36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{-88}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{-147}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{+70}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.3e161Initial program 80.5%
associate-+l-80.5%
*-commutative80.5%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
Simplified80.8%
associate-/r*77.9%
div-inv77.9%
associate-+l-77.9%
associate-*r*71.5%
associate-+l-71.5%
associate-*l*71.6%
associate-*r*78.0%
Applied egg-rr78.0%
Taylor expanded in x around inf 70.7%
times-frac70.9%
Simplified70.9%
*-commutative70.9%
clear-num70.8%
frac-times76.9%
*-un-lft-identity76.9%
Applied egg-rr76.9%
if -4.3e161 < x < -8.4000000000000004e105Initial program 67.3%
associate-+l-67.3%
*-commutative67.3%
associate-*r*67.3%
*-commutative67.3%
associate-+l-67.3%
Simplified67.3%
Taylor expanded in z around inf 51.8%
*-commutative51.8%
associate-/l*51.7%
Simplified51.7%
div-inv51.9%
Applied egg-rr51.9%
if -8.4000000000000004e105 < x < -4.49999999999999997e36 or 2.20000000000000001e70 < x Initial program 76.2%
associate-+l-76.2%
*-commutative76.2%
associate-*r*76.1%
*-commutative76.1%
associate-+l-76.1%
Simplified76.1%
associate-/r*80.3%
div-inv80.2%
associate-+l-80.2%
associate-*r*80.4%
associate-+l-80.4%
associate-*l*80.4%
associate-*r*80.2%
Applied egg-rr80.2%
Taylor expanded in x around inf 49.5%
times-frac59.8%
Simplified59.8%
if -4.49999999999999997e36 < x < -3.5999999999999999e-88 or -1.4500000000000001e-147 < x < 2.20000000000000001e70Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
associate-*r*73.7%
*-commutative73.7%
associate-+l-73.7%
Simplified73.7%
Taylor expanded in z around inf 60.2%
*-commutative60.2%
associate-/l*62.0%
Simplified62.0%
div-inv61.9%
Applied egg-rr61.9%
Taylor expanded in a around 0 60.2%
associate-*r/62.0%
Simplified62.0%
if -3.5999999999999999e-88 < x < -1.4500000000000001e-147Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
associate-*r*85.4%
*-commutative85.4%
associate-+l-85.4%
Simplified71.8%
Taylor expanded in b around inf 53.0%
associate-/r*65.7%
Simplified65.7%
Final simplification62.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -2.9e+14) (not (<= b 2.45e+126))) (/ (/ b c) z) (* -4.0 (/ (* a t) c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -2.9e+14) || !(b <= 2.45e+126)) {
tmp = (b / c) / z;
} else {
tmp = -4.0 * ((a * t) / c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((b <= (-2.9d+14)) .or. (.not. (b <= 2.45d+126))) then
tmp = (b / c) / z
else
tmp = (-4.0d0) * ((a * t) / 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 tmp;
if ((b <= -2.9e+14) || !(b <= 2.45e+126)) {
tmp = (b / c) / z;
} else {
tmp = -4.0 * ((a * t) / c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -2.9e+14) or not (b <= 2.45e+126): tmp = (b / c) / z else: tmp = -4.0 * ((a * t) / c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -2.9e+14) || !(b <= 2.45e+126)) tmp = Float64(Float64(b / c) / z); else tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -2.9e+14) || ~((b <= 2.45e+126))) tmp = (b / c) / z; else tmp = -4.0 * ((a * t) / c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -2.9e+14], N[Not[LessEqual[b, 2.45e+126]], $MachinePrecision]], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{+14} \lor \neg \left(b \leq 2.45 \cdot 10^{+126}\right):\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\end{array}
\end{array}
if b < -2.9e14 or 2.45e126 < b Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
associate-*r*79.1%
*-commutative79.1%
associate-+l-79.1%
Simplified75.0%
Taylor expanded in b around inf 53.8%
associate-/r*61.1%
Simplified61.1%
if -2.9e14 < b < 2.45e126Initial program 75.1%
associate-+l-75.1%
*-commutative75.1%
associate-*r*73.5%
*-commutative73.5%
associate-+l-73.5%
Simplified74.6%
Taylor expanded in z around inf 53.8%
Final simplification56.3%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -1.05e+15) (not (<= b 1.5e+104))) (/ (/ b c) z) (* t (/ a (/ c -4.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.05e+15) || !(b <= 1.5e+104)) {
tmp = (b / c) / z;
} else {
tmp = t * (a / (c / -4.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((b <= (-1.05d+15)) .or. (.not. (b <= 1.5d+104))) then
tmp = (b / c) / z
else
tmp = t * (a / (c / (-4.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.05e+15) || !(b <= 1.5e+104)) {
tmp = (b / c) / z;
} else {
tmp = t * (a / (c / -4.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.05e+15) or not (b <= 1.5e+104): tmp = (b / c) / z else: tmp = t * (a / (c / -4.0)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.05e+15) || !(b <= 1.5e+104)) tmp = Float64(Float64(b / c) / z); else tmp = Float64(t * Float64(a / Float64(c / -4.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.05e+15) || ~((b <= 1.5e+104))) tmp = (b / c) / z; else tmp = t * (a / (c / -4.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.05e+15], N[Not[LessEqual[b, 1.5e+104]], $MachinePrecision]], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(t * N[(a / N[(c / -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{+15} \lor \neg \left(b \leq 1.5 \cdot 10^{+104}\right):\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{a}{\frac{c}{-4}}\\
\end{array}
\end{array}
if b < -1.05e15 or 1.49999999999999984e104 < b Initial program 78.2%
associate-+l-78.2%
*-commutative78.2%
associate-*r*76.2%
*-commutative76.2%
associate-+l-76.2%
Simplified74.3%
Taylor expanded in b around inf 53.2%
associate-/r*60.2%
Simplified60.2%
if -1.05e15 < b < 1.49999999999999984e104Initial program 75.5%
associate-+l-75.5%
*-commutative75.5%
associate-*r*75.0%
*-commutative75.0%
associate-+l-75.0%
Simplified75.0%
associate-/r*79.1%
div-inv79.1%
associate-+l-79.1%
associate-*r*75.6%
associate-+l-75.6%
associate-*l*75.7%
associate-*r*79.1%
Applied egg-rr79.1%
Taylor expanded in z around inf 53.6%
associate-/l*55.1%
associate-*r/55.1%
*-commutative55.1%
associate-/r/54.8%
*-commutative54.8%
associate-/l*54.8%
Simplified54.8%
Final simplification56.8%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -1.3e+15) (not (<= b 2.45e+126))) (/ (/ b c) z) (* -4.0 (* a (/ t c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.3e+15) || !(b <= 2.45e+126)) {
tmp = (b / c) / z;
} else {
tmp = -4.0 * (a * (t / c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((b <= (-1.3d+15)) .or. (.not. (b <= 2.45d+126))) then
tmp = (b / c) / z
else
tmp = (-4.0d0) * (a * (t / 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 tmp;
if ((b <= -1.3e+15) || !(b <= 2.45e+126)) {
tmp = (b / c) / z;
} else {
tmp = -4.0 * (a * (t / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.3e+15) or not (b <= 2.45e+126): tmp = (b / c) / z else: tmp = -4.0 * (a * (t / c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.3e+15) || !(b <= 2.45e+126)) tmp = Float64(Float64(b / c) / z); else tmp = Float64(-4.0 * Float64(a * Float64(t / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.3e+15) || ~((b <= 2.45e+126))) tmp = (b / c) / z; else tmp = -4.0 * (a * (t / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.3e+15], N[Not[LessEqual[b, 2.45e+126]], $MachinePrecision]], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.3 \cdot 10^{+15} \lor \neg \left(b \leq 2.45 \cdot 10^{+126}\right):\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(a \cdot \frac{t}{c}\right)\\
\end{array}
\end{array}
if b < -1.3e15 or 2.45e126 < b Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
associate-*r*79.1%
*-commutative79.1%
associate-+l-79.1%
Simplified75.0%
Taylor expanded in b around inf 53.8%
associate-/r*61.1%
Simplified61.1%
if -1.3e15 < b < 2.45e126Initial program 75.1%
associate-+l-75.1%
*-commutative75.1%
associate-*r*73.5%
*-commutative73.5%
associate-+l-73.5%
Simplified74.6%
Taylor expanded in z around inf 53.8%
*-commutative53.8%
associate-/l*55.3%
Simplified55.3%
div-inv55.3%
Applied egg-rr55.3%
Taylor expanded in a around 0 53.8%
associate-*r/55.4%
Simplified55.4%
Final simplification57.3%
(FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = b / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
def code(x, y, z, t, a, b, c): return b / (z * c)
function code(x, y, z, t, a, b, c) return Float64(b / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = b / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{b}{z \cdot c}
\end{array}
Initial program 76.5%
associate-+l-76.5%
*-commutative76.5%
associate-*r*75.4%
*-commutative75.4%
associate-+l-75.4%
Simplified74.7%
Taylor expanded in b around inf 31.7%
*-commutative31.7%
Simplified31.7%
Final simplification31.7%
(FPCore (x y z t a b c) :precision binary64 (/ (/ b c) z))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / c) / z;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = (b / c) / z
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / c) / z;
}
def code(x, y, z, t, a, b, c): return (b / c) / z
function code(x, y, z, t, a, b, c) return Float64(Float64(b / c) / z) end
function tmp = code(x, y, z, t, a, b, c) tmp = (b / c) / z; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{b}{c}}{z}
\end{array}
Initial program 76.5%
associate-+l-76.5%
*-commutative76.5%
associate-*r*75.4%
*-commutative75.4%
associate-+l-75.4%
Simplified74.7%
Taylor expanded in b around inf 31.7%
associate-/r*32.4%
Simplified32.4%
Final simplification32.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ b (* c z)))
(t_2 (* 4.0 (/ (* a t) c)))
(t_3 (* (* x 9.0) y))
(t_4 (+ (- t_3 (* (* (* z 4.0) t) a)) b))
(t_5 (/ t_4 (* z c)))
(t_6 (/ (+ (- t_3 (* (* z 4.0) (* t a))) b) (* z c))))
(if (< t_5 -1.100156740804105e-171)
t_6
(if (< t_5 0.0)
(/ (/ t_4 z) c)
(if (< t_5 1.1708877911747488e-53)
t_6
(if (< t_5 2.876823679546137e+130)
(- (+ (* (* 9.0 (/ y c)) (/ x z)) t_1) t_2)
(if (< t_5 1.3838515042456319e+158)
t_6
(- (+ (* 9.0 (* (/ y (* c z)) x)) t_1) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (c * z);
double t_2 = 4.0 * ((a * t) / c);
double t_3 = (x * 9.0) * y;
double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
double t_5 = t_4 / (z * c);
double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
double tmp;
if (t_5 < -1.100156740804105e-171) {
tmp = t_6;
} else if (t_5 < 0.0) {
tmp = (t_4 / z) / c;
} else if (t_5 < 1.1708877911747488e-53) {
tmp = t_6;
} else if (t_5 < 2.876823679546137e+130) {
tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
} else if (t_5 < 1.3838515042456319e+158) {
tmp = t_6;
} else {
tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = b / (c * z)
t_2 = 4.0d0 * ((a * t) / c)
t_3 = (x * 9.0d0) * y
t_4 = (t_3 - (((z * 4.0d0) * t) * a)) + b
t_5 = t_4 / (z * c)
t_6 = ((t_3 - ((z * 4.0d0) * (t * a))) + b) / (z * c)
if (t_5 < (-1.100156740804105d-171)) then
tmp = t_6
else if (t_5 < 0.0d0) then
tmp = (t_4 / z) / c
else if (t_5 < 1.1708877911747488d-53) then
tmp = t_6
else if (t_5 < 2.876823679546137d+130) then
tmp = (((9.0d0 * (y / c)) * (x / z)) + t_1) - t_2
else if (t_5 < 1.3838515042456319d+158) then
tmp = t_6
else
tmp = ((9.0d0 * ((y / (c * z)) * x)) + t_1) - 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 t_1 = b / (c * z);
double t_2 = 4.0 * ((a * t) / c);
double t_3 = (x * 9.0) * y;
double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
double t_5 = t_4 / (z * c);
double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
double tmp;
if (t_5 < -1.100156740804105e-171) {
tmp = t_6;
} else if (t_5 < 0.0) {
tmp = (t_4 / z) / c;
} else if (t_5 < 1.1708877911747488e-53) {
tmp = t_6;
} else if (t_5 < 2.876823679546137e+130) {
tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
} else if (t_5 < 1.3838515042456319e+158) {
tmp = t_6;
} else {
tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = b / (c * z) t_2 = 4.0 * ((a * t) / c) t_3 = (x * 9.0) * y t_4 = (t_3 - (((z * 4.0) * t) * a)) + b t_5 = t_4 / (z * c) t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c) tmp = 0 if t_5 < -1.100156740804105e-171: tmp = t_6 elif t_5 < 0.0: tmp = (t_4 / z) / c elif t_5 < 1.1708877911747488e-53: tmp = t_6 elif t_5 < 2.876823679546137e+130: tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2 elif t_5 < 1.3838515042456319e+158: tmp = t_6 else: tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(b / Float64(c * z)) t_2 = Float64(4.0 * Float64(Float64(a * t) / c)) t_3 = Float64(Float64(x * 9.0) * y) t_4 = Float64(Float64(t_3 - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) t_5 = Float64(t_4 / Float64(z * c)) t_6 = Float64(Float64(Float64(t_3 - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(z * c)) tmp = 0.0 if (t_5 < -1.100156740804105e-171) tmp = t_6; elseif (t_5 < 0.0) tmp = Float64(Float64(t_4 / z) / c); elseif (t_5 < 1.1708877911747488e-53) tmp = t_6; elseif (t_5 < 2.876823679546137e+130) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(y / c)) * Float64(x / z)) + t_1) - t_2); elseif (t_5 < 1.3838515042456319e+158) tmp = t_6; else tmp = Float64(Float64(Float64(9.0 * Float64(Float64(y / Float64(c * z)) * x)) + t_1) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = b / (c * z); t_2 = 4.0 * ((a * t) / c); t_3 = (x * 9.0) * y; t_4 = (t_3 - (((z * 4.0) * t) * a)) + b; t_5 = t_4 / (z * c); t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c); tmp = 0.0; if (t_5 < -1.100156740804105e-171) tmp = t_6; elseif (t_5 < 0.0) tmp = (t_4 / z) / c; elseif (t_5 < 1.1708877911747488e-53) tmp = t_6; elseif (t_5 < 2.876823679546137e+130) tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2; elseif (t_5 < 1.3838515042456319e+158) tmp = t_6; else tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$3 - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$4 / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(t$95$3 - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$5, -1.100156740804105e-171], t$95$6, If[Less[t$95$5, 0.0], N[(N[(t$95$4 / z), $MachinePrecision] / c), $MachinePrecision], If[Less[t$95$5, 1.1708877911747488e-53], t$95$6, If[Less[t$95$5, 2.876823679546137e+130], N[(N[(N[(N[(9.0 * N[(y / c), $MachinePrecision]), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[Less[t$95$5, 1.3838515042456319e+158], t$95$6, N[(N[(N[(9.0 * N[(N[(y / N[(c * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{c \cdot z}\\
t_2 := 4 \cdot \frac{a \cdot t}{c}\\
t_3 := \left(x \cdot 9\right) \cdot y\\
t_4 := \left(t_3 - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b\\
t_5 := \frac{t_4}{z \cdot c}\\
t_6 := \frac{\left(t_3 - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}\\
\mathbf{if}\;t_5 < -1.100156740804105 \cdot 10^{-171}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;t_5 < 0:\\
\;\;\;\;\frac{\frac{t_4}{z}}{c}\\
\mathbf{elif}\;t_5 < 1.1708877911747488 \cdot 10^{-53}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;t_5 < 2.876823679546137 \cdot 10^{+130}:\\
\;\;\;\;\left(\left(9 \cdot \frac{y}{c}\right) \cdot \frac{x}{z} + t_1\right) - t_2\\
\mathbf{elif}\;t_5 < 1.3838515042456319 \cdot 10^{+158}:\\
\;\;\;\;t_6\\
\mathbf{else}:\\
\;\;\;\;\left(9 \cdot \left(\frac{y}{c \cdot z} \cdot x\right) + t_1\right) - t_2\\
\end{array}
\end{array}
herbie shell --seed 2023275
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:herbie-target
(if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) -1.100156740804105e-171) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 0.0) (/ (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.1708877911747488e-53) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 2.876823679546137e+130) (- (+ (* (* 9.0 (/ y c)) (/ x z)) (/ b (* c z))) (* 4.0 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.3838515042456319e+158) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (- (+ (* 9.0 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4.0 (/ (* a t) c))))))))
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))