
(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 15 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 (<= (* z 3.0) 1e+51) (+ x (/ (/ (- y (/ t y)) z) -3.0)) (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 1e+51) {
tmp = x + (((y - (t / y)) / z) / -3.0);
} else {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * 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 ((z * 3.0d0) <= 1d+51) then
tmp = x + (((y - (t / y)) / z) / (-3.0d0))
else
tmp = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 1e+51) {
tmp = x + (((y - (t / y)) / z) / -3.0);
} else {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 1e+51: tmp = x + (((y - (t / y)) / z) / -3.0) else: tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 1e+51) tmp = Float64(x + Float64(Float64(Float64(y - Float64(t / y)) / z) / -3.0)); else tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 1e+51) tmp = x + (((y - (t / y)) / z) / -3.0); else tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 1e+51], N[(x + N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / -3.0), $MachinePrecision]), $MachinePrecision], 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}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 10^{+51}:\\
\;\;\;\;x + \frac{\frac{y - \frac{t}{y}}{z}}{-3}\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 1e51Initial program 92.3%
sub-neg92.3%
associate-+l+92.3%
remove-double-neg92.3%
distribute-frac-neg92.3%
sub-neg92.3%
distribute-frac-neg92.3%
neg-mul-192.3%
*-commutative92.3%
associate-/l*92.3%
*-commutative92.3%
neg-mul-192.3%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.3%
metadata-eval98.3%
Simplified98.3%
*-commutative98.3%
clear-num98.3%
un-div-inv98.3%
div-inv98.4%
metadata-eval98.4%
Applied egg-rr98.4%
associate-/r*98.4%
Applied egg-rr98.4%
if 1e51 < (*.f64 z #s(literal 3 binary64)) Initial program 99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* 0.3333333333333333 (/ (/ t z) y))))
(if (<= y -5.4e+54)
(/ -0.3333333333333333 (/ z y))
(if (<= y -5.9e+41)
x
(if (<= y -7.6e-35)
t_1
(if (<= y -2.7e-62)
x
(if (<= y 1.8e-129)
t_1
(if (<= y 6.5e+34) x (/ y (* z -3.0))))))))))
double code(double x, double y, double z, double t) {
double t_1 = 0.3333333333333333 * ((t / z) / y);
double tmp;
if (y <= -5.4e+54) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= -5.9e+41) {
tmp = x;
} else if (y <= -7.6e-35) {
tmp = t_1;
} else if (y <= -2.7e-62) {
tmp = x;
} else if (y <= 1.8e-129) {
tmp = t_1;
} else if (y <= 6.5e+34) {
tmp = x;
} else {
tmp = y / (z * -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) :: t_1
real(8) :: tmp
t_1 = 0.3333333333333333d0 * ((t / z) / y)
if (y <= (-5.4d+54)) then
tmp = (-0.3333333333333333d0) / (z / y)
else if (y <= (-5.9d+41)) then
tmp = x
else if (y <= (-7.6d-35)) then
tmp = t_1
else if (y <= (-2.7d-62)) then
tmp = x
else if (y <= 1.8d-129) then
tmp = t_1
else if (y <= 6.5d+34) then
tmp = x
else
tmp = y / (z * (-3.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = 0.3333333333333333 * ((t / z) / y);
double tmp;
if (y <= -5.4e+54) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= -5.9e+41) {
tmp = x;
} else if (y <= -7.6e-35) {
tmp = t_1;
} else if (y <= -2.7e-62) {
tmp = x;
} else if (y <= 1.8e-129) {
tmp = t_1;
} else if (y <= 6.5e+34) {
tmp = x;
} else {
tmp = y / (z * -3.0);
}
return tmp;
}
def code(x, y, z, t): t_1 = 0.3333333333333333 * ((t / z) / y) tmp = 0 if y <= -5.4e+54: tmp = -0.3333333333333333 / (z / y) elif y <= -5.9e+41: tmp = x elif y <= -7.6e-35: tmp = t_1 elif y <= -2.7e-62: tmp = x elif y <= 1.8e-129: tmp = t_1 elif y <= 6.5e+34: tmp = x else: tmp = y / (z * -3.0) return tmp
function code(x, y, z, t) t_1 = Float64(0.3333333333333333 * Float64(Float64(t / z) / y)) tmp = 0.0 if (y <= -5.4e+54) tmp = Float64(-0.3333333333333333 / Float64(z / y)); elseif (y <= -5.9e+41) tmp = x; elseif (y <= -7.6e-35) tmp = t_1; elseif (y <= -2.7e-62) tmp = x; elseif (y <= 1.8e-129) tmp = t_1; elseif (y <= 6.5e+34) tmp = x; else tmp = Float64(y / Float64(z * -3.0)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = 0.3333333333333333 * ((t / z) / y); tmp = 0.0; if (y <= -5.4e+54) tmp = -0.3333333333333333 / (z / y); elseif (y <= -5.9e+41) tmp = x; elseif (y <= -7.6e-35) tmp = t_1; elseif (y <= -2.7e-62) tmp = x; elseif (y <= 1.8e-129) tmp = t_1; elseif (y <= 6.5e+34) tmp = x; else tmp = y / (z * -3.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.4e+54], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.9e+41], x, If[LessEqual[y, -7.6e-35], t$95$1, If[LessEqual[y, -2.7e-62], x, If[LessEqual[y, 1.8e-129], t$95$1, If[LessEqual[y, 6.5e+34], x, N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\mathbf{if}\;y \leq -5.4 \cdot 10^{+54}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq -5.9 \cdot 10^{+41}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -7.6 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.7 \cdot 10^{-62}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+34}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if y < -5.40000000000000022e54Initial program 99.8%
sub-neg99.8%
associate-+l+99.8%
remove-double-neg99.8%
distribute-frac-neg99.8%
sub-neg99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.9%
*-commutative99.9%
neg-mul-199.9%
times-frac99.9%
distribute-lft-out--99.9%
*-commutative99.9%
associate-/r*99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf 99.8%
cancel-sign-sub-inv99.8%
metadata-eval99.8%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 79.5%
clear-num79.5%
div-inv79.6%
metadata-eval79.6%
div-inv79.5%
*-un-lft-identity79.5%
*-commutative79.5%
times-frac79.5%
metadata-eval79.5%
clear-num79.5%
un-div-inv79.6%
Applied egg-rr79.6%
if -5.40000000000000022e54 < y < -5.9000000000000001e41 or -7.6000000000000002e-35 < y < -2.70000000000000019e-62 or 1.8e-129 < y < 6.50000000000000017e34Initial program 96.3%
sub-neg96.3%
associate-+l+96.3%
remove-double-neg96.3%
distribute-frac-neg96.3%
sub-neg96.3%
distribute-frac-neg96.3%
neg-mul-196.3%
*-commutative96.3%
associate-/l*96.3%
*-commutative96.3%
neg-mul-196.3%
times-frac98.1%
distribute-lft-out--98.1%
*-commutative98.1%
associate-/r*98.1%
metadata-eval98.1%
Simplified98.1%
Taylor expanded in x around inf 63.8%
if -5.9000000000000001e41 < y < -7.6000000000000002e-35 or -2.70000000000000019e-62 < y < 1.8e-129Initial program 88.2%
sub-neg88.2%
associate-+l+88.2%
remove-double-neg88.2%
distribute-frac-neg88.2%
sub-neg88.2%
distribute-frac-neg88.2%
neg-mul-188.2%
*-commutative88.2%
associate-/l*88.2%
*-commutative88.2%
neg-mul-188.2%
times-frac90.1%
distribute-lft-out--90.1%
*-commutative90.1%
associate-/r*90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in y around 0 88.8%
Taylor expanded in t around inf 72.4%
*-commutative72.4%
Simplified72.4%
*-commutative72.4%
associate-/l*72.4%
Applied egg-rr72.4%
if 6.50000000000000017e34 < y Initial program 99.8%
sub-neg99.8%
associate-+l+99.8%
remove-double-neg99.8%
distribute-frac-neg99.8%
sub-neg99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
*-commutative99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 95.6%
cancel-sign-sub-inv95.6%
metadata-eval95.6%
associate-*r/95.6%
metadata-eval95.6%
Simplified95.6%
Taylor expanded in x around 0 69.6%
clear-num69.6%
div-inv69.7%
metadata-eval69.7%
div-inv69.8%
Applied egg-rr69.8%
(FPCore (x y z t)
:precision binary64
(if (or (<= z -1.05e+233)
(not
(or (<= z -2.5e+157) (and (not (<= z -3.5e+81)) (<= z 2.9e+40)))))
(- x (* 0.3333333333333333 (/ y z)))
(* (/ (- y (/ t y)) z) -0.3333333333333333)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.05e+233) || !((z <= -2.5e+157) || (!(z <= -3.5e+81) && (z <= 2.9e+40)))) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = ((y - (t / 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 ((z <= (-1.05d+233)) .or. (.not. (z <= (-2.5d+157)) .or. (.not. (z <= (-3.5d+81))) .and. (z <= 2.9d+40))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = ((y - (t / 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 ((z <= -1.05e+233) || !((z <= -2.5e+157) || (!(z <= -3.5e+81) && (z <= 2.9e+40)))) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = ((y - (t / y)) / z) * -0.3333333333333333;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.05e+233) or not ((z <= -2.5e+157) or (not (z <= -3.5e+81) and (z <= 2.9e+40))): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = ((y - (t / y)) / z) * -0.3333333333333333 return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.05e+233) || !((z <= -2.5e+157) || (!(z <= -3.5e+81) && (z <= 2.9e+40)))) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(Float64(Float64(y - Float64(t / y)) / z) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.05e+233) || ~(((z <= -2.5e+157) || (~((z <= -3.5e+81)) && (z <= 2.9e+40))))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = ((y - (t / y)) / z) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.05e+233], N[Not[Or[LessEqual[z, -2.5e+157], And[N[Not[LessEqual[z, -3.5e+81]], $MachinePrecision], LessEqual[z, 2.9e+40]]]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+233} \lor \neg \left(z \leq -2.5 \cdot 10^{+157} \lor \neg \left(z \leq -3.5 \cdot 10^{+81}\right) \land z \leq 2.9 \cdot 10^{+40}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y - \frac{t}{y}}{z} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if z < -1.04999999999999998e233 or -2.49999999999999988e157 < z < -3.5e81 or 2.90000000000000017e40 < z Initial program 99.8%
Taylor expanded in t around 0 82.4%
if -1.04999999999999998e233 < z < -2.49999999999999988e157 or -3.5e81 < z < 2.90000000000000017e40Initial program 91.0%
sub-neg91.0%
associate-+l+91.0%
remove-double-neg91.0%
distribute-frac-neg91.0%
sub-neg91.0%
distribute-frac-neg91.0%
neg-mul-191.0%
*-commutative91.0%
associate-/l*91.0%
*-commutative91.0%
neg-mul-191.0%
times-frac98.7%
distribute-lft-out--98.7%
*-commutative98.7%
associate-/r*98.6%
metadata-eval98.6%
Simplified98.6%
+-commutative98.6%
associate-*l/98.6%
associate-/l*98.7%
Applied egg-rr98.7%
Taylor expanded in z around 0 86.9%
Final simplification85.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (* 0.3333333333333333 (/ y z)))))
(if (<= y -48.0)
t_1
(if (<= y -1.2e-123)
(+ x (* t (/ 0.3333333333333333 (* z y))))
(if (<= y 3.7e-284)
(* 0.3333333333333333 (/ (/ t z) y))
(if (<= y 9.9e+33)
(+ x (* 0.3333333333333333 (/ t (* z y))))
t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x - (0.3333333333333333 * (y / z));
double tmp;
if (y <= -48.0) {
tmp = t_1;
} else if (y <= -1.2e-123) {
tmp = x + (t * (0.3333333333333333 / (z * y)));
} else if (y <= 3.7e-284) {
tmp = 0.3333333333333333 * ((t / z) / y);
} else if (y <= 9.9e+33) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = t_1;
}
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 = x - (0.3333333333333333d0 * (y / z))
if (y <= (-48.0d0)) then
tmp = t_1
else if (y <= (-1.2d-123)) then
tmp = x + (t * (0.3333333333333333d0 / (z * y)))
else if (y <= 3.7d-284) then
tmp = 0.3333333333333333d0 * ((t / z) / y)
else if (y <= 9.9d+33) then
tmp = x + (0.3333333333333333d0 * (t / (z * y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x - (0.3333333333333333 * (y / z));
double tmp;
if (y <= -48.0) {
tmp = t_1;
} else if (y <= -1.2e-123) {
tmp = x + (t * (0.3333333333333333 / (z * y)));
} else if (y <= 3.7e-284) {
tmp = 0.3333333333333333 * ((t / z) / y);
} else if (y <= 9.9e+33) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (0.3333333333333333 * (y / z)) tmp = 0 if y <= -48.0: tmp = t_1 elif y <= -1.2e-123: tmp = x + (t * (0.3333333333333333 / (z * y))) elif y <= 3.7e-284: tmp = 0.3333333333333333 * ((t / z) / y) elif y <= 9.9e+33: tmp = x + (0.3333333333333333 * (t / (z * y))) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(0.3333333333333333 * Float64(y / z))) tmp = 0.0 if (y <= -48.0) tmp = t_1; elseif (y <= -1.2e-123) tmp = Float64(x + Float64(t * Float64(0.3333333333333333 / Float64(z * y)))); elseif (y <= 3.7e-284) tmp = Float64(0.3333333333333333 * Float64(Float64(t / z) / y)); elseif (y <= 9.9e+33) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (0.3333333333333333 * (y / z)); tmp = 0.0; if (y <= -48.0) tmp = t_1; elseif (y <= -1.2e-123) tmp = x + (t * (0.3333333333333333 / (z * y))); elseif (y <= 3.7e-284) tmp = 0.3333333333333333 * ((t / z) / y); elseif (y <= 9.9e+33) tmp = x + (0.3333333333333333 * (t / (z * y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -48.0], t$95$1, If[LessEqual[y, -1.2e-123], N[(x + N[(t * N[(0.3333333333333333 / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-284], N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.9e+33], N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{if}\;y \leq -48:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-123}:\\
\;\;\;\;x + t \cdot \frac{0.3333333333333333}{z \cdot y}\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-284}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\mathbf{elif}\;y \leq 9.9 \cdot 10^{+33}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -48 or 9.89999999999999986e33 < y Initial program 99.8%
Taylor expanded in t around 0 94.4%
if -48 < y < -1.2e-123Initial program 95.0%
sub-neg95.0%
associate-+l+95.0%
remove-double-neg95.0%
distribute-frac-neg95.0%
sub-neg95.0%
distribute-frac-neg95.0%
neg-mul-195.0%
*-commutative95.0%
associate-/l*95.0%
*-commutative95.0%
neg-mul-195.0%
times-frac97.5%
distribute-lft-out--97.4%
*-commutative97.4%
associate-/r*97.3%
metadata-eval97.3%
Simplified97.3%
Taylor expanded in y around 0 82.8%
*-commutative82.8%
associate-*l/82.8%
associate-*r/82.8%
Simplified82.8%
if -1.2e-123 < y < 3.7e-284Initial program 75.0%
sub-neg75.0%
associate-+l+75.0%
remove-double-neg75.0%
distribute-frac-neg75.0%
sub-neg75.0%
distribute-frac-neg75.0%
neg-mul-175.0%
*-commutative75.0%
associate-/l*75.0%
*-commutative75.0%
neg-mul-175.0%
times-frac86.9%
distribute-lft-out--86.9%
*-commutative86.9%
associate-/r*86.9%
metadata-eval86.9%
Simplified86.9%
Taylor expanded in y around 0 93.1%
Taylor expanded in t around inf 86.6%
*-commutative86.6%
Simplified86.6%
*-commutative86.6%
associate-/l*86.7%
Applied egg-rr86.7%
if 3.7e-284 < y < 9.89999999999999986e33Initial program 96.1%
sub-neg96.1%
associate-+l+96.1%
remove-double-neg96.1%
distribute-frac-neg96.1%
sub-neg96.1%
distribute-frac-neg96.1%
neg-mul-196.1%
*-commutative96.1%
associate-/l*96.1%
*-commutative96.1%
neg-mul-196.1%
times-frac91.7%
distribute-lft-out--91.7%
*-commutative91.7%
associate-/r*91.7%
metadata-eval91.7%
Simplified91.7%
Taylor expanded in y around 0 91.9%
Final simplification90.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* 0.3333333333333333 (/ t (* z y)))))
(t_2 (- x (* 0.3333333333333333 (/ y z)))))
(if (<= y -1.75e-26)
t_2
(if (<= y -1.2e-123)
t_1
(if (<= y 4e-284)
(* 0.3333333333333333 (/ (/ t z) y))
(if (<= y 5e+36) t_1 t_2))))))
double code(double x, double y, double z, double t) {
double t_1 = x + (0.3333333333333333 * (t / (z * y)));
double t_2 = x - (0.3333333333333333 * (y / z));
double tmp;
if (y <= -1.75e-26) {
tmp = t_2;
} else if (y <= -1.2e-123) {
tmp = t_1;
} else if (y <= 4e-284) {
tmp = 0.3333333333333333 * ((t / z) / y);
} else if (y <= 5e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x + (0.3333333333333333d0 * (t / (z * y)))
t_2 = x - (0.3333333333333333d0 * (y / z))
if (y <= (-1.75d-26)) then
tmp = t_2
else if (y <= (-1.2d-123)) then
tmp = t_1
else if (y <= 4d-284) then
tmp = 0.3333333333333333d0 * ((t / z) / y)
else if (y <= 5d+36) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + (0.3333333333333333 * (t / (z * y)));
double t_2 = x - (0.3333333333333333 * (y / z));
double tmp;
if (y <= -1.75e-26) {
tmp = t_2;
} else if (y <= -1.2e-123) {
tmp = t_1;
} else if (y <= 4e-284) {
tmp = 0.3333333333333333 * ((t / z) / y);
} else if (y <= 5e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (0.3333333333333333 * (t / (z * y))) t_2 = x - (0.3333333333333333 * (y / z)) tmp = 0 if y <= -1.75e-26: tmp = t_2 elif y <= -1.2e-123: tmp = t_1 elif y <= 4e-284: tmp = 0.3333333333333333 * ((t / z) / y) elif y <= 5e+36: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))) t_2 = Float64(x - Float64(0.3333333333333333 * Float64(y / z))) tmp = 0.0 if (y <= -1.75e-26) tmp = t_2; elseif (y <= -1.2e-123) tmp = t_1; elseif (y <= 4e-284) tmp = Float64(0.3333333333333333 * Float64(Float64(t / z) / y)); elseif (y <= 5e+36) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (0.3333333333333333 * (t / (z * y))); t_2 = x - (0.3333333333333333 * (y / z)); tmp = 0.0; if (y <= -1.75e-26) tmp = t_2; elseif (y <= -1.2e-123) tmp = t_1; elseif (y <= 4e-284) tmp = 0.3333333333333333 * ((t / z) / y); elseif (y <= 5e+36) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.75e-26], t$95$2, If[LessEqual[y, -1.2e-123], t$95$1, If[LessEqual[y, 4e-284], N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e+36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
t_2 := x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{if}\;y \leq -1.75 \cdot 10^{-26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-284}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.74999999999999992e-26 or 4.99999999999999977e36 < y Initial program 99.8%
Taylor expanded in t around 0 92.1%
if -1.74999999999999992e-26 < y < -1.2e-123 or 4.00000000000000015e-284 < y < 4.99999999999999977e36Initial program 95.4%
sub-neg95.4%
associate-+l+95.4%
remove-double-neg95.4%
distribute-frac-neg95.4%
sub-neg95.4%
distribute-frac-neg95.4%
neg-mul-195.4%
*-commutative95.4%
associate-/l*95.4%
*-commutative95.4%
neg-mul-195.4%
times-frac93.4%
distribute-lft-out--93.4%
*-commutative93.4%
associate-/r*93.4%
metadata-eval93.4%
Simplified93.4%
Taylor expanded in y around 0 90.6%
if -1.2e-123 < y < 4.00000000000000015e-284Initial program 75.0%
sub-neg75.0%
associate-+l+75.0%
remove-double-neg75.0%
distribute-frac-neg75.0%
sub-neg75.0%
distribute-frac-neg75.0%
neg-mul-175.0%
*-commutative75.0%
associate-/l*75.0%
*-commutative75.0%
neg-mul-175.0%
times-frac86.9%
distribute-lft-out--86.9%
*-commutative86.9%
associate-/r*86.9%
metadata-eval86.9%
Simplified86.9%
Taylor expanded in y around 0 93.1%
Taylor expanded in t around inf 86.6%
*-commutative86.6%
Simplified86.6%
*-commutative86.6%
associate-/l*86.7%
Applied egg-rr86.7%
Final simplification90.6%
(FPCore (x y z t) :precision binary64 (if (<= z 2e-16) (+ x (* (/ (- y (/ t y)) z) -0.3333333333333333)) (+ (- x (/ y (* z 3.0))) (* t (/ (/ 0.3333333333333333 z) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 2e-16) {
tmp = x + (((y - (t / y)) / z) * -0.3333333333333333);
} else {
tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / 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 (z <= 2d-16) then
tmp = x + (((y - (t / y)) / z) * (-0.3333333333333333d0))
else
tmp = (x - (y / (z * 3.0d0))) + (t * ((0.3333333333333333d0 / z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 2e-16) {
tmp = x + (((y - (t / y)) / z) * -0.3333333333333333);
} else {
tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= 2e-16: tmp = x + (((y - (t / y)) / z) * -0.3333333333333333) else: tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= 2e-16) tmp = Float64(x + Float64(Float64(Float64(y - Float64(t / y)) / z) * -0.3333333333333333)); else tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t * Float64(Float64(0.3333333333333333 / z) / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= 2e-16) tmp = x + (((y - (t / y)) / z) * -0.3333333333333333); else tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, 2e-16], N[(x + N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(0.3333333333333333 / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 2 \cdot 10^{-16}:\\
\;\;\;\;x + \frac{y - \frac{t}{y}}{z} \cdot -0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + t \cdot \frac{\frac{0.3333333333333333}{z}}{y}\\
\end{array}
\end{array}
if z < 2e-16Initial program 91.8%
sub-neg91.8%
associate-+l+91.8%
remove-double-neg91.8%
distribute-frac-neg91.8%
sub-neg91.8%
distribute-frac-neg91.8%
neg-mul-191.8%
*-commutative91.8%
associate-/l*91.8%
*-commutative91.8%
neg-mul-191.8%
times-frac98.3%
distribute-lft-out--98.3%
*-commutative98.3%
associate-/r*98.2%
metadata-eval98.2%
Simplified98.2%
+-commutative98.2%
associate-*l/98.3%
associate-/l*98.3%
Applied egg-rr98.3%
if 2e-16 < z Initial program 99.8%
clear-num99.8%
associate-/r/99.8%
associate-/r*99.8%
*-commutative99.8%
associate-/r*99.8%
metadata-eval99.8%
Applied egg-rr99.8%
Final simplification98.7%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.22e-26) (not (<= y 3.7e+43))) (- x (* 0.3333333333333333 (/ y z))) (+ x (* (/ t y) (/ 0.3333333333333333 z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.22e-26) || !(y <= 3.7e+43)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + ((t / 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 <= (-1.22d-26)) .or. (.not. (y <= 3.7d+43))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = x + ((t / 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 <= -1.22e-26) || !(y <= 3.7e+43)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = x + ((t / y) * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.22e-26) or not (y <= 3.7e+43): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = x + ((t / y) * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.22e-26) || !(y <= 3.7e+43)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(x + Float64(Float64(t / y) * Float64(0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.22e-26) || ~((y <= 3.7e+43))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = x + ((t / y) * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.22e-26], N[Not[LessEqual[y, 3.7e+43]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{-26} \lor \neg \left(y \leq 3.7 \cdot 10^{+43}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.22e-26 or 3.7000000000000001e43 < y Initial program 99.8%
Taylor expanded in t around 0 92.1%
if -1.22e-26 < y < 3.7000000000000001e43Initial program 89.3%
sub-neg89.3%
associate-+l+89.3%
remove-double-neg89.3%
distribute-frac-neg89.3%
sub-neg89.3%
distribute-frac-neg89.3%
neg-mul-189.3%
*-commutative89.3%
associate-/l*89.3%
*-commutative89.3%
neg-mul-189.3%
times-frac91.5%
distribute-lft-out--91.5%
*-commutative91.5%
associate-/r*91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in y around 0 85.3%
*-commutative85.3%
associate-*l/85.3%
associate-*r/84.8%
Simplified84.8%
associate-*r/85.3%
times-frac87.5%
Applied egg-rr87.5%
Final simplification89.5%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.85e-63) (not (<= y 3.2e-130))) (- x (* 0.3333333333333333 (/ y z))) (* 0.3333333333333333 (/ (/ t z) y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.85e-63) || !(y <= 3.2e-130)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = 0.3333333333333333 * ((t / z) / 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.85d-63)) .or. (.not. (y <= 3.2d-130))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = 0.3333333333333333d0 * ((t / z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.85e-63) || !(y <= 3.2e-130)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = 0.3333333333333333 * ((t / z) / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.85e-63) or not (y <= 3.2e-130): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = 0.3333333333333333 * ((t / z) / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.85e-63) || !(y <= 3.2e-130)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(0.3333333333333333 * Float64(Float64(t / z) / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.85e-63) || ~((y <= 3.2e-130))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = 0.3333333333333333 * ((t / z) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.85e-63], N[Not[LessEqual[y, 3.2e-130]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85 \cdot 10^{-63} \lor \neg \left(y \leq 3.2 \cdot 10^{-130}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\end{array}
\end{array}
if y < -1.85000000000000006e-63 or 3.2e-130 < y Initial program 98.7%
Taylor expanded in t around 0 83.4%
if -1.85000000000000006e-63 < y < 3.2e-130Initial program 85.6%
sub-neg85.6%
associate-+l+85.6%
remove-double-neg85.6%
distribute-frac-neg85.6%
sub-neg85.6%
distribute-frac-neg85.6%
neg-mul-185.6%
*-commutative85.6%
associate-/l*85.6%
*-commutative85.6%
neg-mul-185.6%
times-frac87.9%
distribute-lft-out--87.9%
*-commutative87.9%
associate-/r*87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in y around 0 94.7%
Taylor expanded in t around inf 78.7%
*-commutative78.7%
Simplified78.7%
*-commutative78.7%
associate-/l*78.8%
Applied egg-rr78.8%
Final simplification81.7%
(FPCore (x y z t) :precision binary64 (if (<= z 2.1e+163) (+ x (/ (/ (- y (/ t y)) z) -3.0)) (+ x (/ (* t 0.3333333333333333) (* z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 2.1e+163) {
tmp = x + (((y - (t / y)) / z) / -3.0);
} else {
tmp = x + ((t * 0.3333333333333333) / (z * 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 (z <= 2.1d+163) then
tmp = x + (((y - (t / y)) / z) / (-3.0d0))
else
tmp = x + ((t * 0.3333333333333333d0) / (z * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 2.1e+163) {
tmp = x + (((y - (t / y)) / z) / -3.0);
} else {
tmp = x + ((t * 0.3333333333333333) / (z * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= 2.1e+163: tmp = x + (((y - (t / y)) / z) / -3.0) else: tmp = x + ((t * 0.3333333333333333) / (z * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= 2.1e+163) tmp = Float64(x + Float64(Float64(Float64(y - Float64(t / y)) / z) / -3.0)); else tmp = Float64(x + Float64(Float64(t * 0.3333333333333333) / Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= 2.1e+163) tmp = x + (((y - (t / y)) / z) / -3.0); else tmp = x + ((t * 0.3333333333333333) / (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, 2.1e+163], N[(x + N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / -3.0), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t * 0.3333333333333333), $MachinePrecision] / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 2.1 \cdot 10^{+163}:\\
\;\;\;\;x + \frac{\frac{y - \frac{t}{y}}{z}}{-3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot 0.3333333333333333}{z \cdot y}\\
\end{array}
\end{array}
if z < 2.1e163Initial program 92.9%
sub-neg92.9%
associate-+l+92.9%
remove-double-neg92.9%
distribute-frac-neg92.9%
sub-neg92.9%
distribute-frac-neg92.9%
neg-mul-192.9%
*-commutative92.9%
associate-/l*92.9%
*-commutative92.9%
neg-mul-192.9%
times-frac97.7%
distribute-lft-out--97.7%
*-commutative97.7%
associate-/r*97.6%
metadata-eval97.6%
Simplified97.6%
*-commutative97.6%
clear-num97.6%
un-div-inv97.6%
div-inv97.7%
metadata-eval97.7%
Applied egg-rr97.7%
associate-/r*97.7%
Applied egg-rr97.7%
if 2.1e163 < z Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
neg-mul-199.9%
times-frac80.6%
distribute-lft-out--80.6%
*-commutative80.6%
associate-/r*80.5%
metadata-eval80.5%
Simplified80.5%
Taylor expanded in y around 0 91.6%
*-commutative91.6%
associate-*l/91.8%
associate-*r/91.8%
Simplified91.8%
+-commutative91.8%
associate-*r/91.8%
Applied egg-rr91.8%
Final simplification96.8%
(FPCore (x y z t) :precision binary64 (if (<= z 1.25e+160) (+ x (/ (- y (/ t y)) (* z -3.0))) (+ x (/ (* t 0.3333333333333333) (* z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 1.25e+160) {
tmp = x + ((y - (t / y)) / (z * -3.0));
} else {
tmp = x + ((t * 0.3333333333333333) / (z * 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 (z <= 1.25d+160) then
tmp = x + ((y - (t / y)) / (z * (-3.0d0)))
else
tmp = x + ((t * 0.3333333333333333d0) / (z * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 1.25e+160) {
tmp = x + ((y - (t / y)) / (z * -3.0));
} else {
tmp = x + ((t * 0.3333333333333333) / (z * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= 1.25e+160: tmp = x + ((y - (t / y)) / (z * -3.0)) else: tmp = x + ((t * 0.3333333333333333) / (z * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= 1.25e+160) tmp = Float64(x + Float64(Float64(y - Float64(t / y)) / Float64(z * -3.0))); else tmp = Float64(x + Float64(Float64(t * 0.3333333333333333) / Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= 1.25e+160) tmp = x + ((y - (t / y)) / (z * -3.0)); else tmp = x + ((t * 0.3333333333333333) / (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, 1.25e+160], N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t * 0.3333333333333333), $MachinePrecision] / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.25 \cdot 10^{+160}:\\
\;\;\;\;x + \frac{y - \frac{t}{y}}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot 0.3333333333333333}{z \cdot y}\\
\end{array}
\end{array}
if z < 1.25e160Initial program 92.9%
sub-neg92.9%
associate-+l+92.9%
remove-double-neg92.9%
distribute-frac-neg92.9%
sub-neg92.9%
distribute-frac-neg92.9%
neg-mul-192.9%
*-commutative92.9%
associate-/l*92.9%
*-commutative92.9%
neg-mul-192.9%
times-frac97.7%
distribute-lft-out--97.7%
*-commutative97.7%
associate-/r*97.6%
metadata-eval97.6%
Simplified97.6%
*-commutative97.6%
clear-num97.6%
un-div-inv97.6%
div-inv97.7%
metadata-eval97.7%
Applied egg-rr97.7%
if 1.25e160 < z Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
neg-mul-199.9%
times-frac80.6%
distribute-lft-out--80.6%
*-commutative80.6%
associate-/r*80.5%
metadata-eval80.5%
Simplified80.5%
Taylor expanded in y around 0 91.6%
*-commutative91.6%
associate-*l/91.8%
associate-*r/91.8%
Simplified91.8%
+-commutative91.8%
associate-*r/91.8%
Applied egg-rr91.8%
Final simplification96.8%
(FPCore (x y z t) :precision binary64 (if (<= z 1.65e+150) (+ x (* (- y (/ t y)) (/ -0.3333333333333333 z))) (+ x (/ (* t 0.3333333333333333) (* z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 1.65e+150) {
tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
} else {
tmp = x + ((t * 0.3333333333333333) / (z * 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 (z <= 1.65d+150) then
tmp = x + ((y - (t / y)) * ((-0.3333333333333333d0) / z))
else
tmp = x + ((t * 0.3333333333333333d0) / (z * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 1.65e+150) {
tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z));
} else {
tmp = x + ((t * 0.3333333333333333) / (z * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= 1.65e+150: tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z)) else: tmp = x + ((t * 0.3333333333333333) / (z * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= 1.65e+150) tmp = Float64(x + Float64(Float64(y - Float64(t / y)) * Float64(-0.3333333333333333 / z))); else tmp = Float64(x + Float64(Float64(t * 0.3333333333333333) / Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= 1.65e+150) tmp = x + ((y - (t / y)) * (-0.3333333333333333 / z)); else tmp = x + ((t * 0.3333333333333333) / (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, 1.65e+150], N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t * 0.3333333333333333), $MachinePrecision] / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.65 \cdot 10^{+150}:\\
\;\;\;\;x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot 0.3333333333333333}{z \cdot y}\\
\end{array}
\end{array}
if z < 1.6499999999999999e150Initial program 92.9%
sub-neg92.9%
associate-+l+92.9%
remove-double-neg92.9%
distribute-frac-neg92.9%
sub-neg92.9%
distribute-frac-neg92.9%
neg-mul-192.9%
*-commutative92.9%
associate-/l*92.9%
*-commutative92.9%
neg-mul-192.9%
times-frac97.7%
distribute-lft-out--97.7%
*-commutative97.7%
associate-/r*97.6%
metadata-eval97.6%
Simplified97.6%
if 1.6499999999999999e150 < z Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
neg-mul-199.9%
times-frac80.6%
distribute-lft-out--80.6%
*-commutative80.6%
associate-/r*80.5%
metadata-eval80.5%
Simplified80.5%
Taylor expanded in y around 0 91.6%
*-commutative91.6%
associate-*l/91.8%
associate-*r/91.8%
Simplified91.8%
+-commutative91.8%
associate-*r/91.8%
Applied egg-rr91.8%
Final simplification96.7%
(FPCore (x y z t) :precision binary64 (if (or (<= x -4.5e-14) (not (<= x 2.8e+113))) x (/ y (* z -3.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -4.5e-14) || !(x <= 2.8e+113)) {
tmp = x;
} else {
tmp = y / (z * -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 ((x <= (-4.5d-14)) .or. (.not. (x <= 2.8d+113))) then
tmp = x
else
tmp = y / (z * (-3.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -4.5e-14) || !(x <= 2.8e+113)) {
tmp = x;
} else {
tmp = y / (z * -3.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -4.5e-14) or not (x <= 2.8e+113): tmp = x else: tmp = y / (z * -3.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -4.5e-14) || !(x <= 2.8e+113)) tmp = x; else tmp = Float64(y / Float64(z * -3.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -4.5e-14) || ~((x <= 2.8e+113))) tmp = x; else tmp = y / (z * -3.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -4.5e-14], N[Not[LessEqual[x, 2.8e+113]], $MachinePrecision]], x, N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{-14} \lor \neg \left(x \leq 2.8 \cdot 10^{+113}\right):\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if x < -4.4999999999999998e-14 or 2.79999999999999998e113 < x Initial program 92.4%
sub-neg92.4%
associate-+l+92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
sub-neg92.4%
distribute-frac-neg92.4%
neg-mul-192.4%
*-commutative92.4%
associate-/l*92.4%
*-commutative92.4%
neg-mul-192.4%
times-frac97.3%
distribute-lft-out--97.3%
*-commutative97.3%
associate-/r*97.2%
metadata-eval97.2%
Simplified97.2%
Taylor expanded in x around inf 55.8%
if -4.4999999999999998e-14 < x < 2.79999999999999998e113Initial program 95.0%
sub-neg95.0%
associate-+l+95.0%
remove-double-neg95.0%
distribute-frac-neg95.0%
sub-neg95.0%
distribute-frac-neg95.0%
neg-mul-195.0%
*-commutative95.0%
associate-/l*95.0%
*-commutative95.0%
neg-mul-195.0%
times-frac93.6%
distribute-lft-out--93.6%
*-commutative93.6%
associate-/r*93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in y around inf 57.5%
cancel-sign-sub-inv57.5%
metadata-eval57.5%
associate-*r/57.5%
metadata-eval57.5%
Simplified57.5%
Taylor expanded in x around 0 46.2%
clear-num46.2%
div-inv46.2%
metadata-eval46.2%
div-inv46.2%
Applied egg-rr46.2%
Final simplification50.1%
(FPCore (x y z t) :precision binary64 (if (or (<= x -9e-15) (not (<= x 1.6e+113))) x (/ -0.3333333333333333 (/ z y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -9e-15) || !(x <= 1.6e+113)) {
tmp = x;
} else {
tmp = -0.3333333333333333 / (z / 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 <= (-9d-15)) .or. (.not. (x <= 1.6d+113))) then
tmp = x
else
tmp = (-0.3333333333333333d0) / (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -9e-15) || !(x <= 1.6e+113)) {
tmp = x;
} else {
tmp = -0.3333333333333333 / (z / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -9e-15) or not (x <= 1.6e+113): tmp = x else: tmp = -0.3333333333333333 / (z / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -9e-15) || !(x <= 1.6e+113)) tmp = x; else tmp = Float64(-0.3333333333333333 / Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -9e-15) || ~((x <= 1.6e+113))) tmp = x; else tmp = -0.3333333333333333 / (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -9e-15], N[Not[LessEqual[x, 1.6e+113]], $MachinePrecision]], x, N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-15} \lor \neg \left(x \leq 1.6 \cdot 10^{+113}\right):\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if x < -8.9999999999999995e-15 or 1.5999999999999999e113 < x Initial program 92.4%
sub-neg92.4%
associate-+l+92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
sub-neg92.4%
distribute-frac-neg92.4%
neg-mul-192.4%
*-commutative92.4%
associate-/l*92.4%
*-commutative92.4%
neg-mul-192.4%
times-frac97.3%
distribute-lft-out--97.3%
*-commutative97.3%
associate-/r*97.2%
metadata-eval97.2%
Simplified97.2%
Taylor expanded in x around inf 55.8%
if -8.9999999999999995e-15 < x < 1.5999999999999999e113Initial program 95.0%
sub-neg95.0%
associate-+l+95.0%
remove-double-neg95.0%
distribute-frac-neg95.0%
sub-neg95.0%
distribute-frac-neg95.0%
neg-mul-195.0%
*-commutative95.0%
associate-/l*95.0%
*-commutative95.0%
neg-mul-195.0%
times-frac93.6%
distribute-lft-out--93.6%
*-commutative93.6%
associate-/r*93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in y around inf 57.5%
cancel-sign-sub-inv57.5%
metadata-eval57.5%
associate-*r/57.5%
metadata-eval57.5%
Simplified57.5%
Taylor expanded in x around 0 46.2%
clear-num46.2%
div-inv46.2%
metadata-eval46.2%
div-inv46.2%
*-un-lft-identity46.2%
*-commutative46.2%
times-frac46.2%
metadata-eval46.2%
clear-num46.2%
un-div-inv46.2%
Applied egg-rr46.2%
Final simplification50.1%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1e-13) (not (<= x 1.6e+113))) x (* y (/ -0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1e-13) || !(x <= 1.6e+113)) {
tmp = x;
} else {
tmp = 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 ((x <= (-1d-13)) .or. (.not. (x <= 1.6d+113))) then
tmp = x
else
tmp = 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 ((x <= -1e-13) || !(x <= 1.6e+113)) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1e-13) or not (x <= 1.6e+113): tmp = x else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1e-13) || !(x <= 1.6e+113)) tmp = x; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1e-13) || ~((x <= 1.6e+113))) tmp = x; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1e-13], N[Not[LessEqual[x, 1.6e+113]], $MachinePrecision]], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{-13} \lor \neg \left(x \leq 1.6 \cdot 10^{+113}\right):\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if x < -1e-13 or 1.5999999999999999e113 < x Initial program 92.4%
sub-neg92.4%
associate-+l+92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
sub-neg92.4%
distribute-frac-neg92.4%
neg-mul-192.4%
*-commutative92.4%
associate-/l*92.4%
*-commutative92.4%
neg-mul-192.4%
times-frac97.3%
distribute-lft-out--97.3%
*-commutative97.3%
associate-/r*97.2%
metadata-eval97.2%
Simplified97.2%
Taylor expanded in x around inf 55.8%
if -1e-13 < x < 1.5999999999999999e113Initial program 95.0%
sub-neg95.0%
associate-+l+95.0%
remove-double-neg95.0%
distribute-frac-neg95.0%
sub-neg95.0%
distribute-frac-neg95.0%
neg-mul-195.0%
*-commutative95.0%
associate-/l*95.0%
*-commutative95.0%
neg-mul-195.0%
times-frac93.6%
distribute-lft-out--93.6%
*-commutative93.6%
associate-/r*93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in y around inf 57.5%
cancel-sign-sub-inv57.5%
metadata-eval57.5%
associate-*r/57.5%
metadata-eval57.5%
Simplified57.5%
Taylor expanded in x around 0 46.2%
Final simplification50.1%
(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.9%
sub-neg93.9%
associate-+l+93.9%
remove-double-neg93.9%
distribute-frac-neg93.9%
sub-neg93.9%
distribute-frac-neg93.9%
neg-mul-193.9%
*-commutative93.9%
associate-/l*93.9%
*-commutative93.9%
neg-mul-193.9%
times-frac95.1%
distribute-lft-out--95.1%
*-commutative95.1%
associate-/r*95.1%
metadata-eval95.1%
Simplified95.1%
Taylor expanded in x around inf 30.9%
(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 2024096
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:alt
(+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))