
(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 16 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) 3.5e-9) (+ x (/ (- (/ t y) y) (* z 3.0))) (+ x (fma -0.3333333333333333 (/ y z) (* (/ t 3.0) (/ (/ 1.0 y) z))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 3.5e-9) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = x + fma(-0.3333333333333333, (y / z), ((t / 3.0) * ((1.0 / y) / z)));
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 3.5e-9) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(x + fma(-0.3333333333333333, Float64(y / z), Float64(Float64(t / 3.0) * Float64(Float64(1.0 / y) / z)))); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 3.5e-9], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + N[(N[(t / 3.0), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 3.5 \cdot 10^{-9}:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + \mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, \frac{t}{3} \cdot \frac{\frac{1}{y}}{z}\right)\\
\end{array}
\end{array}
if (*.f64 z 3) < 3.4999999999999999e-9Initial program 93.2%
associate-*l*93.2%
*-commutative93.2%
Simplified93.2%
*-commutative93.2%
associate-*l*93.2%
associate-+l-93.2%
*-commutative93.2%
associate-/r*96.7%
sub-div98.3%
Applied egg-rr98.3%
if 3.4999999999999999e-9 < (*.f64 z 3) Initial program 99.7%
associate-+l-99.7%
sub-neg99.7%
remove-double-neg99.7%
distribute-neg-in99.7%
*-lft-identity99.7%
metadata-eval99.7%
times-frac99.7%
neg-mul-199.7%
distribute-rgt-neg-out99.7%
associate-*r/99.7%
neg-mul-199.7%
distribute-neg-out99.7%
neg-mul-199.7%
distribute-lft-neg-in99.7%
metadata-eval99.7%
*-lft-identity99.7%
Simplified99.8%
associate-/r*88.6%
div-inv88.6%
*-commutative88.6%
times-frac99.8%
Applied egg-rr99.8%
Final simplification98.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* -0.3333333333333333 (/ y z))))
(if (<= y -6.5)
t_1
(if (<= y -2.1e-231)
(* 0.3333333333333333 (/ t (* z y)))
(if (<= y 0.0062)
(* (/ t y) (/ 0.3333333333333333 z))
(if (<= y 1.55e+136)
t_1
(if (<= y 9e+179) x (* y (/ -0.3333333333333333 z)))))))))
double code(double x, double y, double z, double t) {
double t_1 = -0.3333333333333333 * (y / z);
double tmp;
if (y <= -6.5) {
tmp = t_1;
} else if (y <= -2.1e-231) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 0.0062) {
tmp = (t / y) * (0.3333333333333333 / z);
} else if (y <= 1.55e+136) {
tmp = t_1;
} else if (y <= 9e+179) {
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) :: t_1
real(8) :: tmp
t_1 = (-0.3333333333333333d0) * (y / z)
if (y <= (-6.5d0)) then
tmp = t_1
else if (y <= (-2.1d-231)) then
tmp = 0.3333333333333333d0 * (t / (z * y))
else if (y <= 0.0062d0) then
tmp = (t / y) * (0.3333333333333333d0 / z)
else if (y <= 1.55d+136) then
tmp = t_1
else if (y <= 9d+179) 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 t_1 = -0.3333333333333333 * (y / z);
double tmp;
if (y <= -6.5) {
tmp = t_1;
} else if (y <= -2.1e-231) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 0.0062) {
tmp = (t / y) * (0.3333333333333333 / z);
} else if (y <= 1.55e+136) {
tmp = t_1;
} else if (y <= 9e+179) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = -0.3333333333333333 * (y / z) tmp = 0 if y <= -6.5: tmp = t_1 elif y <= -2.1e-231: tmp = 0.3333333333333333 * (t / (z * y)) elif y <= 0.0062: tmp = (t / y) * (0.3333333333333333 / z) elif y <= 1.55e+136: tmp = t_1 elif y <= 9e+179: tmp = x else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) t_1 = Float64(-0.3333333333333333 * Float64(y / z)) tmp = 0.0 if (y <= -6.5) tmp = t_1; elseif (y <= -2.1e-231) tmp = Float64(0.3333333333333333 * Float64(t / Float64(z * y))); elseif (y <= 0.0062) tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / z)); elseif (y <= 1.55e+136) tmp = t_1; elseif (y <= 9e+179) tmp = x; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -0.3333333333333333 * (y / z); tmp = 0.0; if (y <= -6.5) tmp = t_1; elseif (y <= -2.1e-231) tmp = 0.3333333333333333 * (t / (z * y)); elseif (y <= 0.0062) tmp = (t / y) * (0.3333333333333333 / z); elseif (y <= 1.55e+136) tmp = t_1; elseif (y <= 9e+179) tmp = x; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5], t$95$1, If[LessEqual[y, -2.1e-231], N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.0062], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e+136], t$95$1, If[LessEqual[y, 9e+179], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{if}\;y \leq -6.5:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-231}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{elif}\;y \leq 0.0062:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+179}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -6.5 or 0.00619999999999999978 < y < 1.54999999999999992e136Initial program 96.2%
associate-*l*96.2%
*-commutative96.2%
Simplified96.2%
*-commutative96.2%
associate-*l*96.2%
associate-+l-96.2%
*-commutative96.2%
associate-/r*96.2%
sub-div99.6%
Applied egg-rr99.6%
Taylor expanded in y around inf 65.8%
if -6.5 < y < -2.09999999999999989e-231Initial program 99.7%
associate-*l*99.7%
*-commutative99.7%
Simplified99.7%
*-commutative99.7%
associate-*l*99.7%
associate-+l-99.7%
*-commutative99.7%
associate-/r*87.9%
sub-div87.9%
Applied egg-rr87.9%
Taylor expanded in y around 0 75.8%
if -2.09999999999999989e-231 < y < 0.00619999999999999978Initial program 89.8%
associate-*l*89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in z around 0 68.5%
Taylor expanded in t around inf 64.8%
associate-/l*64.8%
associate-/r/64.8%
Applied egg-rr64.8%
if 1.54999999999999992e136 < y < 9.0000000000000005e179Initial program 99.9%
Simplified99.9%
Taylor expanded in x around inf 67.7%
if 9.0000000000000005e179 < y Initial program 99.9%
associate-*l*99.9%
*-commutative99.9%
Simplified99.9%
*-commutative99.9%
associate-*l*99.9%
associate-+l-99.9%
*-commutative99.9%
associate-/r*99.9%
sub-div99.9%
Applied egg-rr99.9%
*-un-lft-identity99.9%
times-frac99.6%
Applied egg-rr99.6%
Taylor expanded in y around inf 88.2%
associate-*r/88.2%
associate-/l*88.2%
Simplified88.2%
associate-/r/88.3%
Applied egg-rr88.3%
Final simplification69.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* -0.3333333333333333 (/ y z))))
(if (<= y -65.0)
t_1
(if (<= y 2.05e-5)
(* 0.3333333333333333 (/ t (* z y)))
(if (<= y 1.55e+136)
t_1
(if (<= y 9e+179) x (* y (/ -0.3333333333333333 z))))))))
double code(double x, double y, double z, double t) {
double t_1 = -0.3333333333333333 * (y / z);
double tmp;
if (y <= -65.0) {
tmp = t_1;
} else if (y <= 2.05e-5) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 1.55e+136) {
tmp = t_1;
} else if (y <= 9e+179) {
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) :: t_1
real(8) :: tmp
t_1 = (-0.3333333333333333d0) * (y / z)
if (y <= (-65.0d0)) then
tmp = t_1
else if (y <= 2.05d-5) then
tmp = 0.3333333333333333d0 * (t / (z * y))
else if (y <= 1.55d+136) then
tmp = t_1
else if (y <= 9d+179) 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 t_1 = -0.3333333333333333 * (y / z);
double tmp;
if (y <= -65.0) {
tmp = t_1;
} else if (y <= 2.05e-5) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 1.55e+136) {
tmp = t_1;
} else if (y <= 9e+179) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = -0.3333333333333333 * (y / z) tmp = 0 if y <= -65.0: tmp = t_1 elif y <= 2.05e-5: tmp = 0.3333333333333333 * (t / (z * y)) elif y <= 1.55e+136: tmp = t_1 elif y <= 9e+179: tmp = x else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) t_1 = Float64(-0.3333333333333333 * Float64(y / z)) tmp = 0.0 if (y <= -65.0) tmp = t_1; elseif (y <= 2.05e-5) tmp = Float64(0.3333333333333333 * Float64(t / Float64(z * y))); elseif (y <= 1.55e+136) tmp = t_1; elseif (y <= 9e+179) tmp = x; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -0.3333333333333333 * (y / z); tmp = 0.0; if (y <= -65.0) tmp = t_1; elseif (y <= 2.05e-5) tmp = 0.3333333333333333 * (t / (z * y)); elseif (y <= 1.55e+136) tmp = t_1; elseif (y <= 9e+179) tmp = x; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -65.0], t$95$1, If[LessEqual[y, 2.05e-5], N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e+136], t$95$1, If[LessEqual[y, 9e+179], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{if}\;y \leq -65:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.05 \cdot 10^{-5}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+179}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -65 or 2.05000000000000002e-5 < y < 1.54999999999999992e136Initial program 96.2%
associate-*l*96.2%
*-commutative96.2%
Simplified96.2%
*-commutative96.2%
associate-*l*96.2%
associate-+l-96.2%
*-commutative96.2%
associate-/r*96.2%
sub-div99.6%
Applied egg-rr99.6%
Taylor expanded in y around inf 65.8%
if -65 < y < 2.05000000000000002e-5Initial program 92.7%
associate-*l*92.8%
*-commutative92.8%
Simplified92.8%
*-commutative92.8%
associate-*l*92.7%
associate-+l-92.7%
*-commutative92.7%
associate-/r*92.0%
sub-div92.0%
Applied egg-rr92.0%
Taylor expanded in y around 0 64.6%
if 1.54999999999999992e136 < y < 9.0000000000000005e179Initial program 99.9%
Simplified99.9%
Taylor expanded in x around inf 67.7%
if 9.0000000000000005e179 < y Initial program 99.9%
associate-*l*99.9%
*-commutative99.9%
Simplified99.9%
*-commutative99.9%
associate-*l*99.9%
associate-+l-99.9%
*-commutative99.9%
associate-/r*99.9%
sub-div99.9%
Applied egg-rr99.9%
*-un-lft-identity99.9%
times-frac99.6%
Applied egg-rr99.6%
Taylor expanded in y around inf 88.2%
associate-*r/88.2%
associate-/l*88.2%
Simplified88.2%
associate-/r/88.3%
Applied egg-rr88.3%
Final simplification67.4%
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -2e+25)
(- x (/ (/ y 3.0) z))
(if (<= (* z 3.0) 1e+54)
(* 0.3333333333333333 (/ (- (/ t y) y) z))
(- x (* (/ y z) 0.3333333333333333)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= -2e+25) {
tmp = x - ((y / 3.0) / z);
} else if ((z * 3.0) <= 1e+54) {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
} else {
tmp = x - ((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 * 3.0d0) <= (-2d+25)) then
tmp = x - ((y / 3.0d0) / z)
else if ((z * 3.0d0) <= 1d+54) then
tmp = 0.3333333333333333d0 * (((t / y) - y) / z)
else
tmp = x - ((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 * 3.0) <= -2e+25) {
tmp = x - ((y / 3.0) / z);
} else if ((z * 3.0) <= 1e+54) {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
} else {
tmp = x - ((y / z) * 0.3333333333333333);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= -2e+25: tmp = x - ((y / 3.0) / z) elif (z * 3.0) <= 1e+54: tmp = 0.3333333333333333 * (((t / y) - y) / z) else: tmp = x - ((y / z) * 0.3333333333333333) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= -2e+25) tmp = Float64(x - Float64(Float64(y / 3.0) / z)); elseif (Float64(z * 3.0) <= 1e+54) tmp = Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z)); else tmp = Float64(x - Float64(Float64(y / z) * 0.3333333333333333)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= -2e+25) tmp = x - ((y / 3.0) / z); elseif ((z * 3.0) <= 1e+54) tmp = 0.3333333333333333 * (((t / y) - y) / z); else tmp = x - ((y / z) * 0.3333333333333333); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -2e+25], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 1e+54], N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / z), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{+25}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\mathbf{elif}\;z \cdot 3 \leq 10^{+54}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{z} \cdot 0.3333333333333333\\
\end{array}
\end{array}
if (*.f64 z 3) < -2.00000000000000018e25Initial program 99.8%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
*-commutative99.8%
associate-*l*99.8%
associate-+l-99.8%
*-commutative99.8%
associate-/r*94.1%
sub-div94.1%
Applied egg-rr94.1%
Taylor expanded in y around inf 72.8%
metadata-eval72.8%
times-frac72.8%
*-lft-identity72.8%
associate-/r*72.9%
Simplified72.9%
if -2.00000000000000018e25 < (*.f64 z 3) < 1.0000000000000001e54Initial program 91.6%
associate-*l*91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in z around 0 90.2%
distribute-lft-out--90.2%
*-un-lft-identity90.2%
times-frac90.2%
metadata-eval90.2%
Applied egg-rr90.2%
if 1.0000000000000001e54 < (*.f64 z 3) Initial program 99.8%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in t around 0 78.4%
Final simplification84.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* y (/ -0.3333333333333333 z)))))
(if (<= y -0.04)
t_1
(if (<= y -4.2e-231)
(* 0.3333333333333333 (/ t (* z y)))
(if (<= y 2.25e-8) (* (/ t y) (/ 0.3333333333333333 z)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x + (y * (-0.3333333333333333 / z));
double tmp;
if (y <= -0.04) {
tmp = t_1;
} else if (y <= -4.2e-231) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 2.25e-8) {
tmp = (t / y) * (0.3333333333333333 / z);
} 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 + (y * ((-0.3333333333333333d0) / z))
if (y <= (-0.04d0)) then
tmp = t_1
else if (y <= (-4.2d-231)) then
tmp = 0.3333333333333333d0 * (t / (z * y))
else if (y <= 2.25d-8) then
tmp = (t / y) * (0.3333333333333333d0 / z)
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 + (y * (-0.3333333333333333 / z));
double tmp;
if (y <= -0.04) {
tmp = t_1;
} else if (y <= -4.2e-231) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 2.25e-8) {
tmp = (t / y) * (0.3333333333333333 / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (y * (-0.3333333333333333 / z)) tmp = 0 if y <= -0.04: tmp = t_1 elif y <= -4.2e-231: tmp = 0.3333333333333333 * (t / (z * y)) elif y <= 2.25e-8: tmp = (t / y) * (0.3333333333333333 / z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))) tmp = 0.0 if (y <= -0.04) tmp = t_1; elseif (y <= -4.2e-231) tmp = Float64(0.3333333333333333 * Float64(t / Float64(z * y))); elseif (y <= 2.25e-8) tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (y * (-0.3333333333333333 / z)); tmp = 0.0; if (y <= -0.04) tmp = t_1; elseif (y <= -4.2e-231) tmp = 0.3333333333333333 * (t / (z * y)); elseif (y <= 2.25e-8) tmp = (t / y) * (0.3333333333333333 / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.04], t$95$1, If[LessEqual[y, -4.2e-231], N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.25e-8], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{if}\;y \leq -0.04:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-231}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-8}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -0.0400000000000000008 or 2.24999999999999996e-8 < y Initial program 97.3%
Simplified99.7%
Taylor expanded in t around 0 94.5%
*-commutative94.5%
associate-*l/94.5%
associate-*r/94.4%
Simplified94.4%
if -0.0400000000000000008 < y < -4.19999999999999978e-231Initial program 99.7%
associate-*l*99.7%
*-commutative99.7%
Simplified99.7%
*-commutative99.7%
associate-*l*99.7%
associate-+l-99.7%
*-commutative99.7%
associate-/r*87.9%
sub-div87.9%
Applied egg-rr87.9%
Taylor expanded in y around 0 75.8%
if -4.19999999999999978e-231 < y < 2.24999999999999996e-8Initial program 89.8%
associate-*l*89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in z around 0 68.5%
Taylor expanded in t around inf 64.8%
associate-/l*64.8%
associate-/r/64.8%
Applied egg-rr64.8%
Final simplification80.8%
(FPCore (x y z t)
:precision binary64
(if (<= y -78.0)
(- x (* (/ y z) 0.3333333333333333))
(if (<= y -2.75e-232)
(* 0.3333333333333333 (/ t (* z y)))
(if (<= y 2.1e-11)
(* (/ t y) (/ 0.3333333333333333 z))
(+ x (* y (/ -0.3333333333333333 z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -78.0) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= -2.75e-232) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 2.1e-11) {
tmp = (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 <= (-78.0d0)) then
tmp = x - ((y / z) * 0.3333333333333333d0)
else if (y <= (-2.75d-232)) then
tmp = 0.3333333333333333d0 * (t / (z * y))
else if (y <= 2.1d-11) then
tmp = (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 <= -78.0) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= -2.75e-232) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 2.1e-11) {
tmp = (t / y) * (0.3333333333333333 / z);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -78.0: tmp = x - ((y / z) * 0.3333333333333333) elif y <= -2.75e-232: tmp = 0.3333333333333333 * (t / (z * y)) elif y <= 2.1e-11: tmp = (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 <= -78.0) tmp = Float64(x - Float64(Float64(y / z) * 0.3333333333333333)); elseif (y <= -2.75e-232) tmp = Float64(0.3333333333333333 * Float64(t / Float64(z * y))); elseif (y <= 2.1e-11) tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / z)); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -78.0) tmp = x - ((y / z) * 0.3333333333333333); elseif (y <= -2.75e-232) tmp = 0.3333333333333333 * (t / (z * y)); elseif (y <= 2.1e-11) tmp = (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, -78.0], N[(x - N[(N[(y / z), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.75e-232], N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e-11], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -78:\\
\;\;\;\;x - \frac{y}{z} \cdot 0.3333333333333333\\
\mathbf{elif}\;y \leq -2.75 \cdot 10^{-232}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-11}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -78Initial program 97.9%
associate-*l*97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in t around 0 95.0%
if -78 < y < -2.75000000000000011e-232Initial program 99.7%
associate-*l*99.7%
*-commutative99.7%
Simplified99.7%
*-commutative99.7%
associate-*l*99.7%
associate-+l-99.7%
*-commutative99.7%
associate-/r*87.9%
sub-div87.9%
Applied egg-rr87.9%
Taylor expanded in y around 0 75.8%
if -2.75000000000000011e-232 < y < 2.0999999999999999e-11Initial program 89.8%
associate-*l*89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in z around 0 68.5%
Taylor expanded in t around inf 64.8%
associate-/l*64.8%
associate-/r/64.8%
Applied egg-rr64.8%
if 2.0999999999999999e-11 < y Initial program 96.8%
Simplified99.7%
Taylor expanded in t around 0 94.0%
*-commutative94.0%
associate-*l/94.0%
associate-*r/94.1%
Simplified94.1%
Final simplification80.8%
(FPCore (x y z t)
:precision binary64
(if (<= y -0.04)
(- x (* (/ y z) 0.3333333333333333))
(if (<= y -3.4e-231)
(* 0.3333333333333333 (/ t (* z y)))
(if (<= y 3.4e-10)
(* (/ t y) (/ 0.3333333333333333 z))
(- x (/ (/ y 3.0) z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.04) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= -3.4e-231) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 3.4e-10) {
tmp = (t / y) * (0.3333333333333333 / z);
} else {
tmp = x - ((y / 3.0) / 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 <= (-0.04d0)) then
tmp = x - ((y / z) * 0.3333333333333333d0)
else if (y <= (-3.4d-231)) then
tmp = 0.3333333333333333d0 * (t / (z * y))
else if (y <= 3.4d-10) then
tmp = (t / y) * (0.3333333333333333d0 / z)
else
tmp = x - ((y / 3.0d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.04) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= -3.4e-231) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 3.4e-10) {
tmp = (t / y) * (0.3333333333333333 / z);
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -0.04: tmp = x - ((y / z) * 0.3333333333333333) elif y <= -3.4e-231: tmp = 0.3333333333333333 * (t / (z * y)) elif y <= 3.4e-10: tmp = (t / y) * (0.3333333333333333 / z) else: tmp = x - ((y / 3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -0.04) tmp = Float64(x - Float64(Float64(y / z) * 0.3333333333333333)); elseif (y <= -3.4e-231) tmp = Float64(0.3333333333333333 * Float64(t / Float64(z * y))); elseif (y <= 3.4e-10) tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / z)); else tmp = Float64(x - Float64(Float64(y / 3.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -0.04) tmp = x - ((y / z) * 0.3333333333333333); elseif (y <= -3.4e-231) tmp = 0.3333333333333333 * (t / (z * y)); elseif (y <= 3.4e-10) tmp = (t / y) * (0.3333333333333333 / z); else tmp = x - ((y / 3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -0.04], N[(x - N[(N[(y / z), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.4e-231], N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-10], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.04:\\
\;\;\;\;x - \frac{y}{z} \cdot 0.3333333333333333\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-231}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-10}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -0.0400000000000000008Initial program 97.9%
associate-*l*97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in t around 0 95.0%
if -0.0400000000000000008 < y < -3.4e-231Initial program 99.7%
associate-*l*99.7%
*-commutative99.7%
Simplified99.7%
*-commutative99.7%
associate-*l*99.7%
associate-+l-99.7%
*-commutative99.7%
associate-/r*87.9%
sub-div87.9%
Applied egg-rr87.9%
Taylor expanded in y around 0 75.8%
if -3.4e-231 < y < 3.40000000000000015e-10Initial program 89.8%
associate-*l*89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in z around 0 68.5%
Taylor expanded in t around inf 64.8%
associate-/l*64.8%
associate-/r/64.8%
Applied egg-rr64.8%
if 3.40000000000000015e-10 < y Initial program 96.8%
associate-*l*96.8%
*-commutative96.8%
Simplified96.8%
*-commutative96.8%
associate-*l*96.8%
associate-+l-96.8%
*-commutative96.8%
associate-/r*96.8%
sub-div99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 94.0%
metadata-eval94.0%
times-frac94.1%
*-lft-identity94.1%
associate-/r*94.1%
Simplified94.1%
Final simplification80.8%
(FPCore (x y z t) :precision binary64 (if (<= (* z 3.0) 5000000000.0) (+ x (/ (- (/ t y) y) (* z 3.0))) (+ (- x (/ 0.3333333333333333 (/ z y))) (/ t (* (* z 3.0) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 5000000000.0) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (x - (0.3333333333333333 / (z / y))) + (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) <= 5000000000.0d0) then
tmp = x + (((t / y) - y) / (z * 3.0d0))
else
tmp = (x - (0.3333333333333333d0 / (z / y))) + (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) <= 5000000000.0) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (x - (0.3333333333333333 / (z / y))) + (t / ((z * 3.0) * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 5000000000.0: tmp = x + (((t / y) - y) / (z * 3.0)) else: tmp = (x - (0.3333333333333333 / (z / y))) + (t / ((z * 3.0) * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 5000000000.0) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(Float64(x - Float64(0.3333333333333333 / Float64(z / y))) + 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) <= 5000000000.0) tmp = x + (((t / y) - y) / (z * 3.0)); else tmp = (x - (0.3333333333333333 / (z / y))) + (t / ((z * 3.0) * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 5000000000.0], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(0.3333333333333333 / N[(z / y), $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 5000000000:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{0.3333333333333333}{\frac{z}{y}}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\end{array}
\end{array}
if (*.f64 z 3) < 5e9Initial program 93.4%
associate-*l*93.4%
*-commutative93.4%
Simplified93.4%
*-commutative93.4%
associate-*l*93.4%
associate-+l-93.4%
*-commutative93.4%
associate-/r*96.7%
sub-div98.3%
Applied egg-rr98.3%
if 5e9 < (*.f64 z 3) Initial program 99.8%
clear-num99.7%
inv-pow99.7%
*-commutative99.7%
*-un-lft-identity99.7%
times-frac99.8%
metadata-eval99.8%
Applied egg-rr99.8%
unpow-199.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification98.6%
(FPCore (x y z t) :precision binary64 (if (<= (* z 3.0) 20000000.0) (+ x (/ (- (/ t y) 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) <= 20000000.0) {
tmp = x + (((t / y) - 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) <= 20000000.0d0) then
tmp = x + (((t / y) - 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) <= 20000000.0) {
tmp = x + (((t / y) - 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) <= 20000000.0: tmp = x + (((t / y) - 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) <= 20000000.0) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(z * Float64(3.0 * y)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 20000000.0) tmp = x + (((t / y) - 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], 20000000.0], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * N[(3.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 20000000:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{z \cdot \left(3 \cdot y\right)}\\
\end{array}
\end{array}
if (*.f64 z 3) < 2e7Initial program 93.3%
associate-*l*93.3%
*-commutative93.3%
Simplified93.3%
*-commutative93.3%
associate-*l*93.3%
associate-+l-93.3%
*-commutative93.3%
associate-/r*96.7%
sub-div98.3%
Applied egg-rr98.3%
if 2e7 < (*.f64 z 3) Initial program 99.8%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
Final simplification98.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -100000.0)
(- x (* (/ y z) 0.3333333333333333))
(if (<= y 0.0062)
(+ x (* 0.3333333333333333 (/ t (* z y))))
(- x (/ (/ y 3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -100000.0) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= 0.0062) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = x - ((y / 3.0) / 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 <= (-100000.0d0)) then
tmp = x - ((y / z) * 0.3333333333333333d0)
else if (y <= 0.0062d0) then
tmp = x + (0.3333333333333333d0 * (t / (z * y)))
else
tmp = x - ((y / 3.0d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -100000.0) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= 0.0062) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -100000.0: tmp = x - ((y / z) * 0.3333333333333333) elif y <= 0.0062: tmp = x + (0.3333333333333333 * (t / (z * y))) else: tmp = x - ((y / 3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -100000.0) tmp = Float64(x - Float64(Float64(y / z) * 0.3333333333333333)); elseif (y <= 0.0062) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))); else tmp = Float64(x - Float64(Float64(y / 3.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -100000.0) tmp = x - ((y / z) * 0.3333333333333333); elseif (y <= 0.0062) tmp = x + (0.3333333333333333 * (t / (z * y))); else tmp = x - ((y / 3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -100000.0], N[(x - N[(N[(y / z), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.0062], N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -100000:\\
\;\;\;\;x - \frac{y}{z} \cdot 0.3333333333333333\\
\mathbf{elif}\;y \leq 0.0062:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -1e5Initial program 97.9%
associate-*l*97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in t around 0 95.0%
if -1e5 < y < 0.00619999999999999978Initial program 92.7%
Simplified91.9%
Taylor expanded in t around inf 90.2%
if 0.00619999999999999978 < y Initial program 96.8%
associate-*l*96.8%
*-commutative96.8%
Simplified96.8%
*-commutative96.8%
associate-*l*96.8%
associate-+l-96.8%
*-commutative96.8%
associate-/r*96.8%
sub-div99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 94.0%
metadata-eval94.0%
times-frac94.1%
*-lft-identity94.1%
associate-/r*94.1%
Simplified94.1%
Final simplification92.3%
(FPCore (x y z t) :precision binary64 (if (<= y -5.9) (- x (* (/ y z) 0.3333333333333333)) (if (<= y 6.0) (+ x (/ (/ (/ t z) 3.0) y)) (- x (/ (/ y 3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.9) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= 6.0) {
tmp = x + (((t / z) / 3.0) / y);
} else {
tmp = x - ((y / 3.0) / 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 <= (-5.9d0)) then
tmp = x - ((y / z) * 0.3333333333333333d0)
else if (y <= 6.0d0) then
tmp = x + (((t / z) / 3.0d0) / y)
else
tmp = x - ((y / 3.0d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.9) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= 6.0) {
tmp = x + (((t / z) / 3.0) / y);
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -5.9: tmp = x - ((y / z) * 0.3333333333333333) elif y <= 6.0: tmp = x + (((t / z) / 3.0) / y) else: tmp = x - ((y / 3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -5.9) tmp = Float64(x - Float64(Float64(y / z) * 0.3333333333333333)); elseif (y <= 6.0) tmp = Float64(x + Float64(Float64(Float64(t / z) / 3.0) / y)); else tmp = Float64(x - Float64(Float64(y / 3.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -5.9) tmp = x - ((y / z) * 0.3333333333333333); elseif (y <= 6.0) tmp = x + (((t / z) / 3.0) / y); else tmp = x - ((y / 3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -5.9], N[(x - N[(N[(y / z), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.0], N[(x + N[(N[(N[(t / z), $MachinePrecision] / 3.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.9:\\
\;\;\;\;x - \frac{y}{z} \cdot 0.3333333333333333\\
\mathbf{elif}\;y \leq 6:\\
\;\;\;\;x + \frac{\frac{\frac{t}{z}}{3}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -5.9000000000000004Initial program 97.9%
associate-*l*97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in t around 0 95.0%
if -5.9000000000000004 < y < 6Initial program 92.7%
Simplified91.9%
Taylor expanded in t around inf 90.2%
associate-*r/90.2%
times-frac94.4%
metadata-eval94.4%
associate-/r*94.4%
associate-/l/94.4%
associate-/r*94.4%
associate-*l/94.4%
*-commutative94.4%
*-lft-identity94.4%
associate-/r*94.4%
Simplified94.4%
if 6 < y Initial program 96.8%
associate-*l*96.8%
*-commutative96.8%
Simplified96.8%
*-commutative96.8%
associate-*l*96.8%
associate-+l-96.8%
*-commutative96.8%
associate-/r*96.8%
sub-div99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 94.0%
metadata-eval94.0%
times-frac94.1%
*-lft-identity94.1%
associate-/r*94.1%
Simplified94.1%
Final simplification94.4%
(FPCore (x y z t) :precision binary64 (if (<= (* z 3.0) 3.6e+210) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))) (+ x (* 0.3333333333333333 (/ t (* z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 3.6e+210) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = x + (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 ((z * 3.0d0) <= 3.6d+210) then
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
else
tmp = x + (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 ((z * 3.0) <= 3.6e+210) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = x + (0.3333333333333333 * (t / (z * y)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 3.6e+210: tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) else: tmp = x + (0.3333333333333333 * (t / (z * y))) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 3.6e+210) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 3.6e+210) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); else tmp = x + (0.3333333333333333 * (t / (z * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 3.6e+210], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 3.6 \cdot 10^{+210}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\end{array}
\end{array}
if (*.f64 z 3) < 3.6000000000000003e210Initial program 94.5%
Simplified97.7%
if 3.6000000000000003e210 < (*.f64 z 3) Initial program 99.8%
Simplified73.8%
Taylor expanded in t around inf 92.7%
Final simplification97.3%
(FPCore (x y z t) :precision binary64 (if (<= (* z 3.0) 3.6e+210) (+ x (/ (- (/ t y) y) (* z 3.0))) (+ x (* 0.3333333333333333 (/ t (* z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 3.6e+210) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = x + (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 ((z * 3.0d0) <= 3.6d+210) then
tmp = x + (((t / y) - y) / (z * 3.0d0))
else
tmp = x + (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 ((z * 3.0) <= 3.6e+210) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = x + (0.3333333333333333 * (t / (z * y)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 3.6e+210: tmp = x + (((t / y) - y) / (z * 3.0)) else: tmp = x + (0.3333333333333333 * (t / (z * y))) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 3.6e+210) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 3.6e+210) tmp = x + (((t / y) - y) / (z * 3.0)); else tmp = x + (0.3333333333333333 * (t / (z * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 3.6e+210], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 3.6 \cdot 10^{+210}:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\end{array}
\end{array}
if (*.f64 z 3) < 3.6000000000000003e210Initial program 94.5%
associate-*l*94.5%
*-commutative94.5%
Simplified94.5%
*-commutative94.5%
associate-*l*94.5%
associate-+l-94.5%
*-commutative94.5%
associate-/r*96.5%
sub-div97.8%
Applied egg-rr97.8%
if 3.6000000000000003e210 < (*.f64 z 3) Initial program 99.8%
Simplified73.8%
Taylor expanded in t around inf 92.7%
Final simplification97.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -0.042)
(- x (* (/ y z) 0.3333333333333333))
(if (<= y 2.8e-9)
(/ 0.3333333333333333 (* z (/ y t)))
(- x (/ (/ y 3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.042) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= 2.8e-9) {
tmp = 0.3333333333333333 / (z * (y / t));
} else {
tmp = x - ((y / 3.0) / 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 <= (-0.042d0)) then
tmp = x - ((y / z) * 0.3333333333333333d0)
else if (y <= 2.8d-9) then
tmp = 0.3333333333333333d0 / (z * (y / t))
else
tmp = x - ((y / 3.0d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.042) {
tmp = x - ((y / z) * 0.3333333333333333);
} else if (y <= 2.8e-9) {
tmp = 0.3333333333333333 / (z * (y / t));
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -0.042: tmp = x - ((y / z) * 0.3333333333333333) elif y <= 2.8e-9: tmp = 0.3333333333333333 / (z * (y / t)) else: tmp = x - ((y / 3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -0.042) tmp = Float64(x - Float64(Float64(y / z) * 0.3333333333333333)); elseif (y <= 2.8e-9) tmp = Float64(0.3333333333333333 / Float64(z * Float64(y / t))); else tmp = Float64(x - Float64(Float64(y / 3.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -0.042) tmp = x - ((y / z) * 0.3333333333333333); elseif (y <= 2.8e-9) tmp = 0.3333333333333333 / (z * (y / t)); else tmp = x - ((y / 3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -0.042], N[(x - N[(N[(y / z), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e-9], N[(0.3333333333333333 / N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.042:\\
\;\;\;\;x - \frac{y}{z} \cdot 0.3333333333333333\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-9}:\\
\;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -0.0420000000000000026Initial program 97.9%
associate-*l*97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in t around 0 95.0%
if -0.0420000000000000026 < y < 2.79999999999999984e-9Initial program 92.7%
associate-*l*92.8%
*-commutative92.8%
Simplified92.8%
Taylor expanded in z around 0 68.5%
Taylor expanded in t around inf 64.5%
associate-/l*64.5%
associate-/r/64.5%
Applied egg-rr64.5%
*-commutative64.5%
clear-num64.5%
frac-times65.2%
metadata-eval65.2%
Applied egg-rr65.2%
if 2.79999999999999984e-9 < y Initial program 96.8%
associate-*l*96.8%
*-commutative96.8%
Simplified96.8%
*-commutative96.8%
associate-*l*96.8%
associate-+l-96.8%
*-commutative96.8%
associate-/r*96.8%
sub-div99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 94.0%
metadata-eval94.0%
times-frac94.1%
*-lft-identity94.1%
associate-/r*94.1%
Simplified94.1%
Final simplification79.3%
(FPCore (x y z t) :precision binary64 (if (<= z -1.05e+21) x (if (<= z 5e+16) (* -0.3333333333333333 (/ y z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.05e+21) {
tmp = x;
} else if (z <= 5e+16) {
tmp = -0.3333333333333333 * (y / z);
} 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 (z <= (-1.05d+21)) then
tmp = x
else if (z <= 5d+16) then
tmp = (-0.3333333333333333d0) * (y / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.05e+21) {
tmp = x;
} else if (z <= 5e+16) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.05e+21: tmp = x elif z <= 5e+16: tmp = -0.3333333333333333 * (y / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.05e+21) tmp = x; elseif (z <= 5e+16) tmp = Float64(-0.3333333333333333 * Float64(y / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.05e+21) tmp = x; elseif (z <= 5e+16) tmp = -0.3333333333333333 * (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.05e+21], x, If[LessEqual[z, 5e+16], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+21}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+16}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.05e21 or 5e16 < z Initial program 99.8%
Simplified90.6%
Taylor expanded in x around inf 53.4%
if -1.05e21 < z < 5e16Initial program 91.1%
associate-*l*91.1%
*-commutative91.1%
Simplified91.1%
*-commutative91.1%
associate-*l*91.1%
associate-+l-91.1%
*-commutative91.1%
associate-/r*97.7%
sub-div99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 46.3%
Final simplification49.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 94.9%
Simplified95.7%
Taylor expanded in x around inf 28.3%
Final simplification28.3%
(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 2024024
(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))))