
(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 13 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}
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c))))
(if (<= t_1 -4e+87)
t_1
(if (<= t_1 INFINITY)
(/ (+ (/ (+ b (* x (* 9.0 y))) z) (* t (* a -4.0))) c)
(* -4.0 (* t (/ a c)))))))assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
double tmp;
if (t_1 <= -4e+87) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
assert t < a;
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) - (((z * 4.0) * t) * a)) + b) / (z * c);
double tmp;
if (t_1 <= -4e+87) {
tmp = t_1;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): t_1 = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c) tmp = 0 if t_1 <= -4e+87: tmp = t_1 elif t_1 <= math.inf: tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c else: tmp = -4.0 * (t * (a / c)) return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) tmp = 0.0 if (t_1 <= -4e+87) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(Float64(Float64(Float64(b + Float64(x * Float64(9.0 * y))) / z) + Float64(t * Float64(a * -4.0))) / c); else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
tmp = 0.0;
if (t_1 <= -4e+87)
tmp = t_1;
elseif (t_1 <= Inf)
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
else
tmp = -4.0 * (t * (a / c));
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = 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]}, If[LessEqual[t$95$1, -4e+87], t$95$1, If[LessEqual[t$95$1, Infinity], 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[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
t_1 := \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}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;\frac{\frac{b + x \cdot \left(9 \cdot y\right)}{z} + t \cdot \left(a \cdot -4\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c)) < -3.9999999999999998e87Initial program 94.9%
if -3.9999999999999998e87 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c)) < +inf.0Initial program 85.9%
associate-/r*92.1%
Simplified96.0%
fma-udef96.0%
Applied egg-rr96.0%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x 9) y) (*.f64 (*.f64 (*.f64 z 4) t) a)) b) (*.f64 z c)) Initial program 0.0%
associate-*l*0.0%
associate-*l*0.0%
Simplified0.0%
Taylor expanded in z around inf 62.3%
*-commutative62.3%
associate-/l*91.4%
associate-/r/76.6%
Simplified76.6%
Final simplification94.6%
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (/ b z) c)) (t_2 (* 9.0 (/ y (* c (/ z x))))))
(if (<= a -1.95e-93)
(* -4.0 (/ a (/ c t)))
(if (<= a -1e-285)
t_1
(if (<= a 2.8e-198)
t_2
(if (<= a 3.3e-105)
t_1
(if (<= a 6.8e+52) t_2 (* -4.0 (* t (/ a c))))))))))assert(t < a);
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 = 9.0 * (y / (c * (z / x)));
double tmp;
if (a <= -1.95e-93) {
tmp = -4.0 * (a / (c / t));
} else if (a <= -1e-285) {
tmp = t_1;
} else if (a <= 2.8e-198) {
tmp = t_2;
} else if (a <= 3.3e-105) {
tmp = t_1;
} else if (a <= 6.8e+52) {
tmp = t_2;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 = 9.0d0 * (y / (c * (z / x)))
if (a <= (-1.95d-93)) then
tmp = (-4.0d0) * (a / (c / t))
else if (a <= (-1d-285)) then
tmp = t_1
else if (a <= 2.8d-198) then
tmp = t_2
else if (a <= 3.3d-105) then
tmp = t_1
else if (a <= 6.8d+52) then
tmp = t_2
else
tmp = (-4.0d0) * (t * (a / c))
end if
code = tmp
end function
assert t < a;
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 = 9.0 * (y / (c * (z / x)));
double tmp;
if (a <= -1.95e-93) {
tmp = -4.0 * (a / (c / t));
} else if (a <= -1e-285) {
tmp = t_1;
} else if (a <= 2.8e-198) {
tmp = t_2;
} else if (a <= 3.3e-105) {
tmp = t_1;
} else if (a <= 6.8e+52) {
tmp = t_2;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): t_1 = (b / z) / c t_2 = 9.0 * (y / (c * (z / x))) tmp = 0 if a <= -1.95e-93: tmp = -4.0 * (a / (c / t)) elif a <= -1e-285: tmp = t_1 elif a <= 2.8e-198: tmp = t_2 elif a <= 3.3e-105: tmp = t_1 elif a <= 6.8e+52: tmp = t_2 else: tmp = -4.0 * (t * (a / c)) return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b / z) / c) t_2 = Float64(9.0 * Float64(y / Float64(c * Float64(z / x)))) tmp = 0.0 if (a <= -1.95e-93) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (a <= -1e-285) tmp = t_1; elseif (a <= 2.8e-198) tmp = t_2; elseif (a <= 3.3e-105) tmp = t_1; elseif (a <= 6.8e+52) tmp = t_2; else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = (b / z) / c;
t_2 = 9.0 * (y / (c * (z / x)));
tmp = 0.0;
if (a <= -1.95e-93)
tmp = -4.0 * (a / (c / t));
elseif (a <= -1e-285)
tmp = t_1;
elseif (a <= 2.8e-198)
tmp = t_2;
elseif (a <= 3.3e-105)
tmp = t_1;
elseif (a <= 6.8e+52)
tmp = t_2;
else
tmp = -4.0 * (t * (a / c));
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, Block[{t$95$2 = N[(9.0 * N[(y / N[(c * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.95e-93], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1e-285], t$95$1, If[LessEqual[a, 2.8e-198], t$95$2, If[LessEqual[a, 3.3e-105], t$95$1, If[LessEqual[a, 6.8e+52], t$95$2, N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{b}{z}}{c}\\
t_2 := 9 \cdot \frac{y}{c \cdot \frac{z}{x}}\\
\mathbf{if}\;a \leq -1.95 \cdot 10^{-93}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-285}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-198}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{+52}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if a < -1.95000000000000009e-93Initial program 86.5%
associate-*l*86.5%
associate-*l*86.5%
Simplified86.5%
Taylor expanded in z around inf 51.3%
*-commutative51.3%
associate-/l*51.2%
Simplified51.2%
if -1.95000000000000009e-93 < a < -1.00000000000000007e-285 or 2.7999999999999999e-198 < a < 3.2999999999999999e-105Initial program 84.4%
associate-*l*84.3%
associate-*l*93.0%
Simplified93.0%
Taylor expanded in b around inf 59.1%
div-inv59.0%
*-commutative59.0%
Applied egg-rr59.0%
associate-*r/59.1%
*-commutative59.1%
frac-times57.4%
associate-*l/59.1%
un-div-inv59.1%
Applied egg-rr59.1%
if -1.00000000000000007e-285 < a < 2.7999999999999999e-198 or 3.2999999999999999e-105 < a < 6.8e52Initial program 81.3%
associate-*l*81.3%
associate-*l*82.8%
Simplified82.8%
Taylor expanded in x around inf 48.9%
associate-*r/48.9%
associate-*r*48.9%
times-frac50.2%
*-commutative50.2%
Simplified50.2%
clear-num50.2%
frac-times50.7%
*-un-lft-identity50.7%
Applied egg-rr50.7%
*-un-lft-identity50.7%
times-frac50.8%
metadata-eval50.8%
Applied egg-rr50.8%
if 6.8e52 < a Initial program 87.2%
associate-*l*87.2%
associate-*l*85.1%
Simplified85.1%
Taylor expanded in z around inf 52.4%
*-commutative52.4%
associate-/l*58.6%
associate-/r/66.6%
Simplified66.6%
Final simplification55.6%
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* (/ y c) (/ x z)))))
(if (<= a -1.9e-94)
(* -4.0 (/ a (/ c t)))
(if (<= a 3.2e-198)
t_1
(if (<= a 6.9e-105)
(/ (/ b z) c)
(if (<= a 9.1e+52) t_1 (* -4.0 (* t (/ a c)))))))))assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((y / c) * (x / z));
double tmp;
if (a <= -1.9e-94) {
tmp = -4.0 * (a / (c / t));
} else if (a <= 3.2e-198) {
tmp = t_1;
} else if (a <= 6.9e-105) {
tmp = (b / z) / c;
} else if (a <= 9.1e+52) {
tmp = t_1;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 * ((y / c) * (x / z))
if (a <= (-1.9d-94)) then
tmp = (-4.0d0) * (a / (c / t))
else if (a <= 3.2d-198) then
tmp = t_1
else if (a <= 6.9d-105) then
tmp = (b / z) / c
else if (a <= 9.1d+52) then
tmp = t_1
else
tmp = (-4.0d0) * (t * (a / c))
end if
code = tmp
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((y / c) * (x / z));
double tmp;
if (a <= -1.9e-94) {
tmp = -4.0 * (a / (c / t));
} else if (a <= 3.2e-198) {
tmp = t_1;
} else if (a <= 6.9e-105) {
tmp = (b / z) / c;
} else if (a <= 9.1e+52) {
tmp = t_1;
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): t_1 = 9.0 * ((y / c) * (x / z)) tmp = 0 if a <= -1.9e-94: tmp = -4.0 * (a / (c / t)) elif a <= 3.2e-198: tmp = t_1 elif a <= 6.9e-105: tmp = (b / z) / c elif a <= 9.1e+52: tmp = t_1 else: tmp = -4.0 * (t * (a / c)) return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(Float64(y / c) * Float64(x / z))) tmp = 0.0 if (a <= -1.9e-94) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (a <= 3.2e-198) tmp = t_1; elseif (a <= 6.9e-105) tmp = Float64(Float64(b / z) / c); elseif (a <= 9.1e+52) tmp = t_1; else tmp = Float64(-4.0 * Float64(t * Float64(a / c))); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = 9.0 * ((y / c) * (x / z));
tmp = 0.0;
if (a <= -1.9e-94)
tmp = -4.0 * (a / (c / t));
elseif (a <= 3.2e-198)
tmp = t_1;
elseif (a <= 6.9e-105)
tmp = (b / z) / c;
elseif (a <= 9.1e+52)
tmp = t_1;
else
tmp = -4.0 * (t * (a / c));
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(N[(y / c), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e-94], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-198], t$95$1, If[LessEqual[a, 6.9e-105], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[a, 9.1e+52], t$95$1, N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
t_1 := 9 \cdot \left(\frac{y}{c} \cdot \frac{x}{z}\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{-94}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-198}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.9 \cdot 10^{-105}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{elif}\;a \leq 9.1 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\end{array}
\end{array}
if a < -1.9e-94Initial program 86.5%
associate-*l*86.5%
associate-*l*86.5%
Simplified86.5%
Taylor expanded in z around inf 51.3%
*-commutative51.3%
associate-/l*51.2%
Simplified51.2%
if -1.9e-94 < a < 3.19999999999999994e-198 or 6.90000000000000028e-105 < a < 9.09999999999999994e52Initial program 81.6%
associate-/r*85.2%
Simplified93.6%
fma-udef93.6%
Applied egg-rr93.6%
Taylor expanded in x around inf 47.1%
times-frac47.7%
Simplified47.7%
if 3.19999999999999994e-198 < a < 6.90000000000000028e-105Initial program 89.2%
associate-*l*89.2%
associate-*l*89.2%
Simplified89.2%
Taylor expanded in b around inf 62.5%
div-inv62.4%
*-commutative62.4%
Applied egg-rr62.4%
associate-*r/62.5%
*-commutative62.5%
frac-times62.6%
associate-*l/67.9%
un-div-inv67.9%
Applied egg-rr67.9%
if 9.09999999999999994e52 < a Initial program 87.2%
associate-*l*87.2%
associate-*l*85.1%
Simplified85.1%
Taylor expanded in z around inf 52.4%
*-commutative52.4%
associate-/l*58.6%
associate-/r/66.6%
Simplified66.6%
Final simplification53.7%
NOTE: t and a should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (if (or (<= a -3.4e-93) (not (<= a 1.4e+54))) (/ (+ (* t (* a -4.0)) (/ b z)) c) (/ (+ (* 9.0 (/ y (/ z x))) (/ b z)) c)))
assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -3.4e-93) || !(a <= 1.4e+54)) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = ((9.0 * (y / (z / x))) + (b / z)) / c;
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 <= (-3.4d-93)) .or. (.not. (a <= 1.4d+54))) then
tmp = ((t * (a * (-4.0d0))) + (b / z)) / c
else
tmp = ((9.0d0 * (y / (z / x))) + (b / z)) / c
end if
code = tmp
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -3.4e-93) || !(a <= 1.4e+54)) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = ((9.0 * (y / (z / x))) + (b / z)) / c;
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): tmp = 0 if (a <= -3.4e-93) or not (a <= 1.4e+54): tmp = ((t * (a * -4.0)) + (b / z)) / c else: tmp = ((9.0 * (y / (z / x))) + (b / z)) / c return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) tmp = 0.0 if ((a <= -3.4e-93) || !(a <= 1.4e+54)) tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c); else tmp = Float64(Float64(Float64(9.0 * Float64(y / Float64(z / x))) + Float64(b / z)) / c); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if ((a <= -3.4e-93) || ~((a <= 1.4e+54)))
tmp = ((t * (a * -4.0)) + (b / z)) / c;
else
tmp = ((9.0 * (y / (z / x))) + (b / z)) / c;
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[a, -3.4e-93], N[Not[LessEqual[a, 1.4e+54]], $MachinePrecision]], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(9.0 * N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.4 \cdot 10^{-93} \lor \neg \left(a \leq 1.4 \cdot 10^{+54}\right):\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{9 \cdot \frac{y}{\frac{z}{x}} + \frac{b}{z}}{c}\\
\end{array}
\end{array}
if a < -3.40000000000000001e-93 or 1.40000000000000008e54 < a Initial program 86.8%
associate-/r*87.7%
Simplified89.1%
Taylor expanded in x around 0 75.0%
associate-*r*75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -3.40000000000000001e-93 < a < 1.40000000000000008e54Initial program 82.7%
associate-/r*85.8%
Simplified93.0%
Taylor expanded in t around 0 79.5%
associate-/l*79.7%
Simplified79.7%
Final simplification77.3%
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* t (* a -4.0))))
(if (<= y -6.1e-174)
(/ (+ t_1 (* 9.0 (/ y (/ z x)))) c)
(if (<= y 8e+101)
(/ (+ t_1 (/ b z)) c)
(/ (+ b (* 9.0 (* x y))) (* z c))))))assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = t * (a * -4.0);
double tmp;
if (y <= -6.1e-174) {
tmp = (t_1 + (9.0 * (y / (z / x)))) / c;
} else if (y <= 8e+101) {
tmp = (t_1 + (b / z)) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 * (a * (-4.0d0))
if (y <= (-6.1d-174)) then
tmp = (t_1 + (9.0d0 * (y / (z / x)))) / c
else if (y <= 8d+101) then
tmp = (t_1 + (b / z)) / c
else
tmp = (b + (9.0d0 * (x * y))) / (z * c)
end if
code = tmp
end function
assert t < a;
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 tmp;
if (y <= -6.1e-174) {
tmp = (t_1 + (9.0 * (y / (z / x)))) / c;
} else if (y <= 8e+101) {
tmp = (t_1 + (b / z)) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): t_1 = t * (a * -4.0) tmp = 0 if y <= -6.1e-174: tmp = (t_1 + (9.0 * (y / (z / x)))) / c elif y <= 8e+101: tmp = (t_1 + (b / z)) / c else: tmp = (b + (9.0 * (x * y))) / (z * c) return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) t_1 = Float64(t * Float64(a * -4.0)) tmp = 0.0 if (y <= -6.1e-174) tmp = Float64(Float64(t_1 + Float64(9.0 * Float64(y / Float64(z / x)))) / c); elseif (y <= 8e+101) tmp = Float64(Float64(t_1 + Float64(b / z)) / c); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = t * (a * -4.0);
tmp = 0.0;
if (y <= -6.1e-174)
tmp = (t_1 + (9.0 * (y / (z / x)))) / c;
elseif (y <= 8e+101)
tmp = (t_1 + (b / z)) / c;
else
tmp = (b + (9.0 * (x * y))) / (z * c);
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.1e-174], N[(N[(t$95$1 + N[(9.0 * N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[y, 8e+101], N[(N[(t$95$1 + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot -4\right)\\
\mathbf{if}\;y \leq -6.1 \cdot 10^{-174}:\\
\;\;\;\;\frac{t_1 + 9 \cdot \frac{y}{\frac{z}{x}}}{c}\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+101}:\\
\;\;\;\;\frac{t_1 + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if y < -6.09999999999999964e-174Initial program 85.2%
associate-/r*85.4%
Simplified88.8%
Taylor expanded in x around inf 66.5%
associate-/l*70.0%
Simplified70.0%
if -6.09999999999999964e-174 < y < 7.9999999999999998e101Initial program 83.7%
associate-/r*89.9%
Simplified96.3%
Taylor expanded in x around 0 82.6%
associate-*r*82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
if 7.9999999999999998e101 < y Initial program 87.1%
associate-*l*87.1%
associate-*l*84.4%
Simplified84.4%
Taylor expanded in x around inf 80.7%
Final simplification76.7%
NOTE: t and a should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (/ (+ (/ (+ b (* x (* 9.0 y))) z) (* t (* a -4.0))) c))
assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 + (x * (9.0d0 * y))) / z) + (t * (a * (-4.0d0)))) / c
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): return (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(b + Float64(x * Float64(9.0 * y))) / z) + Float64(t * Float64(a * -4.0))) / c) end
t, a = num2cell(sort([t, a])){:}
function tmp = code(x, y, z, t, a, b, c)
tmp = (((b + (x * (9.0 * y))) / z) + (t * (a * -4.0))) / c;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := 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}
[t, a] = \mathsf{sort}([t, a])\\
\\
\frac{\frac{b + x \cdot \left(9 \cdot y\right)}{z} + t \cdot \left(a \cdot -4\right)}{c}
\end{array}
Initial program 84.8%
associate-/r*86.8%
Simplified91.0%
fma-udef91.0%
Applied egg-rr91.0%
Final simplification91.0%
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -2.2e+147)
(not
(or (<= t -1e+126) (and (not (<= t -102000000.0)) (<= t 1.35e-18)))))
(* -4.0 (* t (/ a c)))
(/ (/ b z) c)))assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.2e+147) || !((t <= -1e+126) || (!(t <= -102000000.0) && (t <= 1.35e-18)))) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = (b / z) / c;
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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.2d+147)) .or. (.not. (t <= (-1d+126)) .or. (.not. (t <= (-102000000.0d0))) .and. (t <= 1.35d-18))) then
tmp = (-4.0d0) * (t * (a / c))
else
tmp = (b / z) / c
end if
code = tmp
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.2e+147) || !((t <= -1e+126) || (!(t <= -102000000.0) && (t <= 1.35e-18)))) {
tmp = -4.0 * (t * (a / c));
} else {
tmp = (b / z) / c;
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -2.2e+147) or not ((t <= -1e+126) or (not (t <= -102000000.0) and (t <= 1.35e-18))): tmp = -4.0 * (t * (a / c)) else: tmp = (b / z) / c return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -2.2e+147) || !((t <= -1e+126) || (!(t <= -102000000.0) && (t <= 1.35e-18)))) tmp = Float64(-4.0 * Float64(t * Float64(a / c))); else tmp = Float64(Float64(b / z) / c); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if ((t <= -2.2e+147) || ~(((t <= -1e+126) || (~((t <= -102000000.0)) && (t <= 1.35e-18)))))
tmp = -4.0 * (t * (a / c));
else
tmp = (b / z) / c;
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -2.2e+147], N[Not[Or[LessEqual[t, -1e+126], And[N[Not[LessEqual[t, -102000000.0]], $MachinePrecision], LessEqual[t, 1.35e-18]]]], $MachinePrecision]], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+147} \lor \neg \left(t \leq -1 \cdot 10^{+126} \lor \neg \left(t \leq -102000000\right) \land t \leq 1.35 \cdot 10^{-18}\right):\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\end{array}
\end{array}
if t < -2.2000000000000002e147 or -9.99999999999999925e125 < t < -1.02e8 or 1.34999999999999994e-18 < t Initial program 81.5%
associate-*l*81.5%
associate-*l*84.8%
Simplified84.8%
Taylor expanded in z around inf 58.2%
*-commutative58.2%
associate-/l*63.1%
associate-/r/61.3%
Simplified61.3%
if -2.2000000000000002e147 < t < -9.99999999999999925e125 or -1.02e8 < t < 1.34999999999999994e-18Initial program 87.6%
associate-*l*87.6%
associate-*l*88.3%
Simplified88.3%
Taylor expanded in b around inf 43.6%
div-inv43.5%
*-commutative43.5%
Applied egg-rr43.5%
associate-*r/43.6%
*-commutative43.6%
frac-times42.8%
associate-*l/48.2%
un-div-inv48.2%
Applied egg-rr48.2%
Final simplification54.1%
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (/ b z) c)) (t_2 (* -4.0 (* t (/ a c)))))
(if (<= t -2e+147)
t_2
(if (<= t -6.6e+125)
t_1
(if (<= t -115000000.0)
(* -4.0 (/ a (/ c t)))
(if (<= t 1.35e-18) t_1 t_2))))))assert(t < a);
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 = -4.0 * (t * (a / c));
double tmp;
if (t <= -2e+147) {
tmp = t_2;
} else if (t <= -6.6e+125) {
tmp = t_1;
} else if (t <= -115000000.0) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 1.35e-18) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 = (-4.0d0) * (t * (a / c))
if (t <= (-2d+147)) then
tmp = t_2
else if (t <= (-6.6d+125)) then
tmp = t_1
else if (t <= (-115000000.0d0)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= 1.35d-18) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert t < a;
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 = -4.0 * (t * (a / c));
double tmp;
if (t <= -2e+147) {
tmp = t_2;
} else if (t <= -6.6e+125) {
tmp = t_1;
} else if (t <= -115000000.0) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 1.35e-18) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): t_1 = (b / z) / c t_2 = -4.0 * (t * (a / c)) tmp = 0 if t <= -2e+147: tmp = t_2 elif t <= -6.6e+125: tmp = t_1 elif t <= -115000000.0: tmp = -4.0 * (a / (c / t)) elif t <= 1.35e-18: tmp = t_1 else: tmp = t_2 return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b / z) / c) t_2 = Float64(-4.0 * Float64(t * Float64(a / c))) tmp = 0.0 if (t <= -2e+147) tmp = t_2; elseif (t <= -6.6e+125) tmp = t_1; elseif (t <= -115000000.0) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= 1.35e-18) tmp = t_1; else tmp = t_2; end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = (b / z) / c;
t_2 = -4.0 * (t * (a / c));
tmp = 0.0;
if (t <= -2e+147)
tmp = t_2;
elseif (t <= -6.6e+125)
tmp = t_1;
elseif (t <= -115000000.0)
tmp = -4.0 * (a / (c / t));
elseif (t <= 1.35e-18)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e+147], t$95$2, If[LessEqual[t, -6.6e+125], t$95$1, If[LessEqual[t, -115000000.0], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-18], t$95$1, t$95$2]]]]]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{b}{z}}{c}\\
t_2 := -4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{+147}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -6.6 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -115000000:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2e147 or 1.34999999999999994e-18 < t Initial program 79.3%
associate-*l*79.3%
associate-*l*82.4%
Simplified82.4%
Taylor expanded in z around inf 56.7%
*-commutative56.7%
associate-/l*61.7%
associate-/r/60.5%
Simplified60.5%
if -2e147 < t < -6.60000000000000011e125 or -1.15e8 < t < 1.34999999999999994e-18Initial program 87.6%
associate-*l*87.6%
associate-*l*88.3%
Simplified88.3%
Taylor expanded in b around inf 43.6%
div-inv43.5%
*-commutative43.5%
Applied egg-rr43.5%
associate-*r/43.6%
*-commutative43.6%
frac-times42.8%
associate-*l/48.2%
un-div-inv48.2%
Applied egg-rr48.2%
if -6.60000000000000011e125 < t < -1.15e8Initial program 91.0%
associate-*l*90.8%
associate-*l*95.2%
Simplified95.2%
Taylor expanded in z around inf 64.7%
*-commutative64.7%
associate-/l*68.9%
Simplified68.9%
Final simplification54.5%
NOTE: t and a should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (if (or (<= a -3.8e-95) (not (<= a 6.8e+52))) (/ (+ (* t (* a -4.0)) (/ b z)) c) (/ (+ b (* 9.0 (* x y))) (* z c))))
assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -3.8e-95) || !(a <= 6.8e+52)) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 <= (-3.8d-95)) .or. (.not. (a <= 6.8d+52))) then
tmp = ((t * (a * (-4.0d0))) + (b / z)) / c
else
tmp = (b + (9.0d0 * (x * y))) / (z * c)
end if
code = tmp
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -3.8e-95) || !(a <= 6.8e+52)) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): tmp = 0 if (a <= -3.8e-95) or not (a <= 6.8e+52): tmp = ((t * (a * -4.0)) + (b / z)) / c else: tmp = (b + (9.0 * (x * y))) / (z * c) return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) tmp = 0.0 if ((a <= -3.8e-95) || !(a <= 6.8e+52)) tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if ((a <= -3.8e-95) || ~((a <= 6.8e+52)))
tmp = ((t * (a * -4.0)) + (b / z)) / c;
else
tmp = (b + (9.0 * (x * y))) / (z * c);
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[a, -3.8e-95], N[Not[LessEqual[a, 6.8e+52]], $MachinePrecision]], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.8 \cdot 10^{-95} \lor \neg \left(a \leq 6.8 \cdot 10^{+52}\right):\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if a < -3.7999999999999997e-95 or 6.8e52 < a Initial program 86.8%
associate-/r*87.7%
Simplified89.1%
Taylor expanded in x around 0 75.0%
associate-*r*75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -3.7999999999999997e-95 < a < 6.8e52Initial program 82.7%
associate-*l*82.7%
associate-*l*87.5%
Simplified87.5%
Taylor expanded in x around inf 78.1%
Final simplification76.5%
NOTE: t and a should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -4.3e+198)
(* -4.0 (/ a (/ c t)))
(if (<= t 1.7e-18)
(/ (+ b (* 9.0 (* x y))) (* z c))
(* -4.0 (* t (/ a c))))))assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -4.3e+198) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 1.7e-18) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 <= (-4.3d+198)) then
tmp = (-4.0d0) * (a / (c / t))
else if (t <= 1.7d-18) then
tmp = (b + (9.0d0 * (x * y))) / (z * c)
else
tmp = (-4.0d0) * (t * (a / c))
end if
code = tmp
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -4.3e+198) {
tmp = -4.0 * (a / (c / t));
} else if (t <= 1.7e-18) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * (t * (a / c));
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): tmp = 0 if t <= -4.3e+198: tmp = -4.0 * (a / (c / t)) elif t <= 1.7e-18: tmp = (b + (9.0 * (x * y))) / (z * c) else: tmp = -4.0 * (t * (a / c)) return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -4.3e+198) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (t <= 1.7e-18) 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
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if (t <= -4.3e+198)
tmp = -4.0 * (a / (c / t));
elseif (t <= 1.7e-18)
tmp = (b + (9.0 * (x * y))) / (z * c);
else
tmp = -4.0 * (t * (a / c));
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -4.3e+198], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-18], 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}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.3 \cdot 10^{+198}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-18}:\\
\;\;\;\;\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 < -4.29999999999999982e198Initial program 81.0%
associate-*l*81.0%
associate-*l*84.9%
Simplified84.9%
Taylor expanded in z around inf 61.8%
*-commutative61.8%
associate-/l*76.4%
Simplified76.4%
if -4.29999999999999982e198 < t < 1.70000000000000001e-18Initial program 88.6%
associate-*l*88.6%
associate-*l*89.7%
Simplified89.7%
Taylor expanded in x around inf 73.2%
if 1.70000000000000001e-18 < t Initial program 75.8%
associate-*l*75.9%
associate-*l*79.0%
Simplified79.0%
Taylor expanded in z around inf 52.4%
*-commutative52.4%
associate-/l*57.0%
associate-/r/53.9%
Simplified53.9%
Final simplification68.9%
NOTE: t and a should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (if (<= c 2.8e-104) (/ b (* z c)) (/ (/ b c) z)))
assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.8e-104) {
tmp = b / (z * c);
} else {
tmp = (b / c) / z;
}
return tmp;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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 (c <= 2.8d-104) then
tmp = b / (z * c)
else
tmp = (b / c) / z
end if
code = tmp
end function
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.8e-104) {
tmp = b / (z * c);
} else {
tmp = (b / c) / z;
}
return tmp;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2.8e-104: tmp = b / (z * c) else: tmp = (b / c) / z return tmp
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2.8e-104) tmp = Float64(b / Float64(z * c)); else tmp = Float64(Float64(b / c) / z); end return tmp end
t, a = num2cell(sort([t, a])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if (c <= 2.8e-104)
tmp = b / (z * c);
else
tmp = (b / c) / z;
end
tmp_2 = tmp;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2.8e-104], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2.8 \cdot 10^{-104}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\end{array}
\end{array}
if c < 2.8e-104Initial program 90.3%
associate-*l*90.2%
associate-*l*91.8%
Simplified91.8%
Taylor expanded in b around inf 37.1%
if 2.8e-104 < c Initial program 71.2%
associate-*l*71.2%
associate-*l*73.9%
Simplified73.9%
Taylor expanded in b around inf 39.3%
associate-/r*47.0%
Simplified47.0%
Final simplification39.9%
NOTE: t and a should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
NOTE: t and a should be sorted in increasing order before calling this function.
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
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): return b / (z * c)
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) return Float64(b / Float64(z * c)) end
t, a = num2cell(sort([t, a])){:}
function tmp = code(x, y, z, t, a, b, c)
tmp = b / (z * c);
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\frac{b}{z \cdot c}
\end{array}
Initial program 84.8%
associate-*l*84.8%
associate-*l*86.7%
Simplified86.7%
Taylor expanded in b around inf 37.7%
Final simplification37.7%
NOTE: t and a should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (/ (/ b z) c))
assert(t < a);
double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / z) / c;
}
NOTE: t and a should be sorted in increasing order before calling this function.
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
assert t < a;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / z) / c;
}
[t, a] = sort([t, a]) def code(x, y, z, t, a, b, c): return (b / z) / c
t, a = sort([t, a]) function code(x, y, z, t, a, b, c) return Float64(Float64(b / z) / c) end
t, a = num2cell(sort([t, a])){:}
function tmp = code(x, y, z, t, a, b, c)
tmp = (b / z) / c;
end
NOTE: t and a should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]
\begin{array}{l}
[t, a] = \mathsf{sort}([t, a])\\
\\
\frac{\frac{b}{z}}{c}
\end{array}
Initial program 84.8%
associate-*l*84.8%
associate-*l*86.7%
Simplified86.7%
Taylor expanded in b around inf 37.7%
div-inv37.7%
*-commutative37.7%
Applied egg-rr37.7%
associate-*r/37.7%
*-commutative37.7%
frac-times37.6%
associate-*l/39.5%
un-div-inv39.5%
Applied egg-rr39.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 2023187
(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)))