
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0)))) 2e+301) (+ (+ x (/ t (* z (* y 3.0)))) (/ y (* z -3.0))) (+ x (* (/ 0.3333333333333333 z) (- (* t (/ 1.0 y)) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 2e+301) {
tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0));
} else {
tmp = x + ((0.3333333333333333 / z) * ((t * (1.0 / y)) - y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x - (y / (z * 3.0d0))) + (t / (y * (z * 3.0d0)))) <= 2d+301) then
tmp = (x + (t / (z * (y * 3.0d0)))) + (y / (z * (-3.0d0)))
else
tmp = x + ((0.3333333333333333d0 / z) * ((t * (1.0d0 / y)) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 2e+301) {
tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0));
} else {
tmp = x + ((0.3333333333333333 / z) * ((t * (1.0 / y)) - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 2e+301: tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0)) else: tmp = x + ((0.3333333333333333 / z) * ((t * (1.0 / y)) - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0)))) <= 2e+301) tmp = Float64(Float64(x + Float64(t / Float64(z * Float64(y * 3.0)))) + Float64(y / Float64(z * -3.0))); else tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t * Float64(1.0 / y)) - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 2e+301) tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0)); else tmp = x + ((0.3333333333333333 / z) * ((t * (1.0 / y)) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2e+301], N[(N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t * N[(1.0 / y), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)} \leq 2 \cdot 10^{+301}:\\
\;\;\;\;\left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right) + \frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(t \cdot \frac{1}{y} - y\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) < 2.00000000000000011e301Initial program 98.3%
+-commutative98.3%
associate-+r-98.3%
sub-neg98.3%
associate-*l*98.3%
*-commutative98.3%
distribute-frac-neg298.3%
distribute-rgt-neg-in98.3%
metadata-eval98.3%
Simplified98.3%
if 2.00000000000000011e301 < (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) Initial program 77.2%
sub-neg77.2%
associate-+l+77.2%
+-commutative77.2%
remove-double-neg77.2%
distribute-frac-neg77.2%
distribute-neg-in77.2%
remove-double-neg77.2%
sub-neg77.2%
neg-mul-177.2%
times-frac90.8%
distribute-frac-neg90.8%
neg-mul-190.8%
*-commutative90.8%
associate-/l*90.8%
*-commutative90.8%
Simplified99.9%
div-inv99.9%
Applied egg-rr99.9%
Final simplification98.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.25e+39)
(/ (* y -0.3333333333333333) z)
(if (<= y -8.5e-104)
x
(if (<= y 3.9e-19)
(* (/ t z) (/ 0.3333333333333333 y))
(* (/ y z) -0.3333333333333333)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.25e+39) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= -8.5e-104) {
tmp = x;
} else if (y <= 3.9e-19) {
tmp = (t / z) * (0.3333333333333333 / y);
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.25d+39)) then
tmp = (y * (-0.3333333333333333d0)) / z
else if (y <= (-8.5d-104)) then
tmp = x
else if (y <= 3.9d-19) then
tmp = (t / z) * (0.3333333333333333d0 / y)
else
tmp = (y / z) * (-0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.25e+39) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= -8.5e-104) {
tmp = x;
} else if (y <= 3.9e-19) {
tmp = (t / z) * (0.3333333333333333 / y);
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.25e+39: tmp = (y * -0.3333333333333333) / z elif y <= -8.5e-104: tmp = x elif y <= 3.9e-19: tmp = (t / z) * (0.3333333333333333 / y) else: tmp = (y / z) * -0.3333333333333333 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.25e+39) tmp = Float64(Float64(y * -0.3333333333333333) / z); elseif (y <= -8.5e-104) tmp = x; elseif (y <= 3.9e-19) tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); else tmp = Float64(Float64(y / z) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.25e+39) tmp = (y * -0.3333333333333333) / z; elseif (y <= -8.5e-104) tmp = x; elseif (y <= 3.9e-19) tmp = (t / z) * (0.3333333333333333 / y); else tmp = (y / z) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.25e+39], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, -8.5e-104], x, If[LessEqual[y, 3.9e-19], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+39}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-104}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-19}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if y < -2.24999999999999998e39Initial program 96.0%
sub-neg96.0%
associate-+l+96.0%
distribute-frac-neg96.0%
neg-mul-196.0%
*-commutative96.0%
times-frac96.0%
fma-define96.0%
metadata-eval96.0%
associate-*l*96.0%
*-commutative96.0%
Simplified96.0%
Taylor expanded in y around inf 92.3%
Taylor expanded in x around 0 72.3%
associate-*r/72.5%
Applied egg-rr72.5%
if -2.24999999999999998e39 < y < -8.50000000000000007e-104Initial program 97.4%
sub-neg97.4%
associate-+l+97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
times-frac97.4%
fma-define97.4%
metadata-eval97.4%
associate-*l*97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in x around inf 62.8%
if -8.50000000000000007e-104 < y < 3.89999999999999995e-19Initial program 91.0%
sub-neg91.0%
associate-+l+91.0%
+-commutative91.0%
remove-double-neg91.0%
distribute-frac-neg91.0%
distribute-neg-in91.0%
remove-double-neg91.0%
sub-neg91.0%
neg-mul-191.0%
times-frac92.0%
distribute-frac-neg92.0%
neg-mul-192.0%
*-commutative92.0%
associate-/l*92.0%
*-commutative92.0%
Simplified92.0%
div-inv92.0%
Applied egg-rr92.0%
Taylor expanded in t around -inf 84.8%
associate-*r*84.8%
neg-mul-184.8%
distribute-lft-out--84.8%
associate-*r*84.7%
distribute-lft-neg-in84.7%
distribute-rgt-neg-in84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around inf 63.8%
associate-*r/63.7%
*-commutative63.7%
*-commutative63.7%
times-frac66.8%
Simplified66.8%
if 3.89999999999999995e-19 < y Initial program 94.7%
sub-neg94.7%
associate-+l+94.7%
+-commutative94.7%
remove-double-neg94.7%
distribute-frac-neg94.7%
distribute-neg-in94.7%
remove-double-neg94.7%
sub-neg94.7%
neg-mul-194.7%
times-frac94.7%
distribute-frac-neg94.7%
neg-mul-194.7%
*-commutative94.7%
associate-/l*94.6%
*-commutative94.6%
Simplified99.7%
div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in t around -inf 86.7%
associate-*r*86.7%
neg-mul-186.7%
distribute-lft-out--86.7%
associate-*r*86.7%
distribute-lft-neg-in86.7%
distribute-rgt-neg-in86.7%
metadata-eval86.7%
Simplified86.7%
Taylor expanded in y around inf 59.9%
Final simplification65.9%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.08e+39)
(/ (* y -0.3333333333333333) z)
(if (<= y -1.05e-104)
x
(if (<= y 1.4e-18)
(* 0.3333333333333333 (/ t (* y z)))
(* (/ y z) -0.3333333333333333)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.08e+39) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= -1.05e-104) {
tmp = x;
} else if (y <= 1.4e-18) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.08d+39)) then
tmp = (y * (-0.3333333333333333d0)) / z
else if (y <= (-1.05d-104)) then
tmp = x
else if (y <= 1.4d-18) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else
tmp = (y / z) * (-0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.08e+39) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= -1.05e-104) {
tmp = x;
} else if (y <= 1.4e-18) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.08e+39: tmp = (y * -0.3333333333333333) / z elif y <= -1.05e-104: tmp = x elif y <= 1.4e-18: tmp = 0.3333333333333333 * (t / (y * z)) else: tmp = (y / z) * -0.3333333333333333 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.08e+39) tmp = Float64(Float64(y * -0.3333333333333333) / z); elseif (y <= -1.05e-104) tmp = x; elseif (y <= 1.4e-18) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = Float64(Float64(y / z) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.08e+39) tmp = (y * -0.3333333333333333) / z; elseif (y <= -1.05e-104) tmp = x; elseif (y <= 1.4e-18) tmp = 0.3333333333333333 * (t / (y * z)); else tmp = (y / z) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.08e+39], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, -1.05e-104], x, If[LessEqual[y, 1.4e-18], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.08 \cdot 10^{+39}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-104}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-18}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if y < -1.07999999999999998e39Initial program 96.0%
sub-neg96.0%
associate-+l+96.0%
distribute-frac-neg96.0%
neg-mul-196.0%
*-commutative96.0%
times-frac96.0%
fma-define96.0%
metadata-eval96.0%
associate-*l*96.0%
*-commutative96.0%
Simplified96.0%
Taylor expanded in y around inf 92.3%
Taylor expanded in x around 0 72.3%
associate-*r/72.5%
Applied egg-rr72.5%
if -1.07999999999999998e39 < y < -1.04999999999999999e-104Initial program 97.4%
sub-neg97.4%
associate-+l+97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
times-frac97.4%
fma-define97.4%
metadata-eval97.4%
associate-*l*97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in x around inf 62.8%
if -1.04999999999999999e-104 < y < 1.40000000000000006e-18Initial program 91.0%
sub-neg91.0%
associate-+l+91.0%
+-commutative91.0%
remove-double-neg91.0%
distribute-frac-neg91.0%
distribute-neg-in91.0%
remove-double-neg91.0%
sub-neg91.0%
neg-mul-191.0%
times-frac92.0%
distribute-frac-neg92.0%
neg-mul-192.0%
*-commutative92.0%
associate-/l*92.0%
*-commutative92.0%
Simplified92.0%
div-inv92.0%
Applied egg-rr92.0%
Taylor expanded in t around -inf 84.8%
associate-*r*84.8%
neg-mul-184.8%
distribute-lft-out--84.8%
associate-*r*84.7%
distribute-lft-neg-in84.7%
distribute-rgt-neg-in84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around inf 63.8%
if 1.40000000000000006e-18 < y Initial program 94.7%
sub-neg94.7%
associate-+l+94.7%
+-commutative94.7%
remove-double-neg94.7%
distribute-frac-neg94.7%
distribute-neg-in94.7%
remove-double-neg94.7%
sub-neg94.7%
neg-mul-194.7%
times-frac94.7%
distribute-frac-neg94.7%
neg-mul-194.7%
*-commutative94.7%
associate-/l*94.6%
*-commutative94.6%
Simplified99.7%
div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in t around -inf 86.7%
associate-*r*86.7%
neg-mul-186.7%
distribute-lft-out--86.7%
associate-*r*86.7%
distribute-lft-neg-in86.7%
distribute-rgt-neg-in86.7%
metadata-eval86.7%
Simplified86.7%
Taylor expanded in y around inf 59.9%
Final simplification64.6%
(FPCore (x y z t) :precision binary64 (if (or (<= y -7.6e+66) (not (<= y 1.3e+31))) (- x (* 0.3333333333333333 (/ y z))) (+ x (/ (/ t z) (* y 3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7.6e+66) || !(y <= 1.3e+31)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + ((t / z) / (y * 3.0));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-7.6d+66)) .or. (.not. (y <= 1.3d+31))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = x + ((t / z) / (y * 3.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7.6e+66) || !(y <= 1.3e+31)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + ((t / z) / (y * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -7.6e+66) or not (y <= 1.3e+31): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = x + ((t / z) / (y * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -7.6e+66) || !(y <= 1.3e+31)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(x + Float64(Float64(t / z) / Float64(y * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -7.6e+66) || ~((y <= 1.3e+31))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = x + ((t / z) / (y * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -7.6e+66], N[Not[LessEqual[y, 1.3e+31]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+66} \lor \neg \left(y \leq 1.3 \cdot 10^{+31}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\
\end{array}
\end{array}
if y < -7.6000000000000004e66 or 1.3e31 < y Initial program 94.4%
Taylor expanded in t around 0 96.6%
if -7.6000000000000004e66 < y < 1.3e31Initial program 93.3%
sub-neg93.3%
associate-+l+93.3%
+-commutative93.3%
remove-double-neg93.3%
distribute-frac-neg93.3%
distribute-neg-in93.3%
remove-double-neg93.3%
sub-neg93.3%
neg-mul-193.3%
times-frac94.6%
distribute-frac-neg94.6%
neg-mul-194.6%
*-commutative94.6%
associate-/l*94.6%
*-commutative94.6%
Simplified94.6%
Taylor expanded in t around inf 87.7%
*-commutative87.7%
metadata-eval87.7%
times-frac87.7%
*-rgt-identity87.7%
*-commutative87.7%
associate-*r*87.8%
associate-/r*92.5%
Simplified92.5%
Final simplification94.0%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.65e+67) (not (<= y 5.8e+32))) (- x (* 0.3333333333333333 (/ y z))) (+ x (* (/ 0.3333333333333333 z) (/ t y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.65e+67) || !(y <= 5.8e+32)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + ((0.3333333333333333 / z) * (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.65d+67)) .or. (.not. (y <= 5.8d+32))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = x + ((0.3333333333333333d0 / z) * (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.65e+67) || !(y <= 5.8e+32)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + ((0.3333333333333333 / z) * (t / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.65e+67) or not (y <= 5.8e+32): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = x + ((0.3333333333333333 / z) * (t / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.65e+67) || !(y <= 5.8e+32)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.65e+67) || ~((y <= 5.8e+32))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = x + ((0.3333333333333333 / z) * (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.65e+67], N[Not[LessEqual[y, 5.8e+32]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{+67} \lor \neg \left(y \leq 5.8 \cdot 10^{+32}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \frac{t}{y}\\
\end{array}
\end{array}
if y < -1.6500000000000001e67 or 5.80000000000000006e32 < y Initial program 94.4%
Taylor expanded in t around 0 96.6%
if -1.6500000000000001e67 < y < 5.80000000000000006e32Initial program 93.3%
sub-neg93.3%
associate-+l+93.3%
+-commutative93.3%
remove-double-neg93.3%
distribute-frac-neg93.3%
distribute-neg-in93.3%
remove-double-neg93.3%
sub-neg93.3%
neg-mul-193.3%
times-frac94.6%
distribute-frac-neg94.6%
neg-mul-194.6%
*-commutative94.6%
associate-/l*94.6%
*-commutative94.6%
Simplified94.6%
Taylor expanded in t around inf 89.0%
Final simplification91.7%
(FPCore (x y z t) :precision binary64 (if (or (<= y -7.6e+66) (not (<= y 1.55e+33))) (- x (* 0.3333333333333333 (/ y z))) (+ x (* 0.3333333333333333 (/ t (* y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7.6e+66) || !(y <= 1.55e+33)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + (0.3333333333333333 * (t / (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-7.6d+66)) .or. (.not. (y <= 1.55d+33))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7.6e+66) || !(y <= 1.55e+33)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + (0.3333333333333333 * (t / (y * z)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -7.6e+66) or not (y <= 1.55e+33): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = x + (0.3333333333333333 * (t / (y * z))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -7.6e+66) || !(y <= 1.55e+33)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -7.6e+66) || ~((y <= 1.55e+33))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = x + (0.3333333333333333 * (t / (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -7.6e+66], N[Not[LessEqual[y, 1.55e+33]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+66} \lor \neg \left(y \leq 1.55 \cdot 10^{+33}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -7.6000000000000004e66 or 1.55e33 < y Initial program 94.4%
Taylor expanded in t around 0 96.6%
if -7.6000000000000004e66 < y < 1.55e33Initial program 93.3%
sub-neg93.3%
associate-+l+93.3%
+-commutative93.3%
remove-double-neg93.3%
distribute-frac-neg93.3%
distribute-neg-in93.3%
remove-double-neg93.3%
sub-neg93.3%
neg-mul-193.3%
times-frac94.6%
distribute-frac-neg94.6%
neg-mul-194.6%
*-commutative94.6%
associate-/l*94.6%
*-commutative94.6%
Simplified94.6%
Taylor expanded in t around inf 87.7%
Final simplification90.9%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4.9e-103) (not (<= y 2.25e-38))) (- x (* 0.3333333333333333 (/ y z))) (* (/ t z) (/ 0.3333333333333333 y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.9e-103) || !(y <= 2.25e-38)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = (t / z) * (0.3333333333333333 / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-4.9d-103)) .or. (.not. (y <= 2.25d-38))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = (t / z) * (0.3333333333333333d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.9e-103) || !(y <= 2.25e-38)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = (t / z) * (0.3333333333333333 / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -4.9e-103) or not (y <= 2.25e-38): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = (t / z) * (0.3333333333333333 / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -4.9e-103) || !(y <= 2.25e-38)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -4.9e-103) || ~((y <= 2.25e-38))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = (t / z) * (0.3333333333333333 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4.9e-103], N[Not[LessEqual[y, 2.25e-38]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.9 \cdot 10^{-103} \lor \neg \left(y \leq 2.25 \cdot 10^{-38}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\end{array}
\end{array}
if y < -4.89999999999999953e-103 or 2.25000000000000004e-38 < y Initial program 95.9%
Taylor expanded in t around 0 84.9%
if -4.89999999999999953e-103 < y < 2.25000000000000004e-38Initial program 90.7%
sub-neg90.7%
associate-+l+90.7%
+-commutative90.7%
remove-double-neg90.7%
distribute-frac-neg90.7%
distribute-neg-in90.7%
remove-double-neg90.7%
sub-neg90.7%
neg-mul-190.7%
times-frac91.8%
distribute-frac-neg91.8%
neg-mul-191.8%
*-commutative91.8%
associate-/l*91.8%
*-commutative91.8%
Simplified91.8%
div-inv91.8%
Applied egg-rr91.8%
Taylor expanded in t around -inf 84.4%
associate-*r*84.4%
neg-mul-184.4%
distribute-lft-out--84.4%
associate-*r*84.3%
distribute-lft-neg-in84.3%
distribute-rgt-neg-in84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in t around inf 64.6%
associate-*r/64.5%
*-commutative64.5%
*-commutative64.5%
times-frac67.6%
Simplified67.6%
Final simplification77.7%
(FPCore (x y z t) :precision binary64 (if (or (<= y -5.3e+39) (not (<= y 1.7e+72))) (* (/ y z) -0.3333333333333333) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -5.3e+39) || !(y <= 1.7e+72)) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-5.3d+39)) .or. (.not. (y <= 1.7d+72))) then
tmp = (y / z) * (-0.3333333333333333d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -5.3e+39) || !(y <= 1.7e+72)) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -5.3e+39) or not (y <= 1.7e+72): tmp = (y / z) * -0.3333333333333333 else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -5.3e+39) || !(y <= 1.7e+72)) tmp = Float64(Float64(y / z) * -0.3333333333333333); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -5.3e+39) || ~((y <= 1.7e+72))) tmp = (y / z) * -0.3333333333333333; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -5.3e+39], N[Not[LessEqual[y, 1.7e+72]], $MachinePrecision]], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+39} \lor \neg \left(y \leq 1.7 \cdot 10^{+72}\right):\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.29999999999999979e39 or 1.6999999999999999e72 < y Initial program 95.4%
sub-neg95.4%
associate-+l+95.4%
+-commutative95.4%
remove-double-neg95.4%
distribute-frac-neg95.4%
distribute-neg-in95.4%
remove-double-neg95.4%
sub-neg95.4%
neg-mul-195.4%
times-frac95.4%
distribute-frac-neg95.4%
neg-mul-195.4%
*-commutative95.4%
associate-/l*95.3%
*-commutative95.3%
Simplified99.7%
div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in t around -inf 87.2%
associate-*r*87.2%
neg-mul-187.2%
distribute-lft-out--87.2%
associate-*r*87.2%
distribute-lft-neg-in87.2%
distribute-rgt-neg-in87.2%
metadata-eval87.2%
Simplified87.2%
Taylor expanded in y around inf 74.0%
if -5.29999999999999979e39 < y < 1.6999999999999999e72Initial program 92.8%
sub-neg92.8%
associate-+l+92.8%
distribute-frac-neg92.8%
neg-mul-192.8%
*-commutative92.8%
times-frac92.8%
fma-define92.8%
metadata-eval92.8%
associate-*l*92.9%
*-commutative92.9%
Simplified92.9%
Taylor expanded in x around inf 39.3%
Final simplification51.5%
(FPCore (x y z t) :precision binary64 (if (<= y -1.1e+33) (/ (* y -0.3333333333333333) z) (if (<= y 1.5e+73) x (* (/ y z) -0.3333333333333333))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.1e+33) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= 1.5e+73) {
tmp = x;
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.1d+33)) then
tmp = (y * (-0.3333333333333333d0)) / z
else if (y <= 1.5d+73) then
tmp = x
else
tmp = (y / z) * (-0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.1e+33) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= 1.5e+73) {
tmp = x;
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.1e+33: tmp = (y * -0.3333333333333333) / z elif y <= 1.5e+73: tmp = x else: tmp = (y / z) * -0.3333333333333333 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.1e+33) tmp = Float64(Float64(y * -0.3333333333333333) / z); elseif (y <= 1.5e+73) tmp = x; else tmp = Float64(Float64(y / z) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.1e+33) tmp = (y * -0.3333333333333333) / z; elseif (y <= 1.5e+73) tmp = x; else tmp = (y / z) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.1e+33], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 1.5e+73], x, N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+33}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+73}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if y < -1.09999999999999997e33Initial program 96.0%
sub-neg96.0%
associate-+l+96.0%
distribute-frac-neg96.0%
neg-mul-196.0%
*-commutative96.0%
times-frac96.0%
fma-define96.0%
metadata-eval96.0%
associate-*l*96.0%
*-commutative96.0%
Simplified96.0%
Taylor expanded in y around inf 92.3%
Taylor expanded in x around 0 72.3%
associate-*r/72.5%
Applied egg-rr72.5%
if -1.09999999999999997e33 < y < 1.50000000000000005e73Initial program 92.8%
sub-neg92.8%
associate-+l+92.8%
distribute-frac-neg92.8%
neg-mul-192.8%
*-commutative92.8%
times-frac92.8%
fma-define92.8%
metadata-eval92.8%
associate-*l*92.9%
*-commutative92.9%
Simplified92.9%
Taylor expanded in x around inf 39.3%
if 1.50000000000000005e73 < y Initial program 94.5%
sub-neg94.5%
associate-+l+94.5%
+-commutative94.5%
remove-double-neg94.5%
distribute-frac-neg94.5%
distribute-neg-in94.5%
remove-double-neg94.5%
sub-neg94.5%
neg-mul-194.5%
times-frac94.5%
distribute-frac-neg94.5%
neg-mul-194.5%
*-commutative94.5%
associate-/l*94.4%
*-commutative94.4%
Simplified99.7%
div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in t around -inf 84.5%
associate-*r*84.5%
neg-mul-184.5%
distribute-lft-out--84.5%
associate-*r*84.5%
distribute-lft-neg-in84.5%
distribute-rgt-neg-in84.5%
metadata-eval84.5%
Simplified84.5%
Taylor expanded in y around inf 76.3%
Final simplification51.5%
(FPCore (x y z t) :precision binary64 (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))))
double code(double x, double y, double z, double t) {
return x + ((0.3333333333333333 / z) * ((t / y) - y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
end function
public static double code(double x, double y, double z, double t) {
return x + ((0.3333333333333333 / z) * ((t / y) - y));
}
def code(x, y, z, t): return x + ((0.3333333333333333 / z) * ((t / y) - y))
function code(x, y, z, t) return Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))) end
function tmp = code(x, y, z, t) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)
\end{array}
Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
+-commutative93.7%
remove-double-neg93.7%
distribute-frac-neg93.7%
distribute-neg-in93.7%
remove-double-neg93.7%
sub-neg93.7%
neg-mul-193.7%
times-frac94.5%
distribute-frac-neg94.5%
neg-mul-194.5%
*-commutative94.5%
associate-/l*94.5%
*-commutative94.5%
Simplified96.4%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
distribute-frac-neg93.7%
neg-mul-193.7%
*-commutative93.7%
times-frac93.7%
fma-define93.7%
metadata-eval93.7%
associate-*l*93.8%
*-commutative93.8%
Simplified93.8%
Taylor expanded in x around inf 33.5%
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y)) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
\end{array}
herbie shell --seed 2024137
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:alt
(! :herbie-platform default (+ (- x (/ y (* z 3))) (/ (/ t (* z 3)) y)))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))