
(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 18 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 (+ x (/ (- (/ t y) y) (* z 3.0))))
double code(double x, double y, double z, double t) {
return x + (((t / y) - y) / (z * 3.0));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((t / y) - y) / (z * 3.0d0))
end function
public static double code(double x, double y, double z, double t) {
return x + (((t / y) - y) / (z * 3.0));
}
def code(x, y, z, t): return x + (((t / y) - y) / (z * 3.0))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))) end
function tmp = code(x, y, z, t) tmp = x + (((t / y) - y) / (z * 3.0)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\frac{t}{y} - y}{z \cdot 3}
\end{array}
Initial program 94.4%
sub-neg94.4%
associate-+l+94.4%
+-commutative94.4%
remove-double-neg94.4%
distribute-frac-neg94.4%
distribute-neg-in94.4%
remove-double-neg94.4%
sub-neg94.4%
neg-mul-194.4%
times-frac96.7%
distribute-frac-neg96.7%
neg-mul-196.7%
*-commutative96.7%
associate-/l*96.7%
*-commutative96.7%
Simplified97.5%
*-commutative97.5%
clear-num97.5%
div-inv97.5%
metadata-eval97.5%
un-div-inv97.6%
Applied egg-rr97.6%
Final simplification97.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ y z) -0.3333333333333333))
(t_2 (* 0.3333333333333333 (/ t (* y z)))))
(if (<= y -6e-14)
t_1
(if (<= y 7.2e-49)
t_2
(if (<= y 1.02e-16) x (if (<= y 7.8e+27) t_2 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = (y / z) * -0.3333333333333333;
double t_2 = 0.3333333333333333 * (t / (y * z));
double tmp;
if (y <= -6e-14) {
tmp = t_1;
} else if (y <= 7.2e-49) {
tmp = t_2;
} else if (y <= 1.02e-16) {
tmp = x;
} else if (y <= 7.8e+27) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (y / z) * (-0.3333333333333333d0)
t_2 = 0.3333333333333333d0 * (t / (y * z))
if (y <= (-6d-14)) then
tmp = t_1
else if (y <= 7.2d-49) then
tmp = t_2
else if (y <= 1.02d-16) then
tmp = x
else if (y <= 7.8d+27) then
tmp = t_2
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 = (y / z) * -0.3333333333333333;
double t_2 = 0.3333333333333333 * (t / (y * z));
double tmp;
if (y <= -6e-14) {
tmp = t_1;
} else if (y <= 7.2e-49) {
tmp = t_2;
} else if (y <= 1.02e-16) {
tmp = x;
} else if (y <= 7.8e+27) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / z) * -0.3333333333333333 t_2 = 0.3333333333333333 * (t / (y * z)) tmp = 0 if y <= -6e-14: tmp = t_1 elif y <= 7.2e-49: tmp = t_2 elif y <= 1.02e-16: tmp = x elif y <= 7.8e+27: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / z) * -0.3333333333333333) t_2 = Float64(0.3333333333333333 * Float64(t / Float64(y * z))) tmp = 0.0 if (y <= -6e-14) tmp = t_1; elseif (y <= 7.2e-49) tmp = t_2; elseif (y <= 1.02e-16) tmp = x; elseif (y <= 7.8e+27) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / z) * -0.3333333333333333; t_2 = 0.3333333333333333 * (t / (y * z)); tmp = 0.0; if (y <= -6e-14) tmp = t_1; elseif (y <= 7.2e-49) tmp = t_2; elseif (y <= 1.02e-16) tmp = x; elseif (y <= 7.8e+27) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]}, Block[{t$95$2 = N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e-14], t$95$1, If[LessEqual[y, 7.2e-49], t$95$2, If[LessEqual[y, 1.02e-16], x, If[LessEqual[y, 7.8e+27], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} \cdot -0.3333333333333333\\
t_2 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{if}\;y \leq -6 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-16}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+27}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.9999999999999997e-14 or 7.7999999999999997e27 < y Initial program 97.1%
Taylor expanded in z around 0 72.7%
Taylor expanded in t around 0 63.1%
associate-/l*63.1%
*-commutative63.1%
Applied egg-rr63.1%
if -5.9999999999999997e-14 < y < 7.19999999999999939e-49 or 1.0200000000000001e-16 < y < 7.7999999999999997e27Initial program 91.9%
Taylor expanded in z around 0 69.1%
*-commutative69.1%
metadata-eval69.1%
div-inv69.2%
Applied egg-rr69.2%
Taylor expanded in t around inf 61.9%
if 7.19999999999999939e-49 < y < 1.0200000000000001e-16Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
sub-neg100.0%
associate-*l*100.0%
*-commutative100.0%
distribute-frac-neg2100.0%
distribute-rgt-neg-in100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 78.6%
Final simplification63.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ y z) -0.3333333333333333)))
(if (<= y -2.4e-12)
t_1
(if (<= y 4.5e-53)
(* 0.3333333333333333 (/ (/ t y) z))
(if (<= y 1.65e-12)
x
(if (<= y 1.5e+30) (* 0.3333333333333333 (/ t (* y z))) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = (y / z) * -0.3333333333333333;
double tmp;
if (y <= -2.4e-12) {
tmp = t_1;
} else if (y <= 4.5e-53) {
tmp = 0.3333333333333333 * ((t / y) / z);
} else if (y <= 1.65e-12) {
tmp = x;
} else if (y <= 1.5e+30) {
tmp = 0.3333333333333333 * (t / (y * 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 = (y / z) * (-0.3333333333333333d0)
if (y <= (-2.4d-12)) then
tmp = t_1
else if (y <= 4.5d-53) then
tmp = 0.3333333333333333d0 * ((t / y) / z)
else if (y <= 1.65d-12) then
tmp = x
else if (y <= 1.5d+30) then
tmp = 0.3333333333333333d0 * (t / (y * 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 = (y / z) * -0.3333333333333333;
double tmp;
if (y <= -2.4e-12) {
tmp = t_1;
} else if (y <= 4.5e-53) {
tmp = 0.3333333333333333 * ((t / y) / z);
} else if (y <= 1.65e-12) {
tmp = x;
} else if (y <= 1.5e+30) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / z) * -0.3333333333333333 tmp = 0 if y <= -2.4e-12: tmp = t_1 elif y <= 4.5e-53: tmp = 0.3333333333333333 * ((t / y) / z) elif y <= 1.65e-12: tmp = x elif y <= 1.5e+30: tmp = 0.3333333333333333 * (t / (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / z) * -0.3333333333333333) tmp = 0.0 if (y <= -2.4e-12) tmp = t_1; elseif (y <= 4.5e-53) tmp = Float64(0.3333333333333333 * Float64(Float64(t / y) / z)); elseif (y <= 1.65e-12) tmp = x; elseif (y <= 1.5e+30) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / z) * -0.3333333333333333; tmp = 0.0; if (y <= -2.4e-12) tmp = t_1; elseif (y <= 4.5e-53) tmp = 0.3333333333333333 * ((t / y) / z); elseif (y <= 1.65e-12) tmp = x; elseif (y <= 1.5e+30) tmp = 0.3333333333333333 * (t / (y * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]}, If[LessEqual[y, -2.4e-12], t$95$1, If[LessEqual[y, 4.5e-53], N[(0.3333333333333333 * N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e-12], x, If[LessEqual[y, 1.5e+30], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-53}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-12}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+30}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.39999999999999987e-12 or 1.49999999999999989e30 < y Initial program 97.1%
Taylor expanded in z around 0 72.7%
Taylor expanded in t around 0 63.1%
associate-/l*63.1%
*-commutative63.1%
Applied egg-rr63.1%
if -2.39999999999999987e-12 < y < 4.49999999999999985e-53Initial program 91.2%
Taylor expanded in z around 0 68.3%
*-commutative68.3%
metadata-eval68.3%
div-inv68.3%
Applied egg-rr68.3%
Taylor expanded in t around inf 61.9%
associate-/r*66.0%
Simplified66.0%
if 4.49999999999999985e-53 < y < 1.65e-12Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
sub-neg100.0%
associate-*l*100.0%
*-commutative100.0%
distribute-frac-neg2100.0%
distribute-rgt-neg-in100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 78.6%
if 1.65e-12 < y < 1.49999999999999989e30Initial program 99.8%
Taylor expanded in z around 0 79.9%
*-commutative79.9%
metadata-eval79.9%
div-inv80.1%
Applied egg-rr80.1%
Taylor expanded in t around inf 60.9%
Final simplification65.0%
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -2e+85)
(- x (/ (/ y z) 3.0))
(if (<= (* z 3.0) 2e+91)
(* 0.3333333333333333 (/ (- (/ t y) y) z))
(- x (/ 0.3333333333333333 (/ z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= -2e+85) {
tmp = x - ((y / z) / 3.0);
} else if ((z * 3.0) <= 2e+91) {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
} else {
tmp = x - (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 * 3.0d0) <= (-2d+85)) then
tmp = x - ((y / z) / 3.0d0)
else if ((z * 3.0d0) <= 2d+91) then
tmp = 0.3333333333333333d0 * (((t / y) - y) / z)
else
tmp = x - (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 * 3.0) <= -2e+85) {
tmp = x - ((y / z) / 3.0);
} else if ((z * 3.0) <= 2e+91) {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= -2e+85: tmp = x - ((y / z) / 3.0) elif (z * 3.0) <= 2e+91: tmp = 0.3333333333333333 * (((t / y) - y) / z) else: tmp = x - (0.3333333333333333 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= -2e+85) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (Float64(z * 3.0) <= 2e+91) tmp = Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z)); else tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= -2e+85) tmp = x - ((y / z) / 3.0); elseif ((z * 3.0) <= 2e+91) tmp = 0.3333333333333333 * (((t / y) - y) / z); else tmp = x - (0.3333333333333333 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -2e+85], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 2e+91], N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{+85}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;z \cdot 3 \leq 2 \cdot 10^{+91}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if (*.f64 z 3) < -2e85Initial program 97.9%
Taylor expanded in t around 0 78.1%
metadata-eval78.1%
times-frac78.1%
*-un-lft-identity78.1%
*-commutative78.1%
associate-/r*78.2%
Applied egg-rr78.2%
if -2e85 < (*.f64 z 3) < 2.00000000000000016e91Initial program 92.2%
Taylor expanded in z around 0 86.1%
distribute-lft-out--86.1%
*-commutative86.1%
Applied egg-rr86.1%
Taylor expanded in z around 0 86.1%
if 2.00000000000000016e91 < (*.f64 z 3) Initial program 99.7%
Taylor expanded in t around 0 86.9%
clear-num87.0%
un-div-inv87.0%
Applied egg-rr87.0%
Final simplification84.7%
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -1e+86)
(- x (/ (/ y z) 3.0))
(if (<= (* z 3.0) 2e+91)
(* (- (/ t y) y) (/ 0.3333333333333333 z))
(- x (/ 0.3333333333333333 (/ z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= -1e+86) {
tmp = x - ((y / z) / 3.0);
} else if ((z * 3.0) <= 2e+91) {
tmp = ((t / y) - y) * (0.3333333333333333 / z);
} else {
tmp = x - (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 * 3.0d0) <= (-1d+86)) then
tmp = x - ((y / z) / 3.0d0)
else if ((z * 3.0d0) <= 2d+91) then
tmp = ((t / y) - y) * (0.3333333333333333d0 / z)
else
tmp = x - (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 * 3.0) <= -1e+86) {
tmp = x - ((y / z) / 3.0);
} else if ((z * 3.0) <= 2e+91) {
tmp = ((t / y) - y) * (0.3333333333333333 / z);
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= -1e+86: tmp = x - ((y / z) / 3.0) elif (z * 3.0) <= 2e+91: tmp = ((t / y) - y) * (0.3333333333333333 / z) else: tmp = x - (0.3333333333333333 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= -1e+86) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (Float64(z * 3.0) <= 2e+91) tmp = Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 / z)); else tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= -1e+86) tmp = x - ((y / z) / 3.0); elseif ((z * 3.0) <= 2e+91) tmp = ((t / y) - y) * (0.3333333333333333 / z); else tmp = x - (0.3333333333333333 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -1e+86], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 2e+91], N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -1 \cdot 10^{+86}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;z \cdot 3 \leq 2 \cdot 10^{+91}:\\
\;\;\;\;\left(\frac{t}{y} - y\right) \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if (*.f64 z 3) < -1e86Initial program 97.9%
Taylor expanded in t around 0 77.7%
metadata-eval77.7%
times-frac77.7%
*-un-lft-identity77.7%
*-commutative77.7%
associate-/r*77.7%
Applied egg-rr77.7%
if -1e86 < (*.f64 z 3) < 2.00000000000000016e91Initial program 92.3%
Taylor expanded in z around 0 86.2%
distribute-lft-out--86.2%
*-commutative86.2%
Applied egg-rr86.2%
associate-/l*86.2%
metadata-eval86.2%
associate-/r*86.2%
*-commutative86.2%
*-commutative86.2%
*-commutative86.2%
associate-/r*86.2%
metadata-eval86.2%
Applied egg-rr86.2%
if 2.00000000000000016e91 < (*.f64 z 3) Initial program 99.7%
Taylor expanded in t around 0 86.9%
clear-num87.0%
un-div-inv87.0%
Applied egg-rr87.0%
Final simplification84.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.2e-12)
(- x (/ (/ y z) 3.0))
(if (<= y 2.5e+30)
(+ x (* (/ t y) (/ 0.3333333333333333 z)))
(- x (/ (/ y 3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.2e-12) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 2.5e+30) {
tmp = x + ((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 <= (-2.2d-12)) then
tmp = x - ((y / z) / 3.0d0)
else if (y <= 2.5d+30) then
tmp = x + ((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 <= -2.2e-12) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 2.5e+30) {
tmp = x + ((t / y) * (0.3333333333333333 / z));
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.2e-12: tmp = x - ((y / z) / 3.0) elif y <= 2.5e+30: tmp = x + ((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 <= -2.2e-12) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (y <= 2.5e+30) tmp = Float64(x + 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 <= -2.2e-12) tmp = x - ((y / z) / 3.0); elseif (y <= 2.5e+30) tmp = x + ((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, -2.2e-12], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+30], N[(x + N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{-12}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+30}:\\
\;\;\;\;x + \frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -2.19999999999999992e-12Initial program 98.0%
Taylor expanded in t around 0 87.0%
metadata-eval87.0%
times-frac86.9%
*-un-lft-identity86.9%
*-commutative86.9%
associate-/r*87.1%
Applied egg-rr87.1%
if -2.19999999999999992e-12 < y < 2.4999999999999999e30Initial program 92.4%
sub-neg92.4%
associate-+l+92.4%
+-commutative92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
sub-neg92.4%
neg-mul-192.4%
times-frac95.8%
distribute-frac-neg95.8%
neg-mul-195.8%
*-commutative95.8%
associate-/l*95.8%
*-commutative95.8%
Simplified95.8%
Taylor expanded in t around inf 92.5%
if 2.4999999999999999e30 < y Initial program 96.3%
Taylor expanded in t around 0 93.2%
metadata-eval93.2%
times-frac93.2%
*-un-lft-identity93.2%
associate-/r*93.3%
Applied egg-rr93.3%
Final simplification91.5%
(FPCore (x y z t) :precision binary64 (if (<= y -9.5e-13) (- x (/ (/ y z) 3.0)) (if (<= y 2.8e+29) (+ x (/ (/ t y) (* z 3.0))) (- x (/ (/ y 3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9.5e-13) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 2.8e+29) {
tmp = x + ((t / y) / (z * 3.0));
} 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 <= (-9.5d-13)) then
tmp = x - ((y / z) / 3.0d0)
else if (y <= 2.8d+29) then
tmp = x + ((t / y) / (z * 3.0d0))
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 <= -9.5e-13) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 2.8e+29) {
tmp = x + ((t / y) / (z * 3.0));
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9.5e-13: tmp = x - ((y / z) / 3.0) elif y <= 2.8e+29: tmp = x + ((t / y) / (z * 3.0)) else: tmp = x - ((y / 3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9.5e-13) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (y <= 2.8e+29) tmp = Float64(x + Float64(Float64(t / y) / Float64(z * 3.0))); 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 <= -9.5e-13) tmp = x - ((y / z) / 3.0); elseif (y <= 2.8e+29) tmp = x + ((t / y) / (z * 3.0)); else tmp = x - ((y / 3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9.5e-13], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+29], N[(x + N[(N[(t / y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{-13}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+29}:\\
\;\;\;\;x + \frac{\frac{t}{y}}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -9.49999999999999991e-13Initial program 98.0%
Taylor expanded in t around 0 87.0%
metadata-eval87.0%
times-frac86.9%
*-un-lft-identity86.9%
*-commutative86.9%
associate-/r*87.1%
Applied egg-rr87.1%
if -9.49999999999999991e-13 < y < 2.8e29Initial program 92.4%
sub-neg92.4%
associate-+l+92.4%
+-commutative92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
sub-neg92.4%
neg-mul-192.4%
times-frac95.8%
distribute-frac-neg95.8%
neg-mul-195.8%
*-commutative95.8%
associate-/l*95.8%
*-commutative95.8%
Simplified95.8%
*-commutative95.8%
clear-num95.8%
div-inv95.8%
metadata-eval95.8%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in t around inf 92.6%
if 2.8e29 < y Initial program 96.3%
Taylor expanded in t around 0 93.2%
metadata-eval93.2%
times-frac93.2%
*-un-lft-identity93.2%
associate-/r*93.3%
Applied egg-rr93.3%
Final simplification91.6%
(FPCore (x y z t) :precision binary64 (if (<= y -8.5e-13) (- x (/ (/ y z) 3.0)) (if (<= y 3.3e+27) (+ x (/ (/ t (* y 3.0)) z)) (- x (/ (/ y 3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.5e-13) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 3.3e+27) {
tmp = x + ((t / (y * 3.0)) / 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 <= (-8.5d-13)) then
tmp = x - ((y / z) / 3.0d0)
else if (y <= 3.3d+27) then
tmp = x + ((t / (y * 3.0d0)) / 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 <= -8.5e-13) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 3.3e+27) {
tmp = x + ((t / (y * 3.0)) / z);
} else {
tmp = x - ((y / 3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.5e-13: tmp = x - ((y / z) / 3.0) elif y <= 3.3e+27: tmp = x + ((t / (y * 3.0)) / z) else: tmp = x - ((y / 3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.5e-13) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (y <= 3.3e+27) tmp = Float64(x + Float64(Float64(t / Float64(y * 3.0)) / 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 <= -8.5e-13) tmp = x - ((y / z) / 3.0); elseif (y <= 3.3e+27) tmp = x + ((t / (y * 3.0)) / z); else tmp = x - ((y / 3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.5e-13], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+27], N[(x + N[(N[(t / N[(y * 3.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-13}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+27}:\\
\;\;\;\;x + \frac{\frac{t}{y \cdot 3}}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\end{array}
\end{array}
if y < -8.5000000000000001e-13Initial program 98.0%
Taylor expanded in t around 0 87.0%
metadata-eval87.0%
times-frac86.9%
*-un-lft-identity86.9%
*-commutative86.9%
associate-/r*87.1%
Applied egg-rr87.1%
if -8.5000000000000001e-13 < y < 3.2999999999999998e27Initial program 92.4%
sub-neg92.4%
associate-+l+92.4%
+-commutative92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
sub-neg92.4%
neg-mul-192.4%
times-frac95.8%
distribute-frac-neg95.8%
neg-mul-195.8%
*-commutative95.8%
associate-/l*95.8%
*-commutative95.8%
Simplified95.8%
Taylor expanded in t around inf 89.6%
metadata-eval89.6%
associate-/r*92.4%
times-frac92.6%
*-commutative92.6%
times-frac92.5%
associate-/r*92.5%
associate-*l/92.6%
*-lft-identity92.6%
Simplified92.6%
if 3.2999999999999998e27 < y Initial program 96.3%
Taylor expanded in t around 0 93.2%
metadata-eval93.2%
times-frac93.2%
*-un-lft-identity93.2%
associate-/r*93.3%
Applied egg-rr93.3%
Final simplification91.6%
(FPCore (x y z t) :precision binary64 (if (or (<= y -9.5e-15) (not (<= y 2.15e-69))) (+ x (* y (/ -0.3333333333333333 z))) (* 0.3333333333333333 (/ (/ t y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -9.5e-15) || !(y <= 2.15e-69)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = 0.3333333333333333 * ((t / y) / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-9.5d-15)) .or. (.not. (y <= 2.15d-69))) then
tmp = x + (y * ((-0.3333333333333333d0) / z))
else
tmp = 0.3333333333333333d0 * ((t / y) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -9.5e-15) || !(y <= 2.15e-69)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = 0.3333333333333333 * ((t / y) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -9.5e-15) or not (y <= 2.15e-69): tmp = x + (y * (-0.3333333333333333 / z)) else: tmp = 0.3333333333333333 * ((t / y) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -9.5e-15) || !(y <= 2.15e-69)) tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); else tmp = Float64(0.3333333333333333 * Float64(Float64(t / y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -9.5e-15) || ~((y <= 2.15e-69))) tmp = x + (y * (-0.3333333333333333 / z)); else tmp = 0.3333333333333333 * ((t / y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -9.5e-15], N[Not[LessEqual[y, 2.15e-69]], $MachinePrecision]], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{-15} \lor \neg \left(y \leq 2.15 \cdot 10^{-69}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}\\
\end{array}
\end{array}
if y < -9.5000000000000005e-15 or 2.15e-69 < y Initial program 96.9%
sub-neg96.9%
associate-+l+96.9%
+-commutative96.9%
remove-double-neg96.9%
distribute-frac-neg96.9%
distribute-neg-in96.9%
remove-double-neg96.9%
sub-neg96.9%
neg-mul-196.9%
times-frac98.3%
distribute-frac-neg98.3%
neg-mul-198.3%
*-commutative98.3%
associate-/l*98.2%
*-commutative98.2%
Simplified99.7%
Taylor expanded in t around 0 83.8%
metadata-eval83.8%
distribute-lft-neg-in83.8%
*-commutative83.8%
associate-*l/83.8%
associate-*r/83.8%
distribute-rgt-neg-out83.8%
distribute-neg-frac83.8%
metadata-eval83.8%
Simplified83.8%
if -9.5000000000000005e-15 < y < 2.15e-69Initial program 91.5%
Taylor expanded in z around 0 68.1%
*-commutative68.1%
metadata-eval68.1%
div-inv68.2%
Applied egg-rr68.2%
Taylor expanded in t around inf 63.0%
associate-/r*67.2%
Simplified67.2%
Final simplification76.1%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.5e-14) (not (<= y 6.5e-69))) (- x (* 0.3333333333333333 (/ y z))) (* 0.3333333333333333 (/ (/ t y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.5e-14) || !(y <= 6.5e-69)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = 0.3333333333333333 * ((t / y) / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.5d-14)) .or. (.not. (y <= 6.5d-69))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = 0.3333333333333333d0 * ((t / y) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.5e-14) || !(y <= 6.5e-69)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = 0.3333333333333333 * ((t / y) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.5e-14) or not (y <= 6.5e-69): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = 0.3333333333333333 * ((t / y) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.5e-14) || !(y <= 6.5e-69)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(0.3333333333333333 * Float64(Float64(t / y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.5e-14) || ~((y <= 6.5e-69))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = 0.3333333333333333 * ((t / y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.5e-14], N[Not[LessEqual[y, 6.5e-69]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{-14} \lor \neg \left(y \leq 6.5 \cdot 10^{-69}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}\\
\end{array}
\end{array}
if y < -1.4999999999999999e-14 or 6.49999999999999951e-69 < y Initial program 96.9%
Taylor expanded in t around 0 83.8%
if -1.4999999999999999e-14 < y < 6.49999999999999951e-69Initial program 91.5%
Taylor expanded in z around 0 68.1%
*-commutative68.1%
metadata-eval68.1%
div-inv68.2%
Applied egg-rr68.2%
Taylor expanded in t around inf 63.0%
associate-/r*67.2%
Simplified67.2%
Final simplification76.1%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.06e-14) (not (<= y 5.2e-69))) (- x (/ 0.3333333333333333 (/ z y))) (* 0.3333333333333333 (/ (/ t y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.06e-14) || !(y <= 5.2e-69)) {
tmp = x - (0.3333333333333333 / (z / y));
} else {
tmp = 0.3333333333333333 * ((t / y) / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.06d-14)) .or. (.not. (y <= 5.2d-69))) then
tmp = x - (0.3333333333333333d0 / (z / y))
else
tmp = 0.3333333333333333d0 * ((t / y) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.06e-14) || !(y <= 5.2e-69)) {
tmp = x - (0.3333333333333333 / (z / y));
} else {
tmp = 0.3333333333333333 * ((t / y) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.06e-14) or not (y <= 5.2e-69): tmp = x - (0.3333333333333333 / (z / y)) else: tmp = 0.3333333333333333 * ((t / y) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.06e-14) || !(y <= 5.2e-69)) tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); else tmp = Float64(0.3333333333333333 * Float64(Float64(t / y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.06e-14) || ~((y <= 5.2e-69))) tmp = x - (0.3333333333333333 / (z / y)); else tmp = 0.3333333333333333 * ((t / y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.06e-14], N[Not[LessEqual[y, 5.2e-69]], $MachinePrecision]], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.06 \cdot 10^{-14} \lor \neg \left(y \leq 5.2 \cdot 10^{-69}\right):\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}\\
\end{array}
\end{array}
if y < -1.06e-14 or 5.2000000000000004e-69 < y Initial program 96.9%
Taylor expanded in t around 0 83.8%
clear-num83.8%
un-div-inv83.8%
Applied egg-rr83.8%
if -1.06e-14 < y < 5.2000000000000004e-69Initial program 91.5%
Taylor expanded in z around 0 68.1%
*-commutative68.1%
metadata-eval68.1%
div-inv68.2%
Applied egg-rr68.2%
Taylor expanded in t around inf 63.0%
associate-/r*67.2%
Simplified67.2%
Final simplification76.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -4.7e-15)
(- x (/ (/ y 3.0) z))
(if (<= y 4.8e-69)
(* 0.3333333333333333 (/ (/ t y) z))
(- x (/ 0.3333333333333333 (/ z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.7e-15) {
tmp = x - ((y / 3.0) / z);
} else if (y <= 4.8e-69) {
tmp = 0.3333333333333333 * ((t / y) / z);
} else {
tmp = x - (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 (y <= (-4.7d-15)) then
tmp = x - ((y / 3.0d0) / z)
else if (y <= 4.8d-69) then
tmp = 0.3333333333333333d0 * ((t / y) / z)
else
tmp = x - (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 (y <= -4.7e-15) {
tmp = x - ((y / 3.0) / z);
} else if (y <= 4.8e-69) {
tmp = 0.3333333333333333 * ((t / y) / z);
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -4.7e-15: tmp = x - ((y / 3.0) / z) elif y <= 4.8e-69: tmp = 0.3333333333333333 * ((t / y) / z) else: tmp = x - (0.3333333333333333 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -4.7e-15) tmp = Float64(x - Float64(Float64(y / 3.0) / z)); elseif (y <= 4.8e-69) tmp = Float64(0.3333333333333333 * Float64(Float64(t / y) / z)); else tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -4.7e-15) tmp = x - ((y / 3.0) / z); elseif (y <= 4.8e-69) tmp = 0.3333333333333333 * ((t / y) / z); else tmp = x - (0.3333333333333333 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -4.7e-15], N[(x - N[(N[(y / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-69], N[(0.3333333333333333 * N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.7 \cdot 10^{-15}:\\
\;\;\;\;x - \frac{\frac{y}{3}}{z}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-69}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if y < -4.6999999999999999e-15Initial program 98.0%
Taylor expanded in t around 0 87.0%
metadata-eval87.0%
times-frac86.9%
*-un-lft-identity86.9%
associate-/r*87.1%
Applied egg-rr87.1%
if -4.6999999999999999e-15 < y < 4.8000000000000002e-69Initial program 91.5%
Taylor expanded in z around 0 68.1%
*-commutative68.1%
metadata-eval68.1%
div-inv68.2%
Applied egg-rr68.2%
Taylor expanded in t around inf 63.0%
associate-/r*67.2%
Simplified67.2%
if 4.8000000000000002e-69 < y Initial program 96.3%
Taylor expanded in t around 0 81.8%
clear-num81.8%
un-div-inv81.8%
Applied egg-rr81.8%
Final simplification76.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -9.5e-15)
(- x (/ (/ y z) 3.0))
(if (<= y 6.5e-69)
(* 0.3333333333333333 (/ (/ t y) z))
(- x (/ 0.3333333333333333 (/ z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9.5e-15) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 6.5e-69) {
tmp = 0.3333333333333333 * ((t / y) / z);
} else {
tmp = x - (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 (y <= (-9.5d-15)) then
tmp = x - ((y / z) / 3.0d0)
else if (y <= 6.5d-69) then
tmp = 0.3333333333333333d0 * ((t / y) / z)
else
tmp = x - (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 (y <= -9.5e-15) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 6.5e-69) {
tmp = 0.3333333333333333 * ((t / y) / z);
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9.5e-15: tmp = x - ((y / z) / 3.0) elif y <= 6.5e-69: tmp = 0.3333333333333333 * ((t / y) / z) else: tmp = x - (0.3333333333333333 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9.5e-15) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (y <= 6.5e-69) tmp = Float64(0.3333333333333333 * Float64(Float64(t / y) / z)); else tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -9.5e-15) tmp = x - ((y / z) / 3.0); elseif (y <= 6.5e-69) tmp = 0.3333333333333333 * ((t / y) / z); else tmp = x - (0.3333333333333333 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9.5e-15], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e-69], N[(0.3333333333333333 * N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{-15}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-69}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if y < -9.5000000000000005e-15Initial program 98.0%
Taylor expanded in t around 0 87.0%
metadata-eval87.0%
times-frac86.9%
*-un-lft-identity86.9%
*-commutative86.9%
associate-/r*87.1%
Applied egg-rr87.1%
if -9.5000000000000005e-15 < y < 6.49999999999999951e-69Initial program 91.5%
Taylor expanded in z around 0 68.1%
*-commutative68.1%
metadata-eval68.1%
div-inv68.2%
Applied egg-rr68.2%
Taylor expanded in t around inf 63.0%
associate-/r*67.2%
Simplified67.2%
if 6.49999999999999951e-69 < y Initial program 96.3%
Taylor expanded in t around 0 81.8%
clear-num81.8%
un-div-inv81.8%
Applied egg-rr81.8%
Final simplification76.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.45e-15)
(- x (/ (/ y z) 3.0))
(if (<= y 2.4e-69)
(/ (* (/ t y) 0.3333333333333333) z)
(- x (/ 0.3333333333333333 (/ z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.45e-15) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 2.4e-69) {
tmp = ((t / y) * 0.3333333333333333) / z;
} else {
tmp = x - (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 (y <= (-1.45d-15)) then
tmp = x - ((y / z) / 3.0d0)
else if (y <= 2.4d-69) then
tmp = ((t / y) * 0.3333333333333333d0) / z
else
tmp = x - (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 (y <= -1.45e-15) {
tmp = x - ((y / z) / 3.0);
} else if (y <= 2.4e-69) {
tmp = ((t / y) * 0.3333333333333333) / z;
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.45e-15: tmp = x - ((y / z) / 3.0) elif y <= 2.4e-69: tmp = ((t / y) * 0.3333333333333333) / z else: tmp = x - (0.3333333333333333 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.45e-15) tmp = Float64(x - Float64(Float64(y / z) / 3.0)); elseif (y <= 2.4e-69) tmp = Float64(Float64(Float64(t / y) * 0.3333333333333333) / z); else tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.45e-15) tmp = x - ((y / z) / 3.0); elseif (y <= 2.4e-69) tmp = ((t / y) * 0.3333333333333333) / z; else tmp = x - (0.3333333333333333 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.45e-15], N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e-69], N[(N[(N[(t / y), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{-15}:\\
\;\;\;\;x - \frac{\frac{y}{z}}{3}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-69}:\\
\;\;\;\;\frac{\frac{t}{y} \cdot 0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if y < -1.45000000000000009e-15Initial program 98.0%
Taylor expanded in t around 0 87.0%
metadata-eval87.0%
times-frac86.9%
*-un-lft-identity86.9%
*-commutative86.9%
associate-/r*87.1%
Applied egg-rr87.1%
if -1.45000000000000009e-15 < y < 2.4000000000000001e-69Initial program 91.5%
Taylor expanded in z around 0 68.1%
distribute-lft-out--68.1%
*-commutative68.1%
Applied egg-rr68.1%
Taylor expanded in t around inf 67.2%
if 2.4000000000000001e-69 < y Initial program 96.3%
Taylor expanded in t around 0 81.8%
clear-num81.8%
un-div-inv81.8%
Applied egg-rr81.8%
Final simplification76.1%
(FPCore (x y z t) :precision binary64 (if (<= x -1.9e+58) x (if (<= x 3.2e-69) (* y (/ -0.3333333333333333 z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.9e+58) {
tmp = x;
} else if (x <= 3.2e-69) {
tmp = y * (-0.3333333333333333 / 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 (x <= (-1.9d+58)) then
tmp = x
else if (x <= 3.2d-69) then
tmp = y * ((-0.3333333333333333d0) / 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 (x <= -1.9e+58) {
tmp = x;
} else if (x <= 3.2e-69) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.9e+58: tmp = x elif x <= 3.2e-69: tmp = y * (-0.3333333333333333 / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.9e+58) tmp = x; elseif (x <= 3.2e-69) tmp = Float64(y * Float64(-0.3333333333333333 / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.9e+58) tmp = x; elseif (x <= 3.2e-69) tmp = y * (-0.3333333333333333 / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.9e+58], x, If[LessEqual[x, 3.2e-69], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.9 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-69}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.8999999999999999e58 or 3.19999999999999999e-69 < x Initial program 95.8%
+-commutative95.8%
associate-+r-95.8%
sub-neg95.8%
associate-*l*95.8%
*-commutative95.8%
distribute-frac-neg295.8%
distribute-rgt-neg-in95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in z around inf 52.2%
if -1.8999999999999999e58 < x < 3.19999999999999999e-69Initial program 93.0%
Taylor expanded in z around 0 89.8%
Taylor expanded in t around 0 44.0%
Taylor expanded in y around 0 44.1%
*-commutative44.1%
associate-*l/44.0%
associate-*r/44.1%
Simplified44.1%
Final simplification48.2%
(FPCore (x y z t) :precision binary64 (if (<= x -6.8e+56) x (if (<= x 2.2e-69) (* (/ y z) -0.3333333333333333) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -6.8e+56) {
tmp = x;
} else if (x <= 2.2e-69) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-6.8d+56)) then
tmp = x
else if (x <= 2.2d-69) then
tmp = (y / z) * (-0.3333333333333333d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -6.8e+56) {
tmp = x;
} else if (x <= 2.2e-69) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -6.8e+56: tmp = x elif x <= 2.2e-69: tmp = (y / z) * -0.3333333333333333 else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -6.8e+56) tmp = x; elseif (x <= 2.2e-69) tmp = Float64(Float64(y / z) * -0.3333333333333333); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -6.8e+56) tmp = x; elseif (x <= 2.2e-69) tmp = (y / z) * -0.3333333333333333; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -6.8e+56], x, If[LessEqual[x, 2.2e-69], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{+56}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-69}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -6.80000000000000002e56 or 2.2e-69 < x Initial program 95.8%
+-commutative95.8%
associate-+r-95.8%
sub-neg95.8%
associate-*l*95.8%
*-commutative95.8%
distribute-frac-neg295.8%
distribute-rgt-neg-in95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in z around inf 52.2%
if -6.80000000000000002e56 < x < 2.2e-69Initial program 93.0%
Taylor expanded in z around 0 89.8%
Taylor expanded in t around 0 44.0%
associate-/l*44.1%
*-commutative44.1%
Applied egg-rr44.1%
Final simplification48.2%
(FPCore (x y z t) :precision binary64 (+ x (* (- (/ t y) y) (/ 0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
return x + (((t / y) - y) * (0.3333333333333333 / z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((t / y) - y) * (0.3333333333333333d0 / z))
end function
public static double code(double x, double y, double z, double t) {
return x + (((t / y) - y) * (0.3333333333333333 / z));
}
def code(x, y, z, t): return x + (((t / y) - y) * (0.3333333333333333 / z))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 / z))) end
function tmp = code(x, y, z, t) tmp = x + (((t / y) - y) * (0.3333333333333333 / z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\frac{t}{y} - y\right) \cdot \frac{0.3333333333333333}{z}
\end{array}
Initial program 94.4%
sub-neg94.4%
associate-+l+94.4%
+-commutative94.4%
remove-double-neg94.4%
distribute-frac-neg94.4%
distribute-neg-in94.4%
remove-double-neg94.4%
sub-neg94.4%
neg-mul-194.4%
times-frac96.7%
distribute-frac-neg96.7%
neg-mul-196.7%
*-commutative96.7%
associate-/l*96.7%
*-commutative96.7%
Simplified97.5%
Final simplification97.5%
(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.4%
+-commutative94.4%
associate-+r-94.4%
sub-neg94.4%
associate-*l*94.4%
*-commutative94.4%
distribute-frac-neg294.4%
distribute-rgt-neg-in94.4%
metadata-eval94.4%
Simplified94.4%
Taylor expanded in z around inf 31.9%
Final simplification31.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 2024044
(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))))