
(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 12 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: y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z 1e-62) (fma a (* 27.0 b) (- (* x 2.0) (* 9.0 (* y (* z t))))) (fma a (* 27.0 b) (- (* x 2.0) (* z (* t (* 9.0 y)))))))
assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1e-62) {
tmp = fma(a, (27.0 * b), ((x * 2.0) - (9.0 * (y * (z * t)))));
} else {
tmp = fma(a, (27.0 * b), ((x * 2.0) - (z * (t * (9.0 * y)))));
}
return tmp;
}
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 1e-62) tmp = fma(a, Float64(27.0 * b), Float64(Float64(x * 2.0) - Float64(9.0 * Float64(y * Float64(z * t))))); else tmp = fma(a, Float64(27.0 * b), Float64(Float64(x * 2.0) - Float64(z * Float64(t * Float64(9.0 * y))))); end return tmp end
NOTE: y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1e-62], N[(a * N[(27.0 * b), $MachinePrecision] + N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(27.0 * b), $MachinePrecision] + N[(N[(x * 2.0), $MachinePrecision] - N[(z * N[(t * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq 10^{-62}:\\
\;\;\;\;\mathsf{fma}\left(a, 27 \cdot b, x \cdot 2 - 9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, 27 \cdot b, x \cdot 2 - z \cdot \left(t \cdot \left(9 \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if z < 1e-62Initial program 97.0%
+-commutative97.0%
associate-*l*96.5%
fma-def97.0%
associate-*l*98.1%
*-commutative98.1%
associate-*l*98.1%
Simplified98.1%
if 1e-62 < z Initial program 94.1%
+-commutative94.1%
associate-*l*94.1%
fma-def96.4%
associate-*l*95.0%
*-commutative95.0%
associate-*l*95.1%
Simplified95.1%
Taylor expanded in y around 0 95.1%
*-commutative95.1%
*-commutative95.1%
*-commutative95.1%
associate-*r*95.0%
associate-*l*97.3%
Simplified97.3%
Final simplification97.9%
NOTE: y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z -2.3e-150) (fma a (* 27.0 b) (- (* x 2.0) (* 9.0 (* y (* z t))))) (+ (- (* x 2.0) (* t (* z (* 9.0 y)))) (* b (* a 27.0)))))
assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3e-150) {
tmp = fma(a, (27.0 * b), ((x * 2.0) - (9.0 * (y * (z * t)))));
} else {
tmp = ((x * 2.0) - (t * (z * (9.0 * y)))) + (b * (a * 27.0));
}
return tmp;
}
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.3e-150) tmp = fma(a, Float64(27.0 * b), Float64(Float64(x * 2.0) - Float64(9.0 * Float64(y * Float64(z * t))))); else tmp = Float64(Float64(Float64(x * 2.0) - Float64(t * Float64(z * Float64(9.0 * y)))) + Float64(b * Float64(a * 27.0))); end return tmp end
NOTE: y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.3e-150], N[(a * N[(27.0 * b), $MachinePrecision] + N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(t * N[(z * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{-150}:\\
\;\;\;\;\mathsf{fma}\left(a, 27 \cdot b, x \cdot 2 - 9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 2 - t \cdot \left(z \cdot \left(9 \cdot y\right)\right)\right) + b \cdot \left(a \cdot 27\right)\\
\end{array}
\end{array}
if z < -2.30000000000000003e-150Initial program 94.0%
+-commutative94.0%
associate-*l*94.0%
fma-def95.2%
associate-*l*97.5%
*-commutative97.5%
associate-*l*97.5%
Simplified97.5%
if -2.30000000000000003e-150 < z Initial program 97.0%
Final simplification97.1%
NOTE: y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (* 9.0 y))))
(if (<= t_1 5e+303)
(+ (- (* x 2.0) (* t t_1)) (* b (* a 27.0)))
(- (* x 2.0) (* 9.0 (* y (* z t)))))))assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (9.0 * y);
double tmp;
if (t_1 <= 5e+303) {
tmp = ((x * 2.0) - (t * t_1)) + (b * (a * 27.0));
} else {
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
}
return tmp;
}
NOTE: y, z, and t 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 = z * (9.0d0 * y)
if (t_1 <= 5d+303) then
tmp = ((x * 2.0d0) - (t * t_1)) + (b * (a * 27.0d0))
else
tmp = (x * 2.0d0) - (9.0d0 * (y * (z * t)))
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (9.0 * y);
double tmp;
if (t_1 <= 5e+303) {
tmp = ((x * 2.0) - (t * t_1)) + (b * (a * 27.0));
} else {
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): t_1 = z * (9.0 * y) tmp = 0 if t_1 <= 5e+303: tmp = ((x * 2.0) - (t * t_1)) + (b * (a * 27.0)) else: tmp = (x * 2.0) - (9.0 * (y * (z * t))) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(9.0 * y)) tmp = 0.0 if (t_1 <= 5e+303) tmp = Float64(Float64(Float64(x * 2.0) - Float64(t * t_1)) + Float64(b * Float64(a * 27.0))); else tmp = Float64(Float64(x * 2.0) - Float64(9.0 * Float64(y * Float64(z * t)))); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = z * (9.0 * y);
tmp = 0.0;
if (t_1 <= 5e+303)
tmp = ((x * 2.0) - (t * t_1)) + (b * (a * 27.0));
else
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+303], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(t * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
t_1 := z \cdot \left(9 \cdot y\right)\\
\mathbf{if}\;t_1 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;\left(x \cdot 2 - t \cdot t_1\right) + b \cdot \left(a \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - 9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 y 9) z) < 4.9999999999999997e303Initial program 97.4%
if 4.9999999999999997e303 < (*.f64 (*.f64 y 9) z) Initial program 67.4%
+-commutative67.4%
associate-*l*67.4%
fma-def75.7%
associate-*l*99.9%
*-commutative99.9%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in a around 0 84.4%
Final simplification96.8%
NOTE: y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(if (<= (* x 2.0) -2e+124)
(- (* x 2.0) (* (* 9.0 y) (* z t)))
(if (<= (* x 2.0) 2e+91)
(- (* 27.0 (* a b)) (* 9.0 (* y (* z t))))
(- (* x 2.0) (* a (* b -27.0))))))assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x * 2.0) <= -2e+124) {
tmp = (x * 2.0) - ((9.0 * y) * (z * t));
} else if ((x * 2.0) <= 2e+91) {
tmp = (27.0 * (a * b)) - (9.0 * (y * (z * t)));
} else {
tmp = (x * 2.0) - (a * (b * -27.0));
}
return tmp;
}
NOTE: y, z, and t 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 * 2.0d0) <= (-2d+124)) then
tmp = (x * 2.0d0) - ((9.0d0 * y) * (z * t))
else if ((x * 2.0d0) <= 2d+91) then
tmp = (27.0d0 * (a * b)) - (9.0d0 * (y * (z * t)))
else
tmp = (x * 2.0d0) - (a * (b * (-27.0d0)))
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x * 2.0) <= -2e+124) {
tmp = (x * 2.0) - ((9.0 * y) * (z * t));
} else if ((x * 2.0) <= 2e+91) {
tmp = (27.0 * (a * b)) - (9.0 * (y * (z * t)));
} else {
tmp = (x * 2.0) - (a * (b * -27.0));
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): tmp = 0 if (x * 2.0) <= -2e+124: tmp = (x * 2.0) - ((9.0 * y) * (z * t)) elif (x * 2.0) <= 2e+91: tmp = (27.0 * (a * b)) - (9.0 * (y * (z * t))) else: tmp = (x * 2.0) - (a * (b * -27.0)) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x * 2.0) <= -2e+124) tmp = Float64(Float64(x * 2.0) - Float64(Float64(9.0 * y) * Float64(z * t))); elseif (Float64(x * 2.0) <= 2e+91) tmp = Float64(Float64(27.0 * Float64(a * b)) - Float64(9.0 * Float64(y * Float64(z * t)))); else tmp = Float64(Float64(x * 2.0) - Float64(a * Float64(b * -27.0))); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if ((x * 2.0) <= -2e+124)
tmp = (x * 2.0) - ((9.0 * y) * (z * t));
elseif ((x * 2.0) <= 2e+91)
tmp = (27.0 * (a * b)) - (9.0 * (y * (z * t)));
else
tmp = (x * 2.0) - (a * (b * -27.0));
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x * 2.0), $MachinePrecision], -2e+124], N[(N[(x * 2.0), $MachinePrecision] - N[(N[(9.0 * y), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * 2.0), $MachinePrecision], 2e+91], N[(N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(a * N[(b * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;x \cdot 2 \leq -2 \cdot 10^{+124}:\\
\;\;\;\;x \cdot 2 - \left(9 \cdot y\right) \cdot \left(z \cdot t\right)\\
\mathbf{elif}\;x \cdot 2 \leq 2 \cdot 10^{+91}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right) - 9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - a \cdot \left(b \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 x 2) < -1.9999999999999999e124Initial program 94.8%
+-commutative94.8%
associate-*l*92.4%
fma-def95.0%
associate-*l*94.9%
*-commutative94.9%
associate-*l*94.9%
Simplified94.9%
Taylor expanded in y around 0 94.9%
*-commutative94.9%
*-commutative94.9%
*-commutative94.9%
associate-*r*94.9%
associate-*l*95.0%
Simplified95.0%
Taylor expanded in a around 0 94.4%
associate-*r*94.4%
Simplified94.4%
if -1.9999999999999999e124 < (*.f64 x 2) < 2.00000000000000016e91Initial program 95.4%
+-commutative95.4%
associate-*l*95.5%
fma-def96.6%
associate-*l*97.5%
*-commutative97.5%
associate-*l*97.5%
Simplified97.5%
Taylor expanded in x around 0 86.1%
if 2.00000000000000016e91 < (*.f64 x 2) Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
neg-mul-199.8%
metadata-eval99.8%
metadata-eval99.8%
cancel-sign-sub-inv99.8%
metadata-eval99.8%
*-lft-identity99.8%
associate-*l*97.4%
associate-*l*97.4%
Simplified97.4%
Taylor expanded in y around 0 87.6%
*-commutative87.6%
associate-*r*87.6%
Simplified87.6%
Final simplification87.5%
NOTE: y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (* t (- (* 9.0 y))))))
(if (<= a -4.3e+46)
(* b (* a 27.0))
(if (<= a -9e+25)
t_1
(if (<= a -1.6e-81)
(* x 2.0)
(if (<= a 4.5e-307)
(* (* z y) (* t -9.0))
(if (<= a 7.5e-184)
(* x 2.0)
(if (<= a 2.7e-10) t_1 (* 27.0 (* a b))))))))))assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (t * -(9.0 * y));
double tmp;
if (a <= -4.3e+46) {
tmp = b * (a * 27.0);
} else if (a <= -9e+25) {
tmp = t_1;
} else if (a <= -1.6e-81) {
tmp = x * 2.0;
} else if (a <= 4.5e-307) {
tmp = (z * y) * (t * -9.0);
} else if (a <= 7.5e-184) {
tmp = x * 2.0;
} else if (a <= 2.7e-10) {
tmp = t_1;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
NOTE: y, z, and t 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 = z * (t * -(9.0d0 * y))
if (a <= (-4.3d+46)) then
tmp = b * (a * 27.0d0)
else if (a <= (-9d+25)) then
tmp = t_1
else if (a <= (-1.6d-81)) then
tmp = x * 2.0d0
else if (a <= 4.5d-307) then
tmp = (z * y) * (t * (-9.0d0))
else if (a <= 7.5d-184) then
tmp = x * 2.0d0
else if (a <= 2.7d-10) then
tmp = t_1
else
tmp = 27.0d0 * (a * b)
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (t * -(9.0 * y));
double tmp;
if (a <= -4.3e+46) {
tmp = b * (a * 27.0);
} else if (a <= -9e+25) {
tmp = t_1;
} else if (a <= -1.6e-81) {
tmp = x * 2.0;
} else if (a <= 4.5e-307) {
tmp = (z * y) * (t * -9.0);
} else if (a <= 7.5e-184) {
tmp = x * 2.0;
} else if (a <= 2.7e-10) {
tmp = t_1;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): t_1 = z * (t * -(9.0 * y)) tmp = 0 if a <= -4.3e+46: tmp = b * (a * 27.0) elif a <= -9e+25: tmp = t_1 elif a <= -1.6e-81: tmp = x * 2.0 elif a <= 4.5e-307: tmp = (z * y) * (t * -9.0) elif a <= 7.5e-184: tmp = x * 2.0 elif a <= 2.7e-10: tmp = t_1 else: tmp = 27.0 * (a * b) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(t * Float64(-Float64(9.0 * y)))) tmp = 0.0 if (a <= -4.3e+46) tmp = Float64(b * Float64(a * 27.0)); elseif (a <= -9e+25) tmp = t_1; elseif (a <= -1.6e-81) tmp = Float64(x * 2.0); elseif (a <= 4.5e-307) tmp = Float64(Float64(z * y) * Float64(t * -9.0)); elseif (a <= 7.5e-184) tmp = Float64(x * 2.0); elseif (a <= 2.7e-10) tmp = t_1; else tmp = Float64(27.0 * Float64(a * b)); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = z * (t * -(9.0 * y));
tmp = 0.0;
if (a <= -4.3e+46)
tmp = b * (a * 27.0);
elseif (a <= -9e+25)
tmp = t_1;
elseif (a <= -1.6e-81)
tmp = x * 2.0;
elseif (a <= 4.5e-307)
tmp = (z * y) * (t * -9.0);
elseif (a <= 7.5e-184)
tmp = x * 2.0;
elseif (a <= 2.7e-10)
tmp = t_1;
else
tmp = 27.0 * (a * b);
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(t * (-N[(9.0 * y), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.3e+46], N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9e+25], t$95$1, If[LessEqual[a, -1.6e-81], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 4.5e-307], N[(N[(z * y), $MachinePrecision] * N[(t * -9.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-184], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 2.7e-10], t$95$1, N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
t_1 := z \cdot \left(t \cdot \left(-9 \cdot y\right)\right)\\
\mathbf{if}\;a \leq -4.3 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{elif}\;a \leq -9 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-81}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-307}:\\
\;\;\;\;\left(z \cdot y\right) \cdot \left(t \cdot -9\right)\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-184}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -4.30000000000000005e46Initial program 91.9%
+-commutative91.9%
associate-*l*91.9%
fma-def96.7%
associate-*l*99.8%
*-commutative99.8%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in a around inf 59.4%
associate-*r*59.5%
*-commutative59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
if -4.30000000000000005e46 < a < -9.0000000000000006e25 or 7.4999999999999995e-184 < a < 2.7e-10Initial program 97.7%
+-commutative97.7%
associate-*l*97.8%
fma-def97.8%
associate-*l*99.8%
*-commutative99.8%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in y around inf 55.2%
associate-*r*55.2%
*-commutative55.2%
*-commutative55.2%
associate-*l*55.1%
associate-*r*55.1%
associate-*l*45.6%
Simplified45.6%
*-commutative45.6%
associate-*r*45.6%
*-commutative45.6%
metadata-eval45.6%
distribute-rgt-neg-in45.6%
associate-*r*45.6%
Applied egg-rr45.6%
if -9.0000000000000006e25 < a < -1.6e-81 or 4.49999999999999989e-307 < a < 7.4999999999999995e-184Initial program 97.6%
+-commutative97.6%
associate-*l*97.6%
fma-def97.6%
associate-*l*97.0%
*-commutative97.0%
associate-*l*97.1%
Simplified97.1%
Taylor expanded in x around inf 48.3%
if -1.6e-81 < a < 4.49999999999999989e-307Initial program 94.9%
+-commutative94.9%
associate-*l*92.4%
fma-def92.4%
associate-*l*97.4%
*-commutative97.4%
associate-*l*97.4%
Simplified97.4%
Taylor expanded in y around inf 59.9%
*-commutative59.9%
*-commutative59.9%
associate-*r*57.4%
associate-*r*57.4%
Simplified57.4%
if 2.7e-10 < a Initial program 98.2%
+-commutative98.2%
associate-*l*98.3%
fma-def98.2%
associate-*l*92.2%
*-commutative92.2%
associate-*l*92.2%
Simplified92.2%
Taylor expanded in a around inf 62.0%
Final simplification55.2%
NOTE: y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (* y (* z t)) -9.0)))
(if (<= a -1.4e+48)
(* b (* a 27.0))
(if (<= a -1.45e+26)
t_1
(if (<= a -1.95e-81)
(* x 2.0)
(if (<= a 1.2e-308)
t_1
(if (<= a 9e-184)
(* x 2.0)
(if (<= a 2.4e-88) t_1 (* 27.0 (* a b))))))))))assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * (z * t)) * -9.0;
double tmp;
if (a <= -1.4e+48) {
tmp = b * (a * 27.0);
} else if (a <= -1.45e+26) {
tmp = t_1;
} else if (a <= -1.95e-81) {
tmp = x * 2.0;
} else if (a <= 1.2e-308) {
tmp = t_1;
} else if (a <= 9e-184) {
tmp = x * 2.0;
} else if (a <= 2.4e-88) {
tmp = t_1;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
NOTE: y, z, and t 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 = (y * (z * t)) * (-9.0d0)
if (a <= (-1.4d+48)) then
tmp = b * (a * 27.0d0)
else if (a <= (-1.45d+26)) then
tmp = t_1
else if (a <= (-1.95d-81)) then
tmp = x * 2.0d0
else if (a <= 1.2d-308) then
tmp = t_1
else if (a <= 9d-184) then
tmp = x * 2.0d0
else if (a <= 2.4d-88) then
tmp = t_1
else
tmp = 27.0d0 * (a * b)
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * (z * t)) * -9.0;
double tmp;
if (a <= -1.4e+48) {
tmp = b * (a * 27.0);
} else if (a <= -1.45e+26) {
tmp = t_1;
} else if (a <= -1.95e-81) {
tmp = x * 2.0;
} else if (a <= 1.2e-308) {
tmp = t_1;
} else if (a <= 9e-184) {
tmp = x * 2.0;
} else if (a <= 2.4e-88) {
tmp = t_1;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): t_1 = (y * (z * t)) * -9.0 tmp = 0 if a <= -1.4e+48: tmp = b * (a * 27.0) elif a <= -1.45e+26: tmp = t_1 elif a <= -1.95e-81: tmp = x * 2.0 elif a <= 1.2e-308: tmp = t_1 elif a <= 9e-184: tmp = x * 2.0 elif a <= 2.4e-88: tmp = t_1 else: tmp = 27.0 * (a * b) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(z * t)) * -9.0) tmp = 0.0 if (a <= -1.4e+48) tmp = Float64(b * Float64(a * 27.0)); elseif (a <= -1.45e+26) tmp = t_1; elseif (a <= -1.95e-81) tmp = Float64(x * 2.0); elseif (a <= 1.2e-308) tmp = t_1; elseif (a <= 9e-184) tmp = Float64(x * 2.0); elseif (a <= 2.4e-88) tmp = t_1; else tmp = Float64(27.0 * Float64(a * b)); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = (y * (z * t)) * -9.0;
tmp = 0.0;
if (a <= -1.4e+48)
tmp = b * (a * 27.0);
elseif (a <= -1.45e+26)
tmp = t_1;
elseif (a <= -1.95e-81)
tmp = x * 2.0;
elseif (a <= 1.2e-308)
tmp = t_1;
elseif (a <= 9e-184)
tmp = x * 2.0;
elseif (a <= 2.4e-88)
tmp = t_1;
else
tmp = 27.0 * (a * b);
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision] * -9.0), $MachinePrecision]}, If[LessEqual[a, -1.4e+48], N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.45e+26], t$95$1, If[LessEqual[a, -1.95e-81], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 1.2e-308], t$95$1, If[LessEqual[a, 9e-184], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 2.4e-88], t$95$1, N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
t_1 := \left(y \cdot \left(z \cdot t\right)\right) \cdot -9\\
\mathbf{if}\;a \leq -1.4 \cdot 10^{+48}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{elif}\;a \leq -1.45 \cdot 10^{+26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-81}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-308}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-184}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -1.40000000000000006e48Initial program 91.9%
+-commutative91.9%
associate-*l*91.9%
fma-def96.7%
associate-*l*99.8%
*-commutative99.8%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in a around inf 59.4%
associate-*r*59.5%
*-commutative59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
if -1.40000000000000006e48 < a < -1.45e26 or -1.94999999999999992e-81 < a < 1.1999999999999998e-308 or 9.0000000000000003e-184 < a < 2.4e-88Initial program 96.9%
+-commutative96.9%
associate-*l*95.4%
fma-def95.4%
associate-*l*98.4%
*-commutative98.4%
associate-*l*98.3%
Simplified98.3%
Taylor expanded in y around inf 57.0%
if -1.45e26 < a < -1.94999999999999992e-81 or 1.1999999999999998e-308 < a < 9.0000000000000003e-184Initial program 97.6%
+-commutative97.6%
associate-*l*97.6%
fma-def97.6%
associate-*l*97.0%
*-commutative97.0%
associate-*l*97.1%
Simplified97.1%
Taylor expanded in x around inf 48.3%
if 2.4e-88 < a Initial program 97.5%
+-commutative97.5%
associate-*l*97.6%
fma-def97.6%
associate-*l*94.2%
*-commutative94.2%
associate-*l*94.3%
Simplified94.3%
Taylor expanded in a around inf 51.8%
Final simplification54.4%
NOTE: y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (* y (* z t)) -9.0)))
(if (<= a -6.8e+44)
(* b (* a 27.0))
(if (<= a -2.1e+25)
t_1
(if (<= a -4e-82)
(* x 2.0)
(if (<= a 1.3e-305)
t_1
(if (<= a 4.2e-182)
(* x 2.0)
(if (<= a 7e-11) (* z (* y (* t -9.0))) (* 27.0 (* a b))))))))))assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * (z * t)) * -9.0;
double tmp;
if (a <= -6.8e+44) {
tmp = b * (a * 27.0);
} else if (a <= -2.1e+25) {
tmp = t_1;
} else if (a <= -4e-82) {
tmp = x * 2.0;
} else if (a <= 1.3e-305) {
tmp = t_1;
} else if (a <= 4.2e-182) {
tmp = x * 2.0;
} else if (a <= 7e-11) {
tmp = z * (y * (t * -9.0));
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
NOTE: y, z, and t 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 = (y * (z * t)) * (-9.0d0)
if (a <= (-6.8d+44)) then
tmp = b * (a * 27.0d0)
else if (a <= (-2.1d+25)) then
tmp = t_1
else if (a <= (-4d-82)) then
tmp = x * 2.0d0
else if (a <= 1.3d-305) then
tmp = t_1
else if (a <= 4.2d-182) then
tmp = x * 2.0d0
else if (a <= 7d-11) then
tmp = z * (y * (t * (-9.0d0)))
else
tmp = 27.0d0 * (a * b)
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * (z * t)) * -9.0;
double tmp;
if (a <= -6.8e+44) {
tmp = b * (a * 27.0);
} else if (a <= -2.1e+25) {
tmp = t_1;
} else if (a <= -4e-82) {
tmp = x * 2.0;
} else if (a <= 1.3e-305) {
tmp = t_1;
} else if (a <= 4.2e-182) {
tmp = x * 2.0;
} else if (a <= 7e-11) {
tmp = z * (y * (t * -9.0));
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): t_1 = (y * (z * t)) * -9.0 tmp = 0 if a <= -6.8e+44: tmp = b * (a * 27.0) elif a <= -2.1e+25: tmp = t_1 elif a <= -4e-82: tmp = x * 2.0 elif a <= 1.3e-305: tmp = t_1 elif a <= 4.2e-182: tmp = x * 2.0 elif a <= 7e-11: tmp = z * (y * (t * -9.0)) else: tmp = 27.0 * (a * b) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(z * t)) * -9.0) tmp = 0.0 if (a <= -6.8e+44) tmp = Float64(b * Float64(a * 27.0)); elseif (a <= -2.1e+25) tmp = t_1; elseif (a <= -4e-82) tmp = Float64(x * 2.0); elseif (a <= 1.3e-305) tmp = t_1; elseif (a <= 4.2e-182) tmp = Float64(x * 2.0); elseif (a <= 7e-11) tmp = Float64(z * Float64(y * Float64(t * -9.0))); else tmp = Float64(27.0 * Float64(a * b)); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = (y * (z * t)) * -9.0;
tmp = 0.0;
if (a <= -6.8e+44)
tmp = b * (a * 27.0);
elseif (a <= -2.1e+25)
tmp = t_1;
elseif (a <= -4e-82)
tmp = x * 2.0;
elseif (a <= 1.3e-305)
tmp = t_1;
elseif (a <= 4.2e-182)
tmp = x * 2.0;
elseif (a <= 7e-11)
tmp = z * (y * (t * -9.0));
else
tmp = 27.0 * (a * b);
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision] * -9.0), $MachinePrecision]}, If[LessEqual[a, -6.8e+44], N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.1e+25], t$95$1, If[LessEqual[a, -4e-82], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 1.3e-305], t$95$1, If[LessEqual[a, 4.2e-182], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 7e-11], N[(z * N[(y * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
t_1 := \left(y \cdot \left(z \cdot t\right)\right) \cdot -9\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{+44}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-82}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-182}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-11}:\\
\;\;\;\;z \cdot \left(y \cdot \left(t \cdot -9\right)\right)\\
\mathbf{else}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -6.8e44Initial program 92.0%
+-commutative92.0%
associate-*l*92.0%
fma-def96.7%
associate-*l*99.8%
*-commutative99.8%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in a around inf 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
if -6.8e44 < a < -2.0999999999999999e25 or -4e-82 < a < 1.3000000000000001e-305Initial program 95.6%
+-commutative95.6%
associate-*l*93.4%
fma-def93.4%
associate-*l*97.7%
*-commutative97.7%
associate-*l*97.6%
Simplified97.6%
Taylor expanded in y around inf 61.0%
if -2.0999999999999999e25 < a < -4e-82 or 1.3000000000000001e-305 < a < 4.2000000000000001e-182Initial program 97.6%
+-commutative97.6%
associate-*l*97.6%
fma-def97.6%
associate-*l*97.0%
*-commutative97.0%
associate-*l*97.1%
Simplified97.1%
Taylor expanded in x around inf 48.3%
if 4.2000000000000001e-182 < a < 7.00000000000000038e-11Initial program 97.4%
+-commutative97.4%
associate-*l*97.6%
fma-def97.6%
associate-*l*99.8%
*-commutative99.8%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in y around inf 54.5%
associate-*r*54.5%
*-commutative54.5%
*-commutative54.5%
associate-*l*54.4%
associate-*r*54.4%
associate-*l*43.3%
Simplified43.3%
if 7.00000000000000038e-11 < a Initial program 98.2%
+-commutative98.2%
associate-*l*98.3%
fma-def98.2%
associate-*l*92.2%
*-commutative92.2%
associate-*l*92.2%
Simplified92.2%
Taylor expanded in a around inf 62.0%
Final simplification55.9%
NOTE: y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (* z y) (* t -9.0))))
(if (<= a -1.4e+46)
(* b (* a 27.0))
(if (<= a -1.9e+25)
(* (* y (* z t)) -9.0)
(if (<= a -1.75e-82)
(* x 2.0)
(if (<= a 3.2e-305)
t_1
(if (<= a 1.65e-169)
(* x 2.0)
(if (<= a 1.32e-12) t_1 (* 27.0 (* a b))))))))))assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * y) * (t * -9.0);
double tmp;
if (a <= -1.4e+46) {
tmp = b * (a * 27.0);
} else if (a <= -1.9e+25) {
tmp = (y * (z * t)) * -9.0;
} else if (a <= -1.75e-82) {
tmp = x * 2.0;
} else if (a <= 3.2e-305) {
tmp = t_1;
} else if (a <= 1.65e-169) {
tmp = x * 2.0;
} else if (a <= 1.32e-12) {
tmp = t_1;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
NOTE: y, z, and t 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 = (z * y) * (t * (-9.0d0))
if (a <= (-1.4d+46)) then
tmp = b * (a * 27.0d0)
else if (a <= (-1.9d+25)) then
tmp = (y * (z * t)) * (-9.0d0)
else if (a <= (-1.75d-82)) then
tmp = x * 2.0d0
else if (a <= 3.2d-305) then
tmp = t_1
else if (a <= 1.65d-169) then
tmp = x * 2.0d0
else if (a <= 1.32d-12) then
tmp = t_1
else
tmp = 27.0d0 * (a * b)
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * y) * (t * -9.0);
double tmp;
if (a <= -1.4e+46) {
tmp = b * (a * 27.0);
} else if (a <= -1.9e+25) {
tmp = (y * (z * t)) * -9.0;
} else if (a <= -1.75e-82) {
tmp = x * 2.0;
} else if (a <= 3.2e-305) {
tmp = t_1;
} else if (a <= 1.65e-169) {
tmp = x * 2.0;
} else if (a <= 1.32e-12) {
tmp = t_1;
} else {
tmp = 27.0 * (a * b);
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): t_1 = (z * y) * (t * -9.0) tmp = 0 if a <= -1.4e+46: tmp = b * (a * 27.0) elif a <= -1.9e+25: tmp = (y * (z * t)) * -9.0 elif a <= -1.75e-82: tmp = x * 2.0 elif a <= 3.2e-305: tmp = t_1 elif a <= 1.65e-169: tmp = x * 2.0 elif a <= 1.32e-12: tmp = t_1 else: tmp = 27.0 * (a * b) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * y) * Float64(t * -9.0)) tmp = 0.0 if (a <= -1.4e+46) tmp = Float64(b * Float64(a * 27.0)); elseif (a <= -1.9e+25) tmp = Float64(Float64(y * Float64(z * t)) * -9.0); elseif (a <= -1.75e-82) tmp = Float64(x * 2.0); elseif (a <= 3.2e-305) tmp = t_1; elseif (a <= 1.65e-169) tmp = Float64(x * 2.0); elseif (a <= 1.32e-12) tmp = t_1; else tmp = Float64(27.0 * Float64(a * b)); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
t_1 = (z * y) * (t * -9.0);
tmp = 0.0;
if (a <= -1.4e+46)
tmp = b * (a * 27.0);
elseif (a <= -1.9e+25)
tmp = (y * (z * t)) * -9.0;
elseif (a <= -1.75e-82)
tmp = x * 2.0;
elseif (a <= 3.2e-305)
tmp = t_1;
elseif (a <= 1.65e-169)
tmp = x * 2.0;
elseif (a <= 1.32e-12)
tmp = t_1;
else
tmp = 27.0 * (a * b);
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.4e+46], N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.9e+25], N[(N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision] * -9.0), $MachinePrecision], If[LessEqual[a, -1.75e-82], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 3.2e-305], t$95$1, If[LessEqual[a, 1.65e-169], N[(x * 2.0), $MachinePrecision], If[LessEqual[a, 1.32e-12], t$95$1, N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot \left(t \cdot -9\right)\\
\mathbf{if}\;a \leq -1.4 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;\left(y \cdot \left(z \cdot t\right)\right) \cdot -9\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{-82}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-169}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;a \leq 1.32 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -1.40000000000000009e46Initial program 92.0%
+-commutative92.0%
associate-*l*92.0%
fma-def96.7%
associate-*l*99.8%
*-commutative99.8%
associate-*l*99.8%
Simplified99.8%
Taylor expanded in a around inf 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
if -1.40000000000000009e46 < a < -1.9e25Initial program 99.5%
+-commutative99.5%
associate-*l*99.5%
fma-def99.2%
associate-*l*99.7%
*-commutative99.7%
associate-*l*99.2%
Simplified99.2%
Taylor expanded in y around inf 68.2%
if -1.9e25 < a < -1.7499999999999999e-82 or 3.20000000000000009e-305 < a < 1.65000000000000013e-169Initial program 97.6%
+-commutative97.6%
associate-*l*97.7%
fma-def97.7%
associate-*l*97.2%
*-commutative97.2%
associate-*l*97.2%
Simplified97.2%
Taylor expanded in x around inf 46.4%
if -1.7499999999999999e-82 < a < 3.20000000000000009e-305 or 1.65000000000000013e-169 < a < 1.32e-12Initial program 96.2%
+-commutative96.2%
associate-*l*95.0%
fma-def95.0%
associate-*l*98.7%
*-commutative98.7%
associate-*l*98.7%
Simplified98.7%
Taylor expanded in y around inf 57.2%
*-commutative57.2%
*-commutative57.2%
associate-*r*54.7%
associate-*r*54.7%
Simplified54.7%
if 1.32e-12 < a Initial program 98.2%
+-commutative98.2%
associate-*l*98.3%
fma-def98.2%
associate-*l*92.2%
*-commutative92.2%
associate-*l*92.2%
Simplified92.2%
Taylor expanded in a around inf 62.0%
Final simplification56.6%
NOTE: y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (or (<= a -1.15e+38) (not (<= a 2.5e-88))) (- (* x 2.0) (* a (* b -27.0))) (- (* x 2.0) (* 9.0 (* y (* z t))))))
assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.15e+38) || !(a <= 2.5e-88)) {
tmp = (x * 2.0) - (a * (b * -27.0));
} else {
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
}
return tmp;
}
NOTE: y, z, and t 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 ((a <= (-1.15d+38)) .or. (.not. (a <= 2.5d-88))) then
tmp = (x * 2.0d0) - (a * (b * (-27.0d0)))
else
tmp = (x * 2.0d0) - (9.0d0 * (y * (z * t)))
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.15e+38) || !(a <= 2.5e-88)) {
tmp = (x * 2.0) - (a * (b * -27.0));
} else {
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): tmp = 0 if (a <= -1.15e+38) or not (a <= 2.5e-88): tmp = (x * 2.0) - (a * (b * -27.0)) else: tmp = (x * 2.0) - (9.0 * (y * (z * t))) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -1.15e+38) || !(a <= 2.5e-88)) tmp = Float64(Float64(x * 2.0) - Float64(a * Float64(b * -27.0))); else tmp = Float64(Float64(x * 2.0) - Float64(9.0 * Float64(y * Float64(z * t)))); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if ((a <= -1.15e+38) || ~((a <= 2.5e-88)))
tmp = (x * 2.0) - (a * (b * -27.0));
else
tmp = (x * 2.0) - (9.0 * (y * (z * t)));
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.15e+38], N[Not[LessEqual[a, 2.5e-88]], $MachinePrecision]], N[(N[(x * 2.0), $MachinePrecision] - N[(a * N[(b * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] - N[(9.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{+38} \lor \neg \left(a \leq 2.5 \cdot 10^{-88}\right):\\
\;\;\;\;x \cdot 2 - a \cdot \left(b \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 - 9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\end{array}
\end{array}
if a < -1.1500000000000001e38 or 2.50000000000000004e-88 < a Initial program 95.2%
associate-+l-95.2%
sub-neg95.2%
neg-mul-195.2%
metadata-eval95.2%
metadata-eval95.2%
cancel-sign-sub-inv95.2%
metadata-eval95.2%
*-lft-identity95.2%
associate-*l*94.6%
associate-*l*94.6%
Simplified94.6%
Taylor expanded in y around 0 74.0%
*-commutative74.0%
associate-*r*74.0%
Simplified74.0%
if -1.1500000000000001e38 < a < 2.50000000000000004e-88Initial program 97.1%
+-commutative97.1%
associate-*l*96.3%
fma-def96.3%
associate-*l*97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
Taylor expanded in a around 0 88.6%
Final simplification80.0%
NOTE: y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= z -3.5e-11) (* (* y (* z t)) -9.0) (if (<= z 1.7e+20) (- (* x 2.0) (* a (* b -27.0))) (* (* z y) (* t -9.0)))))
assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.5e-11) {
tmp = (y * (z * t)) * -9.0;
} else if (z <= 1.7e+20) {
tmp = (x * 2.0) - (a * (b * -27.0));
} else {
tmp = (z * y) * (t * -9.0);
}
return tmp;
}
NOTE: y, z, and t 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 <= (-3.5d-11)) then
tmp = (y * (z * t)) * (-9.0d0)
else if (z <= 1.7d+20) then
tmp = (x * 2.0d0) - (a * (b * (-27.0d0)))
else
tmp = (z * y) * (t * (-9.0d0))
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.5e-11) {
tmp = (y * (z * t)) * -9.0;
} else if (z <= 1.7e+20) {
tmp = (x * 2.0) - (a * (b * -27.0));
} else {
tmp = (z * y) * (t * -9.0);
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): tmp = 0 if z <= -3.5e-11: tmp = (y * (z * t)) * -9.0 elif z <= 1.7e+20: tmp = (x * 2.0) - (a * (b * -27.0)) else: tmp = (z * y) * (t * -9.0) return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.5e-11) tmp = Float64(Float64(y * Float64(z * t)) * -9.0); elseif (z <= 1.7e+20) tmp = Float64(Float64(x * 2.0) - Float64(a * Float64(b * -27.0))); else tmp = Float64(Float64(z * y) * Float64(t * -9.0)); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (z <= -3.5e-11)
tmp = (y * (z * t)) * -9.0;
elseif (z <= 1.7e+20)
tmp = (x * 2.0) - (a * (b * -27.0));
else
tmp = (z * y) * (t * -9.0);
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.5e-11], N[(N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision] * -9.0), $MachinePrecision], If[LessEqual[z, 1.7e+20], N[(N[(x * 2.0), $MachinePrecision] - N[(a * N[(b * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{-11}:\\
\;\;\;\;\left(y \cdot \left(z \cdot t\right)\right) \cdot -9\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;x \cdot 2 - a \cdot \left(b \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot \left(t \cdot -9\right)\\
\end{array}
\end{array}
if z < -3.50000000000000019e-11Initial program 91.5%
+-commutative91.5%
associate-*l*91.6%
fma-def93.2%
associate-*l*96.5%
*-commutative96.5%
associate-*l*96.5%
Simplified96.5%
Taylor expanded in y around inf 50.2%
if -3.50000000000000019e-11 < z < 1.7e20Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
neg-mul-199.8%
metadata-eval99.8%
metadata-eval99.8%
cancel-sign-sub-inv99.8%
metadata-eval99.8%
*-lft-identity99.8%
associate-*l*99.6%
associate-*l*98.9%
Simplified98.9%
Taylor expanded in y around 0 77.7%
*-commutative77.7%
associate-*r*77.0%
Simplified77.0%
if 1.7e20 < z Initial program 92.4%
+-commutative92.4%
associate-*l*92.4%
fma-def95.5%
associate-*l*94.0%
*-commutative94.0%
associate-*l*94.0%
Simplified94.0%
Taylor expanded in y around inf 55.3%
*-commutative55.3%
*-commutative55.3%
associate-*r*52.3%
associate-*r*52.3%
Simplified52.3%
Final simplification64.6%
NOTE: y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (if (<= x -4.3e+121) (* x 2.0) (if (<= x 6.5e+131) (* 27.0 (* a b)) (* x 2.0))))
assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -4.3e+121) {
tmp = x * 2.0;
} else if (x <= 6.5e+131) {
tmp = 27.0 * (a * b);
} else {
tmp = x * 2.0;
}
return tmp;
}
NOTE: y, z, and t 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 <= (-4.3d+121)) then
tmp = x * 2.0d0
else if (x <= 6.5d+131) then
tmp = 27.0d0 * (a * b)
else
tmp = x * 2.0d0
end if
code = tmp
end function
assert y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -4.3e+121) {
tmp = x * 2.0;
} else if (x <= 6.5e+131) {
tmp = 27.0 * (a * b);
} else {
tmp = x * 2.0;
}
return tmp;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): tmp = 0 if x <= -4.3e+121: tmp = x * 2.0 elif x <= 6.5e+131: tmp = 27.0 * (a * b) else: tmp = x * 2.0 return tmp
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -4.3e+121) tmp = Float64(x * 2.0); elseif (x <= 6.5e+131) tmp = Float64(27.0 * Float64(a * b)); else tmp = Float64(x * 2.0); end return tmp end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp_2 = code(x, y, z, t, a, b)
tmp = 0.0;
if (x <= -4.3e+121)
tmp = x * 2.0;
elseif (x <= 6.5e+131)
tmp = 27.0 * (a * b);
else
tmp = x * 2.0;
end
tmp_2 = tmp;
end
NOTE: y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -4.3e+121], N[(x * 2.0), $MachinePrecision], If[LessEqual[x, 6.5e+131], N[(27.0 * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(x * 2.0), $MachinePrecision]]]
\begin{array}{l}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.3 \cdot 10^{+121}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+131}:\\
\;\;\;\;27 \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2\\
\end{array}
\end{array}
if x < -4.2999999999999997e121 or 6.5e131 < x Initial program 97.1%
+-commutative97.1%
associate-*l*95.8%
fma-def97.2%
associate-*l*95.8%
*-commutative95.8%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in x around inf 71.5%
if -4.2999999999999997e121 < x < 6.5e131Initial program 95.6%
+-commutative95.6%
associate-*l*95.6%
fma-def96.7%
associate-*l*97.6%
*-commutative97.6%
associate-*l*97.6%
Simplified97.6%
Taylor expanded in a around inf 46.6%
Final simplification53.3%
NOTE: y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t a b) :precision binary64 (* x 2.0))
assert(y < z && z < t);
double code(double x, double y, double z, double t, double a, double b) {
return x * 2.0;
}
NOTE: y, z, and t 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 y < z && z < t;
public static double code(double x, double y, double z, double t, double a, double b) {
return x * 2.0;
}
[y, z, t] = sort([y, z, t]) def code(x, y, z, t, a, b): return x * 2.0
y, z, t = sort([y, z, t]) function code(x, y, z, t, a, b) return Float64(x * 2.0) end
y, z, t = num2cell(sort([y, z, t])){:}
function tmp = code(x, y, z, t, a, b)
tmp = x * 2.0;
end
NOTE: y, z, and t 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}
[y, z, t] = \mathsf{sort}([y, z, t])\\
\\
x \cdot 2
\end{array}
Initial program 96.0%
+-commutative96.0%
associate-*l*95.7%
fma-def96.8%
associate-*l*97.1%
*-commutative97.1%
associate-*l*97.1%
Simplified97.1%
Taylor expanded in x around inf 28.2%
Final simplification28.2%
(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 2023240
(FPCore (x y z t a b)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, A"
:precision binary64
:herbie-target
(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)))