
(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 12 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
(let* ((t_1 (- y (/ t y))))
(if (<= y -4.4e-20)
(+ x (* -0.3333333333333333 (/ t_1 z)))
(if (<= y 4.8e-226)
(+ x (* (/ 1.0 y) (/ (* t 0.3333333333333333) z)))
(+ x (* t_1 (/ -0.3333333333333333 z)))))))
double code(double x, double y, double z, double t) {
double t_1 = y - (t / y);
double tmp;
if (y <= -4.4e-20) {
tmp = x + (-0.3333333333333333 * (t_1 / z));
} else if (y <= 4.8e-226) {
tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z));
} else {
tmp = x + (t_1 * (-0.3333333333333333 / 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) :: t_1
real(8) :: tmp
t_1 = y - (t / y)
if (y <= (-4.4d-20)) then
tmp = x + ((-0.3333333333333333d0) * (t_1 / z))
else if (y <= 4.8d-226) then
tmp = x + ((1.0d0 / y) * ((t * 0.3333333333333333d0) / z))
else
tmp = x + (t_1 * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y - (t / y);
double tmp;
if (y <= -4.4e-20) {
tmp = x + (-0.3333333333333333 * (t_1 / z));
} else if (y <= 4.8e-226) {
tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z));
} else {
tmp = x + (t_1 * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): t_1 = y - (t / y) tmp = 0 if y <= -4.4e-20: tmp = x + (-0.3333333333333333 * (t_1 / z)) elif y <= 4.8e-226: tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z)) else: tmp = x + (t_1 * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) t_1 = Float64(y - Float64(t / y)) tmp = 0.0 if (y <= -4.4e-20) tmp = Float64(x + Float64(-0.3333333333333333 * Float64(t_1 / z))); elseif (y <= 4.8e-226) tmp = Float64(x + Float64(Float64(1.0 / y) * Float64(Float64(t * 0.3333333333333333) / z))); else tmp = Float64(x + Float64(t_1 * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y - (t / y); tmp = 0.0; if (y <= -4.4e-20) tmp = x + (-0.3333333333333333 * (t_1 / z)); elseif (y <= 4.8e-226) tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z)); else tmp = x + (t_1 * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.4e-20], N[(x + N[(-0.3333333333333333 * N[(t$95$1 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-226], N[(x + N[(N[(1.0 / y), $MachinePrecision] * N[(N[(t * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$1 * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{t}{y}\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{-20}:\\
\;\;\;\;x + -0.3333333333333333 \cdot \frac{t_1}{z}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-226}:\\
\;\;\;\;x + \frac{1}{y} \cdot \frac{t \cdot 0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + t_1 \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -4.39999999999999982e-20Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
unsub-neg99.8%
neg-mul-199.8%
associate-*r/99.8%
associate-*l/99.8%
distribute-neg-frac99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 99.7%
if -4.39999999999999982e-20 < y < 4.7999999999999999e-226Initial program 96.4%
associate-+l-96.4%
sub-neg96.4%
sub-neg96.4%
distribute-neg-in96.4%
unsub-neg96.4%
neg-mul-196.4%
associate-*r/96.4%
associate-*l/96.4%
distribute-neg-frac96.4%
neg-mul-196.4%
times-frac80.8%
distribute-lft-out--80.8%
*-commutative80.8%
associate-/r*80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 94.2%
*-commutative94.2%
associate-*l/94.1%
times-frac78.6%
Simplified78.6%
frac-times94.1%
Applied egg-rr94.1%
*-un-lft-identity94.1%
times-frac96.3%
Applied egg-rr96.3%
if 4.7999999999999999e-226 < y Initial program 97.3%
associate-+l-97.3%
sub-neg97.3%
sub-neg97.3%
distribute-neg-in97.3%
unsub-neg97.3%
neg-mul-197.3%
associate-*r/97.3%
associate-*l/97.3%
distribute-neg-frac97.3%
neg-mul-197.3%
times-frac98.1%
distribute-lft-out--99.0%
*-commutative99.0%
associate-/r*99.0%
metadata-eval99.0%
Simplified99.0%
Final simplification98.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4.4e-20) (not (<= y 1.2e-229))) (+ x (* (- y (/ t y)) (/ -0.3333333333333333 z))) (+ x (* (/ t z) (/ 0.3333333333333333 y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.4e-20) || !(y <= 1.2e-229)) {
tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
} else {
tmp = x + ((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.4d-20)) .or. (.not. (y <= 1.2d-229))) then
tmp = x + ((y - (t / y)) * ((-0.3333333333333333d0) / z))
else
tmp = x + ((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.4e-20) || !(y <= 1.2e-229)) {
tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
} else {
tmp = x + ((t / z) * (0.3333333333333333 / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -4.4e-20) or not (y <= 1.2e-229): tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z)) else: tmp = x + ((t / z) * (0.3333333333333333 / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -4.4e-20) || !(y <= 1.2e-229)) tmp = Float64(x + Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z))); else tmp = Float64(x + 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.4e-20) || ~((y <= 1.2e-229))) tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z)); else tmp = x + ((t / z) * (0.3333333333333333 / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4.4e-20], N[Not[LessEqual[y, 1.2e-229]], $MachinePrecision]], N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.4 \cdot 10^{-20} \lor \neg \left(y \leq 1.2 \cdot 10^{-229}\right):\\
\;\;\;\;x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\end{array}
\end{array}
if y < -4.39999999999999982e-20 or 1.2e-229 < y Initial program 98.2%
associate-+l-98.2%
sub-neg98.2%
sub-neg98.2%
distribute-neg-in98.2%
unsub-neg98.2%
neg-mul-198.2%
associate-*r/98.2%
associate-*l/98.2%
distribute-neg-frac98.2%
neg-mul-198.2%
times-frac98.7%
distribute-lft-out--99.3%
*-commutative99.3%
associate-/r*99.2%
metadata-eval99.2%
Simplified99.2%
if -4.39999999999999982e-20 < y < 1.2e-229Initial program 96.4%
associate-+l-96.4%
sub-neg96.4%
sub-neg96.4%
distribute-neg-in96.4%
unsub-neg96.4%
neg-mul-196.4%
associate-*r/96.4%
associate-*l/96.4%
distribute-neg-frac96.4%
neg-mul-196.4%
times-frac80.8%
distribute-lft-out--80.8%
*-commutative80.8%
associate-/r*80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 94.2%
*-commutative94.2%
associate-*l/94.1%
times-frac78.6%
Simplified78.6%
frac-times94.1%
Applied egg-rr94.1%
*-commutative94.1%
times-frac96.3%
Applied egg-rr96.3%
Final simplification98.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4.4e-20) (not (<= y 7e-226))) (+ x (* (- y (/ t y)) (/ -0.3333333333333333 z))) (+ x (* (/ 1.0 y) (/ (* t 0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.4e-20) || !(y <= 7e-226)) {
tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
} else {
tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / 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 <= (-4.4d-20)) .or. (.not. (y <= 7d-226))) then
tmp = x + ((y - (t / y)) * ((-0.3333333333333333d0) / z))
else
tmp = x + ((1.0d0 / y) * ((t * 0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.4e-20) || !(y <= 7e-226)) {
tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
} else {
tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -4.4e-20) or not (y <= 7e-226): tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z)) else: tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -4.4e-20) || !(y <= 7e-226)) tmp = Float64(x + Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z))); else tmp = Float64(x + Float64(Float64(1.0 / y) * Float64(Float64(t * 0.3333333333333333) / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -4.4e-20) || ~((y <= 7e-226))) tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z)); else tmp = x + ((1.0 / y) * ((t * 0.3333333333333333) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4.4e-20], N[Not[LessEqual[y, 7e-226]], $MachinePrecision]], N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(1.0 / y), $MachinePrecision] * N[(N[(t * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.4 \cdot 10^{-20} \lor \neg \left(y \leq 7 \cdot 10^{-226}\right):\\
\;\;\;\;x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{y} \cdot \frac{t \cdot 0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -4.39999999999999982e-20 or 7e-226 < y Initial program 98.2%
associate-+l-98.2%
sub-neg98.2%
sub-neg98.2%
distribute-neg-in98.2%
unsub-neg98.2%
neg-mul-198.2%
associate-*r/98.2%
associate-*l/98.2%
distribute-neg-frac98.2%
neg-mul-198.2%
times-frac98.7%
distribute-lft-out--99.3%
*-commutative99.3%
associate-/r*99.2%
metadata-eval99.2%
Simplified99.2%
if -4.39999999999999982e-20 < y < 7e-226Initial program 96.4%
associate-+l-96.4%
sub-neg96.4%
sub-neg96.4%
distribute-neg-in96.4%
unsub-neg96.4%
neg-mul-196.4%
associate-*r/96.4%
associate-*l/96.4%
distribute-neg-frac96.4%
neg-mul-196.4%
times-frac80.8%
distribute-lft-out--80.8%
*-commutative80.8%
associate-/r*80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 94.2%
*-commutative94.2%
associate-*l/94.1%
times-frac78.6%
Simplified78.6%
frac-times94.1%
Applied egg-rr94.1%
*-un-lft-identity94.1%
times-frac96.3%
Applied egg-rr96.3%
Final simplification98.3%
(FPCore (x y z t) :precision binary64 (+ x (- (/ t (* z (* y 3.0))) (/ y (* z 3.0)))))
double code(double x, double y, double z, double t) {
return x + ((t / (z * (y * 3.0))) - (y / (z * 3.0)));
}
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 + ((t / (z * (y * 3.0d0))) - (y / (z * 3.0d0)))
end function
public static double code(double x, double y, double z, double t) {
return x + ((t / (z * (y * 3.0))) - (y / (z * 3.0)));
}
def code(x, y, z, t): return x + ((t / (z * (y * 3.0))) - (y / (z * 3.0)))
function code(x, y, z, t) return Float64(x + Float64(Float64(t / Float64(z * Float64(y * 3.0))) - Float64(y / Float64(z * 3.0)))) end
function tmp = code(x, y, z, t) tmp = x + ((t / (z * (y * 3.0))) - (y / (z * 3.0))); end
code[x_, y_, z_, t_] := N[(x + N[(N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\frac{t}{z \cdot \left(y \cdot 3\right)} - \frac{y}{z \cdot 3}\right)
\end{array}
Initial program 97.6%
associate-+l-97.6%
associate-/r*94.7%
associate-/r*97.6%
associate-*l*97.6%
Applied egg-rr97.6%
Final simplification97.6%
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0)))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
}
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 / (y * (z * 3.0d0)))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0)))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0))); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}
\end{array}
Initial program 97.6%
Final simplification97.6%
(FPCore (x y z t)
:precision binary64
(if (<= z -7e+16)
(+ x (/ -0.3333333333333333 (/ z y)))
(if (<= z 1.8e+79)
(* -0.3333333333333333 (/ (- y (/ t y)) z))
(+ x (/ (* y -0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7e+16) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (z <= 1.8e+79) {
tmp = -0.3333333333333333 * ((y - (t / y)) / z);
} else {
tmp = x + ((y * -0.3333333333333333) / 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 (z <= (-7d+16)) then
tmp = x + ((-0.3333333333333333d0) / (z / y))
else if (z <= 1.8d+79) then
tmp = (-0.3333333333333333d0) * ((y - (t / y)) / z)
else
tmp = x + ((y * (-0.3333333333333333d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7e+16) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (z <= 1.8e+79) {
tmp = -0.3333333333333333 * ((y - (t / y)) / z);
} else {
tmp = x + ((y * -0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7e+16: tmp = x + (-0.3333333333333333 / (z / y)) elif z <= 1.8e+79: tmp = -0.3333333333333333 * ((y - (t / y)) / z) else: tmp = x + ((y * -0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7e+16) tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y))); elseif (z <= 1.8e+79) tmp = Float64(-0.3333333333333333 * Float64(Float64(y - Float64(t / y)) / z)); else tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7e+16) tmp = x + (-0.3333333333333333 / (z / y)); elseif (z <= 1.8e+79) tmp = -0.3333333333333333 * ((y - (t / y)) / z); else tmp = x + ((y * -0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7e+16], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+79], N[(-0.3333333333333333 * N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+16}:\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+79}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\end{array}
\end{array}
if z < -7e16Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
unsub-neg99.8%
neg-mul-199.8%
associate-*r/99.8%
associate-*l/99.8%
distribute-neg-frac99.8%
neg-mul-199.8%
times-frac83.0%
distribute-lft-out--83.0%
*-commutative83.0%
associate-/r*82.9%
metadata-eval82.9%
Simplified82.9%
Taylor expanded in y around inf 65.8%
Taylor expanded in z around 0 65.7%
associate-*r/65.7%
associate-/l*65.8%
Simplified65.8%
if -7e16 < z < 1.8e79Initial program 95.9%
associate-+l-95.9%
sub-neg95.9%
sub-neg95.9%
distribute-neg-in95.9%
unsub-neg95.9%
neg-mul-195.9%
associate-*r/95.9%
associate-*l/95.9%
distribute-neg-frac95.9%
neg-mul-195.9%
times-frac97.8%
distribute-lft-out--98.5%
*-commutative98.5%
associate-/r*98.5%
metadata-eval98.5%
Simplified98.5%
Taylor expanded in x around 0 98.6%
Taylor expanded in z around 0 85.4%
if 1.8e79 < z Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
unsub-neg99.8%
neg-mul-199.8%
associate-*r/99.8%
associate-*l/99.8%
distribute-neg-frac99.8%
neg-mul-199.8%
times-frac90.5%
distribute-lft-out--90.5%
*-commutative90.5%
associate-/r*90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in y around inf 83.9%
associate-*l/84.0%
Applied egg-rr84.0%
Final simplification80.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -2e+44)
(+ x (/ -0.3333333333333333 (/ z y)))
(if (<= y 5.8e-27)
(+ x (* (/ t y) (/ 0.3333333333333333 z)))
(+ x (/ (* y -0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e+44) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (y <= 5.8e-27) {
tmp = x + ((t / y) * (0.3333333333333333 / z));
} else {
tmp = x + ((y * -0.3333333333333333) / 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 <= (-2d+44)) then
tmp = x + ((-0.3333333333333333d0) / (z / y))
else if (y <= 5.8d-27) then
tmp = x + ((t / y) * (0.3333333333333333d0 / z))
else
tmp = x + ((y * (-0.3333333333333333d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e+44) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (y <= 5.8e-27) {
tmp = x + ((t / y) * (0.3333333333333333 / z));
} else {
tmp = x + ((y * -0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2e+44: tmp = x + (-0.3333333333333333 / (z / y)) elif y <= 5.8e-27: tmp = x + ((t / y) * (0.3333333333333333 / z)) else: tmp = x + ((y * -0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2e+44) tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y))); elseif (y <= 5.8e-27) tmp = Float64(x + Float64(Float64(t / y) * Float64(0.3333333333333333 / z))); else tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2e+44) tmp = x + (-0.3333333333333333 / (z / y)); elseif (y <= 5.8e-27) tmp = x + ((t / y) * (0.3333333333333333 / z)); else tmp = x + ((y * -0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2e+44], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e-27], N[(x + N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-27}:\\
\;\;\;\;x + \frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.0000000000000002e44Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
unsub-neg99.8%
neg-mul-199.8%
associate-*r/99.8%
associate-*l/99.8%
distribute-neg-frac99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf 97.8%
Taylor expanded in z around 0 97.8%
associate-*r/97.8%
associate-/l*97.9%
Simplified97.9%
if -2.0000000000000002e44 < y < 5.80000000000000008e-27Initial program 96.5%
associate-+l-96.5%
sub-neg96.5%
sub-neg96.5%
distribute-neg-in96.5%
unsub-neg96.5%
neg-mul-196.5%
associate-*r/96.5%
associate-*l/96.5%
distribute-neg-frac96.5%
neg-mul-196.5%
times-frac87.7%
distribute-lft-out--87.7%
*-commutative87.7%
associate-/r*87.7%
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around 0 92.2%
*-commutative92.2%
associate-*l/92.1%
times-frac83.4%
Simplified83.4%
if 5.80000000000000008e-27 < y Initial program 98.3%
associate-+l-98.3%
sub-neg98.3%
sub-neg98.3%
distribute-neg-in98.3%
unsub-neg98.3%
neg-mul-198.3%
associate-*r/98.3%
associate-*l/98.4%
distribute-neg-frac98.4%
neg-mul-198.4%
times-frac98.4%
distribute-lft-out--99.9%
*-commutative99.9%
associate-/r*99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around inf 96.8%
associate-*l/96.9%
Applied egg-rr96.9%
Final simplification89.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -8.2e+44)
(+ x (/ -0.3333333333333333 (/ z y)))
(if (<= y 7e-27)
(+ x (* (/ t z) (/ 0.3333333333333333 y)))
(+ x (/ (* y -0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.2e+44) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (y <= 7e-27) {
tmp = x + ((t / z) * (0.3333333333333333 / y));
} else {
tmp = x + ((y * -0.3333333333333333) / 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 <= (-8.2d+44)) then
tmp = x + ((-0.3333333333333333d0) / (z / y))
else if (y <= 7d-27) then
tmp = x + ((t / z) * (0.3333333333333333d0 / y))
else
tmp = x + ((y * (-0.3333333333333333d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.2e+44) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (y <= 7e-27) {
tmp = x + ((t / z) * (0.3333333333333333 / y));
} else {
tmp = x + ((y * -0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.2e+44: tmp = x + (-0.3333333333333333 / (z / y)) elif y <= 7e-27: tmp = x + ((t / z) * (0.3333333333333333 / y)) else: tmp = x + ((y * -0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.2e+44) tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y))); elseif (y <= 7e-27) tmp = Float64(x + Float64(Float64(t / z) * Float64(0.3333333333333333 / y))); else tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -8.2e+44) tmp = x + (-0.3333333333333333 / (z / y)); elseif (y <= 7e-27) tmp = x + ((t / z) * (0.3333333333333333 / y)); else tmp = x + ((y * -0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.2e+44], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-27], N[(x + N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-27}:\\
\;\;\;\;x + \frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -8.1999999999999993e44Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
unsub-neg99.8%
neg-mul-199.8%
associate-*r/99.8%
associate-*l/99.8%
distribute-neg-frac99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf 97.8%
Taylor expanded in z around 0 97.8%
associate-*r/97.8%
associate-/l*97.9%
Simplified97.9%
if -8.1999999999999993e44 < y < 7.0000000000000003e-27Initial program 96.5%
associate-+l-96.5%
sub-neg96.5%
sub-neg96.5%
distribute-neg-in96.5%
unsub-neg96.5%
neg-mul-196.5%
associate-*r/96.5%
associate-*l/96.5%
distribute-neg-frac96.5%
neg-mul-196.5%
times-frac87.7%
distribute-lft-out--87.7%
*-commutative87.7%
associate-/r*87.7%
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around 0 92.2%
*-commutative92.2%
associate-*l/92.1%
times-frac83.4%
Simplified83.4%
frac-times92.1%
Applied egg-rr92.1%
*-commutative92.1%
times-frac93.7%
Applied egg-rr93.7%
if 7.0000000000000003e-27 < y Initial program 98.3%
associate-+l-98.3%
sub-neg98.3%
sub-neg98.3%
distribute-neg-in98.3%
unsub-neg98.3%
neg-mul-198.3%
associate-*r/98.3%
associate-*l/98.4%
distribute-neg-frac98.4%
neg-mul-198.4%
times-frac98.4%
distribute-lft-out--99.9%
*-commutative99.9%
associate-/r*99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around inf 96.8%
associate-*l/96.9%
Applied egg-rr96.9%
Final simplification95.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -9e+44)
(+ x (/ -0.3333333333333333 (/ z y)))
(if (<= y 6e-27)
(+ x (/ (* t (/ 0.3333333333333333 z)) y))
(+ x (/ (* y -0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9e+44) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (y <= 6e-27) {
tmp = x + ((t * (0.3333333333333333 / z)) / y);
} else {
tmp = x + ((y * -0.3333333333333333) / 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 <= (-9d+44)) then
tmp = x + ((-0.3333333333333333d0) / (z / y))
else if (y <= 6d-27) then
tmp = x + ((t * (0.3333333333333333d0 / z)) / y)
else
tmp = x + ((y * (-0.3333333333333333d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9e+44) {
tmp = x + (-0.3333333333333333 / (z / y));
} else if (y <= 6e-27) {
tmp = x + ((t * (0.3333333333333333 / z)) / y);
} else {
tmp = x + ((y * -0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9e+44: tmp = x + (-0.3333333333333333 / (z / y)) elif y <= 6e-27: tmp = x + ((t * (0.3333333333333333 / z)) / y) else: tmp = x + ((y * -0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9e+44) tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y))); elseif (y <= 6e-27) tmp = Float64(x + Float64(Float64(t * Float64(0.3333333333333333 / z)) / y)); else tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -9e+44) tmp = x + (-0.3333333333333333 / (z / y)); elseif (y <= 6e-27) tmp = x + ((t * (0.3333333333333333 / z)) / y); else tmp = x + ((y * -0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9e+44], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-27], N[(x + N[(N[(t * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-27}:\\
\;\;\;\;x + \frac{t \cdot \frac{0.3333333333333333}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -9e44Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
unsub-neg99.8%
neg-mul-199.8%
associate-*r/99.8%
associate-*l/99.8%
distribute-neg-frac99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf 97.8%
Taylor expanded in z around 0 97.8%
associate-*r/97.8%
associate-/l*97.9%
Simplified97.9%
if -9e44 < y < 6.0000000000000002e-27Initial program 96.5%
associate-+l-96.5%
sub-neg96.5%
sub-neg96.5%
distribute-neg-in96.5%
unsub-neg96.5%
neg-mul-196.5%
associate-*r/96.5%
associate-*l/96.5%
distribute-neg-frac96.5%
neg-mul-196.5%
times-frac87.7%
distribute-lft-out--87.7%
*-commutative87.7%
associate-/r*87.7%
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around 0 92.2%
*-commutative92.2%
associate-*l/92.1%
times-frac83.4%
Simplified83.4%
associate-*l/93.7%
Applied egg-rr93.7%
if 6.0000000000000002e-27 < y Initial program 98.3%
associate-+l-98.3%
sub-neg98.3%
sub-neg98.3%
distribute-neg-in98.3%
unsub-neg98.3%
neg-mul-198.3%
associate-*r/98.3%
associate-*l/98.4%
distribute-neg-frac98.4%
neg-mul-198.4%
times-frac98.4%
distribute-lft-out--99.9%
*-commutative99.9%
associate-/r*99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around inf 96.8%
associate-*l/96.9%
Applied egg-rr96.9%
Final simplification95.4%
(FPCore (x y z t) :precision binary64 (+ x (* y (/ -0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
return x + (y * (-0.3333333333333333 / z));
}
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 * ((-0.3333333333333333d0) / z))
end function
public static double code(double x, double y, double z, double t) {
return x + (y * (-0.3333333333333333 / z));
}
def code(x, y, z, t): return x + (y * (-0.3333333333333333 / z))
function code(x, y, z, t) return Float64(x + Float64(y * Float64(-0.3333333333333333 / z))) end
function tmp = code(x, y, z, t) tmp = x + (y * (-0.3333333333333333 / z)); end
code[x_, y_, z_, t_] := N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{-0.3333333333333333}{z}
\end{array}
Initial program 97.6%
associate-+l-97.6%
sub-neg97.6%
sub-neg97.6%
distribute-neg-in97.6%
unsub-neg97.6%
neg-mul-197.6%
associate-*r/97.6%
associate-*l/97.6%
distribute-neg-frac97.6%
neg-mul-197.6%
times-frac92.8%
distribute-lft-out--93.2%
*-commutative93.2%
associate-/r*93.2%
metadata-eval93.2%
Simplified93.2%
Taylor expanded in y around inf 64.2%
Final simplification64.2%
(FPCore (x y z t) :precision binary64 (+ x (/ -0.3333333333333333 (/ z y))))
double code(double x, double y, double z, double t) {
return x + (-0.3333333333333333 / (z / 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 / y))
end function
public static double code(double x, double y, double z, double t) {
return x + (-0.3333333333333333 / (z / y));
}
def code(x, y, z, t): return x + (-0.3333333333333333 / (z / y))
function code(x, y, z, t) return Float64(x + Float64(-0.3333333333333333 / Float64(z / y))) end
function tmp = code(x, y, z, t) tmp = x + (-0.3333333333333333 / (z / y)); end
code[x_, y_, z_, t_] := N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{-0.3333333333333333}{\frac{z}{y}}
\end{array}
Initial program 97.6%
associate-+l-97.6%
sub-neg97.6%
sub-neg97.6%
distribute-neg-in97.6%
unsub-neg97.6%
neg-mul-197.6%
associate-*r/97.6%
associate-*l/97.6%
distribute-neg-frac97.6%
neg-mul-197.6%
times-frac92.8%
distribute-lft-out--93.2%
*-commutative93.2%
associate-/r*93.2%
metadata-eval93.2%
Simplified93.2%
Taylor expanded in y around inf 64.2%
Taylor expanded in z around 0 64.2%
associate-*r/64.2%
associate-/l*64.2%
Simplified64.2%
Final simplification64.2%
(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 97.6%
associate-+l-97.6%
sub-neg97.6%
sub-neg97.6%
distribute-neg-in97.6%
unsub-neg97.6%
neg-mul-197.6%
associate-*r/97.6%
associate-*l/97.6%
distribute-neg-frac97.6%
neg-mul-197.6%
times-frac92.8%
distribute-lft-out--93.2%
*-commutative93.2%
associate-/r*93.2%
metadata-eval93.2%
Simplified93.2%
Taylor expanded in x around inf 31.7%
Final simplification31.7%
(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 2023252
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:herbie-target
(+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))