
(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 22 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.
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 (<= z -1.8e+55)
(*
y
(- (/ (fma -4.0 (* a (/ t c)) (/ b (* z c))) y) (* (/ x z) (/ -9.0 c))))
(if (<= z 2.6e+27)
(/ (+ b (fma x (* y 9.0) (* t (* a (* z -4.0))))) (* z c))
(/ (* y (- (/ (- (/ b z) (* 4.0 (* a t))) y) (* (/ x z) -9.0))) c))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 (z <= -1.8e+55) {
tmp = y * ((fma(-4.0, (a * (t / c)), (b / (z * c))) / y) - ((x / z) * (-9.0 / c)));
} else if (z <= 2.6e+27) {
tmp = (b + fma(x, (y * 9.0), (t * (a * (z * -4.0))))) / (z * c);
} else {
tmp = (y * ((((b / z) - (4.0 * (a * t))) / y) - ((x / z) * -9.0))) / c;
}
return tmp;
}
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (z <= -1.8e+55) tmp = Float64(y * Float64(Float64(fma(-4.0, Float64(a * Float64(t / c)), Float64(b / Float64(z * c))) / y) - Float64(Float64(x / z) * Float64(-9.0 / c)))); elseif (z <= 2.6e+27) tmp = Float64(Float64(b + fma(x, Float64(y * 9.0), Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(z * c)); else tmp = Float64(Float64(y * Float64(Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / y) - Float64(Float64(x / z) * -9.0))) / c); end return tmp end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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[z, -1.8e+55], N[(y * N[(N[(N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision] + N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / z), $MachinePrecision] * N[(-9.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+27], N[(N[(b + N[(x * N[(y * 9.0), $MachinePrecision] + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / z), $MachinePrecision] * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(\frac{\mathsf{fma}\left(-4, a \cdot \frac{t}{c}, \frac{b}{z \cdot c}\right)}{y} - \frac{x}{z} \cdot \frac{-9}{c}\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+27}:\\
\;\;\;\;\frac{b + \mathsf{fma}\left(x, y \cdot 9, t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{y} - \frac{x}{z} \cdot -9\right)}{c}\\
\end{array}
\end{array}
if z < -1.79999999999999994e55Initial program 68.0%
Simplified68.3%
Taylor expanded in y around -inf 80.6%
Simplified80.6%
if -1.79999999999999994e55 < z < 2.60000000000000009e27Initial program 96.0%
Simplified96.9%
if 2.60000000000000009e27 < z Initial program 58.4%
associate-+l-58.4%
*-commutative58.4%
associate-*r*54.6%
*-commutative54.6%
associate-+l-54.6%
associate-*l*54.6%
associate-*l*63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in y around -inf 75.0%
Taylor expanded in c around 0 86.8%
Final simplification92.2%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (or (<= z -6.5e+54) (not (<= z 4e+27))) (/ (* y (- (/ (- (/ b z) (* 4.0 (* a t))) y) (* (/ x z) -9.0))) c) (/ (+ b (fma x (* y 9.0) (* t (* a (* z -4.0))))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 ((z <= -6.5e+54) || !(z <= 4e+27)) {
tmp = (y * ((((b / z) - (4.0 * (a * t))) / y) - ((x / z) * -9.0))) / c;
} else {
tmp = (b + fma(x, (y * 9.0), (t * (a * (z * -4.0))))) / (z * c);
}
return tmp;
}
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if ((z <= -6.5e+54) || !(z <= 4e+27)) tmp = Float64(Float64(y * Float64(Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / y) - Float64(Float64(x / z) * -9.0))) / c); else tmp = Float64(Float64(b + fma(x, Float64(y * 9.0), Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(z * c)); end return tmp end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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[Or[LessEqual[z, -6.5e+54], N[Not[LessEqual[z, 4e+27]], $MachinePrecision]], N[(N[(y * N[(N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / z), $MachinePrecision] * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(x * N[(y * 9.0), $MachinePrecision] + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+54} \lor \neg \left(z \leq 4 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{y \cdot \left(\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{y} - \frac{x}{z} \cdot -9\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \mathsf{fma}\left(x, y \cdot 9, t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -6.5e54 or 4.0000000000000001e27 < z Initial program 62.5%
associate-+l-62.5%
*-commutative62.5%
associate-*r*60.4%
*-commutative60.4%
associate-+l-60.4%
associate-*l*60.4%
associate-*l*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in y around -inf 77.3%
Taylor expanded in c around 0 86.2%
if -6.5e54 < z < 4.0000000000000001e27Initial program 96.0%
Simplified96.9%
Final simplification93.0%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (/ (+ b (- (* y (* x 9.0)) (* a (* t (* z 4.0))))) (* z c))))
(if (<= t_1 -5e-189)
t_1
(if (<= t_1 4e+91)
(/ (+ (+ (* 9.0 (/ (* x y) c)) (/ b c)) (* -4.0 (/ (* a (* z t)) c))) z)
(if (<= t_1 INFINITY)
(/ (- b (- (* (* a t) (* z 4.0)) (* x (* y 9.0)))) (* z c))
(* a (* t (/ -4.0 c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
double tmp;
if (t_1 <= -5e-189) {
tmp = t_1;
} else if (t_1 <= 4e+91) {
tmp = (((9.0 * ((x * y) / c)) + (b / c)) + (-4.0 * ((a * (z * t)) / c))) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
} else {
tmp = a * (t * (-4.0 / c));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
double tmp;
if (t_1 <= -5e-189) {
tmp = t_1;
} else if (t_1 <= 4e+91) {
tmp = (((9.0 * ((x * y) / c)) + (b / c)) + (-4.0 * ((a * (z * t)) / c))) / z;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
} else {
tmp = a * (t * (-4.0 / c));
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): t_1 = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c) tmp = 0 if t_1 <= -5e-189: tmp = t_1 elif t_1 <= 4e+91: tmp = (((9.0 * ((x * y) / c)) + (b / c)) + (-4.0 * ((a * (z * t)) / c))) / z elif t_1 <= math.inf: tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c) else: tmp = a * (t * (-4.0 / c)) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) t_1 = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)) tmp = 0.0 if (t_1 <= -5e-189) tmp = t_1; elseif (t_1 <= 4e+91) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / c)) + Float64(b / c)) + Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / c))) / z); elseif (t_1 <= Inf) tmp = Float64(Float64(b - Float64(Float64(Float64(a * t) * Float64(z * 4.0)) - Float64(x * Float64(y * 9.0)))) / Float64(z * c)); else tmp = Float64(a * Float64(t * Float64(-4.0 / c))); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
tmp = 0.0;
if (t_1 <= -5e-189)
tmp = t_1;
elseif (t_1 <= 4e+91)
tmp = (((9.0 * ((x * y) / c)) + (b / c)) + (-4.0 * ((a * (z * t)) / c))) / z;
elseif (t_1 <= Inf)
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
else
tmp = a * (t * (-4.0 / 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.
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[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-189], t$95$1, If[LessEqual[t$95$1, 4e+91], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(b / c), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(b - N[(N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision] - N[(x * N[(y * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := \frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-189}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+91}:\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{c} + \frac{b}{c}\right) + -4 \cdot \frac{a \cdot \left(z \cdot t\right)}{c}}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{b - \left(\left(a \cdot t\right) \cdot \left(z \cdot 4\right) - x \cdot \left(y \cdot 9\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -4.9999999999999997e-189Initial program 93.6%
if -4.9999999999999997e-189 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < 4.00000000000000032e91Initial program 75.9%
Simplified75.5%
Taylor expanded in z around 0 99.0%
if 4.00000000000000032e91 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 90.2%
associate-+l-90.2%
*-commutative90.2%
associate-*r*88.7%
*-commutative88.7%
associate-+l-88.7%
associate-*l*88.7%
associate-*l*90.6%
*-commutative90.6%
Simplified90.6%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
associate-+l-0.0%
*-commutative0.0%
associate-*r*0.4%
*-commutative0.4%
associate-+l-0.4%
associate-*l*0.4%
associate-*l*0.4%
*-commutative0.4%
Simplified0.4%
Taylor expanded in b around 0 0.0%
Taylor expanded in x around 0 17.1%
*-un-lft-identity17.1%
associate-*r*17.1%
times-frac35.3%
*-commutative35.3%
Applied egg-rr35.3%
*-lft-identity35.3%
times-frac17.1%
associate-*l*17.1%
times-frac24.5%
*-commutative24.5%
associate-/l*35.2%
associate-*l*35.3%
*-commutative35.3%
associate-/l*78.1%
*-inverses78.1%
Simplified78.1%
Final simplification91.9%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (or (<= z -7e+25) (not (<= z 1e+27))) (/ (* y (- (/ (- (/ b z) (* 4.0 (* a t))) y) (* (/ x z) -9.0))) c) (/ (+ b (- (* y (* x 9.0)) (* a (* t (* z 4.0))))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 ((z <= -7e+25) || !(z <= 1e+27)) {
tmp = (y * ((((b / z) - (4.0 * (a * t))) / y) - ((x / z) * -9.0))) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 ((z <= (-7d+25)) .or. (.not. (z <= 1d+27))) then
tmp = (y * ((((b / z) - (4.0d0 * (a * t))) / y) - ((x / z) * (-9.0d0)))) / c
else
tmp = (b + ((y * (x * 9.0d0)) - (a * (t * (z * 4.0d0))))) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 ((z <= -7e+25) || !(z <= 1e+27)) {
tmp = (y * ((((b / z) - (4.0 * (a * t))) / y) - ((x / z) * -9.0))) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if (z <= -7e+25) or not (z <= 1e+27): tmp = (y * ((((b / z) - (4.0 * (a * t))) / y) - ((x / z) * -9.0))) / c else: tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if ((z <= -7e+25) || !(z <= 1e+27)) tmp = Float64(Float64(y * Float64(Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / y) - Float64(Float64(x / z) * -9.0))) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 ((z <= -7e+25) || ~((z <= 1e+27)))
tmp = (y * ((((b / z) - (4.0 * (a * t))) / y) - ((x / z) * -9.0))) / c;
else
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (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. 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[Or[LessEqual[z, -7e+25], N[Not[LessEqual[z, 1e+27]], $MachinePrecision]], N[(N[(y * N[(N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / z), $MachinePrecision] * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+25} \lor \neg \left(z \leq 10^{+27}\right):\\
\;\;\;\;\frac{y \cdot \left(\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{y} - \frac{x}{z} \cdot -9\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -6.99999999999999999e25 or 1e27 < z Initial program 63.7%
associate-+l-63.7%
*-commutative63.7%
associate-*r*61.8%
*-commutative61.8%
associate-+l-61.8%
associate-*l*61.8%
associate-*l*68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in y around -inf 77.7%
Taylor expanded in c around 0 87.1%
if -6.99999999999999999e25 < z < 1e27Initial program 96.5%
Final simplification92.8%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (or (<= z -9.6e+143) (not (<= z 2.26e+52))) (/ (- (/ b z) (* 4.0 (* a t))) c) (/ (+ b (- (* y (* x 9.0)) (* a (* t (* z 4.0))))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 ((z <= -9.6e+143) || !(z <= 2.26e+52)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 ((z <= (-9.6d+143)) .or. (.not. (z <= 2.26d+52))) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((y * (x * 9.0d0)) - (a * (t * (z * 4.0d0))))) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 ((z <= -9.6e+143) || !(z <= 2.26e+52)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if (z <= -9.6e+143) or not (z <= 2.26e+52): tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if ((z <= -9.6e+143) || !(z <= 2.26e+52)) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 ((z <= -9.6e+143) || ~((z <= 2.26e+52)))
tmp = ((b / z) - (4.0 * (a * t))) / c;
else
tmp = (b + ((y * (x * 9.0)) - (a * (t * (z * 4.0))))) / (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. 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[Or[LessEqual[z, -9.6e+143], N[Not[LessEqual[z, 2.26e+52]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.6 \cdot 10^{+143} \lor \neg \left(z \leq 2.26 \cdot 10^{+52}\right):\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -9.59999999999999919e143 or 2.25999999999999993e52 < z Initial program 55.8%
associate-+l-55.8%
*-commutative55.8%
associate-*r*54.4%
*-commutative54.4%
associate-+l-54.4%
associate-*l*54.4%
associate-*l*62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in y around -inf 76.2%
Taylor expanded in c around 0 86.2%
Taylor expanded in y around 0 82.6%
mul-1-neg82.6%
cancel-sign-sub-inv82.6%
metadata-eval82.6%
distribute-neg-in82.6%
distribute-neg-frac282.6%
distribute-lft-neg-in82.6%
metadata-eval82.6%
Simplified82.6%
if -9.59999999999999919e143 < z < 2.25999999999999993e52Initial program 94.8%
Final simplification91.3%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (<= c 1.7e+28) (/ (- b (- (* (* a t) (* z 4.0)) (* x (* y 9.0)))) (* z c)) (/ (+ (* a (* -4.0 (* z (/ t c)))) (+ (* 9.0 (/ (* x y) c)) (/ b c))) z)))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 (c <= 1.7e+28) {
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
} else {
tmp = ((a * (-4.0 * (z * (t / c)))) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (c <= 1.7d+28) then
tmp = (b - (((a * t) * (z * 4.0d0)) - (x * (y * 9.0d0)))) / (z * c)
else
tmp = ((a * ((-4.0d0) * (z * (t / c)))) + ((9.0d0 * ((x * y) / c)) + (b / c))) / z
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (c <= 1.7e+28) {
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
} else {
tmp = ((a * (-4.0 * (z * (t / c)))) + ((9.0 * ((x * y) / c)) + (b / c))) / z;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if c <= 1.7e+28: tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c) else: tmp = ((a * (-4.0 * (z * (t / c)))) + ((9.0 * ((x * y) / c)) + (b / c))) / z return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (c <= 1.7e+28) tmp = Float64(Float64(b - Float64(Float64(Float64(a * t) * Float64(z * 4.0)) - Float64(x * Float64(y * 9.0)))) / Float64(z * c)); else tmp = Float64(Float64(Float64(a * Float64(-4.0 * Float64(z * Float64(t / c)))) + Float64(Float64(9.0 * Float64(Float64(x * y) / c)) + Float64(b / c))) / z); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (c <= 1.7e+28)
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
else
tmp = ((a * (-4.0 * (z * (t / c)))) + ((9.0 * ((x * y) / c)) + (b / 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. 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[c, 1.7e+28], N[(N[(b - N[(N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision] - N[(x * N[(y * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * N[(-4.0 * N[(z * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] + N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.7 \cdot 10^{+28}:\\
\;\;\;\;\frac{b - \left(\left(a \cdot t\right) \cdot \left(z \cdot 4\right) - x \cdot \left(y \cdot 9\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{a \cdot \left(-4 \cdot \left(z \cdot \frac{t}{c}\right)\right) + \left(9 \cdot \frac{x \cdot y}{c} + \frac{b}{c}\right)}{z}\\
\end{array}
\end{array}
if c < 1.7e28Initial program 86.6%
associate-+l-86.6%
*-commutative86.6%
associate-*r*86.0%
*-commutative86.0%
associate-+l-86.0%
associate-*l*85.9%
associate-*l*86.9%
*-commutative86.9%
Simplified86.9%
if 1.7e28 < c Initial program 70.6%
Simplified70.4%
Taylor expanded in z around 0 80.0%
associate-*r/80.0%
*-commutative80.0%
Applied egg-rr80.0%
associate-/l*80.0%
associate-*r/81.2%
*-commutative81.2%
associate-*r*81.2%
associate-/l*85.3%
Simplified85.3%
Final simplification86.6%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (* 4.0 (* a t))))
(if (<= b -9500000000000.0)
(/ (/ (+ b (* y (* x 9.0))) c) z)
(if (<= b 1.05e-85)
(/ (- (* 9.0 (/ (* x y) z)) t_1) c)
(/ (- (/ b z) t_1) c)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 = 4.0 * (a * t);
double tmp;
if (b <= -9500000000000.0) {
tmp = ((b + (y * (x * 9.0))) / c) / z;
} else if (b <= 1.05e-85) {
tmp = ((9.0 * ((x * y) / z)) - t_1) / c;
} else {
tmp = ((b / z) - t_1) / c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 = 4.0d0 * (a * t)
if (b <= (-9500000000000.0d0)) then
tmp = ((b + (y * (x * 9.0d0))) / c) / z
else if (b <= 1.05d-85) then
tmp = ((9.0d0 * ((x * y) / z)) - t_1) / c
else
tmp = ((b / z) - t_1) / c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 = 4.0 * (a * t);
double tmp;
if (b <= -9500000000000.0) {
tmp = ((b + (y * (x * 9.0))) / c) / z;
} else if (b <= 1.05e-85) {
tmp = ((9.0 * ((x * y) / z)) - t_1) / c;
} else {
tmp = ((b / z) - t_1) / c;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): t_1 = 4.0 * (a * t) tmp = 0 if b <= -9500000000000.0: tmp = ((b + (y * (x * 9.0))) / c) / z elif b <= 1.05e-85: tmp = ((9.0 * ((x * y) / z)) - t_1) / c else: tmp = ((b / z) - t_1) / c return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) t_1 = Float64(4.0 * Float64(a * t)) tmp = 0.0 if (b <= -9500000000000.0) tmp = Float64(Float64(Float64(b + Float64(y * Float64(x * 9.0))) / c) / z); elseif (b <= 1.05e-85) tmp = Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) - t_1) / c); else tmp = Float64(Float64(Float64(b / z) - t_1) / c); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 = 4.0 * (a * t);
tmp = 0.0;
if (b <= -9500000000000.0)
tmp = ((b + (y * (x * 9.0))) / c) / z;
elseif (b <= 1.05e-85)
tmp = ((9.0 * ((x * y) / z)) - t_1) / c;
else
tmp = ((b / z) - t_1) / 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.
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[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9500000000000.0], N[(N[(N[(b + N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 1.05e-85], N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := 4 \cdot \left(a \cdot t\right)\\
\mathbf{if}\;b \leq -9500000000000:\\
\;\;\;\;\frac{\frac{b + y \cdot \left(x \cdot 9\right)}{c}}{z}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-85}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{z} - t\_1}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - t\_1}{c}\\
\end{array}
\end{array}
if b < -9.5e12Initial program 89.7%
Simplified89.7%
Taylor expanded in z around 0 82.5%
Taylor expanded in a around 0 75.8%
Taylor expanded in c around 0 84.7%
associate-*r*84.7%
Simplified84.7%
if -9.5e12 < b < 1.05e-85Initial program 80.5%
associate-+l-80.5%
*-commutative80.5%
associate-*r*80.1%
*-commutative80.1%
associate-+l-80.1%
associate-*l*80.1%
associate-*l*81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in z around inf 79.4%
Taylor expanded in b around 0 85.9%
if 1.05e-85 < b Initial program 84.2%
associate-+l-84.2%
*-commutative84.2%
associate-*r*82.9%
*-commutative82.9%
associate-+l-82.9%
associate-*l*82.8%
associate-*l*82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in y around -inf 61.2%
Taylor expanded in c around 0 80.6%
Taylor expanded in y around 0 73.3%
mul-1-neg73.3%
cancel-sign-sub-inv73.3%
metadata-eval73.3%
distribute-neg-in73.3%
distribute-neg-frac273.3%
distribute-lft-neg-in73.3%
metadata-eval73.3%
Simplified73.3%
Final simplification81.7%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (/ (* -4.0 t) c))))
(if (<= a -3.2e-23)
t_1
(if (<= a -1.65e-299)
(/ b (* z c))
(if (<= a 1.46e-25) (* 9.0 (/ (* (/ x z) y) c)) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 = a * ((-4.0 * t) / c);
double tmp;
if (a <= -3.2e-23) {
tmp = t_1;
} else if (a <= -1.65e-299) {
tmp = b / (z * c);
} else if (a <= 1.46e-25) {
tmp = 9.0 * (((x / z) * y) / 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.
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 * (((-4.0d0) * t) / c)
if (a <= (-3.2d-23)) then
tmp = t_1
else if (a <= (-1.65d-299)) then
tmp = b / (z * c)
else if (a <= 1.46d-25) then
tmp = 9.0d0 * (((x / z) * y) / c)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 * ((-4.0 * t) / c);
double tmp;
if (a <= -3.2e-23) {
tmp = t_1;
} else if (a <= -1.65e-299) {
tmp = b / (z * c);
} else if (a <= 1.46e-25) {
tmp = 9.0 * (((x / z) * y) / c);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): t_1 = a * ((-4.0 * t) / c) tmp = 0 if a <= -3.2e-23: tmp = t_1 elif a <= -1.65e-299: tmp = b / (z * c) elif a <= 1.46e-25: tmp = 9.0 * (((x / z) * y) / c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) t_1 = Float64(a * Float64(Float64(-4.0 * t) / c)) tmp = 0.0 if (a <= -3.2e-23) tmp = t_1; elseif (a <= -1.65e-299) tmp = Float64(b / Float64(z * c)); elseif (a <= 1.46e-25) tmp = Float64(9.0 * Float64(Float64(Float64(x / z) * y) / 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])){:}
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 * ((-4.0 * t) / c);
tmp = 0.0;
if (a <= -3.2e-23)
tmp = t_1;
elseif (a <= -1.65e-299)
tmp = b / (z * c);
elseif (a <= 1.46e-25)
tmp = 9.0 * (((x / z) * y) / 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.
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[(-4.0 * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.2e-23], t$95$1, If[LessEqual[a, -1.65e-299], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.46e-25], N[(9.0 * N[(N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision] / 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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := a \cdot \frac{-4 \cdot t}{c}\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{-23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-299}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{-25}:\\
\;\;\;\;9 \cdot \frac{\frac{x}{z} \cdot y}{c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.19999999999999976e-23 or 1.46e-25 < a Initial program 83.4%
Simplified81.1%
Taylor expanded in t around inf 52.2%
*-commutative52.2%
associate-/l*54.7%
associate-*r*54.7%
*-commutative54.7%
*-commutative54.7%
associate-*l/54.7%
Simplified54.7%
if -3.19999999999999976e-23 < a < -1.6500000000000001e-299Initial program 82.4%
Simplified84.3%
Taylor expanded in b around inf 50.6%
*-commutative50.6%
Simplified50.6%
if -1.6500000000000001e-299 < a < 1.46e-25Initial program 85.5%
Simplified91.8%
Taylor expanded in x around inf 47.2%
*-commutative47.2%
*-commutative47.2%
*-commutative47.2%
times-frac43.8%
Simplified43.8%
associate-*l/41.0%
Applied egg-rr41.0%
Final simplification50.7%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (/ (* -4.0 t) c))))
(if (<= a -2.5e-20)
t_1
(if (<= a -4.5e-291)
(/ b (* z c))
(if (<= a 3.9e+118) (* 9.0 (* (/ x z) (/ y c))) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 = a * ((-4.0 * t) / c);
double tmp;
if (a <= -2.5e-20) {
tmp = t_1;
} else if (a <= -4.5e-291) {
tmp = b / (z * c);
} else if (a <= 3.9e+118) {
tmp = 9.0 * ((x / z) * (y / 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.
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 * (((-4.0d0) * t) / c)
if (a <= (-2.5d-20)) then
tmp = t_1
else if (a <= (-4.5d-291)) then
tmp = b / (z * c)
else if (a <= 3.9d+118) then
tmp = 9.0d0 * ((x / z) * (y / c))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 * ((-4.0 * t) / c);
double tmp;
if (a <= -2.5e-20) {
tmp = t_1;
} else if (a <= -4.5e-291) {
tmp = b / (z * c);
} else if (a <= 3.9e+118) {
tmp = 9.0 * ((x / z) * (y / c));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): t_1 = a * ((-4.0 * t) / c) tmp = 0 if a <= -2.5e-20: tmp = t_1 elif a <= -4.5e-291: tmp = b / (z * c) elif a <= 3.9e+118: tmp = 9.0 * ((x / z) * (y / c)) else: tmp = t_1 return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) t_1 = Float64(a * Float64(Float64(-4.0 * t) / c)) tmp = 0.0 if (a <= -2.5e-20) tmp = t_1; elseif (a <= -4.5e-291) tmp = Float64(b / Float64(z * c)); elseif (a <= 3.9e+118) tmp = Float64(9.0 * Float64(Float64(x / z) * Float64(y / 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])){:}
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 * ((-4.0 * t) / c);
tmp = 0.0;
if (a <= -2.5e-20)
tmp = t_1;
elseif (a <= -4.5e-291)
tmp = b / (z * c);
elseif (a <= 3.9e+118)
tmp = 9.0 * ((x / z) * (y / 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.
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[(-4.0 * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.5e-20], t$95$1, If[LessEqual[a, -4.5e-291], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.9e+118], N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := a \cdot \frac{-4 \cdot t}{c}\\
\mathbf{if}\;a \leq -2.5 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-291}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+118}:\\
\;\;\;\;9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.4999999999999999e-20 or 3.9e118 < a Initial program 84.7%
Simplified81.9%
Taylor expanded in t around inf 54.0%
*-commutative54.0%
associate-/l*57.3%
associate-*r*57.3%
*-commutative57.3%
*-commutative57.3%
associate-*l/57.3%
Simplified57.3%
if -2.4999999999999999e-20 < a < -4.49999999999999974e-291Initial program 82.4%
Simplified84.3%
Taylor expanded in b around inf 50.6%
*-commutative50.6%
Simplified50.6%
if -4.49999999999999974e-291 < a < 3.9e118Initial program 83.1%
Simplified87.1%
Taylor expanded in x around inf 42.5%
*-commutative42.5%
*-commutative42.5%
*-commutative42.5%
times-frac41.6%
Simplified41.6%
Final simplification50.3%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (<= z 2.05e+131) (/ (- b (- (* (* a t) (* z 4.0)) (* x (* y 9.0)))) (* z c)) (/ (- (/ b z) (* 4.0 (* a t))) c)))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 (z <= 2.05e+131) {
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
} else {
tmp = ((b / z) - (4.0 * (a * t))) / c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (z <= 2.05d+131) then
tmp = (b - (((a * t) * (z * 4.0d0)) - (x * (y * 9.0d0)))) / (z * c)
else
tmp = ((b / z) - (4.0d0 * (a * t))) / c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (z <= 2.05e+131) {
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
} else {
tmp = ((b / z) - (4.0 * (a * t))) / c;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if z <= 2.05e+131: tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c) else: tmp = ((b / z) - (4.0 * (a * t))) / c return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (z <= 2.05e+131) tmp = Float64(Float64(b - Float64(Float64(Float64(a * t) * Float64(z * 4.0)) - Float64(x * Float64(y * 9.0)))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (z <= 2.05e+131)
tmp = (b - (((a * t) * (z * 4.0)) - (x * (y * 9.0)))) / (z * c);
else
tmp = ((b / z) - (4.0 * (a * t))) / 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. 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[z, 2.05e+131], N[(N[(b - N[(N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision] - N[(x * N[(y * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq 2.05 \cdot 10^{+131}:\\
\;\;\;\;\frac{b - \left(\left(a \cdot t\right) \cdot \left(z \cdot 4\right) - x \cdot \left(y \cdot 9\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\end{array}
\end{array}
if z < 2.05000000000000004e131Initial program 88.3%
associate-+l-88.3%
*-commutative88.3%
associate-*r*88.1%
*-commutative88.1%
associate-+l-88.1%
associate-*l*88.1%
associate-*l*87.3%
*-commutative87.3%
Simplified87.3%
if 2.05000000000000004e131 < z Initial program 49.9%
associate-+l-49.9%
*-commutative49.9%
associate-*r*46.6%
*-commutative46.6%
associate-+l-46.6%
associate-*l*46.6%
associate-*l*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in y around -inf 75.2%
Taylor expanded in c around 0 89.5%
Taylor expanded in y around 0 93.4%
mul-1-neg93.4%
cancel-sign-sub-inv93.4%
metadata-eval93.4%
distribute-neg-in93.4%
distribute-neg-frac293.4%
distribute-lft-neg-in93.4%
metadata-eval93.4%
Simplified93.4%
Final simplification88.1%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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.15e+56)
(* 9.0 (* y (/ (/ x c) z)))
(if (<= y 14600.0)
(/ (+ b (* a (* t (* z -4.0)))) (* z c))
(/ (+ b (* y (* x 9.0))) (* z c)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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.15e+56) {
tmp = 9.0 * (y * ((x / c) / z));
} else if (y <= 14600.0) {
tmp = (b + (a * (t * (z * -4.0)))) / (z * c);
} else {
tmp = (b + (y * (x * 9.0))) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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.15d+56)) then
tmp = 9.0d0 * (y * ((x / c) / z))
else if (y <= 14600.0d0) then
tmp = (b + (a * (t * (z * (-4.0d0))))) / (z * c)
else
tmp = (b + (y * (x * 9.0d0))) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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.15e+56) {
tmp = 9.0 * (y * ((x / c) / z));
} else if (y <= 14600.0) {
tmp = (b + (a * (t * (z * -4.0)))) / (z * c);
} else {
tmp = (b + (y * (x * 9.0))) / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if y <= -1.15e+56: tmp = 9.0 * (y * ((x / c) / z)) elif y <= 14600.0: tmp = (b + (a * (t * (z * -4.0)))) / (z * c) else: tmp = (b + (y * (x * 9.0))) / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (y <= -1.15e+56) tmp = Float64(9.0 * Float64(y * Float64(Float64(x / c) / z))); elseif (y <= 14600.0) tmp = Float64(Float64(b + Float64(a * Float64(t * Float64(z * -4.0)))) / Float64(z * c)); else tmp = Float64(Float64(b + Float64(y * Float64(x * 9.0))) / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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.15e+56)
tmp = 9.0 * (y * ((x / c) / z));
elseif (y <= 14600.0)
tmp = (b + (a * (t * (z * -4.0)))) / (z * c);
else
tmp = (b + (y * (x * 9.0))) / (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. 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.15e+56], N[(9.0 * N[(y * N[(N[(x / c), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 14600.0], N[(N[(b + N[(a * N[(t * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(y * N[(x * 9.0), $MachinePrecision]), $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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+56}:\\
\;\;\;\;9 \cdot \left(y \cdot \frac{\frac{x}{c}}{z}\right)\\
\mathbf{elif}\;y \leq 14600:\\
\;\;\;\;\frac{b + a \cdot \left(t \cdot \left(z \cdot -4\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + y \cdot \left(x \cdot 9\right)}{z \cdot c}\\
\end{array}
\end{array}
if y < -1.15000000000000007e56Initial program 84.8%
associate-+l-84.8%
*-commutative84.8%
associate-*r*84.8%
*-commutative84.8%
associate-+l-84.8%
associate-*l*84.8%
associate-*l*86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in z around inf 81.6%
Taylor expanded in x around inf 66.9%
*-rgt-identity66.9%
*-commutative66.9%
associate-*r/66.8%
*-commutative66.8%
*-commutative66.8%
associate-*r*66.9%
*-commutative66.9%
*-commutative66.9%
associate-*r/66.9%
*-rgt-identity66.9%
*-commutative66.9%
associate-/r*70.4%
Simplified70.4%
if -1.15000000000000007e56 < y < 14600Initial program 84.6%
Simplified84.3%
Taylor expanded in x around 0 72.7%
*-commutative72.7%
associate-*r*72.7%
associate-*l*72.7%
Simplified72.7%
if 14600 < y Initial program 80.9%
associate-+l-80.9%
*-commutative80.9%
associate-*r*79.4%
*-commutative79.4%
associate-+l-79.4%
associate-*l*79.3%
associate-*l*77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in z around inf 72.2%
Taylor expanded in z around 0 69.5%
*-commutative69.5%
associate-*r*69.5%
*-commutative69.5%
associate-*r*69.5%
Simplified69.5%
Final simplification71.4%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (or (<= z -3.1e+21) (not (<= z 2.65e-99))) (/ (- (/ b z) (* 4.0 (* a t))) c) (/ (+ b (* y (* x 9.0))) (* z c))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 ((z <= -3.1e+21) || !(z <= 2.65e-99)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + (y * (x * 9.0))) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 ((z <= (-3.1d+21)) .or. (.not. (z <= 2.65d-99))) then
tmp = ((b / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + (y * (x * 9.0d0))) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 ((z <= -3.1e+21) || !(z <= 2.65e-99)) {
tmp = ((b / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + (y * (x * 9.0))) / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if (z <= -3.1e+21) or not (z <= 2.65e-99): tmp = ((b / z) - (4.0 * (a * t))) / c else: tmp = (b + (y * (x * 9.0))) / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if ((z <= -3.1e+21) || !(z <= 2.65e-99)) tmp = Float64(Float64(Float64(b / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(y * Float64(x * 9.0))) / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 ((z <= -3.1e+21) || ~((z <= 2.65e-99)))
tmp = ((b / z) - (4.0 * (a * t))) / c;
else
tmp = (b + (y * (x * 9.0))) / (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. 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[Or[LessEqual[z, -3.1e+21], N[Not[LessEqual[z, 2.65e-99]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(y * N[(x * 9.0), $MachinePrecision]), $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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+21} \lor \neg \left(z \leq 2.65 \cdot 10^{-99}\right):\\
\;\;\;\;\frac{\frac{b}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + y \cdot \left(x \cdot 9\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -3.1e21 or 2.6500000000000002e-99 < z Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
associate-*r*69.4%
*-commutative69.4%
associate-+l-69.4%
associate-*l*69.4%
associate-*l*74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in y around -inf 72.1%
Taylor expanded in c around 0 87.4%
Taylor expanded in y around 0 77.5%
mul-1-neg77.5%
cancel-sign-sub-inv77.5%
metadata-eval77.5%
distribute-neg-in77.5%
distribute-neg-frac277.5%
distribute-lft-neg-in77.5%
metadata-eval77.5%
Simplified77.5%
if -3.1e21 < z < 2.6500000000000002e-99Initial program 95.8%
associate-+l-95.8%
*-commutative95.8%
associate-*r*96.2%
*-commutative96.2%
associate-+l-96.2%
associate-*l*96.2%
associate-*l*91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in z around inf 86.7%
Taylor expanded in z around 0 82.2%
*-commutative82.2%
associate-*r*82.2%
*-commutative82.2%
associate-*r*82.2%
Simplified82.2%
Final simplification79.9%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (* 4.0 (* a t))))
(if (<= z -5.6e+19)
(/ (- (* 9.0 (* x (/ y z))) t_1) c)
(if (<= z 2.5e-99)
(/ (+ b (* y (* x 9.0))) (* z c))
(/ (- (/ b z) t_1) c)))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 = 4.0 * (a * t);
double tmp;
if (z <= -5.6e+19) {
tmp = ((9.0 * (x * (y / z))) - t_1) / c;
} else if (z <= 2.5e-99) {
tmp = (b + (y * (x * 9.0))) / (z * c);
} else {
tmp = ((b / z) - t_1) / c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 = 4.0d0 * (a * t)
if (z <= (-5.6d+19)) then
tmp = ((9.0d0 * (x * (y / z))) - t_1) / c
else if (z <= 2.5d-99) then
tmp = (b + (y * (x * 9.0d0))) / (z * c)
else
tmp = ((b / z) - t_1) / c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 = 4.0 * (a * t);
double tmp;
if (z <= -5.6e+19) {
tmp = ((9.0 * (x * (y / z))) - t_1) / c;
} else if (z <= 2.5e-99) {
tmp = (b + (y * (x * 9.0))) / (z * c);
} else {
tmp = ((b / z) - t_1) / c;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): t_1 = 4.0 * (a * t) tmp = 0 if z <= -5.6e+19: tmp = ((9.0 * (x * (y / z))) - t_1) / c elif z <= 2.5e-99: tmp = (b + (y * (x * 9.0))) / (z * c) else: tmp = ((b / z) - t_1) / c return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) t_1 = Float64(4.0 * Float64(a * t)) tmp = 0.0 if (z <= -5.6e+19) tmp = Float64(Float64(Float64(9.0 * Float64(x * Float64(y / z))) - t_1) / c); elseif (z <= 2.5e-99) tmp = Float64(Float64(b + Float64(y * Float64(x * 9.0))) / Float64(z * c)); else tmp = Float64(Float64(Float64(b / z) - t_1) / c); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 = 4.0 * (a * t);
tmp = 0.0;
if (z <= -5.6e+19)
tmp = ((9.0 * (x * (y / z))) - t_1) / c;
elseif (z <= 2.5e-99)
tmp = (b + (y * (x * 9.0))) / (z * c);
else
tmp = ((b / z) - t_1) / 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.
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[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e+19], N[(N[(N[(9.0 * N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 2.5e-99], N[(N[(b + N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b / z), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
t_1 := 4 \cdot \left(a \cdot t\right)\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+19}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot \frac{y}{z}\right) - t\_1}{c}\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-99}:\\
\;\;\;\;\frac{b + y \cdot \left(x \cdot 9\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z} - t\_1}{c}\\
\end{array}
\end{array}
if z < -5.6e19Initial program 71.2%
associate-+l-71.2%
*-commutative71.2%
associate-*r*71.4%
*-commutative71.4%
associate-+l-71.4%
associate-*l*71.4%
associate-*l*75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in z around inf 73.3%
Taylor expanded in b around 0 69.9%
associate-/l*76.0%
Applied egg-rr76.0%
if -5.6e19 < z < 2.49999999999999985e-99Initial program 95.8%
associate-+l-95.8%
*-commutative95.8%
associate-*r*96.2%
*-commutative96.2%
associate-+l-96.2%
associate-*l*96.2%
associate-*l*91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in z around inf 86.7%
Taylor expanded in z around 0 82.2%
*-commutative82.2%
associate-*r*82.2%
*-commutative82.2%
associate-*r*82.2%
Simplified82.2%
if 2.49999999999999985e-99 < z Initial program 70.8%
associate-+l-70.8%
*-commutative70.8%
associate-*r*68.2%
*-commutative68.2%
associate-+l-68.2%
associate-*l*68.1%
associate-*l*74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in y around -inf 66.1%
Taylor expanded in c around 0 87.1%
Taylor expanded in y around 0 82.3%
mul-1-neg82.3%
cancel-sign-sub-inv82.3%
metadata-eval82.3%
distribute-neg-in82.3%
distribute-neg-frac282.3%
distribute-lft-neg-in82.3%
metadata-eval82.3%
Simplified82.3%
Final simplification81.1%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (<= z -3.5e+157)
(* a (/ (* -4.0 t) c))
(if (<= z 17.5)
(/ (+ b (* y (* x 9.0))) (* z c))
(* -4.0 (* (* a t) (/ 1.0 c))))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 (z <= -3.5e+157) {
tmp = a * ((-4.0 * t) / c);
} else if (z <= 17.5) {
tmp = (b + (y * (x * 9.0))) / (z * c);
} else {
tmp = -4.0 * ((a * t) * (1.0 / c));
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (z <= (-3.5d+157)) then
tmp = a * (((-4.0d0) * t) / c)
else if (z <= 17.5d0) then
tmp = (b + (y * (x * 9.0d0))) / (z * c)
else
tmp = (-4.0d0) * ((a * t) * (1.0d0 / c))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (z <= -3.5e+157) {
tmp = a * ((-4.0 * t) / c);
} else if (z <= 17.5) {
tmp = (b + (y * (x * 9.0))) / (z * c);
} else {
tmp = -4.0 * ((a * t) * (1.0 / c));
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if z <= -3.5e+157: tmp = a * ((-4.0 * t) / c) elif z <= 17.5: tmp = (b + (y * (x * 9.0))) / (z * c) else: tmp = -4.0 * ((a * t) * (1.0 / c)) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (z <= -3.5e+157) tmp = Float64(a * Float64(Float64(-4.0 * t) / c)); elseif (z <= 17.5) tmp = Float64(Float64(b + Float64(y * Float64(x * 9.0))) / Float64(z * c)); else tmp = Float64(-4.0 * Float64(Float64(a * t) * Float64(1.0 / c))); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (z <= -3.5e+157)
tmp = a * ((-4.0 * t) / c);
elseif (z <= 17.5)
tmp = (b + (y * (x * 9.0))) / (z * c);
else
tmp = -4.0 * ((a * t) * (1.0 / 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. 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[z, -3.5e+157], N[(a * N[(N[(-4.0 * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 17.5], N[(N[(b + N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(a * t), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+157}:\\
\;\;\;\;a \cdot \frac{-4 \cdot t}{c}\\
\mathbf{elif}\;z \leq 17.5:\\
\;\;\;\;\frac{b + y \cdot \left(x \cdot 9\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(\left(a \cdot t\right) \cdot \frac{1}{c}\right)\\
\end{array}
\end{array}
if z < -3.50000000000000002e157Initial program 57.8%
Simplified62.7%
Taylor expanded in t around inf 63.2%
*-commutative63.2%
associate-/l*63.4%
associate-*r*63.4%
*-commutative63.4%
*-commutative63.4%
associate-*l/63.4%
Simplified63.4%
if -3.50000000000000002e157 < z < 17.5Initial program 94.0%
associate-+l-94.0%
*-commutative94.0%
associate-*r*93.8%
*-commutative93.8%
associate-+l-93.8%
associate-*l*93.7%
associate-*l*90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in z around inf 87.1%
Taylor expanded in z around 0 77.5%
*-commutative77.5%
associate-*r*77.5%
*-commutative77.5%
associate-*r*77.6%
Simplified77.6%
if 17.5 < z Initial program 63.1%
Simplified63.1%
Taylor expanded in t around inf 65.0%
div-inv65.1%
Applied egg-rr65.1%
Final simplification73.4%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (<= z -1.15e+157)
(* a (/ (* -4.0 t) c))
(if (<= z 0.04)
(/ (+ b (* 9.0 (* x y))) (* z c))
(* -4.0 (* (* a t) (/ 1.0 c))))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 (z <= -1.15e+157) {
tmp = a * ((-4.0 * t) / c);
} else if (z <= 0.04) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * ((a * t) * (1.0 / c));
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (z <= (-1.15d+157)) then
tmp = a * (((-4.0d0) * t) / c)
else if (z <= 0.04d0) then
tmp = (b + (9.0d0 * (x * y))) / (z * c)
else
tmp = (-4.0d0) * ((a * t) * (1.0d0 / c))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (z <= -1.15e+157) {
tmp = a * ((-4.0 * t) / c);
} else if (z <= 0.04) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * ((a * t) * (1.0 / c));
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if z <= -1.15e+157: tmp = a * ((-4.0 * t) / c) elif z <= 0.04: tmp = (b + (9.0 * (x * y))) / (z * c) else: tmp = -4.0 * ((a * t) * (1.0 / c)) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (z <= -1.15e+157) tmp = Float64(a * Float64(Float64(-4.0 * t) / c)); elseif (z <= 0.04) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); else tmp = Float64(-4.0 * Float64(Float64(a * t) * Float64(1.0 / c))); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (z <= -1.15e+157)
tmp = a * ((-4.0 * t) / c);
elseif (z <= 0.04)
tmp = (b + (9.0 * (x * y))) / (z * c);
else
tmp = -4.0 * ((a * t) * (1.0 / 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. 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[z, -1.15e+157], N[(a * N[(N[(-4.0 * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.04], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(a * t), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+157}:\\
\;\;\;\;a \cdot \frac{-4 \cdot t}{c}\\
\mathbf{elif}\;z \leq 0.04:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(\left(a \cdot t\right) \cdot \frac{1}{c}\right)\\
\end{array}
\end{array}
if z < -1.15000000000000002e157Initial program 57.8%
Simplified62.7%
Taylor expanded in t around inf 63.2%
*-commutative63.2%
associate-/l*63.4%
associate-*r*63.4%
*-commutative63.4%
*-commutative63.4%
associate-*l/63.4%
Simplified63.4%
if -1.15000000000000002e157 < z < 0.0400000000000000008Initial program 94.0%
Simplified94.3%
Taylor expanded in t around 0 77.5%
+-commutative77.5%
*-commutative77.5%
Simplified77.5%
if 0.0400000000000000008 < z Initial program 63.1%
Simplified63.1%
Taylor expanded in t around inf 65.0%
div-inv65.1%
Applied egg-rr65.1%
Final simplification73.4%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (<= z -6.8e+20)
(* a (/ (* -4.0 t) c))
(if (<= z 3.5e-76)
(* 9.0 (* x (/ y (* z c))))
(* -4.0 (* (* a t) (/ 1.0 c))))))assert(x < y && y < z && z < t && t < a && a < b && b < 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 (z <= -6.8e+20) {
tmp = a * ((-4.0 * t) / c);
} else if (z <= 3.5e-76) {
tmp = 9.0 * (x * (y / (z * c)));
} else {
tmp = -4.0 * ((a * t) * (1.0 / c));
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (z <= (-6.8d+20)) then
tmp = a * (((-4.0d0) * t) / c)
else if (z <= 3.5d-76) then
tmp = 9.0d0 * (x * (y / (z * c)))
else
tmp = (-4.0d0) * ((a * t) * (1.0d0 / c))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (z <= -6.8e+20) {
tmp = a * ((-4.0 * t) / c);
} else if (z <= 3.5e-76) {
tmp = 9.0 * (x * (y / (z * c)));
} else {
tmp = -4.0 * ((a * t) * (1.0 / c));
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if z <= -6.8e+20: tmp = a * ((-4.0 * t) / c) elif z <= 3.5e-76: tmp = 9.0 * (x * (y / (z * c))) else: tmp = -4.0 * ((a * t) * (1.0 / c)) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (z <= -6.8e+20) tmp = Float64(a * Float64(Float64(-4.0 * t) / c)); elseif (z <= 3.5e-76) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))); else tmp = Float64(-4.0 * Float64(Float64(a * t) * Float64(1.0 / c))); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (z <= -6.8e+20)
tmp = a * ((-4.0 * t) / c);
elseif (z <= 3.5e-76)
tmp = 9.0 * (x * (y / (z * c)));
else
tmp = -4.0 * ((a * t) * (1.0 / 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. 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[z, -6.8e+20], N[(a * N[(N[(-4.0 * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-76], N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(a * t), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+20}:\\
\;\;\;\;a \cdot \frac{-4 \cdot t}{c}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-76}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(\left(a \cdot t\right) \cdot \frac{1}{c}\right)\\
\end{array}
\end{array}
if z < -6.8e20Initial program 71.2%
Simplified73.5%
Taylor expanded in t around inf 51.9%
*-commutative51.9%
associate-/l*54.0%
associate-*r*54.0%
*-commutative54.0%
*-commutative54.0%
associate-*l/54.0%
Simplified54.0%
if -6.8e20 < z < 3.49999999999999997e-76Initial program 96.0%
Simplified96.3%
Taylor expanded in x around inf 54.7%
associate-/l*57.5%
*-commutative57.5%
Simplified57.5%
if 3.49999999999999997e-76 < z Initial program 68.3%
Simplified68.2%
Taylor expanded in t around inf 61.7%
div-inv61.7%
Applied egg-rr61.7%
Final simplification58.0%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (or (<= a -5.4e-33) (not (<= a 3e-78))) (* a (/ (* -4.0 t) c)) (/ (/ b c) z)))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 <= -5.4e-33) || !(a <= 3e-78)) {
tmp = a * ((-4.0 * t) / c);
} else {
tmp = (b / c) / z;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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.4d-33)) .or. (.not. (a <= 3d-78))) then
tmp = a * (((-4.0d0) * t) / c)
else
tmp = (b / c) / z
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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.4e-33) || !(a <= 3e-78)) {
tmp = a * ((-4.0 * t) / c);
} else {
tmp = (b / c) / z;
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if (a <= -5.4e-33) or not (a <= 3e-78): tmp = a * ((-4.0 * t) / c) else: tmp = (b / c) / z return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if ((a <= -5.4e-33) || !(a <= 3e-78)) tmp = Float64(a * Float64(Float64(-4.0 * t) / c)); else tmp = Float64(Float64(b / c) / z); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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.4e-33) || ~((a <= 3e-78)))
tmp = a * ((-4.0 * t) / c);
else
tmp = (b / 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. 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[Or[LessEqual[a, -5.4e-33], N[Not[LessEqual[a, 3e-78]], $MachinePrecision]], N[(a * N[(N[(-4.0 * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], 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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.4 \cdot 10^{-33} \lor \neg \left(a \leq 3 \cdot 10^{-78}\right):\\
\;\;\;\;a \cdot \frac{-4 \cdot t}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\end{array}
\end{array}
if a < -5.4000000000000002e-33 or 2.99999999999999988e-78 < a Initial program 83.8%
Simplified81.7%
Taylor expanded in t around inf 50.3%
*-commutative50.3%
associate-/l*52.6%
associate-*r*52.6%
*-commutative52.6%
*-commutative52.6%
associate-*l/52.6%
Simplified52.6%
if -5.4000000000000002e-33 < a < 2.99999999999999988e-78Initial program 83.5%
Simplified88.6%
Taylor expanded in z around 0 85.8%
Taylor expanded in a around 0 77.5%
Taylor expanded in x around 0 48.6%
Final simplification51.1%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (<= b -9000000000000.0) (/ (/ 1.0 (/ c b)) z) (if (<= b 2.6e+80) (* t (/ (* -4.0 a) c)) (/ 1.0 (/ (* z c) b)))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 (b <= -9000000000000.0) {
tmp = (1.0 / (c / b)) / z;
} else if (b <= 2.6e+80) {
tmp = t * ((-4.0 * a) / c);
} else {
tmp = 1.0 / ((z * c) / b);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (b <= (-9000000000000.0d0)) then
tmp = (1.0d0 / (c / b)) / z
else if (b <= 2.6d+80) then
tmp = t * (((-4.0d0) * a) / c)
else
tmp = 1.0d0 / ((z * c) / b)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (b <= -9000000000000.0) {
tmp = (1.0 / (c / b)) / z;
} else if (b <= 2.6e+80) {
tmp = t * ((-4.0 * a) / c);
} else {
tmp = 1.0 / ((z * c) / b);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if b <= -9000000000000.0: tmp = (1.0 / (c / b)) / z elif b <= 2.6e+80: tmp = t * ((-4.0 * a) / c) else: tmp = 1.0 / ((z * c) / b) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (b <= -9000000000000.0) tmp = Float64(Float64(1.0 / Float64(c / b)) / z); elseif (b <= 2.6e+80) tmp = Float64(t * Float64(Float64(-4.0 * a) / c)); else tmp = Float64(1.0 / Float64(Float64(z * c) / b)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (b <= -9000000000000.0)
tmp = (1.0 / (c / b)) / z;
elseif (b <= 2.6e+80)
tmp = t * ((-4.0 * a) / c);
else
tmp = 1.0 / ((z * c) / b);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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[b, -9000000000000.0], N[(N[(1.0 / N[(c / b), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 2.6e+80], N[(t * N[(N[(-4.0 * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(z * c), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9000000000000:\\
\;\;\;\;\frac{\frac{1}{\frac{c}{b}}}{z}\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+80}:\\
\;\;\;\;t \cdot \frac{-4 \cdot a}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{z \cdot c}{b}}\\
\end{array}
\end{array}
if b < -9e12Initial program 89.7%
Simplified89.7%
Taylor expanded in z around 0 82.5%
Taylor expanded in a around 0 75.8%
Taylor expanded in x around 0 63.8%
clear-num63.8%
inv-pow63.8%
Applied egg-rr63.8%
unpow-163.8%
Simplified63.8%
if -9e12 < b < 2.59999999999999982e80Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
associate-*r*81.5%
*-commutative81.5%
associate-+l-81.5%
associate-*l*81.5%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in b around 0 72.4%
Taylor expanded in x around 0 49.4%
associate-*r/49.4%
metadata-eval49.4%
distribute-lft-neg-in49.4%
associate-*r*49.4%
*-commutative49.4%
distribute-rgt-neg-in49.4%
distribute-lft-neg-in49.4%
metadata-eval49.4%
associate-*r/50.5%
*-commutative50.5%
Simplified50.5%
if 2.59999999999999982e80 < b Initial program 85.1%
Simplified85.0%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
*-commutative57.1%
clear-num57.1%
inv-pow57.1%
*-commutative57.1%
Applied egg-rr57.1%
unpow-157.1%
associate-/l*54.7%
Simplified54.7%
Taylor expanded in z around 0 57.1%
Final simplification54.5%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (<= b -6000000000000.0) (/ (/ b c) z) (if (<= b 2.8e+80) (* t (/ (* -4.0 a) c)) (/ 1.0 (/ (* z c) b)))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 (b <= -6000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 2.8e+80) {
tmp = t * ((-4.0 * a) / c);
} else {
tmp = 1.0 / ((z * c) / b);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (b <= (-6000000000000.0d0)) then
tmp = (b / c) / z
else if (b <= 2.8d+80) then
tmp = t * (((-4.0d0) * a) / c)
else
tmp = 1.0d0 / ((z * c) / b)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (b <= -6000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 2.8e+80) {
tmp = t * ((-4.0 * a) / c);
} else {
tmp = 1.0 / ((z * c) / b);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if b <= -6000000000000.0: tmp = (b / c) / z elif b <= 2.8e+80: tmp = t * ((-4.0 * a) / c) else: tmp = 1.0 / ((z * c) / b) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (b <= -6000000000000.0) tmp = Float64(Float64(b / c) / z); elseif (b <= 2.8e+80) tmp = Float64(t * Float64(Float64(-4.0 * a) / c)); else tmp = Float64(1.0 / Float64(Float64(z * c) / b)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (b <= -6000000000000.0)
tmp = (b / c) / z;
elseif (b <= 2.8e+80)
tmp = t * ((-4.0 * a) / c);
else
tmp = 1.0 / ((z * c) / b);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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[b, -6000000000000.0], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 2.8e+80], N[(t * N[(N[(-4.0 * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(z * c), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6000000000000:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+80}:\\
\;\;\;\;t \cdot \frac{-4 \cdot a}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{z \cdot c}{b}}\\
\end{array}
\end{array}
if b < -6e12Initial program 89.7%
Simplified89.7%
Taylor expanded in z around 0 82.5%
Taylor expanded in a around 0 75.8%
Taylor expanded in x around 0 63.8%
if -6e12 < b < 2.79999999999999984e80Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
associate-*r*81.5%
*-commutative81.5%
associate-+l-81.5%
associate-*l*81.5%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in b around 0 72.4%
Taylor expanded in x around 0 49.4%
associate-*r/49.4%
metadata-eval49.4%
distribute-lft-neg-in49.4%
associate-*r*49.4%
*-commutative49.4%
distribute-rgt-neg-in49.4%
distribute-lft-neg-in49.4%
metadata-eval49.4%
associate-*r/50.5%
*-commutative50.5%
Simplified50.5%
if 2.79999999999999984e80 < b Initial program 85.1%
Simplified85.0%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
*-commutative57.1%
clear-num57.1%
inv-pow57.1%
*-commutative57.1%
Applied egg-rr57.1%
unpow-157.1%
associate-/l*54.7%
Simplified54.7%
Taylor expanded in z around 0 57.1%
Final simplification54.5%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (<= b -3000000000000.0) (/ (/ b c) z) (if (<= b 2.6e+80) (* t (/ (* -4.0 a) c)) (/ b (* z c)))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 (b <= -3000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 2.6e+80) {
tmp = t * ((-4.0 * a) / c);
} else {
tmp = b / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (b <= (-3000000000000.0d0)) then
tmp = (b / c) / z
else if (b <= 2.6d+80) then
tmp = t * (((-4.0d0) * a) / c)
else
tmp = b / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (b <= -3000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 2.6e+80) {
tmp = t * ((-4.0 * a) / c);
} else {
tmp = b / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if b <= -3000000000000.0: tmp = (b / c) / z elif b <= 2.6e+80: tmp = t * ((-4.0 * a) / c) else: tmp = b / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (b <= -3000000000000.0) tmp = Float64(Float64(b / c) / z); elseif (b <= 2.6e+80) tmp = Float64(t * Float64(Float64(-4.0 * a) / c)); else tmp = Float64(b / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (b <= -3000000000000.0)
tmp = (b / c) / z;
elseif (b <= 2.6e+80)
tmp = t * ((-4.0 * a) / c);
else
tmp = b / (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. 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[b, -3000000000000.0], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 2.6e+80], N[(t * N[(N[(-4.0 * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], 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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3000000000000:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+80}:\\
\;\;\;\;t \cdot \frac{-4 \cdot a}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\end{array}
\end{array}
if b < -3e12Initial program 89.7%
Simplified89.7%
Taylor expanded in z around 0 82.5%
Taylor expanded in a around 0 75.8%
Taylor expanded in x around 0 63.8%
if -3e12 < b < 2.59999999999999982e80Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
associate-*r*81.5%
*-commutative81.5%
associate-+l-81.5%
associate-*l*81.5%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in b around 0 72.4%
Taylor expanded in x around 0 49.4%
associate-*r/49.4%
metadata-eval49.4%
distribute-lft-neg-in49.4%
associate-*r*49.4%
*-commutative49.4%
distribute-rgt-neg-in49.4%
distribute-lft-neg-in49.4%
metadata-eval49.4%
associate-*r/50.5%
*-commutative50.5%
Simplified50.5%
if 2.59999999999999982e80 < b Initial program 85.1%
Simplified85.0%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
Final simplification54.5%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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 (<= b -8000000000000.0) (/ (/ b c) z) (if (<= b 3.2e+80) (* -4.0 (/ (* a t) c)) (/ b (* z c)))))
assert(x < y && y < z && z < t && t < a && a < b && b < 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 (b <= -8000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 3.2e+80) {
tmp = -4.0 * ((a * t) / c);
} else {
tmp = b / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 (b <= (-8000000000000.0d0)) then
tmp = (b / c) / z
else if (b <= 3.2d+80) then
tmp = (-4.0d0) * ((a * t) / c)
else
tmp = b / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 (b <= -8000000000000.0) {
tmp = (b / c) / z;
} else if (b <= 3.2e+80) {
tmp = -4.0 * ((a * t) / c);
} else {
tmp = b / (z * c);
}
return tmp;
}
[x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, 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): tmp = 0 if b <= -8000000000000.0: tmp = (b / c) / z elif b <= 3.2e+80: tmp = -4.0 * ((a * t) / c) else: tmp = b / (z * c) return tmp
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, 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) tmp = 0.0 if (b <= -8000000000000.0) tmp = Float64(Float64(b / c) / z); elseif (b <= 3.2e+80) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); else tmp = Float64(b / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 (b <= -8000000000000.0)
tmp = (b / c) / z;
elseif (b <= 3.2e+80)
tmp = -4.0 * ((a * t) / c);
else
tmp = b / (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. 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[b, -8000000000000.0], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 3.2e+80], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], 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])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8000000000000:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+80}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\end{array}
\end{array}
if b < -8e12Initial program 89.7%
Simplified89.7%
Taylor expanded in z around 0 82.5%
Taylor expanded in a around 0 75.8%
Taylor expanded in x around 0 63.8%
if -8e12 < b < 3.1999999999999999e80Initial program 81.2%
Simplified82.1%
Taylor expanded in t around inf 49.4%
if 3.1999999999999999e80 < b Initial program 85.1%
Simplified85.0%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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);
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.
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;
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]) [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]) 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])){:}
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. 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])\\\\
[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 83.7%
Simplified84.3%
Taylor expanded in b around inf 34.1%
*-commutative34.1%
Simplified34.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 2024143
(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)))