
(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 17 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
(let* ((t_1 (* 4.0 (* a t))))
(if (<= z -4.5e-86)
(/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) t_1) c)
(if (<= z 4.8e-97)
(/ (+ b (* x (+ (* -4.0 (/ (* a (* z t)) x)) (* 9.0 y)))) (* z c))
(/ (- (/ (+ b (* 9.0 (* x y))) 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 <= -4.5e-86) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c;
} else if (z <= 4.8e-97) {
tmp = (b + (x * ((-4.0 * ((a * (z * t)) / x)) + (9.0 * y)))) / (z * c);
} else {
tmp = (((b + (9.0 * (x * y))) / 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 <= (-4.5d-86)) then
tmp = (((9.0d0 * ((x * y) / z)) + (b / z)) - t_1) / c
else if (z <= 4.8d-97) then
tmp = (b + (x * (((-4.0d0) * ((a * (z * t)) / x)) + (9.0d0 * y)))) / (z * c)
else
tmp = (((b + (9.0d0 * (x * y))) / 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 <= -4.5e-86) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c;
} else if (z <= 4.8e-97) {
tmp = (b + (x * ((-4.0 * ((a * (z * t)) / x)) + (9.0 * y)))) / (z * c);
} else {
tmp = (((b + (9.0 * (x * y))) / 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 <= -4.5e-86: tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c elif z <= 4.8e-97: tmp = (b + (x * ((-4.0 * ((a * (z * t)) / x)) + (9.0 * y)))) / (z * c) else: tmp = (((b + (9.0 * (x * y))) / 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 <= -4.5e-86) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - t_1) / c); elseif (z <= 4.8e-97) tmp = Float64(Float64(b + Float64(x * Float64(Float64(-4.0 * Float64(Float64(a * Float64(z * t)) / x)) + Float64(9.0 * y)))) / Float64(z * c)); else tmp = Float64(Float64(Float64(Float64(b + Float64(9.0 * Float64(x * y))) / 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 <= -4.5e-86)
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c;
elseif (z <= 4.8e-97)
tmp = (b + (x * ((-4.0 * ((a * (z * t)) / x)) + (9.0 * y)))) / (z * c);
else
tmp = (((b + (9.0 * (x * y))) / 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, -4.5e-86], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 4.8e-97], N[(N[(b + N[(x * N[(N[(-4.0 * N[(N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 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 -4.5 \cdot 10^{-86}:\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - t\_1}{c}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-97}:\\
\;\;\;\;\frac{b + x \cdot \left(-4 \cdot \frac{a \cdot \left(z \cdot t\right)}{x} + 9 \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b + 9 \cdot \left(x \cdot y\right)}{z} - t\_1}{c}\\
\end{array}
\end{array}
if z < -4.4999999999999998e-86Initial program 72.0%
+-commutative72.0%
associate-+r-72.0%
*-commutative72.0%
associate-*r*67.1%
*-commutative67.1%
associate-+r-67.1%
+-commutative67.1%
associate-*l*67.1%
associate-*l*75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in x around 0 82.2%
Taylor expanded in c around 0 92.9%
if -4.4999999999999998e-86 < z < 4.8e-97Initial program 97.8%
Simplified98.8%
Taylor expanded in x around inf 98.8%
if 4.8e-97 < z Initial program 66.2%
+-commutative66.2%
associate-+r-66.2%
*-commutative66.2%
associate-*r*67.0%
*-commutative67.0%
associate-+r-67.0%
+-commutative67.0%
associate-*l*67.0%
associate-*l*71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in x around 0 81.5%
Taylor expanded in c around 0 91.6%
Taylor expanded in z around 0 91.6%
Final simplification94.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 (/ (- (* 9.0 (* x (/ y z))) (* 4.0 (* a t))) c)))
(if (<= x -4.1e+114)
t_1
(if (<= x -1.7e+69)
(/ (+ b (* x (* 9.0 y))) (* z c))
(if (<= x 1.5e-156) (/ (- (/ b z) (* t (* 4.0 a))) 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 = ((9.0 * (x * (y / z))) - (4.0 * (a * t))) / c;
double tmp;
if (x <= -4.1e+114) {
tmp = t_1;
} else if (x <= -1.7e+69) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else if (x <= 1.5e-156) {
tmp = ((b / z) - (t * (4.0 * a))) / 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 = ((9.0d0 * (x * (y / z))) - (4.0d0 * (a * t))) / c
if (x <= (-4.1d+114)) then
tmp = t_1
else if (x <= (-1.7d+69)) then
tmp = (b + (x * (9.0d0 * y))) / (z * c)
else if (x <= 1.5d-156) then
tmp = ((b / z) - (t * (4.0d0 * a))) / 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 = ((9.0 * (x * (y / z))) - (4.0 * (a * t))) / c;
double tmp;
if (x <= -4.1e+114) {
tmp = t_1;
} else if (x <= -1.7e+69) {
tmp = (b + (x * (9.0 * y))) / (z * c);
} else if (x <= 1.5e-156) {
tmp = ((b / z) - (t * (4.0 * a))) / 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 = ((9.0 * (x * (y / z))) - (4.0 * (a * t))) / c tmp = 0 if x <= -4.1e+114: tmp = t_1 elif x <= -1.7e+69: tmp = (b + (x * (9.0 * y))) / (z * c) elif x <= 1.5e-156: tmp = ((b / z) - (t * (4.0 * a))) / 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(Float64(Float64(9.0 * Float64(x * Float64(y / z))) - Float64(4.0 * Float64(a * t))) / c) tmp = 0.0 if (x <= -4.1e+114) tmp = t_1; elseif (x <= -1.7e+69) tmp = Float64(Float64(b + Float64(x * Float64(9.0 * y))) / Float64(z * c)); elseif (x <= 1.5e-156) tmp = Float64(Float64(Float64(b / z) - Float64(t * Float64(4.0 * a))) / 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 = ((9.0 * (x * (y / z))) - (4.0 * (a * t))) / c;
tmp = 0.0;
if (x <= -4.1e+114)
tmp = t_1;
elseif (x <= -1.7e+69)
tmp = (b + (x * (9.0 * y))) / (z * c);
elseif (x <= 1.5e-156)
tmp = ((b / z) - (t * (4.0 * a))) / 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[(N[(N[(9.0 * N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[x, -4.1e+114], t$95$1, If[LessEqual[x, -1.7e+69], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e-156], N[(N[(N[(b / z), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $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 := \frac{9 \cdot \left(x \cdot \frac{y}{z}\right) - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{if}\;x \leq -4.1 \cdot 10^{+114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{+69}:\\
\;\;\;\;\frac{b + x \cdot \left(9 \cdot y\right)}{z \cdot c}\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-156}:\\
\;\;\;\;\frac{\frac{b}{z} - t \cdot \left(4 \cdot a\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.1000000000000001e114 or 1.5e-156 < x Initial program 79.9%
+-commutative79.9%
associate-+r-79.9%
*-commutative79.9%
associate-*r*78.8%
*-commutative78.8%
associate-+r-78.8%
+-commutative78.8%
associate-*l*79.4%
associate-*l*82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in x around 0 77.5%
Taylor expanded in c around 0 81.9%
Taylor expanded in x around inf 68.9%
associate-*r/72.4%
Simplified72.4%
if -4.1000000000000001e114 < x < -1.69999999999999993e69Initial program 70.4%
Simplified70.4%
Taylor expanded in x around inf 70.4%
Taylor expanded in x around inf 70.6%
associate-*r*70.8%
*-commutative70.8%
associate-*r*70.8%
Simplified70.8%
if -1.69999999999999993e69 < x < 1.5e-156Initial program 79.4%
+-commutative79.4%
associate-+r-79.4%
*-commutative79.4%
associate-*r*77.6%
*-commutative77.6%
associate-+r-77.6%
+-commutative77.6%
associate-*l*77.6%
associate-*l*81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 81.7%
Taylor expanded in c around 0 91.9%
Taylor expanded in x around 0 79.3%
associate-*r*79.3%
*-commutative79.3%
Simplified79.3%
Final simplification75.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
(let* ((t_1 (* t (/ (* a -4.0) c))))
(if (<= x -6.6e+55)
(* y (* (/ 9.0 z) (/ x c)))
(if (<= x -5.5e-146)
t_1
(if (<= x -1.9e-225)
(/ (/ b c) z)
(if (<= x 2.9e-89) t_1 (* 9.0 (* (/ y c) (/ x 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 t_1 = t * ((a * -4.0) / c);
double tmp;
if (x <= -6.6e+55) {
tmp = y * ((9.0 / z) * (x / c));
} else if (x <= -5.5e-146) {
tmp = t_1;
} else if (x <= -1.9e-225) {
tmp = (b / c) / z;
} else if (x <= 2.9e-89) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / c) * (x / 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) :: t_1
real(8) :: tmp
t_1 = t * ((a * (-4.0d0)) / c)
if (x <= (-6.6d+55)) then
tmp = y * ((9.0d0 / z) * (x / c))
else if (x <= (-5.5d-146)) then
tmp = t_1
else if (x <= (-1.9d-225)) then
tmp = (b / c) / z
else if (x <= 2.9d-89) then
tmp = t_1
else
tmp = 9.0d0 * ((y / c) * (x / 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 t_1 = t * ((a * -4.0) / c);
double tmp;
if (x <= -6.6e+55) {
tmp = y * ((9.0 / z) * (x / c));
} else if (x <= -5.5e-146) {
tmp = t_1;
} else if (x <= -1.9e-225) {
tmp = (b / c) / z;
} else if (x <= 2.9e-89) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / c) * (x / 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): t_1 = t * ((a * -4.0) / c) tmp = 0 if x <= -6.6e+55: tmp = y * ((9.0 / z) * (x / c)) elif x <= -5.5e-146: tmp = t_1 elif x <= -1.9e-225: tmp = (b / c) / z elif x <= 2.9e-89: tmp = t_1 else: tmp = 9.0 * ((y / c) * (x / 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) t_1 = Float64(t * Float64(Float64(a * -4.0) / c)) tmp = 0.0 if (x <= -6.6e+55) tmp = Float64(y * Float64(Float64(9.0 / z) * Float64(x / c))); elseif (x <= -5.5e-146) tmp = t_1; elseif (x <= -1.9e-225) tmp = Float64(Float64(b / c) / z); elseif (x <= 2.9e-89) tmp = t_1; else tmp = Float64(9.0 * Float64(Float64(y / c) * Float64(x / 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)
t_1 = t * ((a * -4.0) / c);
tmp = 0.0;
if (x <= -6.6e+55)
tmp = y * ((9.0 / z) * (x / c));
elseif (x <= -5.5e-146)
tmp = t_1;
elseif (x <= -1.9e-225)
tmp = (b / c) / z;
elseif (x <= 2.9e-89)
tmp = t_1;
else
tmp = 9.0 * ((y / c) * (x / 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_] := Block[{t$95$1 = N[(t * N[(N[(a * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.6e+55], N[(y * N[(N[(9.0 / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.5e-146], t$95$1, If[LessEqual[x, -1.9e-225], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 2.9e-89], t$95$1, N[(9.0 * N[(N[(y / c), $MachinePrecision] * N[(x / z), $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 := t \cdot \frac{a \cdot -4}{c}\\
\mathbf{if}\;x \leq -6.6 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(\frac{9}{z} \cdot \frac{x}{c}\right)\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-225}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c} \cdot \frac{x}{z}\right)\\
\end{array}
\end{array}
if x < -6.6e55Initial program 77.4%
Simplified78.5%
Taylor expanded in x around inf 56.3%
clear-num56.4%
inv-pow56.4%
Applied egg-rr56.4%
unpow-156.4%
times-frac63.0%
Simplified63.0%
Taylor expanded in c around 0 56.3%
associate-*r/56.4%
associate-*r*54.7%
*-commutative54.7%
associate-*l/61.4%
times-frac63.2%
Simplified63.2%
if -6.6e55 < x < -5.49999999999999998e-146 or -1.9000000000000001e-225 < x < 2.89999999999999992e-89Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
*-commutative80.2%
associate-*r*77.5%
*-commutative77.5%
associate-+r-77.5%
+-commutative77.5%
associate-*l*77.5%
associate-*l*81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 81.8%
Taylor expanded in z around inf 48.0%
associate-*r/48.0%
associate-*r*48.0%
associate-*l/48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
if -5.49999999999999998e-146 < x < -1.9000000000000001e-225Initial program 82.0%
Simplified87.7%
Taylor expanded in b around inf 57.8%
*-commutative57.8%
Simplified57.8%
*-commutative57.8%
*-un-lft-identity57.8%
associate-/r*63.8%
Applied egg-rr63.8%
if 2.89999999999999992e-89 < x Initial program 78.8%
Simplified77.4%
Taylor expanded in x around inf 51.7%
*-commutative51.7%
*-commutative51.7%
*-commutative51.7%
times-frac49.4%
Simplified49.4%
Final simplification52.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
(let* ((t_1 (* t (/ (* a -4.0) c))))
(if (<= x -3.3e+55)
(* 9.0 (* (/ y z) (/ x c)))
(if (<= x -5.4e-146)
t_1
(if (<= x -2.3e-225)
(/ (/ b c) z)
(if (<= x 5.8e-89) t_1 (* 9.0 (* (/ y c) (/ x 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 t_1 = t * ((a * -4.0) / c);
double tmp;
if (x <= -3.3e+55) {
tmp = 9.0 * ((y / z) * (x / c));
} else if (x <= -5.4e-146) {
tmp = t_1;
} else if (x <= -2.3e-225) {
tmp = (b / c) / z;
} else if (x <= 5.8e-89) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / c) * (x / 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) :: t_1
real(8) :: tmp
t_1 = t * ((a * (-4.0d0)) / c)
if (x <= (-3.3d+55)) then
tmp = 9.0d0 * ((y / z) * (x / c))
else if (x <= (-5.4d-146)) then
tmp = t_1
else if (x <= (-2.3d-225)) then
tmp = (b / c) / z
else if (x <= 5.8d-89) then
tmp = t_1
else
tmp = 9.0d0 * ((y / c) * (x / 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 t_1 = t * ((a * -4.0) / c);
double tmp;
if (x <= -3.3e+55) {
tmp = 9.0 * ((y / z) * (x / c));
} else if (x <= -5.4e-146) {
tmp = t_1;
} else if (x <= -2.3e-225) {
tmp = (b / c) / z;
} else if (x <= 5.8e-89) {
tmp = t_1;
} else {
tmp = 9.0 * ((y / c) * (x / 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): t_1 = t * ((a * -4.0) / c) tmp = 0 if x <= -3.3e+55: tmp = 9.0 * ((y / z) * (x / c)) elif x <= -5.4e-146: tmp = t_1 elif x <= -2.3e-225: tmp = (b / c) / z elif x <= 5.8e-89: tmp = t_1 else: tmp = 9.0 * ((y / c) * (x / 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) t_1 = Float64(t * Float64(Float64(a * -4.0) / c)) tmp = 0.0 if (x <= -3.3e+55) tmp = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c))); elseif (x <= -5.4e-146) tmp = t_1; elseif (x <= -2.3e-225) tmp = Float64(Float64(b / c) / z); elseif (x <= 5.8e-89) tmp = t_1; else tmp = Float64(9.0 * Float64(Float64(y / c) * Float64(x / 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)
t_1 = t * ((a * -4.0) / c);
tmp = 0.0;
if (x <= -3.3e+55)
tmp = 9.0 * ((y / z) * (x / c));
elseif (x <= -5.4e-146)
tmp = t_1;
elseif (x <= -2.3e-225)
tmp = (b / c) / z;
elseif (x <= 5.8e-89)
tmp = t_1;
else
tmp = 9.0 * ((y / c) * (x / 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_] := Block[{t$95$1 = N[(t * N[(N[(a * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+55], N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.4e-146], t$95$1, If[LessEqual[x, -2.3e-225], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 5.8e-89], t$95$1, N[(9.0 * N[(N[(y / c), $MachinePrecision] * N[(x / z), $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 := t \cdot \frac{a \cdot -4}{c}\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+55}:\\
\;\;\;\;9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c}\right)\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-225}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;9 \cdot \left(\frac{y}{c} \cdot \frac{x}{z}\right)\\
\end{array}
\end{array}
if x < -3.3e55Initial program 77.4%
Simplified78.5%
Taylor expanded in x around inf 56.3%
times-frac63.0%
Applied egg-rr63.0%
if -3.3e55 < x < -5.3999999999999999e-146 or -2.2999999999999999e-225 < x < 5.79999999999999984e-89Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
*-commutative80.2%
associate-*r*77.5%
*-commutative77.5%
associate-+r-77.5%
+-commutative77.5%
associate-*l*77.5%
associate-*l*81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 81.8%
Taylor expanded in z around inf 48.0%
associate-*r/48.0%
associate-*r*48.0%
associate-*l/48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
if -5.3999999999999999e-146 < x < -2.2999999999999999e-225Initial program 82.0%
Simplified87.7%
Taylor expanded in b around inf 57.8%
*-commutative57.8%
Simplified57.8%
*-commutative57.8%
*-un-lft-identity57.8%
associate-/r*63.8%
Applied egg-rr63.8%
if 5.79999999999999984e-89 < x Initial program 78.8%
Simplified77.4%
Taylor expanded in x around inf 51.7%
*-commutative51.7%
*-commutative51.7%
*-commutative51.7%
times-frac49.4%
Simplified49.4%
Final simplification52.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
(let* ((t_1 (* t (/ (* a -4.0) c))) (t_2 (* 9.0 (* (/ y z) (/ x c)))))
(if (<= x -7.5e+57)
t_2
(if (<= x -1.3e-146)
t_1
(if (<= x -2.35e-225) (/ (/ b c) z) (if (<= x 4.8e-89) t_1 t_2))))))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 = t * ((a * -4.0) / c);
double t_2 = 9.0 * ((y / z) * (x / c));
double tmp;
if (x <= -7.5e+57) {
tmp = t_2;
} else if (x <= -1.3e-146) {
tmp = t_1;
} else if (x <= -2.35e-225) {
tmp = (b / c) / z;
} else if (x <= 4.8e-89) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((a * (-4.0d0)) / c)
t_2 = 9.0d0 * ((y / z) * (x / c))
if (x <= (-7.5d+57)) then
tmp = t_2
else if (x <= (-1.3d-146)) then
tmp = t_1
else if (x <= (-2.35d-225)) then
tmp = (b / c) / z
else if (x <= 4.8d-89) then
tmp = t_1
else
tmp = t_2
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 = t * ((a * -4.0) / c);
double t_2 = 9.0 * ((y / z) * (x / c));
double tmp;
if (x <= -7.5e+57) {
tmp = t_2;
} else if (x <= -1.3e-146) {
tmp = t_1;
} else if (x <= -2.35e-225) {
tmp = (b / c) / z;
} else if (x <= 4.8e-89) {
tmp = t_1;
} else {
tmp = t_2;
}
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 = t * ((a * -4.0) / c) t_2 = 9.0 * ((y / z) * (x / c)) tmp = 0 if x <= -7.5e+57: tmp = t_2 elif x <= -1.3e-146: tmp = t_1 elif x <= -2.35e-225: tmp = (b / c) / z elif x <= 4.8e-89: tmp = t_1 else: tmp = t_2 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(t * Float64(Float64(a * -4.0) / c)) t_2 = Float64(9.0 * Float64(Float64(y / z) * Float64(x / c))) tmp = 0.0 if (x <= -7.5e+57) tmp = t_2; elseif (x <= -1.3e-146) tmp = t_1; elseif (x <= -2.35e-225) tmp = Float64(Float64(b / c) / z); elseif (x <= 4.8e-89) tmp = t_1; else tmp = t_2; 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 = t * ((a * -4.0) / c);
t_2 = 9.0 * ((y / z) * (x / c));
tmp = 0.0;
if (x <= -7.5e+57)
tmp = t_2;
elseif (x <= -1.3e-146)
tmp = t_1;
elseif (x <= -2.35e-225)
tmp = (b / c) / z;
elseif (x <= 4.8e-89)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(N[(a * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(9.0 * N[(N[(y / z), $MachinePrecision] * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7.5e+57], t$95$2, If[LessEqual[x, -1.3e-146], t$95$1, If[LessEqual[x, -2.35e-225], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 4.8e-89], t$95$1, t$95$2]]]]]]
\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 := t \cdot \frac{a \cdot -4}{c}\\
t_2 := 9 \cdot \left(\frac{y}{z} \cdot \frac{x}{c}\right)\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{-225}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -7.5000000000000006e57 or 4.80000000000000032e-89 < x Initial program 78.3%
Simplified77.8%
Taylor expanded in x around inf 53.5%
times-frac57.7%
Applied egg-rr57.7%
if -7.5000000000000006e57 < x < -1.29999999999999993e-146 or -2.35000000000000007e-225 < x < 4.80000000000000032e-89Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
*-commutative80.2%
associate-*r*77.5%
*-commutative77.5%
associate-+r-77.5%
+-commutative77.5%
associate-*l*77.5%
associate-*l*81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 81.8%
Taylor expanded in z around inf 48.0%
associate-*r/48.0%
associate-*r*48.0%
associate-*l/48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
if -1.29999999999999993e-146 < x < -2.35000000000000007e-225Initial program 82.0%
Simplified87.7%
Taylor expanded in b around inf 57.8%
*-commutative57.8%
Simplified57.8%
*-commutative57.8%
*-un-lft-identity57.8%
associate-/r*63.8%
Applied egg-rr63.8%
Final simplification54.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
(let* ((t_1 (* t (/ (* a -4.0) c))) (t_2 (* 9.0 (* x (/ y (* z c))))))
(if (<= x -3.9e+55)
t_2
(if (<= x -9e-146)
t_1
(if (<= x -4.5e-225) (/ (/ b c) z) (if (<= x 2.9e-89) t_1 t_2))))))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 = t * ((a * -4.0) / c);
double t_2 = 9.0 * (x * (y / (z * c)));
double tmp;
if (x <= -3.9e+55) {
tmp = t_2;
} else if (x <= -9e-146) {
tmp = t_1;
} else if (x <= -4.5e-225) {
tmp = (b / c) / z;
} else if (x <= 2.9e-89) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((a * (-4.0d0)) / c)
t_2 = 9.0d0 * (x * (y / (z * c)))
if (x <= (-3.9d+55)) then
tmp = t_2
else if (x <= (-9d-146)) then
tmp = t_1
else if (x <= (-4.5d-225)) then
tmp = (b / c) / z
else if (x <= 2.9d-89) then
tmp = t_1
else
tmp = t_2
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 = t * ((a * -4.0) / c);
double t_2 = 9.0 * (x * (y / (z * c)));
double tmp;
if (x <= -3.9e+55) {
tmp = t_2;
} else if (x <= -9e-146) {
tmp = t_1;
} else if (x <= -4.5e-225) {
tmp = (b / c) / z;
} else if (x <= 2.9e-89) {
tmp = t_1;
} else {
tmp = t_2;
}
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 = t * ((a * -4.0) / c) t_2 = 9.0 * (x * (y / (z * c))) tmp = 0 if x <= -3.9e+55: tmp = t_2 elif x <= -9e-146: tmp = t_1 elif x <= -4.5e-225: tmp = (b / c) / z elif x <= 2.9e-89: tmp = t_1 else: tmp = t_2 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(t * Float64(Float64(a * -4.0) / c)) t_2 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))) tmp = 0.0 if (x <= -3.9e+55) tmp = t_2; elseif (x <= -9e-146) tmp = t_1; elseif (x <= -4.5e-225) tmp = Float64(Float64(b / c) / z); elseif (x <= 2.9e-89) tmp = t_1; else tmp = t_2; 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 = t * ((a * -4.0) / c);
t_2 = 9.0 * (x * (y / (z * c)));
tmp = 0.0;
if (x <= -3.9e+55)
tmp = t_2;
elseif (x <= -9e-146)
tmp = t_1;
elseif (x <= -4.5e-225)
tmp = (b / c) / z;
elseif (x <= 2.9e-89)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(t * N[(N[(a * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+55], t$95$2, If[LessEqual[x, -9e-146], t$95$1, If[LessEqual[x, -4.5e-225], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[x, 2.9e-89], t$95$1, t$95$2]]]]]]
\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 := t \cdot \frac{a \cdot -4}{c}\\
t_2 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+55}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-225}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -3.90000000000000027e55 or 2.89999999999999992e-89 < x Initial program 78.3%
Simplified77.8%
Taylor expanded in x around inf 53.5%
associate-/l*56.0%
*-commutative56.0%
Simplified56.0%
if -3.90000000000000027e55 < x < -9.0000000000000001e-146 or -4.5e-225 < x < 2.89999999999999992e-89Initial program 80.2%
+-commutative80.2%
associate-+r-80.2%
*-commutative80.2%
associate-*r*77.5%
*-commutative77.5%
associate-+r-77.5%
+-commutative77.5%
associate-*l*77.5%
associate-*l*81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 81.8%
Taylor expanded in z around inf 48.0%
associate-*r/48.0%
associate-*r*48.0%
associate-*l/48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
if -9.0000000000000001e-146 < x < -4.5e-225Initial program 82.0%
Simplified87.7%
Taylor expanded in b around inf 57.8%
*-commutative57.8%
Simplified57.8%
*-commutative57.8%
*-un-lft-identity57.8%
associate-/r*63.8%
Applied egg-rr63.8%
Final simplification53.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 -2e-87) (not (<= z 7e-95))) (/ (- (/ (+ b (* 9.0 (* x y))) z) (* 4.0 (* a t))) c) (/ (+ b (- (* y (* 9.0 x)) (* 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 <= -2e-87) || !(z <= 7e-95)) {
tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (9.0 * x)) - (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 <= (-2d-87)) .or. (.not. (z <= 7d-95))) then
tmp = (((b + (9.0d0 * (x * y))) / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (z * c)
end if
code = tmp
end function
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 <= -2e-87) || !(z <= 7e-95)) {
tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((y * (9.0 * x)) - (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 <= -2e-87) or not (z <= 7e-95): tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c else: tmp = (b + ((y * (9.0 * x)) - (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 <= -2e-87) || !(z <= 7e-95)) tmp = Float64(Float64(Float64(Float64(b + Float64(9.0 * Float64(x * y))) / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); end return tmp end
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 <= -2e-87) || ~((z <= 7e-95)))
tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c;
else
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
end
tmp_2 = tmp;
end
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, -2e-87], N[Not[LessEqual[z, 7e-95]], $MachinePrecision]], N[(N[(N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(y * N[(9.0 * x), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[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 \cdot 10^{-87} \lor \neg \left(z \leq 7 \cdot 10^{-95}\right):\\
\;\;\;\;\frac{\frac{b + 9 \cdot \left(x \cdot y\right)}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -2.00000000000000004e-87 or 6.9999999999999994e-95 < z Initial program 69.1%
+-commutative69.1%
associate-+r-69.1%
*-commutative69.1%
associate-*r*67.0%
*-commutative67.0%
associate-+r-67.0%
+-commutative67.0%
associate-*l*67.0%
associate-*l*73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in x around 0 81.9%
Taylor expanded in c around 0 92.3%
Taylor expanded in z around 0 92.3%
if -2.00000000000000004e-87 < z < 6.9999999999999994e-95Initial program 97.8%
Final simplification94.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 -1.05e-85) (not (<= z 9.2e-59))) (/ (- (/ (+ b (* 9.0 (* x y))) z) (* 4.0 (* a t))) c) (/ (+ b (- (* x (* 9.0 y)) (* (* 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 <= -1.05e-85) || !(z <= 9.2e-59)) {
tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((x * (9.0 * y)) - ((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 <= (-1.05d-85)) .or. (.not. (z <= 9.2d-59))) then
tmp = (((b + (9.0d0 * (x * y))) / z) - (4.0d0 * (a * t))) / c
else
tmp = (b + ((x * (9.0d0 * y)) - ((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 <= -1.05e-85) || !(z <= 9.2e-59)) {
tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c;
} else {
tmp = (b + ((x * (9.0 * y)) - ((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 <= -1.05e-85) or not (z <= 9.2e-59): tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c else: tmp = (b + ((x * (9.0 * y)) - ((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 <= -1.05e-85) || !(z <= 9.2e-59)) tmp = Float64(Float64(Float64(Float64(b + Float64(9.0 * Float64(x * y))) / z) - Float64(4.0 * Float64(a * t))) / c); else tmp = Float64(Float64(b + Float64(Float64(x * Float64(9.0 * y)) - Float64(Float64(a * 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 <= -1.05e-85) || ~((z <= 9.2e-59)))
tmp = (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / c;
else
tmp = (b + ((x * (9.0 * y)) - ((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, -1.05e-85], N[Not[LessEqual[z, 9.2e-59]], $MachinePrecision]], N[(N[(N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(4.0 * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\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.05 \cdot 10^{-85} \lor \neg \left(z \leq 9.2 \cdot 10^{-59}\right):\\
\;\;\;\;\frac{\frac{b + 9 \cdot \left(x \cdot y\right)}{z} - 4 \cdot \left(a \cdot t\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(x \cdot \left(9 \cdot y\right) - \left(a \cdot t\right) \cdot \left(z \cdot 4\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -1.05e-85 or 9.19999999999999918e-59 < z Initial program 68.1%
+-commutative68.1%
associate-+r-68.1%
*-commutative68.1%
associate-*r*65.3%
*-commutative65.3%
associate-+r-65.3%
+-commutative65.3%
associate-*l*65.4%
associate-*l*71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in x around 0 80.9%
Taylor expanded in c around 0 91.9%
Taylor expanded in z around 0 91.9%
if -1.05e-85 < z < 9.19999999999999918e-59Initial program 97.0%
+-commutative97.0%
associate-+r-97.0%
*-commutative97.0%
associate-*r*98.0%
*-commutative98.0%
associate-+r-98.0%
+-commutative98.0%
associate-*l*98.9%
associate-*l*96.9%
*-commutative96.9%
Simplified96.9%
Final simplification93.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
(let* ((t_1 (* 4.0 (* a t))))
(if (<= z -2.8e-87)
(/ (- (+ (* 9.0 (/ (* x y) z)) (/ b z)) t_1) c)
(if (<= z 1.42e-99)
(/ (+ b (- (* y (* 9.0 x)) (* a (* t (* z 4.0))))) (* z c))
(/ (- (/ (+ b (* 9.0 (* x y))) 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 <= -2.8e-87) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c;
} else if (z <= 1.42e-99) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = (((b + (9.0 * (x * y))) / 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 <= (-2.8d-87)) then
tmp = (((9.0d0 * ((x * y) / z)) + (b / z)) - t_1) / c
else if (z <= 1.42d-99) then
tmp = (b + ((y * (9.0d0 * x)) - (a * (t * (z * 4.0d0))))) / (z * c)
else
tmp = (((b + (9.0d0 * (x * y))) / 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 <= -2.8e-87) {
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c;
} else if (z <= 1.42e-99) {
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
} else {
tmp = (((b + (9.0 * (x * y))) / 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 <= -2.8e-87: tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c elif z <= 1.42e-99: tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c) else: tmp = (((b + (9.0 * (x * y))) / 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 <= -2.8e-87) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(Float64(x * y) / z)) + Float64(b / z)) - t_1) / c); elseif (z <= 1.42e-99) tmp = Float64(Float64(b + Float64(Float64(y * Float64(9.0 * x)) - Float64(a * Float64(t * Float64(z * 4.0))))) / Float64(z * c)); else tmp = Float64(Float64(Float64(Float64(b + Float64(9.0 * Float64(x * y))) / 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 <= -2.8e-87)
tmp = (((9.0 * ((x * y) / z)) + (b / z)) - t_1) / c;
elseif (z <= 1.42e-99)
tmp = (b + ((y * (9.0 * x)) - (a * (t * (z * 4.0))))) / (z * c);
else
tmp = (((b + (9.0 * (x * y))) / 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, -2.8e-87], N[(N[(N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 1.42e-99], N[(N[(b + N[(N[(y * N[(9.0 * x), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * N[(z * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 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 -2.8 \cdot 10^{-87}:\\
\;\;\;\;\frac{\left(9 \cdot \frac{x \cdot y}{z} + \frac{b}{z}\right) - t\_1}{c}\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{-99}:\\
\;\;\;\;\frac{b + \left(y \cdot \left(9 \cdot x\right) - a \cdot \left(t \cdot \left(z \cdot 4\right)\right)\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b + 9 \cdot \left(x \cdot y\right)}{z} - t\_1}{c}\\
\end{array}
\end{array}
if z < -2.8000000000000001e-87Initial program 72.0%
+-commutative72.0%
associate-+r-72.0%
*-commutative72.0%
associate-*r*67.1%
*-commutative67.1%
associate-+r-67.1%
+-commutative67.1%
associate-*l*67.1%
associate-*l*75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in x around 0 82.2%
Taylor expanded in c around 0 92.9%
if -2.8000000000000001e-87 < z < 1.42e-99Initial program 97.8%
if 1.42e-99 < z Initial program 66.2%
+-commutative66.2%
associate-+r-66.2%
*-commutative66.2%
associate-*r*67.0%
*-commutative67.0%
associate-+r-67.0%
+-commutative67.0%
associate-*l*67.0%
associate-*l*71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in x around 0 81.5%
Taylor expanded in c around 0 91.6%
Taylor expanded in z around 0 91.6%
Final simplification94.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 -8.5e-14) (not (<= z 1.5e+27))) (/ (- (/ b z) (* t (* 4.0 a))) c) (/ (+ b (* 9.0 (* x y))) (* 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 <= -8.5e-14) || !(z <= 1.5e+27)) {
tmp = ((b / z) - (t * (4.0 * a))) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 <= (-8.5d-14)) .or. (.not. (z <= 1.5d+27))) then
tmp = ((b / z) - (t * (4.0d0 * a))) / c
else
tmp = (b + (9.0d0 * (x * y))) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 <= -8.5e-14) || !(z <= 1.5e+27)) {
tmp = ((b / z) - (t * (4.0 * a))) / c;
} else {
tmp = (b + (9.0 * (x * y))) / (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 <= -8.5e-14) or not (z <= 1.5e+27): tmp = ((b / z) - (t * (4.0 * a))) / c else: tmp = (b + (9.0 * (x * y))) / (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 <= -8.5e-14) || !(z <= 1.5e+27)) tmp = Float64(Float64(Float64(b / z) - Float64(t * Float64(4.0 * a))) / c); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); end return tmp end
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 <= -8.5e-14) || ~((z <= 1.5e+27)))
tmp = ((b / z) - (t * (4.0 * a))) / c;
else
tmp = (b + (9.0 * (x * y))) / (z * c);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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, -8.5e-14], N[Not[LessEqual[z, 1.5e+27]], $MachinePrecision]], N[(N[(N[(b / z), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[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 -8.5 \cdot 10^{-14} \lor \neg \left(z \leq 1.5 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{\frac{b}{z} - t \cdot \left(4 \cdot a\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -8.50000000000000038e-14 or 1.49999999999999988e27 < z Initial program 63.0%
+-commutative63.0%
associate-+r-63.0%
*-commutative63.0%
associate-*r*60.4%
*-commutative60.4%
associate-+r-60.4%
+-commutative60.4%
associate-*l*60.4%
associate-*l*67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around 0 79.2%
Taylor expanded in c around 0 91.7%
Taylor expanded in x around 0 75.5%
associate-*r*75.5%
*-commutative75.5%
Simplified75.5%
if -8.50000000000000038e-14 < z < 1.49999999999999988e27Initial program 96.1%
Simplified96.8%
Taylor expanded in t around 0 83.3%
+-commutative83.3%
*-commutative83.3%
Simplified83.3%
Final simplification79.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 (or (<= z -4.3e+48) (not (<= z 1.6e+130))) (* -4.0 (/ (* a t) c)) (/ (+ b (* 9.0 (* x y))) (* 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 <= -4.3e+48) || !(z <= 1.6e+130)) {
tmp = -4.0 * ((a * t) / c);
} else {
tmp = (b + (9.0 * (x * y))) / (z * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
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 <= (-4.3d+48)) .or. (.not. (z <= 1.6d+130))) then
tmp = (-4.0d0) * ((a * t) / c)
else
tmp = (b + (9.0d0 * (x * y))) / (z * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c;
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 <= -4.3e+48) || !(z <= 1.6e+130)) {
tmp = -4.0 * ((a * t) / c);
} else {
tmp = (b + (9.0 * (x * y))) / (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 <= -4.3e+48) or not (z <= 1.6e+130): tmp = -4.0 * ((a * t) / c) else: tmp = (b + (9.0 * (x * y))) / (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 <= -4.3e+48) || !(z <= 1.6e+130)) tmp = Float64(-4.0 * Float64(Float64(a * t) / c)); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); end return tmp end
x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
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 <= -4.3e+48) || ~((z <= 1.6e+130)))
tmp = -4.0 * ((a * t) / c);
else
tmp = (b + (9.0 * (x * y))) / (z * c);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function. 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, -4.3e+48], N[Not[LessEqual[z, 1.6e+130]], $MachinePrecision]], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $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 -4.3 \cdot 10^{+48} \lor \neg \left(z \leq 1.6 \cdot 10^{+130}\right):\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -4.29999999999999978e48 or 1.6e130 < z Initial program 51.9%
Simplified50.5%
Taylor expanded in t around inf 58.2%
if -4.29999999999999978e48 < z < 1.6e130Initial program 94.7%
Simplified93.9%
Taylor expanded in t around 0 78.7%
+-commutative78.7%
*-commutative78.7%
Simplified78.7%
Final simplification71.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 (or (<= a -2.5e-185) (not (<= a 3.5e+49))) (* t (/ (* a -4.0) c)) (* b (/ 1.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 ((a <= -2.5e-185) || !(a <= 3.5e+49)) {
tmp = t * ((a * -4.0) / c);
} else {
tmp = b * (1.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 ((a <= (-2.5d-185)) .or. (.not. (a <= 3.5d+49))) then
tmp = t * ((a * (-4.0d0)) / c)
else
tmp = b * (1.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 ((a <= -2.5e-185) || !(a <= 3.5e+49)) {
tmp = t * ((a * -4.0) / c);
} else {
tmp = b * (1.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 (a <= -2.5e-185) or not (a <= 3.5e+49): tmp = t * ((a * -4.0) / c) else: tmp = b * (1.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 ((a <= -2.5e-185) || !(a <= 3.5e+49)) tmp = Float64(t * Float64(Float64(a * -4.0) / c)); else tmp = Float64(b * Float64(1.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 ((a <= -2.5e-185) || ~((a <= 3.5e+49)))
tmp = t * ((a * -4.0) / c);
else
tmp = b * (1.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[a, -2.5e-185], N[Not[LessEqual[a, 3.5e+49]], $MachinePrecision]], N[(t * N[(N[(a * -4.0), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(b * N[(1.0 / N[(z * 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}\;a \leq -2.5 \cdot 10^{-185} \lor \neg \left(a \leq 3.5 \cdot 10^{+49}\right):\\
\;\;\;\;t \cdot \frac{a \cdot -4}{c}\\
\mathbf{else}:\\
\;\;\;\;b \cdot \frac{1}{z \cdot c}\\
\end{array}
\end{array}
if a < -2.5000000000000001e-185 or 3.49999999999999975e49 < a Initial program 76.5%
+-commutative76.5%
associate-+r-76.5%
*-commutative76.5%
associate-*r*72.1%
*-commutative72.1%
associate-+r-72.1%
+-commutative72.1%
associate-*l*72.6%
associate-*l*77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in x around 0 74.8%
Taylor expanded in z around inf 45.8%
associate-*r/45.8%
associate-*r*45.8%
associate-*l/48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
if -2.5000000000000001e-185 < a < 3.49999999999999975e49Initial program 84.5%
Simplified89.0%
Taylor expanded in b around inf 44.0%
*-commutative44.0%
Simplified44.0%
div-inv44.0%
*-commutative44.0%
Applied egg-rr44.0%
Final simplification47.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 (or (<= a -2.9e-187) (not (<= a 5.3e+48))) (* t (* a (/ -4.0 c))) (* b (/ 1.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 ((a <= -2.9e-187) || !(a <= 5.3e+48)) {
tmp = t * (a * (-4.0 / c));
} else {
tmp = b * (1.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 ((a <= (-2.9d-187)) .or. (.not. (a <= 5.3d+48))) then
tmp = t * (a * ((-4.0d0) / c))
else
tmp = b * (1.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 ((a <= -2.9e-187) || !(a <= 5.3e+48)) {
tmp = t * (a * (-4.0 / c));
} else {
tmp = b * (1.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 (a <= -2.9e-187) or not (a <= 5.3e+48): tmp = t * (a * (-4.0 / c)) else: tmp = b * (1.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 ((a <= -2.9e-187) || !(a <= 5.3e+48)) tmp = Float64(t * Float64(a * Float64(-4.0 / c))); else tmp = Float64(b * Float64(1.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 ((a <= -2.9e-187) || ~((a <= 5.3e+48)))
tmp = t * (a * (-4.0 / c));
else
tmp = b * (1.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[a, -2.9e-187], N[Not[LessEqual[a, 5.3e+48]], $MachinePrecision]], N[(t * N[(a * N[(-4.0 / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(1.0 / N[(z * 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}\;a \leq -2.9 \cdot 10^{-187} \lor \neg \left(a \leq 5.3 \cdot 10^{+48}\right):\\
\;\;\;\;t \cdot \left(a \cdot \frac{-4}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \frac{1}{z \cdot c}\\
\end{array}
\end{array}
if a < -2.89999999999999988e-187 or 5.3e48 < a Initial program 76.5%
+-commutative76.5%
associate-+r-76.5%
*-commutative76.5%
associate-*r*72.1%
*-commutative72.1%
associate-+r-72.1%
+-commutative72.1%
associate-*l*72.6%
associate-*l*77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in x around 0 74.8%
Taylor expanded in z around inf 45.8%
associate-*r/45.8%
associate-*r*45.8%
associate-*l/48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in t around 0 45.8%
associate-*r/45.8%
*-commutative45.8%
*-commutative45.8%
associate-*r*45.8%
associate-/l*48.8%
associate-*r/48.7%
Simplified48.7%
if -2.89999999999999988e-187 < a < 5.3e48Initial program 84.5%
Simplified89.0%
Taylor expanded in b around inf 44.0%
*-commutative44.0%
Simplified44.0%
div-inv44.0%
*-commutative44.0%
Applied egg-rr44.0%
Final simplification47.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 (or (<= a -6.2e-149) (not (<= a 4.8e+48))) (* -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 ((a <= -6.2e-149) || !(a <= 4.8e+48)) {
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 ((a <= (-6.2d-149)) .or. (.not. (a <= 4.8d+48))) 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 ((a <= -6.2e-149) || !(a <= 4.8e+48)) {
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 (a <= -6.2e-149) or not (a <= 4.8e+48): 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 ((a <= -6.2e-149) || !(a <= 4.8e+48)) tmp = Float64(-4.0 * Float64(a * Float64(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 ((a <= -6.2e-149) || ~((a <= 4.8e+48)))
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[Or[LessEqual[a, -6.2e-149], N[Not[LessEqual[a, 4.8e+48]], $MachinePrecision]], N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $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}\;a \leq -6.2 \cdot 10^{-149} \lor \neg \left(a \leq 4.8 \cdot 10^{+48}\right):\\
\;\;\;\;-4 \cdot \left(a \cdot \frac{t}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\end{array}
\end{array}
if a < -6.19999999999999974e-149 or 4.8000000000000002e48 < a Initial program 76.0%
Simplified71.2%
Taylor expanded in t around inf 47.9%
associate-/l*46.7%
Simplified46.7%
if -6.19999999999999974e-149 < a < 4.8000000000000002e48Initial program 84.4%
Simplified89.3%
Taylor expanded in b around inf 44.0%
*-commutative44.0%
Simplified44.0%
Final simplification45.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 (if (<= a -1.8e-149) (* -4.0 (* a (/ t c))) (if (<= a 2e+49) (/ b (* z c)) (* -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 (a <= -1.8e-149) {
tmp = -4.0 * (a * (t / c));
} else if (a <= 2e+49) {
tmp = b / (z * c);
} else {
tmp = -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 (a <= (-1.8d-149)) then
tmp = (-4.0d0) * (a * (t / c))
else if (a <= 2d+49) then
tmp = b / (z * c)
else
tmp = (-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 (a <= -1.8e-149) {
tmp = -4.0 * (a * (t / c));
} else if (a <= 2e+49) {
tmp = b / (z * c);
} else {
tmp = -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 a <= -1.8e-149: tmp = -4.0 * (a * (t / c)) elif a <= 2e+49: tmp = b / (z * c) else: tmp = -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 (a <= -1.8e-149) tmp = Float64(-4.0 * Float64(a * Float64(t / c))); elseif (a <= 2e+49) tmp = Float64(b / Float64(z * c)); else tmp = Float64(-4.0 * Float64(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 (a <= -1.8e-149)
tmp = -4.0 * (a * (t / c));
elseif (a <= 2e+49)
tmp = b / (z * c);
else
tmp = -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[a, -1.8e-149], N[(-4.0 * N[(a * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e+49], N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / 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}\;a \leq -1.8 \cdot 10^{-149}:\\
\;\;\;\;-4 \cdot \left(a \cdot \frac{t}{c}\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+49}:\\
\;\;\;\;\frac{b}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
\end{array}
\end{array}
if a < -1.8000000000000001e-149Initial program 77.9%
Simplified73.8%
Taylor expanded in t around inf 44.7%
associate-/l*44.7%
Simplified44.7%
if -1.8000000000000001e-149 < a < 1.99999999999999989e49Initial program 84.4%
Simplified89.3%
Taylor expanded in b around inf 44.0%
*-commutative44.0%
Simplified44.0%
if 1.99999999999999989e49 < a Initial program 72.5%
Simplified66.3%
Taylor expanded in t around inf 53.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 (/ (- (/ (+ b (* 9.0 (* x y))) 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) {
return (((b + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / 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 + (9.0d0 * (x * y))) / z) - (4.0d0 * (a * t))) / 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 + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / 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 + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / 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(Float64(Float64(Float64(b + Float64(9.0 * Float64(x * y))) / z) - Float64(4.0 * Float64(a * t))) / 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 + (9.0 * (x * y))) / z) - (4.0 * (a * t))) / 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[(N[(N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 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])\\
\\
\frac{\frac{b + 9 \cdot \left(x \cdot y\right)}{z} - 4 \cdot \left(a \cdot t\right)}{c}
\end{array}
Initial program 79.3%
+-commutative79.3%
associate-+r-79.3%
*-commutative79.3%
associate-*r*78.0%
*-commutative78.0%
associate-+r-78.0%
+-commutative78.0%
associate-*l*78.3%
associate-*l*81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in x around 0 78.9%
Taylor expanded in c around 0 86.0%
Taylor expanded in z around 0 87.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 (/ 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 79.3%
Simplified78.3%
Taylor expanded in b around inf 31.4%
*-commutative31.4%
Simplified31.4%
(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 2024145
(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)))