
(FPCore (x y z t a b) :precision binary64 (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
real(8) function code(x, y, z, t, a, b)
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
code = ((x * 2.0d0) - (((y * 9.0d0) * z) * t)) + ((a * 27.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
def code(x, y, z, t, a, b): return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * 2.0) - Float64(Float64(Float64(y * 9.0) * z) * t)) + Float64(Float64(a * 27.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(N[(y * 9.0), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 27.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
real(8) function code(x, y, z, t, a, b)
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
code = ((x * 2.0d0) - (((y * 9.0d0) * z) * t)) + ((a * 27.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
def code(x, y, z, t, a, b): return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * 2.0) - Float64(Float64(Float64(y * 9.0) * z) * t)) + Float64(Float64(a * 27.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(N[(y * 9.0), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 27.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b
\end{array}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z -3.5e-274) (fma a (* 27.0 b) (fma x 2.0 (* y (* z (* t -9.0))))) (fma a (* 27.0 b) (fma x 2.0 (* t (* y (* z -9.0)))))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.5e-274) {
tmp = fma(a, (27.0 * b), fma(x, 2.0, (y * (z * (t * -9.0)))));
} else {
tmp = fma(a, (27.0 * b), fma(x, 2.0, (t * (y * (z * -9.0)))));
}
return tmp;
}
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.5e-274) tmp = fma(a, Float64(27.0 * b), fma(x, 2.0, Float64(y * Float64(z * Float64(t * -9.0))))); else tmp = fma(a, Float64(27.0 * b), fma(x, 2.0, Float64(t * Float64(y * Float64(z * -9.0))))); end return tmp end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.5e-274], N[(a * N[(27.0 * b), $MachinePrecision] + N[(x * 2.0 + N[(y * N[(z * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(27.0 * b), $MachinePrecision] + N[(x * 2.0 + N[(t * N[(y * N[(z * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{-274}:\\
\;\;\;\;\mathsf{fma}\left(a, 27 \cdot b, \mathsf{fma}\left(x, 2, y \cdot \left(z \cdot \left(t \cdot -9\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, 27 \cdot b, \mathsf{fma}\left(x, 2, t \cdot \left(y \cdot \left(z \cdot -9\right)\right)\right)\right)\\
\end{array}
\end{array}
if z < -3.49999999999999982e-274Initial program 91.1%
+-commutative91.1%
associate-+r-91.1%
*-commutative91.1%
cancel-sign-sub-inv91.1%
associate-*r*94.6%
distribute-lft-neg-in94.6%
*-commutative94.6%
cancel-sign-sub-inv94.6%
associate-+r-94.6%
associate-*l*94.6%
fma-define95.5%
fma-neg95.5%
associate-*l*95.5%
distribute-rgt-neg-in95.5%
*-commutative95.5%
associate-*l*95.5%
*-commutative95.5%
distribute-lft-neg-in95.5%
associate-*r*95.5%
Simplified95.5%
if -3.49999999999999982e-274 < z Initial program 94.0%
+-commutative94.0%
associate-+r-94.0%
*-commutative94.0%
cancel-sign-sub-inv94.0%
associate-*r*93.9%
distribute-lft-neg-in93.9%
*-commutative93.9%
cancel-sign-sub-inv93.9%
associate-+r-93.9%
associate-*l*93.2%
fma-define93.2%
cancel-sign-sub-inv93.2%
fma-define93.2%
distribute-lft-neg-in93.2%
distribute-rgt-neg-in93.2%
*-commutative93.2%
associate-*r*94.0%
associate-*l*94.6%
neg-mul-194.6%
associate-*r*94.6%
Simplified94.6%
Final simplification95.0%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z -2e-274) (- (+ (* 27.0 (* a b)) (* x 2.0)) (* y (* t (* z 9.0)))) (fma a (* 27.0 b) (fma x 2.0 (* t (* y (* z -9.0)))))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2e-274) {
tmp = ((27.0 * (a * b)) + (x * 2.0)) - (y * (t * (z * 9.0)));
} else {
tmp = fma(a, (27.0 * b), fma(x, 2.0, (t * (y * (z * -9.0)))));
}
return tmp;
}
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2e-274) tmp = Float64(Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)) - Float64(y * Float64(t * Float64(z * 9.0)))); else tmp = fma(a, Float64(27.0 * b), fma(x, 2.0, Float64(t * Float64(y * Float64(z * -9.0))))); end return tmp end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2e-274], N[(N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision] - N[(y * N[(t * N[(z * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(27.0 * b), $MachinePrecision] + N[(x * 2.0 + N[(t * N[(y * N[(z * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-274}:\\
\;\;\;\;\left(27 \cdot \left(a \cdot b\right) + x \cdot 2\right) - y \cdot \left(t \cdot \left(z \cdot 9\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, 27 \cdot b, \mathsf{fma}\left(x, 2, t \cdot \left(y \cdot \left(z \cdot -9\right)\right)\right)\right)\\
\end{array}
\end{array}
if z < -1.99999999999999993e-274Initial program 91.1%
sub-neg91.1%
sub-neg91.1%
associate-*l*94.6%
associate-*l*94.6%
Simplified94.6%
+-commutative94.6%
associate-+r-94.6%
associate-*r*94.6%
*-commutative94.6%
associate-*l*94.6%
associate-*l*94.6%
associate-*r*93.7%
Applied egg-rr93.7%
if -1.99999999999999993e-274 < z Initial program 94.0%
+-commutative94.0%
associate-+r-94.0%
*-commutative94.0%
cancel-sign-sub-inv94.0%
associate-*r*93.9%
distribute-lft-neg-in93.9%
*-commutative93.9%
cancel-sign-sub-inv93.9%
associate-+r-93.9%
associate-*l*93.2%
fma-define93.2%
cancel-sign-sub-inv93.2%
fma-define93.2%
distribute-lft-neg-in93.2%
distribute-rgt-neg-in93.2%
*-commutative93.2%
associate-*r*94.0%
associate-*l*94.6%
neg-mul-194.6%
associate-*r*94.6%
Simplified94.6%
Final simplification94.2%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 9.0 (* t (* z y)))) (t_2 (* 27.0 (* a b))))
(if (<= t 2.2e-273)
(* y (- (* 27.0 (/ (* a b) y)) (* 9.0 (* z t))))
(if (<= t 1.65e+68)
(+ t_2 (* x 2.0))
(if (<= t 1.26e+121) (- (* x 2.0) t_1) (- t_2 t_1))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 9.0 * (t * (z * y));
double t_2 = 27.0 * (a * b);
double tmp;
if (t <= 2.2e-273) {
tmp = y * ((27.0 * ((a * b) / y)) - (9.0 * (z * t)));
} else if (t <= 1.65e+68) {
tmp = t_2 + (x * 2.0);
} else if (t <= 1.26e+121) {
tmp = (x * 2.0) - t_1;
} else {
tmp = t_2 - t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 9.0d0 * (t * (z * y))
t_2 = 27.0d0 * (a * b)
if (t <= 2.2d-273) then
tmp = y * ((27.0d0 * ((a * b) / y)) - (9.0d0 * (z * t)))
else if (t <= 1.65d+68) then
tmp = t_2 + (x * 2.0d0)
else if (t <= 1.26d+121) then
tmp = (x * 2.0d0) - t_1
else
tmp = t_2 - t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 9.0 * (t * (z * y));
double t_2 = 27.0 * (a * b);
double tmp;
if (t <= 2.2e-273) {
tmp = y * ((27.0 * ((a * b) / y)) - (9.0 * (z * t)));
} else if (t <= 1.65e+68) {
tmp = t_2 + (x * 2.0);
} else if (t <= 1.26e+121) {
tmp = (x * 2.0) - t_1;
} else {
tmp = t_2 - t_1;
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): t_1 = 9.0 * (t * (z * y)) t_2 = 27.0 * (a * b) tmp = 0 if t <= 2.2e-273: tmp = y * ((27.0 * ((a * b) / y)) - (9.0 * (z * t))) elif t <= 1.65e+68: tmp = t_2 + (x * 2.0) elif t <= 1.26e+121: tmp = (x * 2.0) - t_1 else: tmp = t_2 - t_1 return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) t_1 = Float64(9.0 * Float64(t * Float64(z * y))) t_2 = Float64(27.0 * Float64(a * b)) tmp = 0.0 if (t <= 2.2e-273) tmp = Float64(y * Float64(Float64(27.0 * Float64(Float64(a * b) / y)) - Float64(9.0 * Float64(z * t)))); elseif (t <= 1.65e+68) tmp = Float64(t_2 + Float64(x * 2.0)); elseif (t <= 1.26e+121) tmp = Float64(Float64(x * 2.0) - t_1); else tmp = Float64(t_2 - t_1); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = 9.0 * (t * (z * y));
t_2 = 27.0 * (a * b);
tmp = 0.0;
if (t <= 2.2e-273)
tmp = y * ((27.0 * ((a * b) / y)) - (9.0 * (z * t)));
elseif (t <= 1.65e+68)
tmp = t_2 + (x * 2.0);
elseif (t <= 1.26e+121)
tmp = (x * 2.0) - t_1;
else
tmp = t_2 - t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(9.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.2e-273], N[(y * N[(N[(27.0 * N[(N[(a * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] - N[(9.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e+68], N[(t$95$2 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.26e+121], N[(N[(x * 2.0), $MachinePrecision] - t$95$1), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := 9 \cdot \left(t \cdot \left(z \cdot y\right)\right)\\
t_2 := 27 \cdot \left(a \cdot b\right)\\
\mathbf{if}\;t \leq 2.2 \cdot 10^{-273}:\\
\;\;\;\;y \cdot \left(27 \cdot \frac{a \cdot b}{y} - 9 \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+68}:\\
\;\;\;\;t\_2 + x \cdot 2\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+121}:\\
\;\;\;\;x \cdot 2 - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if t < 2.1999999999999998e-273Initial program 91.1%
sub-neg91.1%
sub-neg91.1%
associate-*l*92.5%
associate-*l*92.5%
Simplified92.5%
Taylor expanded in x around 0 70.2%
Taylor expanded in y around inf 64.6%
if 2.1999999999999998e-273 < t < 1.65e68Initial program 91.5%
sub-neg91.5%
sub-neg91.5%
associate-*l*99.7%
associate-*l*98.3%
Simplified98.3%
Taylor expanded in y around 0 71.6%
if 1.65e68 < t < 1.2599999999999999e121Initial program 99.9%
sub-neg99.9%
sub-neg99.9%
associate-*l*85.5%
associate-*l*85.5%
Simplified85.5%
Taylor expanded in a around 0 92.4%
if 1.2599999999999999e121 < t Initial program 99.7%
sub-neg99.7%
sub-neg99.7%
associate-*l*94.4%
associate-*l*94.4%
Simplified94.4%
Taylor expanded in x around 0 84.6%
Final simplification70.4%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 9.0 (* t (* z y)))) (t_2 (* 27.0 (* a b))))
(if (<= t -2.9e-230)
(* y (- (* 2.0 (/ x y)) (* 9.0 (* z t))))
(if (<= t 1e+69)
(+ t_2 (* x 2.0))
(if (<= t 9.8e+120) (- (* x 2.0) t_1) (- t_2 t_1))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 9.0 * (t * (z * y));
double t_2 = 27.0 * (a * b);
double tmp;
if (t <= -2.9e-230) {
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
} else if (t <= 1e+69) {
tmp = t_2 + (x * 2.0);
} else if (t <= 9.8e+120) {
tmp = (x * 2.0) - t_1;
} else {
tmp = t_2 - t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 9.0d0 * (t * (z * y))
t_2 = 27.0d0 * (a * b)
if (t <= (-2.9d-230)) then
tmp = y * ((2.0d0 * (x / y)) - (9.0d0 * (z * t)))
else if (t <= 1d+69) then
tmp = t_2 + (x * 2.0d0)
else if (t <= 9.8d+120) then
tmp = (x * 2.0d0) - t_1
else
tmp = t_2 - t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 9.0 * (t * (z * y));
double t_2 = 27.0 * (a * b);
double tmp;
if (t <= -2.9e-230) {
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
} else if (t <= 1e+69) {
tmp = t_2 + (x * 2.0);
} else if (t <= 9.8e+120) {
tmp = (x * 2.0) - t_1;
} else {
tmp = t_2 - t_1;
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): t_1 = 9.0 * (t * (z * y)) t_2 = 27.0 * (a * b) tmp = 0 if t <= -2.9e-230: tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t))) elif t <= 1e+69: tmp = t_2 + (x * 2.0) elif t <= 9.8e+120: tmp = (x * 2.0) - t_1 else: tmp = t_2 - t_1 return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) t_1 = Float64(9.0 * Float64(t * Float64(z * y))) t_2 = Float64(27.0 * Float64(a * b)) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(y * Float64(Float64(2.0 * Float64(x / y)) - Float64(9.0 * Float64(z * t)))); elseif (t <= 1e+69) tmp = Float64(t_2 + Float64(x * 2.0)); elseif (t <= 9.8e+120) tmp = Float64(Float64(x * 2.0) - t_1); else tmp = Float64(t_2 - t_1); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = 9.0 * (t * (z * y));
t_2 = 27.0 * (a * b);
tmp = 0.0;
if (t <= -2.9e-230)
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
elseif (t <= 1e+69)
tmp = t_2 + (x * 2.0);
elseif (t <= 9.8e+120)
tmp = (x * 2.0) - t_1;
else
tmp = t_2 - t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(9.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e-230], N[(y * N[(N[(2.0 * N[(x / y), $MachinePrecision]), $MachinePrecision] - N[(9.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+69], N[(t$95$2 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.8e+120], N[(N[(x * 2.0), $MachinePrecision] - t$95$1), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := 9 \cdot \left(t \cdot \left(z \cdot y\right)\right)\\
t_2 := 27 \cdot \left(a \cdot b\right)\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;y \cdot \left(2 \cdot \frac{x}{y} - 9 \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 10^{+69}:\\
\;\;\;\;t\_2 + x \cdot 2\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{+120}:\\
\;\;\;\;x \cdot 2 - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in a around 0 54.6%
Taylor expanded in y around inf 49.2%
if -2.90000000000000005e-230 < t < 1.0000000000000001e69Initial program 89.0%
sub-neg89.0%
sub-neg89.0%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around 0 71.1%
if 1.0000000000000001e69 < t < 9.80000000000000021e120Initial program 99.9%
sub-neg99.9%
sub-neg99.9%
associate-*l*84.3%
associate-*l*84.3%
Simplified84.3%
Taylor expanded in a around 0 91.8%
if 9.80000000000000021e120 < t Initial program 99.7%
sub-neg99.7%
sub-neg99.7%
associate-*l*94.4%
associate-*l*94.4%
Simplified94.4%
Taylor expanded in x around 0 84.6%
Final simplification64.0%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 27.0 (* a b))))
(if (<= t -2.9e-230)
(* y (- (* 2.0 (/ x y)) (* 9.0 (* z t))))
(if (<= t 1.7e+69)
(+ t_1 (* x 2.0))
(if (<= t 3.25e+121)
(- (* x 2.0) (* 9.0 (* t (* z y))))
(+ t_1 (* (* t -9.0) (* z y))))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 27.0 * (a * b);
double tmp;
if (t <= -2.9e-230) {
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
} else if (t <= 1.7e+69) {
tmp = t_1 + (x * 2.0);
} else if (t <= 3.25e+121) {
tmp = (x * 2.0) - (9.0 * (t * (z * y)));
} else {
tmp = t_1 + ((t * -9.0) * (z * y));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = 27.0d0 * (a * b)
if (t <= (-2.9d-230)) then
tmp = y * ((2.0d0 * (x / y)) - (9.0d0 * (z * t)))
else if (t <= 1.7d+69) then
tmp = t_1 + (x * 2.0d0)
else if (t <= 3.25d+121) then
tmp = (x * 2.0d0) - (9.0d0 * (t * (z * y)))
else
tmp = t_1 + ((t * (-9.0d0)) * (z * y))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 27.0 * (a * b);
double tmp;
if (t <= -2.9e-230) {
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
} else if (t <= 1.7e+69) {
tmp = t_1 + (x * 2.0);
} else if (t <= 3.25e+121) {
tmp = (x * 2.0) - (9.0 * (t * (z * y)));
} else {
tmp = t_1 + ((t * -9.0) * (z * y));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): t_1 = 27.0 * (a * b) tmp = 0 if t <= -2.9e-230: tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t))) elif t <= 1.7e+69: tmp = t_1 + (x * 2.0) elif t <= 3.25e+121: tmp = (x * 2.0) - (9.0 * (t * (z * y))) else: tmp = t_1 + ((t * -9.0) * (z * y)) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) t_1 = Float64(27.0 * Float64(a * b)) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(y * Float64(Float64(2.0 * Float64(x / y)) - Float64(9.0 * Float64(z * t)))); elseif (t <= 1.7e+69) tmp = Float64(t_1 + Float64(x * 2.0)); elseif (t <= 3.25e+121) tmp = Float64(Float64(x * 2.0) - Float64(9.0 * Float64(t * Float64(z * y)))); else tmp = Float64(t_1 + Float64(Float64(t * -9.0) * Float64(z * y))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = 27.0 * (a * b);
tmp = 0.0;
if (t <= -2.9e-230)
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
elseif (t <= 1.7e+69)
tmp = t_1 + (x * 2.0);
elseif (t <= 3.25e+121)
tmp = (x * 2.0) - (9.0 * (t * (z * y)));
else
tmp = t_1 + ((t * -9.0) * (z * y));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e-230], N[(y * N[(N[(2.0 * N[(x / y), $MachinePrecision]), $MachinePrecision] - N[(9.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+69], N[(t$95$1 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.25e+121], N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(t * -9.0), $MachinePrecision] * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := 27 \cdot \left(a \cdot b\right)\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;y \cdot \left(2 \cdot \frac{x}{y} - 9 \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+69}:\\
\;\;\;\;t\_1 + x \cdot 2\\
\mathbf{elif}\;t \leq 3.25 \cdot 10^{+121}:\\
\;\;\;\;x \cdot 2 - 9 \cdot \left(t \cdot \left(z \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \left(t \cdot -9\right) \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in a around 0 54.6%
Taylor expanded in y around inf 49.2%
if -2.90000000000000005e-230 < t < 1.69999999999999993e69Initial program 89.0%
sub-neg89.0%
sub-neg89.0%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around 0 71.1%
if 1.69999999999999993e69 < t < 3.25000000000000009e121Initial program 99.9%
sub-neg99.9%
sub-neg99.9%
associate-*l*84.3%
associate-*l*84.3%
Simplified84.3%
Taylor expanded in a around 0 91.8%
if 3.25000000000000009e121 < t Initial program 99.7%
sub-neg99.7%
sub-neg99.7%
associate-*l*94.4%
associate-*l*94.4%
Simplified94.4%
Taylor expanded in x around 0 84.6%
associate-*r*84.6%
*-commutative84.6%
cancel-sign-sub-inv84.6%
distribute-lft-neg-in84.6%
distribute-rgt-neg-in84.6%
*-commutative84.6%
distribute-rgt-neg-in84.6%
metadata-eval84.6%
Applied egg-rr84.6%
Final simplification64.0%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.9e-230)
(* -9.0 (* y (* z t)))
(if (<= t 1.25e-45)
(* b (* a 27.0))
(if (<= t 540000000.0)
(* x 2.0)
(if (<= t 4.6e+63) (* 27.0 (* a b)) (* -9.0 (* t (* z y))))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = -9.0 * (y * (z * t));
} else if (t <= 1.25e-45) {
tmp = b * (a * 27.0);
} else if (t <= 540000000.0) {
tmp = x * 2.0;
} else if (t <= 4.6e+63) {
tmp = 27.0 * (a * b);
} else {
tmp = -9.0 * (t * (z * y));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-2.9d-230)) then
tmp = (-9.0d0) * (y * (z * t))
else if (t <= 1.25d-45) then
tmp = b * (a * 27.0d0)
else if (t <= 540000000.0d0) then
tmp = x * 2.0d0
else if (t <= 4.6d+63) then
tmp = 27.0d0 * (a * b)
else
tmp = (-9.0d0) * (t * (z * y))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = -9.0 * (y * (z * t));
} else if (t <= 1.25e-45) {
tmp = b * (a * 27.0);
} else if (t <= 540000000.0) {
tmp = x * 2.0;
} else if (t <= 4.6e+63) {
tmp = 27.0 * (a * b);
} else {
tmp = -9.0 * (t * (z * y));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-230: tmp = -9.0 * (y * (z * t)) elif t <= 1.25e-45: tmp = b * (a * 27.0) elif t <= 540000000.0: tmp = x * 2.0 elif t <= 4.6e+63: tmp = 27.0 * (a * b) else: tmp = -9.0 * (t * (z * y)) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(-9.0 * Float64(y * Float64(z * t))); elseif (t <= 1.25e-45) tmp = Float64(b * Float64(a * 27.0)); elseif (t <= 540000000.0) tmp = Float64(x * 2.0); elseif (t <= 4.6e+63) tmp = Float64(27.0 * Float64(a * b)); else tmp = Float64(-9.0 * Float64(t * Float64(z * y))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (t <= -2.9e-230)
tmp = -9.0 * (y * (z * t));
elseif (t <= 1.25e-45)
tmp = b * (a * 27.0);
elseif (t <= 540000000.0)
tmp = x * 2.0;
elseif (t <= 4.6e+63)
tmp = 27.0 * (a * b);
else
tmp = -9.0 * (t * (z * y));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-230], N[(-9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-45], N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 540000000.0], N[(x * 2.0), $MachinePrecision], If[LessEqual[t, 4.6e+63], N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(-9.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;-9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-45}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{elif}\;t \leq 540000000:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+63}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;-9 \cdot \left(t \cdot \left(z \cdot y\right)\right)\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in t around inf 83.2%
Taylor expanded in a around inf 75.4%
Taylor expanded in t around inf 35.3%
*-commutative35.3%
associate-*l*34.3%
*-commutative34.3%
Simplified34.3%
if -2.90000000000000005e-230 < t < 1.24999999999999994e-45Initial program 86.8%
sub-neg86.8%
sub-neg86.8%
associate-*l*99.7%
associate-*l*98.4%
Simplified98.4%
Taylor expanded in a around inf 44.0%
associate-*r*44.0%
Simplified44.0%
if 1.24999999999999994e-45 < t < 5.4e8Initial program 92.2%
sub-neg92.2%
sub-neg92.2%
associate-*l*99.5%
associate-*l*99.5%
Simplified99.5%
Taylor expanded in x around inf 26.7%
if 5.4e8 < t < 4.59999999999999986e63Initial program 99.7%
sub-neg99.7%
sub-neg99.7%
associate-*l*99.7%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in a around inf 23.2%
if 4.59999999999999986e63 < t Initial program 99.8%
sub-neg99.8%
sub-neg99.8%
associate-*l*91.9%
associate-*l*91.9%
Simplified91.9%
Taylor expanded in y around inf 51.7%
Final simplification39.4%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* -9.0 (* t (* z y)))))
(if (<= t -1.15e-134)
t_1
(if (<= t 1.18e-45)
(* b (* a 27.0))
(if (<= t 5500000000.0)
(* x 2.0)
(if (<= t 7.8e+64) (* 27.0 (* a b)) t_1))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -9.0 * (t * (z * y));
double tmp;
if (t <= -1.15e-134) {
tmp = t_1;
} else if (t <= 1.18e-45) {
tmp = b * (a * 27.0);
} else if (t <= 5500000000.0) {
tmp = x * 2.0;
} else if (t <= 7.8e+64) {
tmp = 27.0 * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (-9.0d0) * (t * (z * y))
if (t <= (-1.15d-134)) then
tmp = t_1
else if (t <= 1.18d-45) then
tmp = b * (a * 27.0d0)
else if (t <= 5500000000.0d0) then
tmp = x * 2.0d0
else if (t <= 7.8d+64) then
tmp = 27.0d0 * (a * b)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -9.0 * (t * (z * y));
double tmp;
if (t <= -1.15e-134) {
tmp = t_1;
} else if (t <= 1.18e-45) {
tmp = b * (a * 27.0);
} else if (t <= 5500000000.0) {
tmp = x * 2.0;
} else if (t <= 7.8e+64) {
tmp = 27.0 * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): t_1 = -9.0 * (t * (z * y)) tmp = 0 if t <= -1.15e-134: tmp = t_1 elif t <= 1.18e-45: tmp = b * (a * 27.0) elif t <= 5500000000.0: tmp = x * 2.0 elif t <= 7.8e+64: tmp = 27.0 * (a * b) else: tmp = t_1 return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) t_1 = Float64(-9.0 * Float64(t * Float64(z * y))) tmp = 0.0 if (t <= -1.15e-134) tmp = t_1; elseif (t <= 1.18e-45) tmp = Float64(b * Float64(a * 27.0)); elseif (t <= 5500000000.0) tmp = Float64(x * 2.0); elseif (t <= 7.8e+64) tmp = Float64(27.0 * Float64(a * b)); else tmp = t_1; end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = -9.0 * (t * (z * y));
tmp = 0.0;
if (t <= -1.15e-134)
tmp = t_1;
elseif (t <= 1.18e-45)
tmp = b * (a * 27.0);
elseif (t <= 5500000000.0)
tmp = x * 2.0;
elseif (t <= 7.8e+64)
tmp = 27.0 * (a * b);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(-9.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.15e-134], t$95$1, If[LessEqual[t, 1.18e-45], N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5500000000.0], N[(x * 2.0), $MachinePrecision], If[LessEqual[t, 7.8e+64], N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := -9 \cdot \left(t \cdot \left(z \cdot y\right)\right)\\
\mathbf{if}\;t \leq -1.15 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-45}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{elif}\;t \leq 5500000000:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+64}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.15e-134 or 7.7999999999999996e64 < t Initial program 97.8%
sub-neg97.8%
sub-neg97.8%
associate-*l*89.6%
associate-*l*89.6%
Simplified89.6%
Taylor expanded in y around inf 44.8%
if -1.15e-134 < t < 1.18e-45Initial program 85.1%
sub-neg85.1%
sub-neg85.1%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in a around inf 43.3%
associate-*r*43.3%
Simplified43.3%
if 1.18e-45 < t < 5.5e9Initial program 92.2%
sub-neg92.2%
sub-neg92.2%
associate-*l*99.5%
associate-*l*99.5%
Simplified99.5%
Taylor expanded in x around inf 26.7%
if 5.5e9 < t < 7.7999999999999996e64Initial program 99.7%
sub-neg99.7%
sub-neg99.7%
associate-*l*99.7%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in a around inf 23.2%
Final simplification42.5%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z 1e-143) (- (+ (* 27.0 (* a b)) (* x 2.0)) (* y (* t (* z 9.0)))) (+ (- (* x 2.0) (* t (* z (* y 9.0)))) (* b (* a 27.0)))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1e-143) {
tmp = ((27.0 * (a * b)) + (x * 2.0)) - (y * (t * (z * 9.0)));
} else {
tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (z <= 1d-143) then
tmp = ((27.0d0 * (a * b)) + (x * 2.0d0)) - (y * (t * (z * 9.0d0)))
else
tmp = ((x * 2.0d0) - (t * (z * (y * 9.0d0)))) + (b * (a * 27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1e-143) {
tmp = ((27.0 * (a * b)) + (x * 2.0)) - (y * (t * (z * 9.0)));
} else {
tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if z <= 1e-143: tmp = ((27.0 * (a * b)) + (x * 2.0)) - (y * (t * (z * 9.0))) else: tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0)) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 1e-143) tmp = Float64(Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)) - Float64(y * Float64(t * Float64(z * 9.0)))); else tmp = Float64(Float64(Float64(x * 2.0) - Float64(t * Float64(z * Float64(y * 9.0)))) + Float64(b * Float64(a * 27.0))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (z <= 1e-143)
tmp = ((27.0 * (a * b)) + (x * 2.0)) - (y * (t * (z * 9.0)));
else
tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1e-143], N[(N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision] - N[(y * N[(t * N[(z * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(t * N[(z * N[(y * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq 10^{-143}:\\
\;\;\;\;\left(27 \cdot \left(a \cdot b\right) + x \cdot 2\right) - y \cdot \left(t \cdot \left(z \cdot 9\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 2 - t \cdot \left(z \cdot \left(y \cdot 9\right)\right)\right) + b \cdot \left(a \cdot 27\right)\\
\end{array}
\end{array}
if z < 9.9999999999999995e-144Initial program 92.7%
sub-neg92.7%
sub-neg92.7%
associate-*l*95.5%
associate-*l*95.5%
Simplified95.5%
+-commutative95.5%
associate-+r-95.5%
associate-*r*95.5%
*-commutative95.5%
associate-*l*95.5%
associate-*l*96.1%
associate-*r*95.5%
Applied egg-rr95.5%
if 9.9999999999999995e-144 < z Initial program 93.0%
Final simplification94.5%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z -7.5e-47) (+ (* x 2.0) (+ (* 27.0 (* a b)) (* z (* y (* t -9.0))))) (+ (- (* x 2.0) (* t (* z (* y 9.0)))) (* b (* a 27.0)))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.5e-47) {
tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0))));
} else {
tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (z <= (-7.5d-47)) then
tmp = (x * 2.0d0) + ((27.0d0 * (a * b)) + (z * (y * (t * (-9.0d0)))))
else
tmp = ((x * 2.0d0) - (t * (z * (y * 9.0d0)))) + (b * (a * 27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.5e-47) {
tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0))));
} else {
tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if z <= -7.5e-47: tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0)))) else: tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0)) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -7.5e-47) tmp = Float64(Float64(x * 2.0) + Float64(Float64(27.0 * Float64(a * b)) + Float64(z * Float64(y * Float64(t * -9.0))))); else tmp = Float64(Float64(Float64(x * 2.0) - Float64(t * Float64(z * Float64(y * 9.0)))) + Float64(b * Float64(a * 27.0))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (z <= -7.5e-47)
tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0))));
else
tmp = ((x * 2.0) - (t * (z * (y * 9.0)))) + (b * (a * 27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -7.5e-47], N[(N[(x * 2.0), $MachinePrecision] + N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(t * N[(z * N[(y * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-47}:\\
\;\;\;\;x \cdot 2 + \left(27 \cdot \left(a \cdot b\right) + z \cdot \left(y \cdot \left(t \cdot -9\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 2 - t \cdot \left(z \cdot \left(y \cdot 9\right)\right)\right) + b \cdot \left(a \cdot 27\right)\\
\end{array}
\end{array}
if z < -7.49999999999999969e-47Initial program 85.9%
+-commutative85.9%
associate-+r-85.9%
*-commutative85.9%
cancel-sign-sub-inv85.9%
associate-*r*96.9%
distribute-lft-neg-in96.9%
*-commutative96.9%
cancel-sign-sub-inv96.9%
associate-+r-96.9%
associate-*l*96.9%
fma-define98.3%
cancel-sign-sub-inv98.3%
fma-define98.3%
distribute-lft-neg-in98.3%
distribute-rgt-neg-in98.3%
*-commutative98.3%
associate-*r*87.3%
associate-*l*87.4%
neg-mul-187.4%
associate-*r*87.4%
Simplified87.4%
Applied egg-rr96.9%
if -7.49999999999999969e-47 < z Initial program 95.3%
Final simplification95.8%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z 7.6e-103) (+ (- (* x 2.0) (* (* y 9.0) (* z t))) (* a (* 27.0 b))) (+ (* x 2.0) (+ (* 27.0 (* a b)) (* z (* y (* t -9.0)))))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 7.6e-103) {
tmp = ((x * 2.0) - ((y * 9.0) * (z * t))) + (a * (27.0 * b));
} else {
tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0))));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (z <= 7.6d-103) then
tmp = ((x * 2.0d0) - ((y * 9.0d0) * (z * t))) + (a * (27.0d0 * b))
else
tmp = (x * 2.0d0) + ((27.0d0 * (a * b)) + (z * (y * (t * (-9.0d0)))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 7.6e-103) {
tmp = ((x * 2.0) - ((y * 9.0) * (z * t))) + (a * (27.0 * b));
} else {
tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0))));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if z <= 7.6e-103: tmp = ((x * 2.0) - ((y * 9.0) * (z * t))) + (a * (27.0 * b)) else: tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0)))) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 7.6e-103) tmp = Float64(Float64(Float64(x * 2.0) - Float64(Float64(y * 9.0) * Float64(z * t))) + Float64(a * Float64(27.0 * b))); else tmp = Float64(Float64(x * 2.0) + Float64(Float64(27.0 * Float64(a * b)) + Float64(z * Float64(y * Float64(t * -9.0))))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (z <= 7.6e-103)
tmp = ((x * 2.0) - ((y * 9.0) * (z * t))) + (a * (27.0 * b));
else
tmp = (x * 2.0) + ((27.0 * (a * b)) + (z * (y * (t * -9.0))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 7.6e-103], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(y * 9.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(27.0 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] + N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq 7.6 \cdot 10^{-103}:\\
\;\;\;\;\left(x \cdot 2 - \left(y \cdot 9\right) \cdot \left(z \cdot t\right)\right) + a \cdot \left(27 \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 + \left(27 \cdot \left(a \cdot b\right) + z \cdot \left(y \cdot \left(t \cdot -9\right)\right)\right)\\
\end{array}
\end{array}
if z < 7.6000000000000001e-103Initial program 93.0%
sub-neg93.0%
sub-neg93.0%
associate-*l*95.7%
associate-*l*95.7%
Simplified95.7%
if 7.6000000000000001e-103 < z Initial program 92.4%
+-commutative92.4%
associate-+r-92.4%
*-commutative92.4%
cancel-sign-sub-inv92.4%
associate-*r*96.7%
distribute-lft-neg-in96.7%
*-commutative96.7%
cancel-sign-sub-inv96.7%
associate-+r-96.7%
associate-*l*95.6%
fma-define95.6%
cancel-sign-sub-inv95.6%
fma-define95.6%
distribute-lft-neg-in95.6%
distribute-rgt-neg-in95.6%
*-commutative95.6%
associate-*r*92.3%
associate-*l*92.3%
neg-mul-192.3%
associate-*r*92.3%
Simplified92.3%
Applied egg-rr96.7%
Final simplification96.1%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 27.0 (* a b))))
(if (<= t 1.1e+142)
(+ (* x 2.0) (+ t_1 (* z (* y (* t -9.0)))))
(+ t_1 (* (* t -9.0) (* z y))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 27.0 * (a * b);
double tmp;
if (t <= 1.1e+142) {
tmp = (x * 2.0) + (t_1 + (z * (y * (t * -9.0))));
} else {
tmp = t_1 + ((t * -9.0) * (z * y));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = 27.0d0 * (a * b)
if (t <= 1.1d+142) then
tmp = (x * 2.0d0) + (t_1 + (z * (y * (t * (-9.0d0)))))
else
tmp = t_1 + ((t * (-9.0d0)) * (z * y))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 27.0 * (a * b);
double tmp;
if (t <= 1.1e+142) {
tmp = (x * 2.0) + (t_1 + (z * (y * (t * -9.0))));
} else {
tmp = t_1 + ((t * -9.0) * (z * y));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): t_1 = 27.0 * (a * b) tmp = 0 if t <= 1.1e+142: tmp = (x * 2.0) + (t_1 + (z * (y * (t * -9.0)))) else: tmp = t_1 + ((t * -9.0) * (z * y)) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) t_1 = Float64(27.0 * Float64(a * b)) tmp = 0.0 if (t <= 1.1e+142) tmp = Float64(Float64(x * 2.0) + Float64(t_1 + Float64(z * Float64(y * Float64(t * -9.0))))); else tmp = Float64(t_1 + Float64(Float64(t * -9.0) * Float64(z * y))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = 27.0 * (a * b);
tmp = 0.0;
if (t <= 1.1e+142)
tmp = (x * 2.0) + (t_1 + (z * (y * (t * -9.0))));
else
tmp = t_1 + ((t * -9.0) * (z * y));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 1.1e+142], N[(N[(x * 2.0), $MachinePrecision] + N[(t$95$1 + N[(z * N[(y * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(t * -9.0), $MachinePrecision] * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := 27 \cdot \left(a \cdot b\right)\\
\mathbf{if}\;t \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;x \cdot 2 + \left(t\_1 + z \cdot \left(y \cdot \left(t \cdot -9\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \left(t \cdot -9\right) \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if t < 1.09999999999999993e142Initial program 91.9%
+-commutative91.9%
associate-+r-91.9%
*-commutative91.9%
cancel-sign-sub-inv91.9%
associate-*r*94.7%
distribute-lft-neg-in94.7%
*-commutative94.7%
cancel-sign-sub-inv94.7%
associate-+r-94.7%
associate-*l*94.3%
fma-define94.8%
cancel-sign-sub-inv94.8%
fma-define94.8%
distribute-lft-neg-in94.8%
distribute-rgt-neg-in94.8%
*-commutative94.8%
associate-*r*92.3%
associate-*l*92.7%
neg-mul-192.7%
associate-*r*92.7%
Simplified92.7%
Applied egg-rr94.8%
if 1.09999999999999993e142 < t Initial program 99.7%
sub-neg99.7%
sub-neg99.7%
associate-*l*93.6%
associate-*l*93.6%
Simplified93.6%
Taylor expanded in x around 0 85.8%
associate-*r*85.8%
*-commutative85.8%
cancel-sign-sub-inv85.8%
distribute-lft-neg-in85.8%
distribute-rgt-neg-in85.8%
*-commutative85.8%
distribute-rgt-neg-in85.8%
metadata-eval85.8%
Applied egg-rr85.8%
Final simplification93.8%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.9e-230)
(* y (- (* 2.0 (/ x y)) (* 9.0 (* z t))))
(if (<= t 5.8e+69)
(+ (* 27.0 (* a b)) (* x 2.0))
(- (* x 2.0) (* t (* y (* z 9.0)))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
} else if (t <= 5.8e+69) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-2.9d-230)) then
tmp = y * ((2.0d0 * (x / y)) - (9.0d0 * (z * t)))
else if (t <= 5.8d+69) then
tmp = (27.0d0 * (a * b)) + (x * 2.0d0)
else
tmp = (x * 2.0d0) - (t * (y * (z * 9.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
} else if (t <= 5.8e+69) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-230: tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t))) elif t <= 5.8e+69: tmp = (27.0 * (a * b)) + (x * 2.0) else: tmp = (x * 2.0) - (t * (y * (z * 9.0))) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(y * Float64(Float64(2.0 * Float64(x / y)) - Float64(9.0 * Float64(z * t)))); elseif (t <= 5.8e+69) tmp = Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)); else tmp = Float64(Float64(x * 2.0) - Float64(t * Float64(y * Float64(z * 9.0)))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (t <= -2.9e-230)
tmp = y * ((2.0 * (x / y)) - (9.0 * (z * t)));
elseif (t <= 5.8e+69)
tmp = (27.0 * (a * b)) + (x * 2.0);
else
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-230], N[(y * N[(N[(2.0 * N[(x / y), $MachinePrecision]), $MachinePrecision] - N[(9.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+69], N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(t * N[(y * N[(z * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;y \cdot \left(2 \cdot \frac{x}{y} - 9 \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+69}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right) + x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - t \cdot \left(y \cdot \left(z \cdot 9\right)\right)\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in a around 0 54.6%
Taylor expanded in y around inf 49.2%
if -2.90000000000000005e-230 < t < 5.7999999999999997e69Initial program 89.0%
sub-neg89.0%
sub-neg89.0%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around 0 71.1%
if 5.7999999999999997e69 < t Initial program 99.8%
sub-neg99.8%
sub-neg99.8%
associate-*l*91.7%
associate-*l*91.7%
Simplified91.7%
Taylor expanded in a around 0 69.8%
sub-neg69.8%
*-commutative69.8%
associate-*r*69.8%
Applied egg-rr69.8%
Taylor expanded in t around 0 69.8%
*-commutative69.8%
associate-*l*69.8%
*-commutative69.8%
associate-*r*69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in z around 0 69.8%
associate-*r*69.8%
*-commutative69.8%
associate-*r*69.8%
Simplified69.8%
Final simplification61.1%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.9e-230)
(- (* x 2.0) (* 9.0 (* y (* z t))))
(if (<= t 3.35e+69)
(+ (* 27.0 (* a b)) (* x 2.0))
(- (* x 2.0) (* t (* y (* z 9.0)))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
} else if (t <= 3.35e+69) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-2.9d-230)) then
tmp = (x * 2.0d0) - (9.0d0 * (y * (z * t)))
else if (t <= 3.35d+69) then
tmp = (27.0d0 * (a * b)) + (x * 2.0d0)
else
tmp = (x * 2.0d0) - (t * (y * (z * 9.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
} else if (t <= 3.35e+69) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-230: tmp = (x * 2.0) - (9.0 * (y * (z * t))) elif t <= 3.35e+69: tmp = (27.0 * (a * b)) + (x * 2.0) else: tmp = (x * 2.0) - (t * (y * (z * 9.0))) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(Float64(x * 2.0) - Float64(9.0 * Float64(y * Float64(z * t)))); elseif (t <= 3.35e+69) tmp = Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)); else tmp = Float64(Float64(x * 2.0) - Float64(t * Float64(y * Float64(z * 9.0)))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (t <= -2.9e-230)
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
elseif (t <= 3.35e+69)
tmp = (27.0 * (a * b)) + (x * 2.0);
else
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-230], N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.35e+69], N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(t * N[(y * N[(z * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;x \cdot 2 - 9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 3.35 \cdot 10^{+69}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right) + x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - t \cdot \left(y \cdot \left(z \cdot 9\right)\right)\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in a around 0 54.6%
sub-neg54.6%
*-commutative54.6%
associate-*r*54.6%
Applied egg-rr54.6%
Taylor expanded in t around 0 54.6%
*-commutative54.6%
associate-*l*54.6%
*-commutative54.6%
associate-*r*53.7%
*-commutative53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in t around 0 54.6%
*-commutative54.6%
*-commutative54.6%
associate-*l*54.2%
*-commutative54.2%
Simplified54.2%
if -2.90000000000000005e-230 < t < 3.35000000000000005e69Initial program 89.0%
sub-neg89.0%
sub-neg89.0%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around 0 71.1%
if 3.35000000000000005e69 < t Initial program 99.8%
sub-neg99.8%
sub-neg99.8%
associate-*l*91.7%
associate-*l*91.7%
Simplified91.7%
Taylor expanded in a around 0 69.8%
sub-neg69.8%
*-commutative69.8%
associate-*r*69.8%
Applied egg-rr69.8%
Taylor expanded in t around 0 69.8%
*-commutative69.8%
associate-*l*69.8%
*-commutative69.8%
associate-*r*69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in z around 0 69.8%
associate-*r*69.8%
*-commutative69.8%
associate-*r*69.8%
Simplified69.8%
Final simplification63.3%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.9e-230)
(* -9.0 (* y (* z t)))
(if (<= t 6.2e+68)
(+ (* 27.0 (* a b)) (* x 2.0))
(- (* x 2.0) (* t (* y (* z 9.0)))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = -9.0 * (y * (z * t));
} else if (t <= 6.2e+68) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-2.9d-230)) then
tmp = (-9.0d0) * (y * (z * t))
else if (t <= 6.2d+68) then
tmp = (27.0d0 * (a * b)) + (x * 2.0d0)
else
tmp = (x * 2.0d0) - (t * (y * (z * 9.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = -9.0 * (y * (z * t));
} else if (t <= 6.2e+68) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-230: tmp = -9.0 * (y * (z * t)) elif t <= 6.2e+68: tmp = (27.0 * (a * b)) + (x * 2.0) else: tmp = (x * 2.0) - (t * (y * (z * 9.0))) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(-9.0 * Float64(y * Float64(z * t))); elseif (t <= 6.2e+68) tmp = Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)); else tmp = Float64(Float64(x * 2.0) - Float64(t * Float64(y * Float64(z * 9.0)))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (t <= -2.9e-230)
tmp = -9.0 * (y * (z * t));
elseif (t <= 6.2e+68)
tmp = (27.0 * (a * b)) + (x * 2.0);
else
tmp = (x * 2.0) - (t * (y * (z * 9.0)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-230], N[(-9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+68], N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(t * N[(y * N[(z * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;-9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+68}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right) + x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - t \cdot \left(y \cdot \left(z \cdot 9\right)\right)\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in t around inf 83.2%
Taylor expanded in a around inf 75.4%
Taylor expanded in t around inf 35.3%
*-commutative35.3%
associate-*l*34.3%
*-commutative34.3%
Simplified34.3%
if -2.90000000000000005e-230 < t < 6.1999999999999997e68Initial program 88.8%
sub-neg88.8%
sub-neg88.8%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around 0 71.8%
if 6.1999999999999997e68 < t Initial program 99.8%
sub-neg99.8%
sub-neg99.8%
associate-*l*91.9%
associate-*l*91.9%
Simplified91.9%
Taylor expanded in a around 0 70.5%
sub-neg70.5%
*-commutative70.5%
associate-*r*70.5%
Applied egg-rr70.5%
Taylor expanded in t around 0 70.5%
*-commutative70.5%
associate-*l*70.5%
*-commutative70.5%
associate-*r*70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in z around 0 70.5%
associate-*r*70.4%
*-commutative70.4%
associate-*r*70.4%
Simplified70.4%
Final simplification54.9%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.9e-230)
(* -9.0 (* y (* z t)))
(if (<= t 1.4e+69)
(+ (* 27.0 (* a b)) (* x 2.0))
(- (* x 2.0) (* 9.0 (* t (* z y)))))))assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = -9.0 * (y * (z * t));
} else if (t <= 1.4e+69) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (9.0 * (t * (z * y)));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-2.9d-230)) then
tmp = (-9.0d0) * (y * (z * t))
else if (t <= 1.4d+69) then
tmp = (27.0d0 * (a * b)) + (x * 2.0d0)
else
tmp = (x * 2.0d0) - (9.0d0 * (t * (z * y)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-230) {
tmp = -9.0 * (y * (z * t));
} else if (t <= 1.4e+69) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = (x * 2.0) - (9.0 * (t * (z * y)));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-230: tmp = -9.0 * (y * (z * t)) elif t <= 1.4e+69: tmp = (27.0 * (a * b)) + (x * 2.0) else: tmp = (x * 2.0) - (9.0 * (t * (z * y))) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(-9.0 * Float64(y * Float64(z * t))); elseif (t <= 1.4e+69) tmp = Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)); else tmp = Float64(Float64(x * 2.0) - Float64(9.0 * Float64(t * Float64(z * y)))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (t <= -2.9e-230)
tmp = -9.0 * (y * (z * t));
elseif (t <= 1.4e+69)
tmp = (27.0 * (a * b)) + (x * 2.0);
else
tmp = (x * 2.0) - (9.0 * (t * (z * y)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-230], N[(-9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+69], N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;-9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+69}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right) + x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - 9 \cdot \left(t \cdot \left(z \cdot y\right)\right)\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 93.3%
sub-neg93.3%
sub-neg93.3%
associate-*l*90.7%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in t around inf 83.2%
Taylor expanded in a around inf 75.4%
Taylor expanded in t around inf 35.3%
*-commutative35.3%
associate-*l*34.3%
*-commutative34.3%
Simplified34.3%
if -2.90000000000000005e-230 < t < 1.39999999999999991e69Initial program 89.0%
sub-neg89.0%
sub-neg89.0%
associate-*l*99.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around 0 71.1%
if 1.39999999999999991e69 < t Initial program 99.8%
sub-neg99.8%
sub-neg99.8%
associate-*l*91.7%
associate-*l*91.7%
Simplified91.7%
Taylor expanded in a around 0 69.8%
Final simplification54.5%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z -8.5e+50) (* -9.0 (* z (* y t))) (if (<= z 1.56e-7) (+ (* 27.0 (* a b)) (* x 2.0)) (* t (* y (* z -9.0))))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -8.5e+50) {
tmp = -9.0 * (z * (y * t));
} else if (z <= 1.56e-7) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = t * (y * (z * -9.0));
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (z <= (-8.5d+50)) then
tmp = (-9.0d0) * (z * (y * t))
else if (z <= 1.56d-7) then
tmp = (27.0d0 * (a * b)) + (x * 2.0d0)
else
tmp = t * (y * (z * (-9.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -8.5e+50) {
tmp = -9.0 * (z * (y * t));
} else if (z <= 1.56e-7) {
tmp = (27.0 * (a * b)) + (x * 2.0);
} else {
tmp = t * (y * (z * -9.0));
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if z <= -8.5e+50: tmp = -9.0 * (z * (y * t)) elif z <= 1.56e-7: tmp = (27.0 * (a * b)) + (x * 2.0) else: tmp = t * (y * (z * -9.0)) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -8.5e+50) tmp = Float64(-9.0 * Float64(z * Float64(y * t))); elseif (z <= 1.56e-7) tmp = Float64(Float64(27.0 * Float64(a * b)) + Float64(x * 2.0)); else tmp = Float64(t * Float64(y * Float64(z * -9.0))); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (z <= -8.5e+50)
tmp = -9.0 * (z * (y * t));
elseif (z <= 1.56e-7)
tmp = (27.0 * (a * b)) + (x * 2.0);
else
tmp = t * (y * (z * -9.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -8.5e+50], N[(-9.0 * N[(z * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.56e-7], N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], N[(t * N[(y * N[(z * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+50}:\\
\;\;\;\;-9 \cdot \left(z \cdot \left(y \cdot t\right)\right)\\
\mathbf{elif}\;z \leq 1.56 \cdot 10^{-7}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right) + x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(z \cdot -9\right)\right)\\
\end{array}
\end{array}
if z < -8.49999999999999961e50Initial program 77.1%
sub-neg77.1%
sub-neg77.1%
associate-*l*86.1%
associate-*l*86.1%
Simplified86.1%
Taylor expanded in t around inf 70.1%
associate-/l*67.8%
Applied egg-rr67.8%
Taylor expanded in t around inf 53.9%
*-commutative53.9%
*-commutative53.9%
associate-*l*69.6%
*-commutative69.6%
Simplified69.6%
if -8.49999999999999961e50 < z < 1.55999999999999994e-7Initial program 98.6%
sub-neg98.6%
sub-neg98.6%
associate-*l*99.1%
associate-*l*99.1%
Simplified99.1%
Taylor expanded in y around 0 80.9%
if 1.55999999999999994e-7 < z Initial program 90.4%
sub-neg90.4%
sub-neg90.4%
associate-*l*89.4%
associate-*l*88.1%
Simplified88.1%
+-commutative88.1%
associate-+r-88.1%
associate-*r*89.4%
*-commutative89.4%
associate-*l*89.4%
associate-*l*89.5%
associate-*r*89.5%
Applied egg-rr89.5%
Taylor expanded in y around inf 46.0%
metadata-eval46.0%
distribute-lft-neg-in46.0%
associate-*r*46.0%
*-commutative46.0%
associate-*r*46.0%
*-commutative46.0%
associate-*r*46.0%
*-commutative46.0%
associate-*r*46.0%
*-commutative46.0%
distribute-rgt-neg-in46.0%
distribute-rgt-neg-in46.0%
distribute-lft-neg-in46.0%
metadata-eval46.0%
*-commutative46.0%
Simplified46.0%
Final simplification69.3%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (or (<= x -1.25e+101) (not (<= x 1.35e+124))) (* x 2.0) (* a (* 27.0 b))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -1.25e+101) || !(x <= 1.35e+124)) {
tmp = x * 2.0;
} else {
tmp = a * (27.0 * b);
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((x <= (-1.25d+101)) .or. (.not. (x <= 1.35d+124))) then
tmp = x * 2.0d0
else
tmp = a * (27.0d0 * b)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -1.25e+101) || !(x <= 1.35e+124)) {
tmp = x * 2.0;
} else {
tmp = a * (27.0 * b);
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if (x <= -1.25e+101) or not (x <= 1.35e+124): tmp = x * 2.0 else: tmp = a * (27.0 * b) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if ((x <= -1.25e+101) || !(x <= 1.35e+124)) tmp = Float64(x * 2.0); else tmp = Float64(a * Float64(27.0 * b)); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if ((x <= -1.25e+101) || ~((x <= 1.35e+124)))
tmp = x * 2.0;
else
tmp = a * (27.0 * b);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -1.25e+101], N[Not[LessEqual[x, 1.35e+124]], $MachinePrecision]], N[(x * 2.0), $MachinePrecision], N[(a * N[(27.0 * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{+101} \lor \neg \left(x \leq 1.35 \cdot 10^{+124}\right):\\
\;\;\;\;x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(27 \cdot b\right)\\
\end{array}
\end{array}
if x < -1.24999999999999997e101 or 1.34999999999999989e124 < x Initial program 97.0%
sub-neg97.0%
sub-neg97.0%
associate-*l*89.6%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around inf 66.5%
if -1.24999999999999997e101 < x < 1.34999999999999989e124Initial program 91.4%
sub-neg91.4%
sub-neg91.4%
associate-*l*95.8%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in a around inf 47.7%
associate-*r*47.7%
*-commutative47.7%
associate-*r*47.7%
Simplified47.7%
Final simplification52.3%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (or (<= x -1.95e+98) (not (<= x 3.3e+124))) (* x 2.0) (* 27.0 (* a b))))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -1.95e+98) || !(x <= 3.3e+124)) {
tmp = x * 2.0;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((x <= (-1.95d+98)) .or. (.not. (x <= 3.3d+124))) then
tmp = x * 2.0d0
else
tmp = 27.0d0 * (a * b)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -1.95e+98) || !(x <= 3.3e+124)) {
tmp = x * 2.0;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): tmp = 0 if (x <= -1.95e+98) or not (x <= 3.3e+124): tmp = x * 2.0 else: tmp = 27.0 * (a * b) return tmp
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) tmp = 0.0 if ((x <= -1.95e+98) || !(x <= 3.3e+124)) tmp = Float64(x * 2.0); else tmp = Float64(27.0 * Float64(a * b)); end return tmp end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if ((x <= -1.95e+98) || ~((x <= 3.3e+124)))
tmp = x * 2.0;
else
tmp = 27.0 * (a * b);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -1.95e+98], N[Not[LessEqual[x, 3.3e+124]], $MachinePrecision]], N[(x * 2.0), $MachinePrecision], N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.95 \cdot 10^{+98} \lor \neg \left(x \leq 3.3 \cdot 10^{+124}\right):\\
\;\;\;\;x \cdot 2\\
\mathbf{else}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if x < -1.95e98 or 3.30000000000000015e124 < x Initial program 97.0%
sub-neg97.0%
sub-neg97.0%
associate-*l*89.6%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around inf 66.5%
if -1.95e98 < x < 3.30000000000000015e124Initial program 91.4%
sub-neg91.4%
sub-neg91.4%
associate-*l*95.8%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in a around inf 47.7%
Final simplification52.3%
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (* x 2.0))
assert(x < y && y < z && z < t && t < a && a < b);
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
return x * 2.0;
}
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b)
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
code = x * 2.0d0
end function
assert x < y && y < z && z < t && t < a && a < b;
assert x < y && y < z && z < t && t < a && a < b;
public static double code(double x, double y, double z, double t, double a, double b) {
return x * 2.0;
}
[x, y, z, t, a, b] = sort([x, y, z, t, a, b]) [x, y, z, t, a, b] = sort([x, y, z, t, a, b]) def code(x, y, z, t, a, b): return x * 2.0
x, y, z, t, a, b = sort([x, y, z, t, a, b]) x, y, z, t, a, b = sort([x, y, z, t, a, b]) function code(x, y, z, t, a, b) return Float64(x * 2.0) end
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
function tmp = code(x, y, z, t, a, b)
tmp = x * 2.0;
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := N[(x * 2.0), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\\\
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
x \cdot 2
\end{array}
Initial program 92.8%
sub-neg92.8%
sub-neg92.8%
associate-*l*94.3%
associate-*l*93.9%
Simplified93.9%
Taylor expanded in x around inf 26.6%
Final simplification26.6%
(FPCore (x y z t a b) :precision binary64 (if (< y 7.590524218811189e-161) (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* a (* 27.0 b))) (+ (- (* x 2.0) (* 9.0 (* y (* t z)))) (* (* a 27.0) b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y < 7.590524218811189e-161) {
tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + (a * (27.0 * b));
} else {
tmp = ((x * 2.0) - (9.0 * (y * (t * z)))) + ((a * 27.0) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (y < 7.590524218811189d-161) then
tmp = ((x * 2.0d0) - (((y * 9.0d0) * z) * t)) + (a * (27.0d0 * b))
else
tmp = ((x * 2.0d0) - (9.0d0 * (y * (t * z)))) + ((a * 27.0d0) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y < 7.590524218811189e-161) {
tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + (a * (27.0 * b));
} else {
tmp = ((x * 2.0) - (9.0 * (y * (t * z)))) + ((a * 27.0) * b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y < 7.590524218811189e-161: tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + (a * (27.0 * b)) else: tmp = ((x * 2.0) - (9.0 * (y * (t * z)))) + ((a * 27.0) * b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y < 7.590524218811189e-161) tmp = Float64(Float64(Float64(x * 2.0) - Float64(Float64(Float64(y * 9.0) * z) * t)) + Float64(a * Float64(27.0 * b))); else tmp = Float64(Float64(Float64(x * 2.0) - Float64(9.0 * Float64(y * Float64(t * z)))) + Float64(Float64(a * 27.0) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y < 7.590524218811189e-161) tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + (a * (27.0 * b)); else tmp = ((x * 2.0) - (9.0 * (y * (t * z)))) + ((a * 27.0) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Less[y, 7.590524218811189e-161], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(N[(y * 9.0), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(27.0 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(y * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 27.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y < 7.590524218811189 \cdot 10^{-161}:\\
\;\;\;\;\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + a \cdot \left(27 \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 2 - 9 \cdot \left(y \cdot \left(t \cdot z\right)\right)\right) + \left(a \cdot 27\right) \cdot b\\
\end{array}
\end{array}
herbie shell --seed 2024108
(FPCore (x y z t a b)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, A"
:precision binary64
:alt
(if (< y 7.590524218811189e-161) (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* a (* 27.0 b))) (+ (- (* x 2.0) (* 9.0 (* y (* t z)))) (* (* a 27.0) b)))
(+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b)))