
(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
(let* ((t_1 (fma t (* a -4.0) (/ (fma x (* 9.0 y) b) z))))
(if (<= z -10.0)
(/ t_1 c)
(if (<= z 2.5e-39)
(/ (+ b (- (* y (* x 9.0)) (* a (* t (* z 4.0))))) (* z c))
(* t_1 (pow c -1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma(t, (a * -4.0), (fma(x, (9.0 * y), b) / z));
double tmp;
if (z <= -10.0) {
tmp = t_1 / c;
} else if (z <= 2.5e-39) {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = t_1 * pow(c, -1.0);
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(t, Float64(a * -4.0), Float64(fma(x, Float64(9.0 * y), b) / z)) tmp = 0.0 if (z <= -10.0) tmp = Float64(t_1 / c); elseif (z <= 2.5e-39) tmp = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); else tmp = Float64(t_1 * (c ^ -1.0)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(a * -4.0), $MachinePrecision] + N[(N[(x * N[(9.0 * y), $MachinePrecision] + b), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -10.0], N[(t$95$1 / c), $MachinePrecision], If[LessEqual[z, 2.5e-39], N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Power[c, -1.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, a \cdot -4, \frac{\mathsf{fma}\left(x, 9 \cdot y, b\right)}{z}\right)\\
\mathbf{if}\;z \leq -10:\\
\;\;\;\;\frac{t_1}{c}\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-39}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot {c}^{-1}\\
\end{array}
\end{array}
if z < -10Initial program 65.4%
associate-/r*72.4%
Simplified86.4%
if -10 < z < 2.4999999999999999e-39Initial program 95.8%
if 2.4999999999999999e-39 < z Initial program 74.3%
associate-/r*79.4%
Simplified89.0%
div-inv89.0%
inv-pow89.0%
Applied egg-rr89.0%
Final simplification91.4%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -0.4) (not (<= z 1.42e-40))) (/ (fma t (* a -4.0) (/ (fma x (* 9.0 y) b) z)) c) (/ (+ b (- (* y (* x 9.0)) (* 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 <= -0.4) || !(z <= 1.42e-40)) {
tmp = fma(t, (a * -4.0), (fma(x, (9.0 * y), b) / z)) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -0.4) || !(z <= 1.42e-40)) tmp = Float64(fma(t, Float64(a * -4.0), Float64(fma(x, Float64(9.0 * y), b) / z)) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -0.4], N[Not[LessEqual[z, 1.42e-40]], $MachinePrecision]], N[(N[(t * N[(a * -4.0), $MachinePrecision] + N[(N[(x * N[(9.0 * y), $MachinePrecision] + b), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(x * 9.0), $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 -0.4 \lor \neg \left(z \leq 1.42 \cdot 10^{-40}\right):\\
\;\;\;\;\frac{\mathsf{fma}\left(t, a \cdot -4, \frac{\mathsf{fma}\left(x, 9 \cdot y, b\right)}{z}\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -0.40000000000000002 or 1.42000000000000001e-40 < z Initial program 70.4%
associate-/r*76.4%
Simplified87.9%
if -0.40000000000000002 < z < 1.42000000000000001e-40Initial program 95.8%
Final simplification91.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* (/ x z) (/ y c)))))
(if (<= t -2.7e+82)
(* -4.0 (/ a (/ c t)))
(if (<= t -9.6e-15)
(/ b (* z c))
(if (<= t -7.4e-81)
t_1
(if (<= t -2.5e-253)
(/ (/ b z) c)
(if (<= t 6.5e-293)
(* 9.0 (/ (* x (/ y z)) c))
(if (<= t 5e-207)
(/ (/ b c) z)
(if (<= t 2.65e-205)
(/ (* -4.0 (* t a)) c)
(if (<= t 1.5e-130) t_1 (* -4.0 (* t (/ a c)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((x / z) * (y / c));
double tmp;
if (t <= -2.7e+82) {
tmp = -4.0 * (a / (c / t));
} else if (t <= -9.6e-15) {
tmp = b / (z * c);
} else if (t <= -7.4e-81) {
tmp = t_1;
} else if (t <= -2.5e-253) {
tmp = (b / z) / c;
} else if (t <= 6.5e-293) {
tmp = 9.0 * ((x * (y / z)) / c);
} else if (t <= 5e-207) {
tmp = (b / c) / z;
} else if (t <= 2.65e-205) {
tmp = (-4.0 * (t * a)) / c;
} else if (t <= 1.5e-130) {
tmp = t_1;
} else {
tmp = -4.0 * (t * (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) :: t_1
real(8) :: tmp
t_1 = 9.0d0 * ((x / z) * (y / c))
if (t <= (-2.7d+82)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= (-9.6d-15)) then
tmp = b / (z * c)
else if (t <= (-7.4d-81)) then
tmp = t_1
else if (t <= (-2.5d-253)) then
tmp = (b / z) / c
else if (t <= 6.5d-293) then
tmp = 9.0d0 * ((x * (y / z)) / c)
else if (t <= 5d-207) then
tmp = (b / c) / z
else if (t <= 2.65d-205) then
tmp = ((-4.0d0) * (t * a)) / c
else if (t <= 1.5d-130) then
tmp = t_1
else
tmp = (-4.0d0) * (t * (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 t_1 = 9.0 * ((x / z) * (y / c));
double tmp;
if (t <= -2.7e+82) {
tmp = -4.0 * (a / (c / t));
} else if (t <= -9.6e-15) {
tmp = b / (z * c);
} else if (t <= -7.4e-81) {
tmp = t_1;
} else if (t <= -2.5e-253) {
tmp = (b / z) / c;
} else if (t <= 6.5e-293) {
tmp = 9.0 * ((x * (y / z)) / c);
} else if (t <= 5e-207) {
tmp = (b / c) / z;
} else if (t <= 2.65e-205) {
tmp = (-4.0 * (t * a)) / c;
} else if (t <= 1.5e-130) {
tmp = t_1;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * ((x / z) * (y / c)) tmp = 0 if t <= -2.7e+82: tmp = -4.0 * (a / (c / t)) elif t <= -9.6e-15: tmp = b / (z * c) elif t <= -7.4e-81: tmp = t_1 elif t <= -2.5e-253: tmp = (b / z) / c elif t <= 6.5e-293: tmp = 9.0 * ((x * (y / z)) / c) elif t <= 5e-207: tmp = (b / c) / z elif t <= 2.65e-205: tmp = (-4.0 * (t * a)) / c elif t <= 1.5e-130: tmp = t_1 else: tmp = -4.0 * (t * (a / c)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(Float64(x / z) * Float64(y / c))) tmp = 0.0 if (t <= -2.7e+82) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= -9.6e-15) tmp = Float64(b / Float64(z * c)); elseif (t <= -7.4e-81) tmp = t_1; elseif (t <= -2.5e-253) tmp = Float64(Float64(b / z) / c); elseif (t <= 6.5e-293) tmp = Float64(9.0 * Float64(Float64(x * Float64(y / z)) / c)); elseif (t <= 5e-207) tmp = Float64(Float64(b / c) / z); elseif (t <= 2.65e-205) tmp = Float64(Float64(-4.0 * Float64(t * a)) / c); elseif (t <= 1.5e-130) tmp = t_1; else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * ((x / z) * (y / c)); tmp = 0.0; if (t <= -2.7e+82) tmp = -4.0 * (a / (c / t)); elseif (t <= -9.6e-15) tmp = b / (z * c); elseif (t <= -7.4e-81) tmp = t_1; elseif (t <= -2.5e-253) tmp = (b / z) / c; elseif (t <= 6.5e-293) tmp = 9.0 * ((x * (y / z)) / c); elseif (t <= 5e-207) tmp = (b / c) / z; elseif (t <= 2.65e-205) tmp = (-4.0 * (t * a)) / c; elseif (t <= 1.5e-130) tmp = t_1; else tmp = -4.0 * (t * (a / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.7e+82], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.6e-15], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.4e-81], t$95$1, If[LessEqual[t, -2.5e-253], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 6.5e-293], N[(9.0 * N[(N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-207], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t, 2.65e-205], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 1.5e-130], t$95$1, N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{+82}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq -9.6 \cdot 10^{-15}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;t \leq -7.4 \cdot 10^{-81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-253}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-293}:\\
\;\;\;\;9 \cdot \frac{x \cdot \frac{y}{z}}{c}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-207}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{-205}:\\
\;\;\;\;\frac{-4 \cdot \left(t \cdot a\right)}{c}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if t < -2.6999999999999999e82Initial program 75.3%
associate-/r*73.6%
Simplified78.1%
Taylor expanded in t around inf 59.3%
associate-/l*80.4%
Simplified80.4%
if -2.6999999999999999e82 < t < -9.5999999999999998e-15Initial program 80.3%
associate-/r*77.6%
Simplified87.2%
Taylor expanded in b around inf 44.7%
*-commutative44.7%
Simplified44.7%
if -9.5999999999999998e-15 < t < -7.39999999999999971e-81 or 2.64999999999999996e-205 < t < 1.49999999999999993e-130Initial program 82.3%
associate-/r*86.6%
Simplified86.7%
fma-udef86.7%
Applied egg-rr86.7%
Taylor expanded in x around inf 38.3%
times-frac47.1%
*-commutative47.1%
Simplified47.1%
if -7.39999999999999971e-81 < t < -2.49999999999999986e-253Initial program 88.2%
associate-/r*91.1%
Simplified94.0%
Taylor expanded in t around 0 79.4%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in b around inf 56.9%
if -2.49999999999999986e-253 < t < 6.50000000000000033e-293Initial program 74.6%
associate-/r*75.1%
Simplified75.1%
Taylor expanded in x around inf 39.4%
*-commutative39.4%
times-frac56.0%
Simplified56.0%
associate-*r/56.2%
Applied egg-rr56.2%
if 6.50000000000000033e-293 < t < 5.00000000000000014e-207Initial program 89.7%
associate-/r*89.2%
Simplified92.7%
fma-udef92.7%
Applied egg-rr92.7%
Taylor expanded in b around inf 54.1%
associate-/r*57.3%
Simplified57.3%
if 5.00000000000000014e-207 < t < 2.64999999999999996e-205Initial program 100.0%
associate-/r*98.4%
Simplified100.0%
Taylor expanded in t around inf 100.0%
if 1.49999999999999993e-130 < t Initial program 80.6%
associate-/r*78.0%
Simplified85.3%
Taylor expanded in t around inf 40.2%
associate-/l*43.2%
associate-/r/40.4%
Simplified40.4%
Final simplification52.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -3.3e+83)
(* -4.0 (/ a (/ c t)))
(if (<= t -9.5e-15)
(/ b (* z c))
(if (<= t -7.5e-81)
(/ (* 9.0 (* y (/ x z))) c)
(if (<= t -2.6e-252)
(/ (/ b z) c)
(if (<= t 7.7e-292)
(* 9.0 (/ (* x (/ y z)) c))
(if (<= t 5e-207)
(/ (/ b c) z)
(if (<= t 2.65e-205)
(/ (* -4.0 (* t a)) c)
(if (<= t 2e-127)
(* 9.0 (* (/ x z) (/ y c)))
(* -4.0 (* t (/ a c))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.3e+83) {
tmp = -4.0 * (a / (c / t));
} else if (t <= -9.5e-15) {
tmp = b / (z * c);
} else if (t <= -7.5e-81) {
tmp = (9.0 * (y * (x / z))) / c;
} else if (t <= -2.6e-252) {
tmp = (b / z) / c;
} else if (t <= 7.7e-292) {
tmp = 9.0 * ((x * (y / z)) / c);
} else if (t <= 5e-207) {
tmp = (b / c) / z;
} else if (t <= 2.65e-205) {
tmp = (-4.0 * (t * a)) / c;
} else if (t <= 2e-127) {
tmp = 9.0 * ((x / z) * (y / c));
} else {
tmp = -4.0 * (t * (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 (t <= (-3.3d+83)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= (-9.5d-15)) then
tmp = b / (z * c)
else if (t <= (-7.5d-81)) then
tmp = (9.0d0 * (y * (x / z))) / c
else if (t <= (-2.6d-252)) then
tmp = (b / z) / c
else if (t <= 7.7d-292) then
tmp = 9.0d0 * ((x * (y / z)) / c)
else if (t <= 5d-207) then
tmp = (b / c) / z
else if (t <= 2.65d-205) then
tmp = ((-4.0d0) * (t * a)) / c
else if (t <= 2d-127) then
tmp = 9.0d0 * ((x / z) * (y / c))
else
tmp = (-4.0d0) * (t * (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 (t <= -3.3e+83) {
tmp = -4.0 * (a / (c / t));
} else if (t <= -9.5e-15) {
tmp = b / (z * c);
} else if (t <= -7.5e-81) {
tmp = (9.0 * (y * (x / z))) / c;
} else if (t <= -2.6e-252) {
tmp = (b / z) / c;
} else if (t <= 7.7e-292) {
tmp = 9.0 * ((x * (y / z)) / c);
} else if (t <= 5e-207) {
tmp = (b / c) / z;
} else if (t <= 2.65e-205) {
tmp = (-4.0 * (t * a)) / c;
} else if (t <= 2e-127) {
tmp = 9.0 * ((x / z) * (y / c));
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -3.3e+83: tmp = -4.0 * (a / (c / t)) elif t <= -9.5e-15: tmp = b / (z * c) elif t <= -7.5e-81: tmp = (9.0 * (y * (x / z))) / c elif t <= -2.6e-252: tmp = (b / z) / c elif t <= 7.7e-292: tmp = 9.0 * ((x * (y / z)) / c) elif t <= 5e-207: tmp = (b / c) / z elif t <= 2.65e-205: tmp = (-4.0 * (t * a)) / c elif t <= 2e-127: tmp = 9.0 * ((x / z) * (y / c)) else: tmp = -4.0 * (t * (a / c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -3.3e+83) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= -9.5e-15) tmp = Float64(b / Float64(z * c)); elseif (t <= -7.5e-81) tmp = Float64(Float64(9.0 * Float64(y * Float64(x / z))) / c); elseif (t <= -2.6e-252) tmp = Float64(Float64(b / z) / c); elseif (t <= 7.7e-292) tmp = Float64(9.0 * Float64(Float64(x * Float64(y / z)) / c)); elseif (t <= 5e-207) tmp = Float64(Float64(b / c) / z); elseif (t <= 2.65e-205) tmp = Float64(Float64(-4.0 * Float64(t * a)) / c); elseif (t <= 2e-127) tmp = Float64(9.0 * Float64(Float64(x / z) * Float64(y / c))); else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -3.3e+83) tmp = -4.0 * (a / (c / t)); elseif (t <= -9.5e-15) tmp = b / (z * c); elseif (t <= -7.5e-81) tmp = (9.0 * (y * (x / z))) / c; elseif (t <= -2.6e-252) tmp = (b / z) / c; elseif (t <= 7.7e-292) tmp = 9.0 * ((x * (y / z)) / c); elseif (t <= 5e-207) tmp = (b / c) / z; elseif (t <= 2.65e-205) tmp = (-4.0 * (t * a)) / c; elseif (t <= 2e-127) tmp = 9.0 * ((x / z) * (y / c)); else tmp = -4.0 * (t * (a / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -3.3e+83], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e-15], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e-81], N[(N[(9.0 * N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, -2.6e-252], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 7.7e-292], N[(9.0 * N[(N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-207], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t, 2.65e-205], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 2e-127], N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{+83}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-15}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-81}:\\
\;\;\;\;\frac{9 \cdot \left(y \cdot \frac{x}{z}\right)}{c}\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-252}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;t \leq 7.7 \cdot 10^{-292}:\\
\;\;\;\;9 \cdot \frac{x \cdot \frac{y}{z}}{c}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-207}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{-205}:\\
\;\;\;\;\frac{-4 \cdot \left(t \cdot a\right)}{c}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-127}:\\
\;\;\;\;9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if t < -3.29999999999999985e83Initial program 75.3%
associate-/r*73.6%
Simplified78.1%
Taylor expanded in t around inf 59.3%
associate-/l*80.4%
Simplified80.4%
if -3.29999999999999985e83 < t < -9.5000000000000005e-15Initial program 80.3%
associate-/r*77.6%
Simplified87.2%
Taylor expanded in b around inf 44.7%
*-commutative44.7%
Simplified44.7%
if -9.5000000000000005e-15 < t < -7.50000000000000018e-81Initial program 81.0%
associate-/r*90.1%
Simplified90.0%
Taylor expanded in t around 0 51.3%
associate-/l*51.2%
Simplified51.2%
Taylor expanded in b around 0 42.0%
*-commutative42.0%
associate-/l*41.8%
associate-/r/42.0%
Simplified42.0%
if -7.50000000000000018e-81 < t < -2.5999999999999999e-252Initial program 88.2%
associate-/r*91.1%
Simplified94.0%
Taylor expanded in t around 0 79.4%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in b around inf 56.9%
if -2.5999999999999999e-252 < t < 7.69999999999999973e-292Initial program 74.6%
associate-/r*75.1%
Simplified75.1%
Taylor expanded in x around inf 39.4%
*-commutative39.4%
times-frac56.0%
Simplified56.0%
associate-*r/56.2%
Applied egg-rr56.2%
if 7.69999999999999973e-292 < t < 5.00000000000000014e-207Initial program 89.7%
associate-/r*89.2%
Simplified92.7%
fma-udef92.7%
Applied egg-rr92.7%
Taylor expanded in b around inf 54.1%
associate-/r*57.3%
Simplified57.3%
if 5.00000000000000014e-207 < t < 2.64999999999999996e-205Initial program 100.0%
associate-/r*98.4%
Simplified100.0%
Taylor expanded in t around inf 100.0%
if 2.64999999999999996e-205 < t < 2.0000000000000001e-127Initial program 83.4%
associate-/r*83.7%
Simplified83.9%
fma-udef83.9%
Applied egg-rr83.9%
Taylor expanded in x around inf 43.0%
times-frac59.3%
*-commutative59.3%
Simplified59.3%
if 2.0000000000000001e-127 < t Initial program 80.6%
associate-/r*78.0%
Simplified85.3%
Taylor expanded in t around inf 40.2%
associate-/l*43.2%
associate-/r/40.4%
Simplified40.4%
Final simplification53.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* t (* a -4.0))) (t_2 (/ (+ t_1 (* 9.0 (/ x (/ z y)))) c)))
(if (<= x -7.8e+214)
t_2
(if (<= x -6.5e+170)
(/ (/ (- b (* y (* x -9.0))) c) z)
(if (or (<= x -2.4e+97) (not (<= x 1200000000000.0)))
t_2
(/ (+ t_1 (/ b z)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = t * (a * -4.0);
double t_2 = (t_1 + (9.0 * (x / (z / y)))) / c;
double tmp;
if (x <= -7.8e+214) {
tmp = t_2;
} else if (x <= -6.5e+170) {
tmp = ((b - (y * (x * -9.0))) / c) / z;
} else if ((x <= -2.4e+97) || !(x <= 1200000000000.0)) {
tmp = t_2;
} else {
tmp = (t_1 + (b / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (a * (-4.0d0))
t_2 = (t_1 + (9.0d0 * (x / (z / y)))) / c
if (x <= (-7.8d+214)) then
tmp = t_2
else if (x <= (-6.5d+170)) then
tmp = ((b - (y * (x * (-9.0d0)))) / c) / z
else if ((x <= (-2.4d+97)) .or. (.not. (x <= 1200000000000.0d0))) then
tmp = t_2
else
tmp = (t_1 + (b / 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 t_1 = t * (a * -4.0);
double t_2 = (t_1 + (9.0 * (x / (z / y)))) / c;
double tmp;
if (x <= -7.8e+214) {
tmp = t_2;
} else if (x <= -6.5e+170) {
tmp = ((b - (y * (x * -9.0))) / c) / z;
} else if ((x <= -2.4e+97) || !(x <= 1200000000000.0)) {
tmp = t_2;
} else {
tmp = (t_1 + (b / z)) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = t * (a * -4.0) t_2 = (t_1 + (9.0 * (x / (z / y)))) / c tmp = 0 if x <= -7.8e+214: tmp = t_2 elif x <= -6.5e+170: tmp = ((b - (y * (x * -9.0))) / c) / z elif (x <= -2.4e+97) or not (x <= 1200000000000.0): tmp = t_2 else: tmp = (t_1 + (b / z)) / c return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(t * Float64(a * -4.0)) t_2 = Float64(Float64(t_1 + Float64(9.0 * Float64(x / Float64(z / y)))) / c) tmp = 0.0 if (x <= -7.8e+214) tmp = t_2; elseif (x <= -6.5e+170) tmp = Float64(Float64(Float64(b - Float64(y * Float64(x * -9.0))) / c) / z); elseif ((x <= -2.4e+97) || !(x <= 1200000000000.0)) tmp = t_2; else tmp = Float64(Float64(t_1 + Float64(b / z)) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = t * (a * -4.0); t_2 = (t_1 + (9.0 * (x / (z / y)))) / c; tmp = 0.0; if (x <= -7.8e+214) tmp = t_2; elseif (x <= -6.5e+170) tmp = ((b - (y * (x * -9.0))) / c) / z; elseif ((x <= -2.4e+97) || ~((x <= 1200000000000.0))) tmp = t_2; else tmp = (t_1 + (b / z)) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 + N[(9.0 * N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[x, -7.8e+214], t$95$2, If[LessEqual[x, -6.5e+170], N[(N[(N[(b - N[(y * N[(x * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] / z), $MachinePrecision], If[Or[LessEqual[x, -2.4e+97], N[Not[LessEqual[x, 1200000000000.0]], $MachinePrecision]], t$95$2, N[(N[(t$95$1 + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot -4\right)\\
t_2 := \frac{t_1 + 9 \cdot \frac{x}{\frac{z}{y}}}{c}\\
\mathbf{if}\;x \leq -7.8 \cdot 10^{+214}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{+170}:\\
\;\;\;\;\frac{\frac{b - y \cdot \left(x \cdot -9\right)}{c}}{z}\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{+97} \lor \neg \left(x \leq 1200000000000\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1 + \frac{b}{z}}{c}\\
\end{array}
\end{array}
if x < -7.80000000000000027e214 or -6.5e170 < x < -2.4e97 or 1.2e12 < x Initial program 74.3%
associate-/r*76.4%
Simplified80.0%
fma-udef80.0%
Applied egg-rr80.0%
Taylor expanded in x around inf 65.9%
*-commutative65.9%
associate-/l*73.1%
Simplified73.1%
if -7.80000000000000027e214 < x < -6.5e170Initial program 61.6%
associate-/r*62.0%
Simplified81.5%
Taylor expanded in t around 0 51.7%
associate-/l*51.7%
Simplified51.7%
Taylor expanded in z around -inf 62.3%
mul-1-neg62.3%
associate-/r*72.6%
distribute-neg-frac72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
associate-*l*72.6%
Simplified72.6%
if -2.4e97 < x < 1.2e12Initial program 88.6%
associate-/r*85.5%
Simplified90.9%
Taylor expanded in x around 0 79.1%
Final simplification76.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* t (* a -4.0))) (t_2 (/ (+ t_1 (* 9.0 (/ x (/ z y)))) c)))
(if (<= x -6.2e+214)
t_2
(if (<= x -5.8e+170)
(/ (/ (- b (* y (* x -9.0))) c) z)
(if (<= x -3.2e+97)
(/ (+ t_1 (/ (* 9.0 (* x y)) z)) c)
(if (<= x 1150000000000.0) (/ (+ t_1 (/ b z)) c) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = t * (a * -4.0);
double t_2 = (t_1 + (9.0 * (x / (z / y)))) / c;
double tmp;
if (x <= -6.2e+214) {
tmp = t_2;
} else if (x <= -5.8e+170) {
tmp = ((b - (y * (x * -9.0))) / c) / z;
} else if (x <= -3.2e+97) {
tmp = (t_1 + ((9.0 * (x * y)) / z)) / c;
} else if (x <= 1150000000000.0) {
tmp = (t_1 + (b / z)) / c;
} 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 = t * (a * (-4.0d0))
t_2 = (t_1 + (9.0d0 * (x / (z / y)))) / c
if (x <= (-6.2d+214)) then
tmp = t_2
else if (x <= (-5.8d+170)) then
tmp = ((b - (y * (x * (-9.0d0)))) / c) / z
else if (x <= (-3.2d+97)) then
tmp = (t_1 + ((9.0d0 * (x * y)) / z)) / c
else if (x <= 1150000000000.0d0) then
tmp = (t_1 + (b / z)) / c
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 = t * (a * -4.0);
double t_2 = (t_1 + (9.0 * (x / (z / y)))) / c;
double tmp;
if (x <= -6.2e+214) {
tmp = t_2;
} else if (x <= -5.8e+170) {
tmp = ((b - (y * (x * -9.0))) / c) / z;
} else if (x <= -3.2e+97) {
tmp = (t_1 + ((9.0 * (x * y)) / z)) / c;
} else if (x <= 1150000000000.0) {
tmp = (t_1 + (b / z)) / c;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = t * (a * -4.0) t_2 = (t_1 + (9.0 * (x / (z / y)))) / c tmp = 0 if x <= -6.2e+214: tmp = t_2 elif x <= -5.8e+170: tmp = ((b - (y * (x * -9.0))) / c) / z elif x <= -3.2e+97: tmp = (t_1 + ((9.0 * (x * y)) / z)) / c elif x <= 1150000000000.0: tmp = (t_1 + (b / z)) / c else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(t * Float64(a * -4.0)) t_2 = Float64(Float64(t_1 + Float64(9.0 * Float64(x / Float64(z / y)))) / c) tmp = 0.0 if (x <= -6.2e+214) tmp = t_2; elseif (x <= -5.8e+170) tmp = Float64(Float64(Float64(b - Float64(y * Float64(x * -9.0))) / c) / z); elseif (x <= -3.2e+97) tmp = Float64(Float64(t_1 + Float64(Float64(9.0 * Float64(x * y)) / z)) / c); elseif (x <= 1150000000000.0) tmp = Float64(Float64(t_1 + Float64(b / z)) / c); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = t * (a * -4.0); t_2 = (t_1 + (9.0 * (x / (z / y)))) / c; tmp = 0.0; if (x <= -6.2e+214) tmp = t_2; elseif (x <= -5.8e+170) tmp = ((b - (y * (x * -9.0))) / c) / z; elseif (x <= -3.2e+97) tmp = (t_1 + ((9.0 * (x * y)) / z)) / c; elseif (x <= 1150000000000.0) tmp = (t_1 + (b / z)) / c; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 + N[(9.0 * N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[x, -6.2e+214], t$95$2, If[LessEqual[x, -5.8e+170], N[(N[(N[(b - N[(y * N[(x * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, -3.2e+97], N[(N[(t$95$1 + N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[x, 1150000000000.0], N[(N[(t$95$1 + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot -4\right)\\
t_2 := \frac{t_1 + 9 \cdot \frac{x}{\frac{z}{y}}}{c}\\
\mathbf{if}\;x \leq -6.2 \cdot 10^{+214}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{+170}:\\
\;\;\;\;\frac{\frac{b - y \cdot \left(x \cdot -9\right)}{c}}{z}\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{+97}:\\
\;\;\;\;\frac{t_1 + \frac{9 \cdot \left(x \cdot y\right)}{z}}{c}\\
\mathbf{elif}\;x \leq 1150000000000:\\
\;\;\;\;\frac{t_1 + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -6.19999999999999957e214 or 1.15e12 < x Initial program 75.2%
associate-/r*78.6%
Simplified82.6%
fma-udef82.6%
Applied egg-rr82.6%
Taylor expanded in x around inf 66.9%
*-commutative66.9%
associate-/l*74.0%
Simplified74.0%
if -6.19999999999999957e214 < x < -5.8000000000000001e170Initial program 61.6%
associate-/r*62.0%
Simplified81.5%
Taylor expanded in t around 0 51.7%
associate-/l*51.7%
Simplified51.7%
Taylor expanded in z around -inf 62.3%
mul-1-neg62.3%
associate-/r*72.6%
distribute-neg-frac72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
associate-*l*72.6%
Simplified72.6%
if -5.8000000000000001e170 < x < -3.20000000000000016e97Initial program 66.3%
associate-/r*58.0%
Simplified58.0%
Taylor expanded in x around inf 58.0%
if -3.20000000000000016e97 < x < 1.15e12Initial program 88.6%
associate-/r*85.5%
Simplified90.9%
Taylor expanded in x around 0 79.1%
Final simplification76.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* x (* 9.0 y))))
(if (or (<= z -5e+36) (not (<= z 2e-46)))
(/ (+ (/ (+ b t_1) z) (* t (* a -4.0))) c)
(/ (+ b (- t_1 (* (* z 4.0) (* t a)))) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x * (9.0 * y);
double tmp;
if ((z <= -5e+36) || !(z <= 2e-46)) {
tmp = (((b + t_1) / z) + (t * (a * -4.0))) / c;
} else {
tmp = (b + (t_1 - ((z * 4.0) * (t * a)))) / (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) :: t_1
real(8) :: tmp
t_1 = x * (9.0d0 * y)
if ((z <= (-5d+36)) .or. (.not. (z <= 2d-46))) then
tmp = (((b + t_1) / z) + (t * (a * (-4.0d0)))) / c
else
tmp = (b + (t_1 - ((z * 4.0d0) * (t * a)))) / (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 t_1 = x * (9.0 * y);
double tmp;
if ((z <= -5e+36) || !(z <= 2e-46)) {
tmp = (((b + t_1) / z) + (t * (a * -4.0))) / c;
} else {
tmp = (b + (t_1 - ((z * 4.0) * (t * a)))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x * (9.0 * y) tmp = 0 if (z <= -5e+36) or not (z <= 2e-46): tmp = (((b + t_1) / z) + (t * (a * -4.0))) / c else: tmp = (b + (t_1 - ((z * 4.0) * (t * a)))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x * Float64(9.0 * y)) tmp = 0.0 if ((z <= -5e+36) || !(z <= 2e-46)) tmp = Float64(Float64(Float64(Float64(b + t_1) / z) + Float64(t * Float64(a * -4.0))) / c); else tmp = Float64(Float64(b + Float64(t_1 - Float64(Float64(z * 4.0) * Float64(t * a)))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x * (9.0 * y); tmp = 0.0; if ((z <= -5e+36) || ~((z <= 2e-46))) tmp = (((b + t_1) / z) + (t * (a * -4.0))) / c; else tmp = (b + (t_1 - ((z * 4.0) * (t * a)))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -5e+36], N[Not[LessEqual[z, 2e-46]], $MachinePrecision]], N[(N[(N[(N[(b + t$95$1), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(t$95$1 - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(9 \cdot y\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{+36} \lor \neg \left(z \leq 2 \cdot 10^{-46}\right):\\
\;\;\;\;\frac{\frac{b + t_1}{z} + t \cdot \left(a \cdot -4\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(t_1 - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -4.99999999999999977e36 or 2.00000000000000005e-46 < z Initial program 69.4%
associate-/r*75.7%
Simplified87.8%
fma-udef87.8%
Applied egg-rr87.8%
if -4.99999999999999977e36 < z < 2.00000000000000005e-46Initial program 95.2%
associate-*l*95.2%
associate-*l*93.7%
Simplified93.7%
Final simplification90.6%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -0.1) (not (<= z 5e-37))) (/ (+ (/ (+ b (* x (* 9.0 y))) z) (* t (* a -4.0))) c) (/ (+ b (- (* y (* x 9.0)) (* 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 <= -0.1) || !(z <= 5e-37)) {
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (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 <= (-0.1d0)) .or. (.not. (z <= 5d-37))) then
tmp = (((b + (x * (9.0d0 * y))) / z) + (t * (a * (-4.0d0)))) / c
else
tmp = (b + ((y * (x * 9.0d0)) - (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 <= -0.1) || !(z <= 5e-37)) {
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -0.1) or not (z <= 5e-37): tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c else: tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -0.1) || !(z <= 5e-37)) tmp = Float64(Float64(Float64(Float64(b + Float64(x * Float64(9.0 * y))) / z) + Float64(t * Float64(a * -4.0))) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - 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 <= -0.1) || ~((z <= 5e-37))) tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c; else tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -0.1], N[Not[LessEqual[z, 5e-37]], $MachinePrecision]], N[(N[(N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(x * 9.0), $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 -0.1 \lor \neg \left(z \leq 5 \cdot 10^{-37}\right):\\
\;\;\;\;\frac{\frac{b + x \cdot \left(9 \cdot y\right)}{z} + t \cdot \left(a \cdot -4\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -0.10000000000000001 or 4.9999999999999997e-37 < z Initial program 70.4%
associate-/r*76.4%
Simplified87.8%
fma-udef87.8%
Applied egg-rr87.8%
if -0.10000000000000001 < z < 4.9999999999999997e-37Initial program 95.8%
Final simplification91.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* (/ x z) (/ y c)))))
(if (<= t -1.05e+80)
(* -4.0 (/ a (/ c t)))
(if (<= t -2.5e-14)
(/ b (* z c))
(if (<= t -8.2e-81)
t_1
(if (<= t -6.2e-252)
(/ (/ b z) c)
(if (<= t 4.6e-129) t_1 (* -4.0 (* t (/ a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((x / z) * (y / c));
double tmp;
if (t <= -1.05e+80) {
tmp = -4.0 * (a / (c / t));
} else if (t <= -2.5e-14) {
tmp = b / (z * c);
} else if (t <= -8.2e-81) {
tmp = t_1;
} else if (t <= -6.2e-252) {
tmp = (b / z) / c;
} else if (t <= 4.6e-129) {
tmp = t_1;
} else {
tmp = -4.0 * (t * (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) :: t_1
real(8) :: tmp
t_1 = 9.0d0 * ((x / z) * (y / c))
if (t <= (-1.05d+80)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= (-2.5d-14)) then
tmp = b / (z * c)
else if (t <= (-8.2d-81)) then
tmp = t_1
else if (t <= (-6.2d-252)) then
tmp = (b / z) / c
else if (t <= 4.6d-129) then
tmp = t_1
else
tmp = (-4.0d0) * (t * (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 t_1 = 9.0 * ((x / z) * (y / c));
double tmp;
if (t <= -1.05e+80) {
tmp = -4.0 * (a / (c / t));
} else if (t <= -2.5e-14) {
tmp = b / (z * c);
} else if (t <= -8.2e-81) {
tmp = t_1;
} else if (t <= -6.2e-252) {
tmp = (b / z) / c;
} else if (t <= 4.6e-129) {
tmp = t_1;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * ((x / z) * (y / c)) tmp = 0 if t <= -1.05e+80: tmp = -4.0 * (a / (c / t)) elif t <= -2.5e-14: tmp = b / (z * c) elif t <= -8.2e-81: tmp = t_1 elif t <= -6.2e-252: tmp = (b / z) / c elif t <= 4.6e-129: tmp = t_1 else: tmp = -4.0 * (t * (a / c)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(Float64(x / z) * Float64(y / c))) tmp = 0.0 if (t <= -1.05e+80) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= -2.5e-14) tmp = Float64(b / Float64(z * c)); elseif (t <= -8.2e-81) tmp = t_1; elseif (t <= -6.2e-252) tmp = Float64(Float64(b / z) / c); elseif (t <= 4.6e-129) tmp = t_1; else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * ((x / z) * (y / c)); tmp = 0.0; if (t <= -1.05e+80) tmp = -4.0 * (a / (c / t)); elseif (t <= -2.5e-14) tmp = b / (z * c); elseif (t <= -8.2e-81) tmp = t_1; elseif (t <= -6.2e-252) tmp = (b / z) / c; elseif (t <= 4.6e-129) tmp = t_1; else tmp = -4.0 * (t * (a / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+80], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.5e-14], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e-81], t$95$1, If[LessEqual[t, -6.2e-252], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, 4.6e-129], t$95$1, N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+80}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-14}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-252}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if t < -1.05000000000000001e80Initial program 75.3%
associate-/r*73.6%
Simplified78.1%
Taylor expanded in t around inf 59.3%
associate-/l*80.4%
Simplified80.4%
if -1.05000000000000001e80 < t < -2.5000000000000001e-14Initial program 80.3%
associate-/r*77.6%
Simplified87.2%
Taylor expanded in b around inf 44.7%
*-commutative44.7%
Simplified44.7%
if -2.5000000000000001e-14 < t < -8.19999999999999968e-81 or -6.1999999999999997e-252 < t < 4.5999999999999999e-129Initial program 84.6%
associate-/r*85.9%
Simplified87.6%
fma-udef87.6%
Applied egg-rr87.6%
Taylor expanded in x around inf 41.0%
times-frac47.8%
*-commutative47.8%
Simplified47.8%
if -8.19999999999999968e-81 < t < -6.1999999999999997e-252Initial program 88.2%
associate-/r*91.1%
Simplified94.0%
Taylor expanded in t around 0 79.4%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in b around inf 56.9%
if 4.5999999999999999e-129 < t Initial program 80.6%
associate-/r*78.0%
Simplified85.3%
Taylor expanded in t around inf 40.2%
associate-/l*43.2%
associate-/r/40.4%
Simplified40.4%
Final simplification51.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= a -1.02e+123) (* -4.0 (* t (/ a c))) (/ (+ (/ (+ b (* x (* 9.0 y))) z) (* t (* a -4.0))) c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.02e+123) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / 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 (a <= (-1.02d+123)) then
tmp = (-4.0d0) * (t * (a / c))
else
tmp = (((b + (x * (9.0d0 * y))) / z) + (t * (a * (-4.0d0)))) / 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 (a <= -1.02e+123) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -1.02e+123: tmp = -4.0 * (t * (a / c)) else: tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -1.02e+123) tmp = Float64(-4.0 * Float64(t * Float64(a / c))); else tmp = Float64(Float64(Float64(Float64(b + Float64(x * Float64(9.0 * y))) / z) + Float64(t * Float64(a * -4.0))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -1.02e+123) tmp = -4.0 * (t * (a / c)); else tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -1.02e+123], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.02 \cdot 10^{+123}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b + x \cdot \left(9 \cdot y\right)}{z} + t \cdot \left(a \cdot -4\right)}{c}\\
\end{array}
\end{array}
if a < -1.02e123Initial program 80.8%
associate-/r*81.4%
Simplified78.6%
Taylor expanded in t around inf 55.3%
associate-/l*62.1%
associate-/r/71.2%
Simplified71.2%
if -1.02e123 < a Initial program 81.9%
associate-/r*80.8%
Simplified87.5%
fma-udef87.5%
Applied egg-rr87.5%
Final simplification84.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -0.00044)
(* 9.0 (* (/ y z) (/ x c)))
(if (<= y 3.5e+89)
(/ (+ (* t (* a -4.0)) (/ b z)) c)
(if (<= y 1.45e+277)
(/ (+ b (* 9.0 (* x y))) (* z c))
(* 9.0 (* (/ x z) (/ y c)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -0.00044) {
tmp = 9.0 * ((y / z) * (x / c));
} else if (y <= 3.5e+89) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else if (y <= 1.45e+277) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = 9.0 * ((x / z) * (y / 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 (y <= (-0.00044d0)) then
tmp = 9.0d0 * ((y / z) * (x / c))
else if (y <= 3.5d+89) then
tmp = ((t * (a * (-4.0d0))) + (b / z)) / c
else if (y <= 1.45d+277) then
tmp = (b + (9.0d0 * (x * y))) / (z * c)
else
tmp = 9.0d0 * ((x / z) * (y / 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 (y <= -0.00044) {
tmp = 9.0 * ((y / z) * (x / c));
} else if (y <= 3.5e+89) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else if (y <= 1.45e+277) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = 9.0 * ((x / z) * (y / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -0.00044: tmp = 9.0 * ((y / z) * (x / c)) elif y <= 3.5e+89: tmp = ((t * (a * -4.0)) + (b / z)) / c elif y <= 1.45e+277: tmp = (b + (9.0 * (x * y))) / (z * c) else: tmp = 9.0 * ((x / z) * (y / c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -0.00044) tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c))); elseif (y <= 3.5e+89) tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c); elseif (y <= 1.45e+277) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); else tmp = Float64(9.0 * Float64(Float64(x / z) * Float64(y / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -0.00044) tmp = 9.0 * ((y / z) * (x / c)); elseif (y <= 3.5e+89) tmp = ((t * (a * -4.0)) + (b / z)) / c; elseif (y <= 1.45e+277) tmp = (b + (9.0 * (x * y))) / (z * c); else tmp = 9.0 * ((x / z) * (y / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -0.00044], N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e+89], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[y, 1.45e+277], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00044:\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c}\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+89}:\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+277}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
\end{array}
\end{array}
if y < -4.40000000000000016e-4Initial program 88.0%
associate-/r*87.3%
Simplified87.1%
Taylor expanded in x around inf 48.2%
*-commutative48.2%
times-frac53.7%
Simplified53.7%
if -4.40000000000000016e-4 < y < 3.5000000000000001e89Initial program 81.9%
associate-/r*81.9%
Simplified90.2%
Taylor expanded in x around 0 79.7%
if 3.5000000000000001e89 < y < 1.44999999999999992e277Initial program 77.9%
associate-/r*71.9%
Simplified71.8%
Taylor expanded in z around 0 65.2%
if 1.44999999999999992e277 < y Initial program 38.3%
associate-/r*40.1%
Simplified52.3%
fma-udef52.3%
Applied egg-rr52.3%
Taylor expanded in x around inf 33.7%
times-frac75.0%
*-commutative75.0%
Simplified75.0%
Final simplification70.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -0.00092)
(* 9.0 (* (/ y z) (/ x c)))
(if (<= y 4.1e+123)
(/ (+ (* t (* a -4.0)) (/ b z)) c)
(/ (+ (/ b z) (* 9.0 (/ y (/ z x)))) c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -0.00092) {
tmp = 9.0 * ((y / z) * (x / c));
} else if (y <= 4.1e+123) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = ((b / z) + (9.0 * (y / (z / x)))) / 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 (y <= (-0.00092d0)) then
tmp = 9.0d0 * ((y / z) * (x / c))
else if (y <= 4.1d+123) then
tmp = ((t * (a * (-4.0d0))) + (b / z)) / c
else
tmp = ((b / z) + (9.0d0 * (y / (z / x)))) / 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 (y <= -0.00092) {
tmp = 9.0 * ((y / z) * (x / c));
} else if (y <= 4.1e+123) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = ((b / z) + (9.0 * (y / (z / x)))) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -0.00092: tmp = 9.0 * ((y / z) * (x / c)) elif y <= 4.1e+123: tmp = ((t * (a * -4.0)) + (b / z)) / c else: tmp = ((b / z) + (9.0 * (y / (z / x)))) / c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -0.00092) tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c))); elseif (y <= 4.1e+123) tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c); else tmp = Float64(Float64(Float64(b / z) + Float64(9.0 * Float64(y / Float64(z / x)))) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -0.00092) tmp = 9.0 * ((y / z) * (x / c)); elseif (y <= 4.1e+123) tmp = ((t * (a * -4.0)) + (b / z)) / c; else tmp = ((b / z) + (9.0 * (y / (z / x)))) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -0.00092], N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.1e+123], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] + N[(9.0 * N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00092:\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c}\right)\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+123}:\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} + 9 \cdot \frac{y}{\frac{z}{x}}}{c}\\
\end{array}
\end{array}
if y < -9.2000000000000003e-4Initial program 88.0%
associate-/r*87.3%
Simplified87.1%
Taylor expanded in x around inf 48.2%
*-commutative48.2%
times-frac53.7%
Simplified53.7%
if -9.2000000000000003e-4 < y < 4.09999999999999989e123Initial program 82.5%
associate-/r*81.9%
Simplified89.9%
Taylor expanded in x around 0 78.4%
if 4.09999999999999989e123 < y Initial program 65.0%
associate-/r*62.9%
Simplified65.8%
Taylor expanded in t around 0 52.9%
associate-/l*64.9%
Simplified64.9%
Final simplification70.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.1e+85)
(* -4.0 (/ a (/ c t)))
(if (<= t 7.6e-30)
(/ (+ b (* 9.0 (* x y))) (* z c))
(* -4.0 (* t (/ a c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.1e+85) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 7.6e-30) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * (t * (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 (t <= (-1.1d+85)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= 7.6d-30) then
tmp = (b + (9.0d0 * (x * y))) / (z * c)
else
tmp = (-4.0d0) * (t * (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 (t <= -1.1e+85) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 7.6e-30) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.1e+85: tmp = -4.0 * (a / (c / t)) elif t <= 7.6e-30: tmp = (b + (9.0 * (x * y))) / (z * c) else: tmp = -4.0 * (t * (a / c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.1e+85) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= 7.6e-30) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.1e+85) tmp = -4.0 * (a / (c / t)); elseif (t <= 7.6e-30) tmp = (b + (9.0 * (x * y))) / (z * c); else tmp = -4.0 * (t * (a / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.1e+85], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.6e-30], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+85}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-30}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if t < -1.1000000000000001e85Initial program 75.3%
associate-/r*73.6%
Simplified78.1%
Taylor expanded in t around inf 59.3%
associate-/l*80.4%
Simplified80.4%
if -1.1000000000000001e85 < t < 7.6000000000000006e-30Initial program 85.0%
associate-/r*85.0%
Simplified89.1%
Taylor expanded in z around 0 70.8%
if 7.6000000000000006e-30 < t Initial program 79.0%
associate-/r*76.9%
Simplified84.6%
Taylor expanded in t around inf 40.9%
associate-/l*44.6%
associate-/r/41.1%
Simplified41.1%
Final simplification63.6%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -9.5e+79) (not (<= t 1.7e-136))) (* -4.0 (* t (/ a c))) (/ b (* z c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -9.5e+79) || !(t <= 1.7e-136)) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = b / (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 <= (-9.5d+79)) .or. (.not. (t <= 1.7d-136))) then
tmp = (-4.0d0) * (t * (a / c))
else
tmp = b / (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 <= -9.5e+79) || !(t <= 1.7e-136)) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = b / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -9.5e+79) or not (t <= 1.7e-136): tmp = -4.0 * (t * (a / c)) else: tmp = b / (z * c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -9.5e+79) || !(t <= 1.7e-136)) tmp = Float64(-4.0 * Float64(t * Float64(a / c))); else tmp = Float64(b / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -9.5e+79) || ~((t <= 1.7e-136))) tmp = -4.0 * (t * (a / c)); else tmp = b / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -9.5e+79], N[Not[LessEqual[t, 1.7e-136]], $MachinePrecision]], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{+79} \lor \neg \left(t \leq 1.7 \cdot 10^{-136}\right):\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\end{array}
\end{array}
if t < -9.49999999999999994e79 or 1.7e-136 < t Initial program 79.3%
associate-/r*77.0%
Simplified83.4%
Taylor expanded in t around inf 45.3%
associate-/l*53.7%
associate-/r/49.7%
Simplified49.7%
if -9.49999999999999994e79 < t < 1.7e-136Initial program 84.3%
associate-/r*85.1%
Simplified89.0%
Taylor expanded in b around inf 47.2%
*-commutative47.2%
Simplified47.2%
Final simplification48.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= t -3.4e+82) (* -4.0 (/ a (/ c t))) (if (<= t 1.7e-136) (/ b (* z c)) (* -4.0 (* t (/ a c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.4e+82) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 1.7e-136) {
tmp = b / (z * c);
} else {
tmp = -4.0 * (t * (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 (t <= (-3.4d+82)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= 1.7d-136) then
tmp = b / (z * c)
else
tmp = (-4.0d0) * (t * (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 (t <= -3.4e+82) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 1.7e-136) {
tmp = b / (z * c);
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -3.4e+82: tmp = -4.0 * (a / (c / t)) elif t <= 1.7e-136: tmp = b / (z * c) else: tmp = -4.0 * (t * (a / c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -3.4e+82) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= 1.7e-136) tmp = Float64(b / Float64(z * c)); else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -3.4e+82) tmp = -4.0 * (a / (c / t)); elseif (t <= 1.7e-136) tmp = b / (z * c); else tmp = -4.0 * (t * (a / c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -3.4e+82], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-136], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+82}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-136}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if t < -3.39999999999999994e82Initial program 75.3%
associate-/r*73.6%
Simplified78.1%
Taylor expanded in t around inf 59.3%
associate-/l*80.4%
Simplified80.4%
if -3.39999999999999994e82 < t < 1.7e-136Initial program 84.3%
associate-/r*85.1%
Simplified89.0%
Taylor expanded in b around inf 47.2%
*-commutative47.2%
Simplified47.2%
if 1.7e-136 < t Initial program 81.0%
associate-/r*78.4%
Simplified85.6%
Taylor expanded in t around inf 39.4%
associate-/l*42.3%
associate-/r/39.6%
Simplified39.6%
Final simplification49.6%
(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 81.7%
associate-/r*80.9%
Simplified86.1%
Taylor expanded in b around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification39.5%
(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 2023213
(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)))