
(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 12 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 -4.8e-176) (not (<= z 9e-40))) (/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) c) (* (/ 1.0 z) (/ (+ b (fma x (* 9.0 y) (* a (* t (* z -4.0))))) c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -4.8e-176) || !(z <= 9e-40)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (1.0 / z) * ((b + fma(x, (9.0 * y), (a * (t * (z * -4.0))))) / c);
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -4.8e-176) || !(z <= 9e-40)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(1.0 / z) * Float64(Float64(b + fma(x, Float64(9.0 * y), Float64(a * Float64(t * Float64(z * -4.0))))) / c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -4.8e-176], N[Not[LessEqual[z, 9e-40]], $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] / c), $MachinePrecision], N[(N[(1.0 / z), $MachinePrecision] * N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision] + N[(a * N[(t * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{-176} \lor \neg \left(z \leq 9 \cdot 10^{-40}\right):\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z} \cdot \frac{b + \mathsf{fma}\left(x, 9 \cdot y, a \cdot \left(t \cdot \left(z \cdot -4\right)\right)\right)}{c}\\
\end{array}
\end{array}
if z < -4.80000000000000012e-176 or 9.0000000000000002e-40 < z Initial program 74.0%
associate-+l-74.0%
*-commutative74.0%
associate-*r*72.8%
*-commutative72.8%
associate-+l-72.8%
associate-*l*72.8%
associate-*l*77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in x around 0 82.9%
Taylor expanded in c around 0 91.6%
if -4.80000000000000012e-176 < z < 9.0000000000000002e-40Initial program 94.6%
associate-+l-94.6%
*-commutative94.6%
associate-*r*93.4%
*-commutative93.4%
associate-+l-93.4%
associate-*l*93.4%
associate-*l*88.3%
*-commutative88.3%
Simplified88.3%
*-un-lft-identity88.3%
times-frac91.0%
fma-neg91.0%
associate-*r*97.2%
*-commutative97.2%
distribute-rgt-neg-in97.2%
*-commutative97.2%
distribute-rgt-neg-in97.2%
distribute-rgt-neg-in97.2%
metadata-eval97.2%
Applied egg-rr97.2%
Final simplification93.3%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -6.2e-196) (not (<= z 4.9e-44))) (/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) (* 4.0 (* a t))) c) (/ (+ (* -4.0 (/ (* a (* z t)) c)) (+ (* 9.0 (/ (* x y) c)) (/ b c))) z)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -6.2e-196) || !(z <= 4.9e-44)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
}
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 <= (-6.2d-196)) .or. (.not. (z <= 4.9d-44))) then
tmp = (((9.0d0 * ((x * y) / z)) + (b / z)) - (4.0d0 * (a * t))) / c
else
tmp = (((-4.0d0) * ((a * (z * t)) / c)) + ((9.0d0 * ((x * y) / c)) + (b / c))) / 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 tmp;
if ((z <= -6.2e-196) || !(z <= 4.9e-44)) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c;
} else {
tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -6.2e-196) or not (z <= 4.9e-44): tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c else: tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -6.2e-196) || !(z <= 4.9e-44)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / c)) + Float64(Float64(9.0 * Float64(Float64(x * y) / c)) + Float64(b / c))) / z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -6.2e-196) || ~((z <= 4.9e-44))) tmp = (((9.0 * ((x * y) / z)) + (b / z)) - (4.0 * (a * t))) / c; else tmp = ((-4.0 * ((a * (z * t)) / c)) + ((9.0 * ((x * y) / c)) + (b / c))) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -6.2e-196], N[Not[LessEqual[z, 4.9e-44]], $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] / c), $MachinePrecision], N[(N[(N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{-196} \lor \neg \left(z \leq 4.9 \cdot 10^{-44}\right):\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{-4 \cdot \frac{a \cdot \left(z \cdot t\right)}{c} + \left(9 \cdot \frac{x \cdot y}{c} + \frac{b}{c}\right)}{z}\\
\end{array}
\end{array}
if z < -6.19999999999999986e-196 or 4.9000000000000003e-44 < z Initial program 74.3%
associate-+l-74.3%
*-commutative74.3%
associate-*r*73.1%
*-commutative73.1%
associate-+l-73.1%
associate-*l*73.1%
associate-*l*77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in x around 0 83.1%
Taylor expanded in c around 0 91.7%
if -6.19999999999999986e-196 < z < 4.9000000000000003e-44Initial program 94.5%
associate-+l-94.5%
*-commutative94.5%
associate-*r*93.2%
*-commutative93.2%
associate-+l-93.2%
associate-*l*93.3%
associate-*l*88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in z around 0 95.9%
Final simplification92.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* t (* -4.0 (/ a c)))))
(if (<= a -2600000000000.0)
t_1
(if (<= a -8.8e-268)
(/ b (* z c))
(if (<= a 1.4e-116)
(/ (/ b z) c)
(if (<= a 3.2e-27)
(* -4.0 (/ (* a t) c))
(if (<= a 5.5e+72) (/ 1.0 (/ (* z c) b)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = t * (-4.0 * (a / c));
double tmp;
if (a <= -2600000000000.0) {
tmp = t_1;
} else if (a <= -8.8e-268) {
tmp = b / (z * c);
} else if (a <= 1.4e-116) {
tmp = (b / z) / c;
} else if (a <= 3.2e-27) {
tmp = -4.0 * ((a * t) / c);
} else if (a <= 5.5e+72) {
tmp = 1.0 / ((z * c) / b);
} 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) :: tmp
t_1 = t * ((-4.0d0) * (a / c))
if (a <= (-2600000000000.0d0)) then
tmp = t_1
else if (a <= (-8.8d-268)) then
tmp = b / (z * c)
else if (a <= 1.4d-116) then
tmp = (b / z) / c
else if (a <= 3.2d-27) then
tmp = (-4.0d0) * ((a * t) / c)
else if (a <= 5.5d+72) then
tmp = 1.0d0 / ((z * c) / b)
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 = t * (-4.0 * (a / c));
double tmp;
if (a <= -2600000000000.0) {
tmp = t_1;
} else if (a <= -8.8e-268) {
tmp = b / (z * c);
} else if (a <= 1.4e-116) {
tmp = (b / z) / c;
} else if (a <= 3.2e-27) {
tmp = -4.0 * ((a * t) / c);
} else if (a <= 5.5e+72) {
tmp = 1.0 / ((z * c) / b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = t * (-4.0 * (a / c)) tmp = 0 if a <= -2600000000000.0: tmp = t_1 elif a <= -8.8e-268: tmp = b / (z * c) elif a <= 1.4e-116: tmp = (b / z) / c elif a <= 3.2e-27: tmp = -4.0 * ((a * t) / c) elif a <= 5.5e+72: tmp = 1.0 / ((z * c) / b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(t * Float64(-4.0 * Float64(a / c))) tmp = 0.0 if (a <= -2600000000000.0) tmp = t_1; elseif (a <= -8.8e-268) tmp = Float64(b / Float64(z * c)); elseif (a <= 1.4e-116) tmp = Float64(Float64(b / z) / c); elseif (a <= 3.2e-27) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); elseif (a <= 5.5e+72) tmp = Float64(1.0 / Float64(Float64(z * c) / b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = t * (-4.0 * (a / c)); tmp = 0.0; if (a <= -2600000000000.0) tmp = t_1; elseif (a <= -8.8e-268) tmp = b / (z * c); elseif (a <= 1.4e-116) tmp = (b / z) / c; elseif (a <= 3.2e-27) tmp = -4.0 * ((a * t) / c); elseif (a <= 5.5e+72) tmp = 1.0 / ((z * c) / b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(-4.0 * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2600000000000.0], t$95$1, If[LessEqual[a, -8.8e-268], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-116], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[a, 3.2e-27], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e+72], N[(1.0 / N[(N[(z * c), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-4 \cdot \frac{a}{c}\right)\\
\mathbf{if}\;a \leq -2600000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -8.8 \cdot 10^{-268}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-116}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-27}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+72}:\\
\;\;\;\;\frac{1}{\frac{z \cdot c}{b}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.6e12 or 5.5e72 < a Initial program 74.4%
associate-+l-74.4%
*-commutative74.4%
associate-*r*70.1%
*-commutative70.1%
associate-+l-70.1%
associate-*l*70.1%
associate-*l*71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around 0 62.5%
Taylor expanded in t around inf 72.4%
Taylor expanded in a around inf 65.2%
if -2.6e12 < a < -8.80000000000000017e-268Initial program 90.1%
associate-+l-90.1%
*-commutative90.1%
associate-*r*94.8%
*-commutative94.8%
associate-+l-94.8%
associate-*l*94.8%
associate-*l*94.3%
*-commutative94.3%
Simplified94.3%
Taylor expanded in b around inf 46.9%
*-commutative46.9%
Simplified46.9%
if -8.80000000000000017e-268 < a < 1.3999999999999999e-116Initial program 82.5%
associate-+l-82.5%
*-commutative82.5%
associate-*r*81.0%
*-commutative81.0%
associate-+l-81.0%
associate-*l*81.1%
associate-*l*85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in x around 0 84.8%
Taylor expanded in c around 0 97.6%
Taylor expanded in b around inf 51.2%
if 1.3999999999999999e-116 < a < 3.19999999999999991e-27Initial program 60.2%
associate-+l-60.2%
*-commutative60.2%
associate-*r*67.4%
*-commutative67.4%
associate-+l-67.4%
associate-*l*67.4%
associate-*l*67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in z around inf 67.9%
if 3.19999999999999991e-27 < a < 5.5e72Initial program 93.9%
associate-+l-93.9%
*-commutative93.9%
associate-*r*88.2%
*-commutative88.2%
associate-+l-88.2%
associate-*l*88.2%
associate-*l*93.8%
*-commutative93.8%
Simplified93.8%
Taylor expanded in b around inf 40.3%
*-commutative40.3%
Simplified40.3%
clear-num40.3%
inv-pow40.3%
Applied egg-rr40.3%
unpow-140.3%
associate-/l*40.4%
Simplified40.4%
Taylor expanded in z around 0 40.3%
*-commutative40.3%
Simplified40.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ b (* z c))) (t_2 (* t (* -4.0 (/ a c)))))
(if (<= a -2500000000000.0)
t_2
(if (<= a -4.5e-271)
t_1
(if (<= a 3.5e-117)
(/ (/ b z) c)
(if (<= a 1.95e-27)
(* -4.0 (/ (* a t) c))
(if (<= a 5.5e+72) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (z * c);
double t_2 = t * (-4.0 * (a / c));
double tmp;
if (a <= -2500000000000.0) {
tmp = t_2;
} else if (a <= -4.5e-271) {
tmp = t_1;
} else if (a <= 3.5e-117) {
tmp = (b / z) / c;
} else if (a <= 1.95e-27) {
tmp = -4.0 * ((a * t) / c);
} else if (a <= 5.5e+72) {
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 = b / (z * c)
t_2 = t * ((-4.0d0) * (a / c))
if (a <= (-2500000000000.0d0)) then
tmp = t_2
else if (a <= (-4.5d-271)) then
tmp = t_1
else if (a <= 3.5d-117) then
tmp = (b / z) / c
else if (a <= 1.95d-27) then
tmp = (-4.0d0) * ((a * t) / c)
else if (a <= 5.5d+72) 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 = b / (z * c);
double t_2 = t * (-4.0 * (a / c));
double tmp;
if (a <= -2500000000000.0) {
tmp = t_2;
} else if (a <= -4.5e-271) {
tmp = t_1;
} else if (a <= 3.5e-117) {
tmp = (b / z) / c;
} else if (a <= 1.95e-27) {
tmp = -4.0 * ((a * t) / c);
} else if (a <= 5.5e+72) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = b / (z * c) t_2 = t * (-4.0 * (a / c)) tmp = 0 if a <= -2500000000000.0: tmp = t_2 elif a <= -4.5e-271: tmp = t_1 elif a <= 3.5e-117: tmp = (b / z) / c elif a <= 1.95e-27: tmp = -4.0 * ((a * t) / c) elif a <= 5.5e+72: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(b / Float64(z * c)) t_2 = Float64(t * Float64(-4.0 * Float64(a / c))) tmp = 0.0 if (a <= -2500000000000.0) tmp = t_2; elseif (a <= -4.5e-271) tmp = t_1; elseif (a <= 3.5e-117) tmp = Float64(Float64(b / z) / c); elseif (a <= 1.95e-27) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); elseif (a <= 5.5e+72) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = b / (z * c); t_2 = t * (-4.0 * (a / c)); tmp = 0.0; if (a <= -2500000000000.0) tmp = t_2; elseif (a <= -4.5e-271) tmp = t_1; elseif (a <= 3.5e-117) tmp = (b / z) / c; elseif (a <= 1.95e-27) tmp = -4.0 * ((a * t) / c); elseif (a <= 5.5e+72) 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[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(-4.0 * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2500000000000.0], t$95$2, If[LessEqual[a, -4.5e-271], t$95$1, If[LessEqual[a, 3.5e-117], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[a, 1.95e-27], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e+72], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c}\\
t_2 := t \cdot \left(-4 \cdot \frac{a}{c}\right)\\
\mathbf{if}\;a \leq -2500000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{-27}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.5e12 or 5.5e72 < a Initial program 74.4%
associate-+l-74.4%
*-commutative74.4%
associate-*r*70.1%
*-commutative70.1%
associate-+l-70.1%
associate-*l*70.1%
associate-*l*71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in b around 0 62.5%
Taylor expanded in t around inf 72.4%
Taylor expanded in a around inf 65.2%
if -2.5e12 < a < -4.4999999999999998e-271 or 1.94999999999999986e-27 < a < 5.5e72Initial program 91.1%
associate-+l-91.1%
*-commutative91.1%
associate-*r*93.4%
*-commutative93.4%
associate-+l-93.4%
associate-*l*93.4%
associate-*l*94.2%
*-commutative94.2%
Simplified94.2%
Taylor expanded in b around inf 44.8%
*-commutative44.8%
Simplified44.8%
if -4.4999999999999998e-271 < a < 3.4999999999999998e-117Initial program 82.1%
associate-+l-82.1%
*-commutative82.1%
associate-*r*80.6%
*-commutative80.6%
associate-+l-80.6%
associate-*l*80.7%
associate-*l*84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in x around 0 84.5%
Taylor expanded in c around 0 97.5%
Taylor expanded in b around inf 52.3%
if 3.4999999999999998e-117 < a < 1.94999999999999986e-27Initial program 60.2%
associate-+l-60.2%
*-commutative60.2%
associate-*r*67.4%
*-commutative67.4%
associate-+l-67.4%
associate-*l*67.4%
associate-*l*67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in z around inf 67.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -1.35e-195) (not (<= z 6e-8))) (/ (- (+ (* 9.0 (/ (* x y) z)) (/ 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 <= -1.35e-195) || !(z <= 6e-8)) {
tmp = (((9.0 * ((x * y) / z)) + (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 <= (-1.35d-195)) .or. (.not. (z <= 6d-8))) then
tmp = (((9.0d0 * ((x * y) / z)) + (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 <= -1.35e-195) || !(z <= 6e-8)) {
tmp = (((9.0 * ((x * y) / z)) + (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 <= -1.35e-195) or not (z <= 6e-8): tmp = (((9.0 * ((x * y) / z)) + (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 <= -1.35e-195) || !(z <= 6e-8)) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + 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 <= -1.35e-195) || ~((z <= 6e-8))) tmp = (((9.0 * ((x * y) / z)) + (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, -1.35e-195], N[Not[LessEqual[z, 6e-8]], $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] / 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 -1.35 \cdot 10^{-195} \lor \neg \left(z \leq 6 \cdot 10^{-8}\right):\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - 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 < -1.35e-195 or 5.99999999999999946e-8 < z Initial program 73.7%
associate-+l-73.7%
*-commutative73.7%
associate-*r*72.5%
*-commutative72.5%
associate-+l-72.5%
associate-*l*72.5%
associate-*l*76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in x around 0 82.7%
Taylor expanded in c around 0 91.5%
if -1.35e-195 < z < 5.99999999999999946e-8Initial program 94.7%
Final simplification92.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1.42e+135)
(/ (- (* 9.0 (/ (* x y) z)) (* 4.0 (* a t))) c)
(if (<= z 3.5e+54)
(/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* z c))
(/ (- (/ b z) (* t (* 4.0 a))) c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.42e+135) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c;
} else if (z <= 3.5e+54) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = ((b / z) - (t * (4.0 * a))) / 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.42d+135)) then
tmp = ((9.0d0 * ((x * y) / z)) - (4.0d0 * (a * t))) / c
else if (z <= 3.5d+54) then
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (z * c)
else
tmp = ((b / z) - (t * (4.0d0 * a))) / 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.42e+135) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c;
} else if (z <= 3.5e+54) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = ((b / z) - (t * (4.0 * a))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1.42e+135: tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c elif z <= 3.5e+54: tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c) else: tmp = ((b / z) - (t * (4.0 * a))) / c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1.42e+135) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(a * t))) / c); elseif (z <= 3.5e+54) tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(t * Float64(4.0 * a))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1.42e+135) tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c; elseif (z <= 3.5e+54) tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c); else tmp = ((b / z) - (t * (4.0 * a))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1.42e+135], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 3.5e+54], 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], N[(N[(N[(b / z), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.42 \cdot 10^{+135}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+54}:\\
\;\;\;\;\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}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - t \cdot \left(4 \cdot a\right)}{c}\\
\end{array}
\end{array}
if z < -1.41999999999999998e135Initial program 53.3%
associate-+l-53.3%
*-commutative53.3%
associate-*r*62.4%
*-commutative62.4%
associate-+l-62.4%
associate-*l*62.4%
associate-*l*62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in x around 0 90.0%
Taylor expanded in c around 0 95.0%
Taylor expanded in b around 0 87.7%
if -1.41999999999999998e135 < z < 3.5000000000000001e54Initial program 90.7%
if 3.5000000000000001e54 < z Initial program 69.6%
associate-+l-69.6%
*-commutative69.6%
associate-*r*63.0%
*-commutative63.0%
associate-+l-63.0%
associate-*l*63.0%
associate-*l*69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in x around 0 82.5%
Taylor expanded in c around 0 90.8%
Taylor expanded in x around 0 81.1%
associate-*r*81.1%
*-commutative81.1%
Simplified81.1%
Final simplification88.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -7e+136)
(/ (- (* 9.0 (/ (* x y) z)) (* 4.0 (* a t))) c)
(if (<= z 1.52e+56)
(/ (+ b (- (* x (* 9.0 y)) (* (* a t) (* z 4.0)))) (* z c))
(/ (- (/ b z) (* t (* 4.0 a))) c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -7e+136) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c;
} else if (z <= 1.52e+56) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c);
} else {
tmp = ((b / z) - (t * (4.0 * a))) / 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 <= (-7d+136)) then
tmp = ((9.0d0 * ((x * y) / z)) - (4.0d0 * (a * t))) / c
else if (z <= 1.52d+56) then
tmp = (b + ((x * (9.0d0 * y)) - ((a * t) * (z * 4.0d0)))) / (z * c)
else
tmp = ((b / z) - (t * (4.0d0 * a))) / 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 <= -7e+136) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c;
} else if (z <= 1.52e+56) {
tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c);
} else {
tmp = ((b / z) - (t * (4.0 * a))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -7e+136: tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c elif z <= 1.52e+56: tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c) else: tmp = ((b / z) - (t * (4.0 * a))) / c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -7e+136) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(a * t))) / c); elseif (z <= 1.52e+56) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * t) * Float64(z * 4.0)))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(t * Float64(4.0 * a))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -7e+136) tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c; elseif (z <= 1.52e+56) tmp = (b + ((x * (9.0 * y)) - ((a * t) * (z * 4.0)))) / (z * c); else tmp = ((b / z) - (t * (4.0 * a))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -7e+136], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 1.52e+56], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+136}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{elif}\;z \leq 1.52 \cdot 10^{+56}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - t \cdot \left(4 \cdot a\right)}{c}\\
\end{array}
\end{array}
if z < -7.00000000000000002e136Initial program 53.3%
associate-+l-53.3%
*-commutative53.3%
associate-*r*62.4%
*-commutative62.4%
associate-+l-62.4%
associate-*l*62.4%
associate-*l*62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in x around 0 90.0%
Taylor expanded in c around 0 95.0%
Taylor expanded in b around 0 87.7%
if -7.00000000000000002e136 < z < 1.52e56Initial program 90.7%
associate-+l-90.7%
*-commutative90.7%
associate-*r*88.9%
*-commutative88.9%
associate-+l-88.9%
associate-*l*88.9%
associate-*l*88.9%
*-commutative88.9%
Simplified88.9%
if 1.52e56 < z Initial program 69.6%
associate-+l-69.6%
*-commutative69.6%
associate-*r*63.0%
*-commutative63.0%
associate-+l-63.0%
associate-*l*63.0%
associate-*l*69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in x around 0 82.5%
Taylor expanded in c around 0 90.8%
Taylor expanded in x around 0 81.1%
associate-*r*81.1%
*-commutative81.1%
Simplified81.1%
Final simplification86.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -5.5e-82)
(/ (- (/ b z) (* t (* 4.0 a))) c)
(if (<= b 9.2e+38)
(/ (- (* 9.0 (/ (* x y) z)) (* 4.0 (* a t))) c)
(- (/ b (* z c)) (* 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 <= -5.5e-82) {
tmp = ((b / z) - (t * (4.0 * a))) / c;
} else if (b <= 9.2e+38) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b / (z * c)) - (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 <= (-5.5d-82)) then
tmp = ((b / z) - (t * (4.0d0 * a))) / c
else if (b <= 9.2d+38) then
tmp = ((9.0d0 * ((x * y) / z)) - (4.0d0 * (a * t))) / c
else
tmp = (b / (z * c)) - (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 <= -5.5e-82) {
tmp = ((b / z) - (t * (4.0 * a))) / c;
} else if (b <= 9.2e+38) {
tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c;
} else {
tmp = (b / (z * c)) - (4.0 * ((a * t) / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5.5e-82: tmp = ((b / z) - (t * (4.0 * a))) / c elif b <= 9.2e+38: tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c else: tmp = (b / (z * c)) - (4.0 * ((a * t) / c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5.5e-82) tmp = Float64(Float64(Float64(b / z) - Float64(t * Float64(4.0 * a))) / c); elseif (b <= 9.2e+38) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b / Float64(z * c)) - 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 <= -5.5e-82) tmp = ((b / z) - (t * (4.0 * a))) / c; elseif (b <= 9.2e+38) tmp = ((9.0 * ((x * y) / z)) - (4.0 * (a * t))) / c; else tmp = (b / (z * c)) - (4.0 * ((a * t) / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5.5e-82], N[(N[(N[(b / z), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[b, 9.2e+38], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{-82}:\\
\;\;\;\;\frac{\frac{b}{z} - t \cdot \left(4 \cdot a\right)}{c}\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+38}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{z \cdot c} - 4 \cdot \frac{a \cdot t}{c}\\
\end{array}
\end{array}
if b < -5.4999999999999998e-82Initial program 78.9%
associate-+l-78.9%
*-commutative78.9%
associate-*r*78.8%
*-commutative78.8%
associate-+l-78.8%
associate-*l*78.8%
associate-*l*80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in x around 0 83.8%
Taylor expanded in c around 0 86.4%
Taylor expanded in x around 0 74.6%
associate-*r*74.6%
*-commutative74.6%
Simplified74.6%
if -5.4999999999999998e-82 < b < 9.2000000000000005e38Initial program 82.1%
associate-+l-82.1%
*-commutative82.1%
associate-*r*80.4%
*-commutative80.4%
associate-+l-80.4%
associate-*l*80.5%
associate-*l*83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in x around 0 84.7%
Taylor expanded in c around 0 93.9%
Taylor expanded in b around 0 85.0%
if 9.2000000000000005e38 < b Initial program 78.0%
associate-+l-78.0%
*-commutative78.0%
associate-*r*76.3%
*-commutative76.3%
associate-+l-76.3%
associate-*l*76.3%
associate-*l*74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in x around inf 57.3%
Taylor expanded in x around 0 74.5%
Final simplification79.5%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -2.3e+41) (not (<= t 2.5e-209))) (/ (- (/ b z) (* t (* 4.0 a))) c) (/ (+ b (* 9.0 (* x y))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.3e+41) || !(t <= 2.5e-209)) {
tmp = ((b / z) - (t * (4.0 * a))) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (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 ((t <= (-2.3d+41)) .or. (.not. (t <= 2.5d-209))) then
tmp = ((b / z) - (t * (4.0d0 * a))) / c
else
tmp = (b + (9.0d0 * (x * y))) / (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 ((t <= -2.3e+41) || !(t <= 2.5e-209)) {
tmp = ((b / z) - (t * (4.0 * a))) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -2.3e+41) or not (t <= 2.5e-209): tmp = ((b / z) - (t * (4.0 * a))) / c else: tmp = (b + (9.0 * (x * y))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -2.3e+41) || !(t <= 2.5e-209)) tmp = Float64(Float64(Float64(b / z) - Float64(t * Float64(4.0 * a))) / c); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -2.3e+41) || ~((t <= 2.5e-209))) tmp = ((b / z) - (t * (4.0 * a))) / c; else tmp = (b + (9.0 * (x * y))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -2.3e+41], N[Not[LessEqual[t, 2.5e-209]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.3 \cdot 10^{+41} \lor \neg \left(t \leq 2.5 \cdot 10^{-209}\right):\\
\;\;\;\;\frac{\frac{b}{z} - t \cdot \left(4 \cdot a\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if t < -2.2999999999999998e41 or 2.5000000000000002e-209 < t Initial program 77.2%
associate-+l-77.2%
*-commutative77.2%
associate-*r*78.4%
*-commutative78.4%
associate-+l-78.4%
associate-*l*78.4%
associate-*l*77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in x around 0 78.9%
Taylor expanded in c around 0 86.9%
Taylor expanded in x around 0 72.6%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
if -2.2999999999999998e41 < t < 2.5000000000000002e-209Initial program 85.5%
associate-+l-85.5%
*-commutative85.5%
associate-*r*80.0%
*-commutative80.0%
associate-+l-80.0%
associate-*l*80.1%
associate-*l*86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in x around inf 77.4%
Final simplification74.4%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1.15e+126) (not (<= t 4.1e-93))) (* -4.0 (* a (/ t c))) (/ (+ b (* 9.0 (* x y))) (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.15e+126) || !(t <= 4.1e-93)) {
tmp = -4.0 * (a * (t / c));
} else {
tmp = (b + (9.0 * (x * y))) / (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 ((t <= (-1.15d+126)) .or. (.not. (t <= 4.1d-93))) then
tmp = (-4.0d0) * (a * (t / c))
else
tmp = (b + (9.0d0 * (x * y))) / (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 ((t <= -1.15e+126) || !(t <= 4.1e-93)) {
tmp = -4.0 * (a * (t / c));
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.15e+126) or not (t <= 4.1e-93): tmp = -4.0 * (a * (t / c)) else: tmp = (b + (9.0 * (x * y))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.15e+126) || !(t <= 4.1e-93)) tmp = Float64(-4.0 * Float64(a * Float64(t / c))); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.15e+126) || ~((t <= 4.1e-93))) tmp = -4.0 * (a * (t / c)); else tmp = (b + (9.0 * (x * y))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.15e+126], N[Not[LessEqual[t, 4.1e-93]], $MachinePrecision]], N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+126} \lor \neg \left(t \leq 4.1 \cdot 10^{-93}\right):\\
\;\;\;\;-4 \cdot \left(a \cdot \frac{t}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if t < -1.15e126 or 4.0999999999999999e-93 < t Initial program 77.2%
associate-+l-77.2%
*-commutative77.2%
associate-*r*79.5%
*-commutative79.5%
associate-+l-79.5%
associate-*l*79.5%
associate-*l*78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in z around inf 64.2%
*-commutative64.2%
associate-/l*67.2%
Simplified67.2%
if -1.15e126 < t < 4.0999999999999999e-93Initial program 83.1%
associate-+l-83.1%
*-commutative83.1%
associate-*r*78.5%
*-commutative78.5%
associate-+l-78.5%
associate-*l*78.5%
associate-*l*82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in x around inf 73.0%
Final simplification70.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -6e+184) (/ b (* z c)) (if (<= b 4.6e+35) (* -4.0 (/ (* a t) c)) (/ (/ b c) z))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6e+184) {
tmp = b / (z * c);
} else if (b <= 4.6e+35) {
tmp = -4.0 * ((a * t) / c);
} else {
tmp = (b / c) / z;
}
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 <= (-6d+184)) then
tmp = b / (z * c)
else if (b <= 4.6d+35) then
tmp = (-4.0d0) * ((a * t) / c)
else
tmp = (b / c) / 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 tmp;
if (b <= -6e+184) {
tmp = b / (z * c);
} else if (b <= 4.6e+35) {
tmp = -4.0 * ((a * t) / c);
} else {
tmp = (b / c) / z;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6e+184: tmp = b / (z * c) elif b <= 4.6e+35: tmp = -4.0 * ((a * t) / c) else: tmp = (b / c) / z return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6e+184) tmp = Float64(b / Float64(z * c)); elseif (b <= 4.6e+35) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); else tmp = Float64(Float64(b / c) / z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -6e+184) tmp = b / (z * c); elseif (b <= 4.6e+35) tmp = -4.0 * ((a * t) / c); else tmp = (b / c) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6e+184], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e+35], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{+184}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+35}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\end{array}
\end{array}
if b < -5.99999999999999973e184Initial program 79.5%
associate-+l-79.5%
*-commutative79.5%
associate-*r*79.5%
*-commutative79.5%
associate-+l-79.5%
associate-*l*79.5%
associate-*l*83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in b around inf 83.6%
*-commutative83.6%
Simplified83.6%
if -5.99999999999999973e184 < b < 4.5999999999999996e35Initial program 81.4%
associate-+l-81.4%
*-commutative81.4%
associate-*r*80.2%
*-commutative80.2%
associate-+l-80.2%
associate-*l*80.2%
associate-*l*82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in z around inf 51.1%
if 4.5999999999999996e35 < b Initial program 76.8%
associate-+l-76.8%
*-commutative76.8%
associate-*r*75.1%
*-commutative75.1%
associate-+l-75.1%
associate-*l*75.1%
associate-*l*73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in b around inf 53.4%
associate-/r*56.7%
Simplified56.7%
(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 80.2%
associate-+l-80.2%
*-commutative80.2%
associate-*r*79.0%
*-commutative79.0%
associate-+l-79.0%
associate-*l*79.0%
associate-*l*80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in b around inf 34.0%
*-commutative34.0%
Simplified34.0%
(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 2024108
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:alt
(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)))