
(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 15 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: x, y, z, t, a, b, and c 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 (<= z -3.5e+65)
(/ (+ (/ 1.0 (/ z (+ (* 9.0 (* x y)) b))) t_1) c)
(if (<= z 13000000000000.0)
(/ (+ b (- (* x (* 9.0 y)) (* a (* t (* z 4.0))))) (* z c))
(/ (+ t_1 (* y (+ (/ (* 9.0 x) z) (/ b (* z y))))) c)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 tmp;
if (z <= -3.5e+65) {
tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_1) / c;
} else if (z <= 13000000000000.0) {
tmp = (b + ((x * (9.0 * y)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = (t_1 + (y * (((9.0 * x) / z) + (b / (z * y))))) / c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 (z <= (-3.5d+65)) then
tmp = ((1.0d0 / (z / ((9.0d0 * (x * y)) + b))) + t_1) / c
else if (z <= 13000000000000.0d0) then
tmp = (b + ((x * (9.0d0 * y)) - (a * (t * (z * 4.0d0))))) / (z * c)
else
tmp = (t_1 + (y * (((9.0d0 * x) / z) + (b / (z * y))))) / c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (z <= -3.5e+65) {
tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_1) / c;
} else if (z <= 13000000000000.0) {
tmp = (b + ((x * (9.0 * y)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = (t_1 + (y * (((9.0 * x) / z) + (b / (z * y))))) / c;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = t * (a * -4.0) tmp = 0 if z <= -3.5e+65: tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_1) / c elif z <= 13000000000000.0: tmp = (b + ((x * (9.0 * y)) - (a * (t * (z * 4.0))))) / (z * c) else: tmp = (t_1 + (y * (((9.0 * x) / z) + (b / (z * y))))) / c return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(t * Float64(a * -4.0)) tmp = 0.0 if (z <= -3.5e+65) tmp = Float64(Float64(Float64(1.0 / Float64(z / Float64(Float64(9.0 * Float64(x * y)) + b))) + t_1) / c); elseif (z <= 13000000000000.0) tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); else tmp = Float64(Float64(t_1 + Float64(y * Float64(Float64(Float64(9.0 * x) / z) + Float64(b / Float64(z * y))))) / c); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = t * (a * -4.0);
tmp = 0.0;
if (z <= -3.5e+65)
tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_1) / c;
elseif (z <= 13000000000000.0)
tmp = (b + ((x * (9.0 * y)) - (a * (t * (z * 4.0))))) / (z * c);
else
tmp = (t_1 + (y * (((9.0 * x) / z) + (b / (z * y))))) / c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c 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[z, -3.5e+65], N[(N[(N[(1.0 / N[(z / N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 13000000000000.0], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$1 + N[(y * N[(N[(N[(9.0 * x), $MachinePrecision] / z), $MachinePrecision] + N[(b / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot -4\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+65}:\\
\;\;\;\;\frac{\frac{1}{\frac{z}{9 \cdot \left(x \cdot y\right) + b}} + t\_1}{c}\\
\mathbf{elif}\;z \leq 13000000000000:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1 + y \cdot \left(\frac{9 \cdot x}{z} + \frac{b}{z \cdot y}\right)}{c}\\
\end{array}
\end{array}
if z < -3.5000000000000001e65Initial program 59.9%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified89.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-*r*N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6490.0%
Applied egg-rr90.0%
if -3.5000000000000001e65 < z < 1.3e13Initial program 95.6%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.5%
Applied egg-rr95.5%
if 1.3e13 < z Initial program 43.1%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified78.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6485.1%
Simplified85.1%
Final simplification92.3%
NOTE: x, y, z, t, a, b, and c 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))) (t_2 (* t (* a -4.0))))
(if (<= z -3.5e+65)
(/ (+ (/ 1.0 (/ z (+ (* 9.0 (* x y)) b))) t_2) c)
(if (<= z 1e-39)
(/ (+ b (- t_1 (* a (* t (* z 4.0))))) (* z c))
(/ (+ t_2 (/ (+ b t_1) z)) c)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 t_2 = t * (a * -4.0);
double tmp;
if (z <= -3.5e+65) {
tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_2) / c;
} else if (z <= 1e-39) {
tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = (t_2 + ((b + t_1) / z)) / c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 = x * (9.0d0 * y)
t_2 = t * (a * (-4.0d0))
if (z <= (-3.5d+65)) then
tmp = ((1.0d0 / (z / ((9.0d0 * (x * y)) + b))) + t_2) / c
else if (z <= 1d-39) then
tmp = (b + (t_1 - (a * (t * (z * 4.0d0))))) / (z * c)
else
tmp = (t_2 + ((b + t_1) / z)) / c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 t_2 = t * (a * -4.0);
double tmp;
if (z <= -3.5e+65) {
tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_2) / c;
} else if (z <= 1e-39) {
tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = (t_2 + ((b + t_1) / z)) / c;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = x * (9.0 * y) t_2 = t * (a * -4.0) tmp = 0 if z <= -3.5e+65: tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_2) / c elif z <= 1e-39: tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c) else: tmp = (t_2 + ((b + t_1) / z)) / c return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(x * Float64(9.0 * y)) t_2 = Float64(t * Float64(a * -4.0)) tmp = 0.0 if (z <= -3.5e+65) tmp = Float64(Float64(Float64(1.0 / Float64(z / Float64(Float64(9.0 * Float64(x * y)) + b))) + t_2) / c); elseif (z <= 1e-39) tmp = Float64(Float64(b + Float64(t_1 - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); else tmp = Float64(Float64(t_2 + Float64(Float64(b + t_1) / z)) / c); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = x * (9.0 * y);
t_2 = t * (a * -4.0);
tmp = 0.0;
if (z <= -3.5e+65)
tmp = ((1.0 / (z / ((9.0 * (x * y)) + b))) + t_2) / c;
elseif (z <= 1e-39)
tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c);
else
tmp = (t_2 + ((b + t_1) / z)) / c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+65], N[(N[(N[(1.0 / N[(z / N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 1e-39], N[(N[(b + N[(t$95$1 - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$2 + N[(N[(b + t$95$1), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(9 \cdot y\right)\\
t_2 := t \cdot \left(a \cdot -4\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+65}:\\
\;\;\;\;\frac{\frac{1}{\frac{z}{9 \cdot \left(x \cdot y\right) + b}} + t\_2}{c}\\
\mathbf{elif}\;z \leq 10^{-39}:\\
\;\;\;\;\frac{b + \left(t\_1 - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_2 + \frac{b + t\_1}{z}}{c}\\
\end{array}
\end{array}
if z < -3.5000000000000001e65Initial program 59.9%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified89.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-*r*N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6490.0%
Applied egg-rr90.0%
if -3.5000000000000001e65 < z < 9.99999999999999929e-40Initial program 95.4%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.4%
Applied egg-rr95.4%
if 9.99999999999999929e-40 < z Initial program 47.1%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified80.0%
Final simplification91.0%
NOTE: x, y, z, t, a, b, and c 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))) (t_2 (/ (+ (* t (* a -4.0)) (/ (+ b t_1) z)) c)))
(if (<= z -2e+33)
t_2
(if (<= z 2e-10) (/ (+ b (- t_1 (* a (* t (* z 4.0))))) (* z c)) t_2))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 t_2 = ((t * (a * -4.0)) + ((b + t_1) / z)) / c;
double tmp;
if (z <= -2e+33) {
tmp = t_2;
} else if (z <= 2e-10) {
tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 = x * (9.0d0 * y)
t_2 = ((t * (a * (-4.0d0))) + ((b + t_1) / z)) / c
if (z <= (-2d+33)) then
tmp = t_2
else if (z <= 2d-10) then
tmp = (b + (t_1 - (a * (t * (z * 4.0d0))))) / (z * c)
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 t_2 = ((t * (a * -4.0)) + ((b + t_1) / z)) / c;
double tmp;
if (z <= -2e+33) {
tmp = t_2;
} else if (z <= 2e-10) {
tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = x * (9.0 * y) t_2 = ((t * (a * -4.0)) + ((b + t_1) / z)) / c tmp = 0 if z <= -2e+33: tmp = t_2 elif z <= 2e-10: tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c) else: tmp = t_2 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(x * Float64(9.0 * y)) t_2 = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(Float64(b + t_1) / z)) / c) tmp = 0.0 if (z <= -2e+33) tmp = t_2; elseif (z <= 2e-10) tmp = Float64(Float64(b + Float64(t_1 - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); else tmp = t_2; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = x * (9.0 * y);
t_2 = ((t * (a * -4.0)) + ((b + t_1) / z)) / c;
tmp = 0.0;
if (z <= -2e+33)
tmp = t_2;
elseif (z <= 2e-10)
tmp = (b + (t_1 - (a * (t * (z * 4.0))))) / (z * c);
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b + t$95$1), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -2e+33], t$95$2, If[LessEqual[z, 2e-10], N[(N[(b + N[(t$95$1 - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(9 \cdot y\right)\\
t_2 := \frac{t \cdot \left(a \cdot -4\right) + \frac{b + t\_1}{z}}{c}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-10}:\\
\;\;\;\;\frac{b + \left(t\_1 - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.9999999999999999e33 or 2.00000000000000007e-10 < z Initial program 55.8%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified84.9%
if -1.9999999999999999e33 < z < 2.00000000000000007e-10Initial program 95.9%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.9%
Applied egg-rr95.9%
Final simplification90.9%
NOTE: x, y, z, t, a, b, and c 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)) (* (* 9.0 x) (/ y z))) c)))
(if (<= z -1.15e-46)
t_1
(if (<= z 3.3e-46) (/ (+ (* 9.0 (* x y)) b) (* z c)) t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((t * (a * -4.0)) + ((9.0 * x) * (y / z))) / c;
double tmp;
if (z <= -1.15e-46) {
tmp = t_1;
} else if (z <= 3.3e-46) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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))) + ((9.0d0 * x) * (y / z))) / c
if (z <= (-1.15d-46)) then
tmp = t_1
else if (z <= 3.3d-46) then
tmp = ((9.0d0 * (x * y)) + b) / (z * c)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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)) + ((9.0 * x) * (y / z))) / c;
double tmp;
if (z <= -1.15e-46) {
tmp = t_1;
} else if (z <= 3.3e-46) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = ((t * (a * -4.0)) + ((9.0 * x) * (y / z))) / c tmp = 0 if z <= -1.15e-46: tmp = t_1 elif z <= 3.3e-46: tmp = ((9.0 * (x * y)) + b) / (z * c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(Float64(9.0 * x) * Float64(y / z))) / c) tmp = 0.0 if (z <= -1.15e-46) tmp = t_1; elseif (z <= 3.3e-46) tmp = Float64(Float64(Float64(9.0 * Float64(x * y)) + b) / Float64(z * c)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = ((t * (a * -4.0)) + ((9.0 * x) * (y / z))) / c;
tmp = 0.0;
if (z <= -1.15e-46)
tmp = t_1;
elseif (z <= 3.3e-46)
tmp = ((9.0 * (x * y)) + b) / (z * c);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c 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[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(N[(9.0 * x), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -1.15e-46], t$95$1, If[LessEqual[z, 3.3e-46], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := \frac{t \cdot \left(a \cdot -4\right) + \left(9 \cdot x\right) \cdot \frac{y}{z}}{c}\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{-46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{-46}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot y\right) + b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.15e-46 or 3.30000000000000013e-46 < z Initial program 62.2%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified86.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6473.6%
Simplified73.6%
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6475.8%
Applied egg-rr75.8%
if -1.15e-46 < z < 3.30000000000000013e-46Initial program 95.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6485.9%
Simplified85.9%
Final simplification80.5%
NOTE: x, y, z, t, a, b, and c 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)) (* 9.0 (/ (* x y) z))) c)))
(if (<= z -9e-50)
t_1
(if (<= z 3e-32) (/ (+ (* 9.0 (* x y)) b) (* z c)) t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((t * (a * -4.0)) + (9.0 * ((x * y) / z))) / c;
double tmp;
if (z <= -9e-50) {
tmp = t_1;
} else if (z <= 3e-32) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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))) + (9.0d0 * ((x * y) / z))) / c
if (z <= (-9d-50)) then
tmp = t_1
else if (z <= 3d-32) then
tmp = ((9.0d0 * (x * y)) + b) / (z * c)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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)) + (9.0 * ((x * y) / z))) / c;
double tmp;
if (z <= -9e-50) {
tmp = t_1;
} else if (z <= 3e-32) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = ((t * (a * -4.0)) + (9.0 * ((x * y) / z))) / c tmp = 0 if z <= -9e-50: tmp = t_1 elif z <= 3e-32: tmp = ((9.0 * (x * y)) + b) / (z * c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(9.0 * Float64(Float64(x * y) / z))) / c) tmp = 0.0 if (z <= -9e-50) tmp = t_1; elseif (z <= 3e-32) tmp = Float64(Float64(Float64(9.0 * Float64(x * y)) + b) / Float64(z * c)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = ((t * (a * -4.0)) + (9.0 * ((x * y) / z))) / c;
tmp = 0.0;
if (z <= -9e-50)
tmp = t_1;
elseif (z <= 3e-32)
tmp = ((9.0 * (x * y)) + b) / (z * c);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c 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[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -9e-50], t$95$1, If[LessEqual[z, 3e-32], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := \frac{t \cdot \left(a \cdot -4\right) + 9 \cdot \frac{x \cdot y}{z}}{c}\\
\mathbf{if}\;z \leq -9 \cdot 10^{-50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-32}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot y\right) + b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.99999999999999924e-50 or 3e-32 < z Initial program 62.2%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified86.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.6%
Simplified73.6%
if -8.99999999999999924e-50 < z < 3e-32Initial program 95.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6485.9%
Simplified85.9%
Final simplification79.3%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -3.6e+58)
(* a (/ (* t -4.0) c))
(if (<= t -8e-23)
(/ (* 9.0 (* x (/ y z))) c)
(if (<= t -6.8e-119) (/ (/ b c) z) (/ (* 9.0 (/ (* x y) c)) z)))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.6e+58) {
tmp = a * ((t * -4.0) / c);
} else if (t <= -8e-23) {
tmp = (9.0 * (x * (y / z))) / c;
} else if (t <= -6.8e-119) {
tmp = (b / c) / z;
} else {
tmp = (9.0 * ((x * y) / c)) / z;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 <= (-3.6d+58)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (t <= (-8d-23)) then
tmp = (9.0d0 * (x * (y / z))) / c
else if (t <= (-6.8d-119)) then
tmp = (b / c) / z
else
tmp = (9.0d0 * ((x * y) / c)) / z
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.6e+58) {
tmp = a * ((t * -4.0) / c);
} else if (t <= -8e-23) {
tmp = (9.0 * (x * (y / z))) / c;
} else if (t <= -6.8e-119) {
tmp = (b / c) / z;
} else {
tmp = (9.0 * ((x * y) / c)) / z;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): tmp = 0 if t <= -3.6e+58: tmp = a * ((t * -4.0) / c) elif t <= -8e-23: tmp = (9.0 * (x * (y / z))) / c elif t <= -6.8e-119: tmp = (b / c) / z else: tmp = (9.0 * ((x * y) / c)) / z return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -3.6e+58) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (t <= -8e-23) tmp = Float64(Float64(9.0 * Float64(x * Float64(y / z))) / c); elseif (t <= -6.8e-119) tmp = Float64(Float64(b / c) / z); else tmp = Float64(Float64(9.0 * Float64(Float64(x * y) / c)) / z); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if (t <= -3.6e+58)
tmp = a * ((t * -4.0) / c);
elseif (t <= -8e-23)
tmp = (9.0 * (x * (y / z))) / c;
elseif (t <= -6.8e-119)
tmp = (b / c) / z;
else
tmp = (9.0 * ((x * y) / c)) / z;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -3.6e+58], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8e-23], N[(N[(9.0 * N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t, -6.8e-119], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+58}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-23}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot \frac{y}{z}\right)}{c}\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-119}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{c}}{z}\\
\end{array}
\end{array}
if t < -3.59999999999999996e58Initial program 67.6%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6479.6%
Applied egg-rr79.6%
Taylor expanded in a around inf
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6467.4%
Simplified67.4%
if -3.59999999999999996e58 < t < -7.99999999999999968e-23Initial program 85.0%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified85.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6475.3%
Simplified75.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6449.7%
Simplified49.7%
if -7.99999999999999968e-23 < t < -6.80000000000000047e-119Initial program 81.9%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6449.6%
Simplified49.6%
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6456.8%
Applied egg-rr56.8%
if -6.80000000000000047e-119 < t Initial program 79.9%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified86.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-*r*N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6486.9%
Applied egg-rr86.9%
Taylor expanded in x around inf
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6446.3%
Simplified46.3%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -1.2e-54)
(/ (* 9.0 (* x (/ y z))) c)
(if (<= y 2.4e-121)
(* a (/ (* t -4.0) c))
(if (<= y 3.7e-8) (/ (/ b z) c) (/ (* 9.0 (* x y)) (* z c))))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.2e-54) {
tmp = (9.0 * (x * (y / z))) / c;
} else if (y <= 2.4e-121) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 3.7e-8) {
tmp = (b / z) / c;
} else {
tmp = (9.0 * (x * y)) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 (y <= (-1.2d-54)) then
tmp = (9.0d0 * (x * (y / z))) / c
else if (y <= 2.4d-121) then
tmp = a * ((t * (-4.0d0)) / c)
else if (y <= 3.7d-8) then
tmp = (b / z) / c
else
tmp = (9.0d0 * (x * y)) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.2e-54) {
tmp = (9.0 * (x * (y / z))) / c;
} else if (y <= 2.4e-121) {
tmp = a * ((t * -4.0) / c);
} else if (y <= 3.7e-8) {
tmp = (b / z) / c;
} else {
tmp = (9.0 * (x * y)) / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): tmp = 0 if y <= -1.2e-54: tmp = (9.0 * (x * (y / z))) / c elif y <= 2.4e-121: tmp = a * ((t * -4.0) / c) elif y <= 3.7e-8: tmp = (b / z) / c else: tmp = (9.0 * (x * y)) / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -1.2e-54) tmp = Float64(Float64(9.0 * Float64(x * Float64(y / z))) / c); elseif (y <= 2.4e-121) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (y <= 3.7e-8) tmp = Float64(Float64(b / z) / c); else tmp = Float64(Float64(9.0 * Float64(x * y)) / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if (y <= -1.2e-54)
tmp = (9.0 * (x * (y / z))) / c;
elseif (y <= 2.4e-121)
tmp = a * ((t * -4.0) / c);
elseif (y <= 3.7e-8)
tmp = (b / z) / c;
else
tmp = (9.0 * (x * y)) / (z * c);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1.2e-54], N[(N[(9.0 * N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[y, 2.4e-121], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-8], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision], N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-54}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot \frac{y}{z}\right)}{c}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-121}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-8}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if y < -1.20000000000000007e-54Initial program 78.2%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified76.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.2%
Simplified54.2%
if -1.20000000000000007e-54 < y < 2.40000000000000003e-121Initial program 79.8%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.8%
Applied egg-rr80.8%
Taylor expanded in a around inf
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6455.8%
Simplified55.8%
if 2.40000000000000003e-121 < y < 3.7e-8Initial program 88.9%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified88.6%
Taylor expanded in b around inf
/-lowering-/.f6447.5%
Simplified47.5%
if 3.7e-8 < y Initial program 70.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
NOTE: x, y, z, t, a, b, and c 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 (* x y)) (* z c))))
(if (<= t -1.08e+68)
(* a (/ (* t -4.0) c))
(if (<= t -6e-9) t_1 (if (<= t -9.8e-119) (/ (/ b c) z) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (9.0 * (x * y)) / (z * c);
double tmp;
if (t <= -1.08e+68) {
tmp = a * ((t * -4.0) / c);
} else if (t <= -6e-9) {
tmp = t_1;
} else if (t <= -9.8e-119) {
tmp = (b / c) / z;
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 * (x * y)) / (z * c)
if (t <= (-1.08d+68)) then
tmp = a * ((t * (-4.0d0)) / c)
else if (t <= (-6d-9)) then
tmp = t_1
else if (t <= (-9.8d-119)) then
tmp = (b / c) / z
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (9.0 * (x * y)) / (z * c);
double tmp;
if (t <= -1.08e+68) {
tmp = a * ((t * -4.0) / c);
} else if (t <= -6e-9) {
tmp = t_1;
} else if (t <= -9.8e-119) {
tmp = (b / c) / z;
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = (9.0 * (x * y)) / (z * c) tmp = 0 if t <= -1.08e+68: tmp = a * ((t * -4.0) / c) elif t <= -6e-9: tmp = t_1 elif t <= -9.8e-119: tmp = (b / c) / z else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(9.0 * Float64(x * y)) / Float64(z * c)) tmp = 0.0 if (t <= -1.08e+68) tmp = Float64(a * Float64(Float64(t * -4.0) / c)); elseif (t <= -6e-9) tmp = t_1; elseif (t <= -9.8e-119) tmp = Float64(Float64(b / c) / z); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = (9.0 * (x * y)) / (z * c);
tmp = 0.0;
if (t <= -1.08e+68)
tmp = a * ((t * -4.0) / c);
elseif (t <= -6e-9)
tmp = t_1;
elseif (t <= -9.8e-119)
tmp = (b / c) / z;
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.08e+68], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6e-9], t$95$1, If[LessEqual[t, -9.8e-119], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := \frac{9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{if}\;t \leq -1.08 \cdot 10^{+68}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c}\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.8 \cdot 10^{-119}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.08e68Initial program 66.5%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.9%
Applied egg-rr78.9%
Taylor expanded in a around inf
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6469.7%
Simplified69.7%
if -1.08e68 < t < -5.99999999999999996e-9 or -9.8e-119 < t Initial program 80.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6447.2%
Simplified47.2%
if -5.99999999999999996e-9 < t < -9.8e-119Initial program 81.7%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6448.3%
Simplified48.3%
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6452.5%
Applied egg-rr52.5%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* a (/ (* t -4.0) c))))
(if (<= a -6e-29)
t_1
(if (<= a 1.9e-162)
(* 9.0 (/ (/ (* x y) z) c))
(if (<= a 5.4e+20) (/ (/ b c) z) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a * ((t * -4.0) / c);
double tmp;
if (a <= -6e-29) {
tmp = t_1;
} else if (a <= 1.9e-162) {
tmp = 9.0 * (((x * y) / z) / c);
} else if (a <= 5.4e+20) {
tmp = (b / c) / z;
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 = a * ((t * (-4.0d0)) / c)
if (a <= (-6d-29)) then
tmp = t_1
else if (a <= 1.9d-162) then
tmp = 9.0d0 * (((x * y) / z) / c)
else if (a <= 5.4d+20) then
tmp = (b / c) / z
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a * ((t * -4.0) / c);
double tmp;
if (a <= -6e-29) {
tmp = t_1;
} else if (a <= 1.9e-162) {
tmp = 9.0 * (((x * y) / z) / c);
} else if (a <= 5.4e+20) {
tmp = (b / c) / z;
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = a * ((t * -4.0) / c) tmp = 0 if a <= -6e-29: tmp = t_1 elif a <= 1.9e-162: tmp = 9.0 * (((x * y) / z) / c) elif a <= 5.4e+20: tmp = (b / c) / z else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(a * Float64(Float64(t * -4.0) / c)) tmp = 0.0 if (a <= -6e-29) tmp = t_1; elseif (a <= 1.9e-162) tmp = Float64(9.0 * Float64(Float64(Float64(x * y) / z) / c)); elseif (a <= 5.4e+20) tmp = Float64(Float64(b / c) / z); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = a * ((t * -4.0) / c);
tmp = 0.0;
if (a <= -6e-29)
tmp = t_1;
elseif (a <= 1.9e-162)
tmp = 9.0 * (((x * y) / z) / c);
elseif (a <= 5.4e+20)
tmp = (b / c) / z;
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6e-29], t$95$1, If[LessEqual[a, 1.9e-162], N[(9.0 * N[(N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.4e+20], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := a \cdot \frac{t \cdot -4}{c}\\
\mathbf{if}\;a \leq -6 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-162}:\\
\;\;\;\;9 \cdot \frac{\frac{x \cdot y}{z}}{c}\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{+20}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.0000000000000005e-29 or 5.4e20 < a Initial program 78.5%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.7%
Applied egg-rr76.7%
Taylor expanded in a around inf
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6460.0%
Simplified60.0%
if -6.0000000000000005e-29 < a < 1.90000000000000002e-162Initial program 78.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6442.9%
Simplified42.9%
if 1.90000000000000002e-162 < a < 5.4e20Initial program 74.6%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6432.1%
Simplified32.1%
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6435.0%
Applied egg-rr35.0%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (if (<= a -4.5e+16) (* (/ t c) (/ (* a (* z -4.0)) z)) (/ (+ (* t (* a -4.0)) (/ (+ b (* x (* 9.0 y))) z)) c)))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -4.5e+16) {
tmp = (t / c) * ((a * (z * -4.0)) / z);
} else {
tmp = ((t * (a * -4.0)) + ((b + (x * (9.0 * y))) / z)) / c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 <= (-4.5d+16)) then
tmp = (t / c) * ((a * (z * (-4.0d0))) / z)
else
tmp = ((t * (a * (-4.0d0))) + ((b + (x * (9.0d0 * y))) / z)) / c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -4.5e+16) {
tmp = (t / c) * ((a * (z * -4.0)) / z);
} else {
tmp = ((t * (a * -4.0)) + ((b + (x * (9.0 * y))) / z)) / c;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): tmp = 0 if a <= -4.5e+16: tmp = (t / c) * ((a * (z * -4.0)) / z) else: tmp = ((t * (a * -4.0)) + ((b + (x * (9.0 * y))) / z)) / c return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -4.5e+16) tmp = Float64(Float64(t / c) * Float64(Float64(a * Float64(z * -4.0)) / z)); else tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(Float64(b + Float64(x * Float64(9.0 * y))) / z)) / c); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if (a <= -4.5e+16)
tmp = (t / c) * ((a * (z * -4.0)) / z);
else
tmp = ((t * (a * -4.0)) + ((b + (x * (9.0 * y))) / z)) / c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -4.5e+16], N[(N[(t / c), $MachinePrecision] * N[(N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{+16}:\\
\;\;\;\;\frac{t}{c} \cdot \frac{a \cdot \left(z \cdot -4\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b + x \cdot \left(9 \cdot y\right)}{z}}{c}\\
\end{array}
\end{array}
if a < -4.5e16Initial program 73.9%
Taylor expanded in z around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6442.1%
Simplified42.1%
*-commutativeN/A
associate-*l*N/A
associate-*l*N/A
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.1%
Applied egg-rr58.1%
if -4.5e16 < a Initial program 79.0%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified86.6%
Final simplification80.4%
NOTE: x, y, z, t, a, b, and c 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)) (/ b z)) c)))
(if (<= z -1.8e-57)
t_1
(if (<= z 4e-74) (/ (+ (* 9.0 (* x y)) b) (* z c)) t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((t * (a * -4.0)) + (b / z)) / c;
double tmp;
if (z <= -1.8e-57) {
tmp = t_1;
} else if (z <= 4e-74) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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))) + (b / z)) / c
if (z <= (-1.8d-57)) then
tmp = t_1
else if (z <= 4d-74) then
tmp = ((9.0d0 * (x * y)) + b) / (z * c)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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)) + (b / z)) / c;
double tmp;
if (z <= -1.8e-57) {
tmp = t_1;
} else if (z <= 4e-74) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = ((t * (a * -4.0)) + (b / z)) / c tmp = 0 if z <= -1.8e-57: tmp = t_1 elif z <= 4e-74: tmp = ((9.0 * (x * y)) + b) / (z * c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c) tmp = 0.0 if (z <= -1.8e-57) tmp = t_1; elseif (z <= 4e-74) tmp = Float64(Float64(Float64(9.0 * Float64(x * y)) + b) / Float64(z * c)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = ((t * (a * -4.0)) + (b / z)) / c;
tmp = 0.0;
if (z <= -1.8e-57)
tmp = t_1;
elseif (z <= 4e-74)
tmp = ((9.0 * (x * y)) + b) / (z * c);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c 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[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -1.8e-57], t$95$1, If[LessEqual[z, 4e-74], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := \frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-74}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot y\right) + b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.8000000000000001e-57 or 3.99999999999999983e-74 < z Initial program 65.2%
associate-/r*N/A
/-lowering-/.f64N/A
Simplified87.1%
Taylor expanded in x around 0
/-lowering-/.f6465.2%
Simplified65.2%
if -1.8000000000000001e-57 < z < 3.99999999999999983e-74Initial program 95.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6488.9%
Simplified88.9%
Final simplification75.1%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -5.2e-26)
(* (/ t c) (/ (* a (* z -4.0)) z))
(if (<= a 3.5e+241)
(/ (+ (* 9.0 (* x y)) b) (* z c))
(* (/ (* z (* t -4.0)) c) (/ a z)))))assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -5.2e-26) {
tmp = (t / c) * ((a * (z * -4.0)) / z);
} else if (a <= 3.5e+241) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = ((z * (t * -4.0)) / c) * (a / z);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 <= (-5.2d-26)) then
tmp = (t / c) * ((a * (z * (-4.0d0))) / z)
else if (a <= 3.5d+241) then
tmp = ((9.0d0 * (x * y)) + b) / (z * c)
else
tmp = ((z * (t * (-4.0d0))) / c) * (a / z)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -5.2e-26) {
tmp = (t / c) * ((a * (z * -4.0)) / z);
} else if (a <= 3.5e+241) {
tmp = ((9.0 * (x * y)) + b) / (z * c);
} else {
tmp = ((z * (t * -4.0)) / c) * (a / z);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): tmp = 0 if a <= -5.2e-26: tmp = (t / c) * ((a * (z * -4.0)) / z) elif a <= 3.5e+241: tmp = ((9.0 * (x * y)) + b) / (z * c) else: tmp = ((z * (t * -4.0)) / c) * (a / z) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -5.2e-26) tmp = Float64(Float64(t / c) * Float64(Float64(a * Float64(z * -4.0)) / z)); elseif (a <= 3.5e+241) tmp = Float64(Float64(Float64(9.0 * Float64(x * y)) + b) / Float64(z * c)); else tmp = Float64(Float64(Float64(z * Float64(t * -4.0)) / c) * Float64(a / z)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
tmp = 0.0;
if (a <= -5.2e-26)
tmp = (t / c) * ((a * (z * -4.0)) / z);
elseif (a <= 3.5e+241)
tmp = ((9.0 * (x * y)) + b) / (z * c);
else
tmp = ((z * (t * -4.0)) / c) * (a / z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -5.2e-26], N[(N[(t / c), $MachinePrecision] * N[(N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e+241], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * N[(t * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] * N[(a / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{-26}:\\
\;\;\;\;\frac{t}{c} \cdot \frac{a \cdot \left(z \cdot -4\right)}{z}\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+241}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot y\right) + b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot \left(t \cdot -4\right)}{c} \cdot \frac{a}{z}\\
\end{array}
\end{array}
if a < -5.2000000000000002e-26Initial program 76.5%
Taylor expanded in z around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6444.6%
Simplified44.6%
*-commutativeN/A
associate-*l*N/A
associate-*l*N/A
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6457.5%
Applied egg-rr57.5%
if -5.2000000000000002e-26 < a < 3.5e241Initial program 78.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
*-lowering-*.f6470.4%
Simplified70.4%
if 3.5e241 < a Initial program 77.3%
Taylor expanded in z around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.3%
Simplified60.3%
times-fracN/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6477.4%
Applied egg-rr77.4%
Final simplification67.7%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (let* ((t_1 (* a (/ (* t -4.0) c)))) (if (<= t -5e-18) t_1 (if (<= t 2.2e-86) (/ (/ b c) z) t_1))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a * ((t * -4.0) / c);
double tmp;
if (t <= -5e-18) {
tmp = t_1;
} else if (t <= 2.2e-86) {
tmp = (b / c) / z;
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c 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 = a * ((t * (-4.0d0)) / c)
if (t <= (-5d-18)) then
tmp = t_1
else if (t <= 2.2d-86) then
tmp = (b / c) / z
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a * ((t * -4.0) / c);
double tmp;
if (t <= -5e-18) {
tmp = t_1;
} else if (t <= 2.2e-86) {
tmp = (b / c) / z;
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): t_1 = a * ((t * -4.0) / c) tmp = 0 if t <= -5e-18: tmp = t_1 elif t <= 2.2e-86: tmp = (b / c) / z else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) t_1 = Float64(a * Float64(Float64(t * -4.0) / c)) tmp = 0.0 if (t <= -5e-18) tmp = t_1; elseif (t <= 2.2e-86) tmp = Float64(Float64(b / c) / z); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp_2 = code(x, y, z, t, a, b, c)
t_1 = a * ((t * -4.0) / c);
tmp = 0.0;
if (t <= -5e-18)
tmp = t_1;
elseif (t <= 2.2e-86)
tmp = (b / c) / z;
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(N[(t * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-18], t$95$1, If[LessEqual[t, 2.2e-86], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := a \cdot \frac{t \cdot -4}{c}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-86}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.00000000000000036e-18 or 2.2000000000000002e-86 < t Initial program 74.3%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6480.4%
Applied egg-rr80.4%
Taylor expanded in a around inf
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6451.1%
Simplified51.1%
if -5.00000000000000036e-18 < t < 2.2000000000000002e-86Initial program 83.8%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6441.4%
Simplified41.4%
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6445.3%
Applied egg-rr45.3%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (/ (/ b c) z))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / c) / z;
}
NOTE: x, y, z, t, a, b, and c 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 / c) / z
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / c) / z;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): return (b / c) / z
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) return Float64(Float64(b / c) / z) end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp = code(x, y, z, t, a, b, c)
tmp = (b / c) / z;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\frac{\frac{b}{c}}{z}
\end{array}
Initial program 77.9%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6433.1%
Simplified33.1%
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6434.4%
Applied egg-rr34.4%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. (FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
NOTE: x, y, z, t, a, b, and c 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 x < y && y < z && z < t && t < a && a < b && b < c;
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c]) def code(x, y, z, t, a, b, c): return b / (z * c)
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c]) function code(x, y, z, t, a, b, c) return Float64(b / Float64(z * c)) end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
function tmp = code(x, y, z, t, a, b, c)
tmp = b / (z * c);
end
NOTE: x, y, z, t, a, b, and c 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}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\frac{b}{z \cdot c}
\end{array}
Initial program 77.9%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6433.1%
Simplified33.1%
(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 2024155
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:alt
(! :herbie-platform default (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) -220031348160821/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 0) (/ (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 365902434742109/31250000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 28768236795461370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ (* (* 9 (/ y c)) (/ x z)) (/ b (* c z))) (* 4 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 138385150424563190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (- (+ (* 9 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4 (/ (* a t) c)))))))))
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))