
(FPCore (x y z t) :precision binary64 (+ (/ x y) (/ (+ 2.0 (* (* z 2.0) (- 1.0 t))) (* t z))))
double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x / y) + ((2.0d0 + ((z * 2.0d0) * (1.0d0 - t))) / (t * z))
end function
public static double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
}
def code(x, y, z, t): return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z))
function code(x, y, z, t) return Float64(Float64(x / y) + Float64(Float64(2.0 + Float64(Float64(z * 2.0) * Float64(1.0 - t))) / Float64(t * z))) end
function tmp = code(x, y, z, t) tmp = (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z)); end
code[x_, y_, z_, t_] := N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 + N[(N[(z * 2.0), $MachinePrecision] * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} + \frac{2 + \left(z \cdot 2\right) \cdot \left(1 - t\right)}{t \cdot z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (/ x y) (/ (+ 2.0 (* (* z 2.0) (- 1.0 t))) (* t z))))
double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x / y) + ((2.0d0 + ((z * 2.0d0) * (1.0d0 - t))) / (t * z))
end function
public static double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
}
def code(x, y, z, t): return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z))
function code(x, y, z, t) return Float64(Float64(x / y) + Float64(Float64(2.0 + Float64(Float64(z * 2.0) * Float64(1.0 - t))) / Float64(t * z))) end
function tmp = code(x, y, z, t) tmp = (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z)); end
code[x_, y_, z_, t_] := N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 + N[(N[(z * 2.0), $MachinePrecision] * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} + \frac{2 + \left(z \cdot 2\right) \cdot \left(1 - t\right)}{t \cdot z}
\end{array}
(FPCore (x y z t) :precision binary64 (+ (+ (/ 2.0 t) (/ (/ 2.0 t) z)) (+ (/ x y) -2.0)))
double code(double x, double y, double z, double t) {
return ((2.0 / t) + ((2.0 / t) / z)) + ((x / y) + -2.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 = ((2.0d0 / t) + ((2.0d0 / t) / z)) + ((x / y) + (-2.0d0))
end function
public static double code(double x, double y, double z, double t) {
return ((2.0 / t) + ((2.0 / t) / z)) + ((x / y) + -2.0);
}
def code(x, y, z, t): return ((2.0 / t) + ((2.0 / t) / z)) + ((x / y) + -2.0)
function code(x, y, z, t) return Float64(Float64(Float64(2.0 / t) + Float64(Float64(2.0 / t) / z)) + Float64(Float64(x / y) + -2.0)) end
function tmp = code(x, y, z, t) tmp = ((2.0 / t) + ((2.0 / t) / z)) + ((x / y) + -2.0); end
code[x_, y_, z_, t_] := N[(N[(N[(2.0 / t), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(x / y), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\frac{2}{t} + \frac{\frac{2}{t}}{z}\right) + \left(\frac{x}{y} + -2\right)
\end{array}
Initial program 83.8%
Taylor expanded in t around inf 99.1%
sub-neg99.1%
metadata-eval99.1%
associate-*r/99.1%
+-commutative99.1%
metadata-eval99.1%
associate-+l+99.1%
associate-*r/99.1%
metadata-eval99.1%
associate-*r/99.1%
metadata-eval99.1%
Simplified99.1%
Taylor expanded in x around 0 99.1%
sub-neg99.1%
associate-+r+99.1%
metadata-eval99.1%
associate-+r+99.1%
associate-*r/99.1%
metadata-eval99.1%
associate-*r/99.1%
metadata-eval99.1%
+-commutative99.1%
associate-/r*99.1%
Simplified99.1%
Final simplification99.1%
(FPCore (x y z t) :precision binary64 (if (or (<= t -600000.0) (not (<= t 1e-20))) (+ (/ x y) (+ -2.0 (/ 2.0 (* t z)))) (+ (/ x y) (/ (+ 2.0 (* 2.0 z)) (* t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -600000.0) || !(t <= 1e-20)) {
tmp = (x / y) + (-2.0 + (2.0 / (t * z)));
} else {
tmp = (x / y) + ((2.0 + (2.0 * z)) / (t * 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 ((t <= (-600000.0d0)) .or. (.not. (t <= 1d-20))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / (t * z)))
else
tmp = (x / y) + ((2.0d0 + (2.0d0 * z)) / (t * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -600000.0) || !(t <= 1e-20)) {
tmp = (x / y) + (-2.0 + (2.0 / (t * z)));
} else {
tmp = (x / y) + ((2.0 + (2.0 * z)) / (t * z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -600000.0) or not (t <= 1e-20): tmp = (x / y) + (-2.0 + (2.0 / (t * z))) else: tmp = (x / y) + ((2.0 + (2.0 * z)) / (t * z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -600000.0) || !(t <= 1e-20)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / Float64(t * z)))); else tmp = Float64(Float64(x / y) + Float64(Float64(2.0 + Float64(2.0 * z)) / Float64(t * z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -600000.0) || ~((t <= 1e-20))) tmp = (x / y) + (-2.0 + (2.0 / (t * z))); else tmp = (x / y) + ((2.0 + (2.0 * z)) / (t * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -600000.0], N[Not[LessEqual[t, 1e-20]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 + N[(2.0 * z), $MachinePrecision]), $MachinePrecision] / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -600000 \lor \neg \left(t \leq 10^{-20}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t \cdot z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \frac{2 + 2 \cdot z}{t \cdot z}\\
\end{array}
\end{array}
if t < -6e5 or 9.99999999999999945e-21 < t Initial program 67.9%
Taylor expanded in t around 0 89.0%
associate-+r+89.0%
associate-*r/89.0%
metadata-eval89.0%
sub-neg89.0%
metadata-eval89.0%
Simplified89.0%
Taylor expanded in z around 0 88.6%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
+-commutative99.5%
associate--l+99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
Simplified99.5%
if -6e5 < t < 9.99999999999999945e-21Initial program 98.3%
Taylor expanded in t around 0 98.3%
Final simplification98.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -76000000.0) (not (<= z 1.12e-8))) (+ (/ x y) (+ (/ 2.0 t) -2.0)) (+ (/ x y) (+ -2.0 (/ 2.0 (* t z))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -76000000.0) || !(z <= 1.12e-8)) {
tmp = (x / y) + ((2.0 / t) + -2.0);
} else {
tmp = (x / y) + (-2.0 + (2.0 / (t * z)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-76000000.0d0)) .or. (.not. (z <= 1.12d-8))) then
tmp = (x / y) + ((2.0d0 / t) + (-2.0d0))
else
tmp = (x / y) + ((-2.0d0) + (2.0d0 / (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -76000000.0) || !(z <= 1.12e-8)) {
tmp = (x / y) + ((2.0 / t) + -2.0);
} else {
tmp = (x / y) + (-2.0 + (2.0 / (t * z)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -76000000.0) or not (z <= 1.12e-8): tmp = (x / y) + ((2.0 / t) + -2.0) else: tmp = (x / y) + (-2.0 + (2.0 / (t * z))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -76000000.0) || !(z <= 1.12e-8)) tmp = Float64(Float64(x / y) + Float64(Float64(2.0 / t) + -2.0)); else tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -76000000.0) || ~((z <= 1.12e-8))) tmp = (x / y) + ((2.0 / t) + -2.0); else tmp = (x / y) + (-2.0 + (2.0 / (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -76000000.0], N[Not[LessEqual[z, 1.12e-8]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -76000000 \lor \neg \left(z \leq 1.12 \cdot 10^{-8}\right):\\
\;\;\;\;\frac{x}{y} + \left(\frac{2}{t} + -2\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t \cdot z}\right)\\
\end{array}
\end{array}
if z < -7.6e7 or 1.11999999999999994e-8 < z Initial program 71.4%
Taylor expanded in t around inf 100.0%
sub-neg100.0%
metadata-eval100.0%
associate-*r/100.0%
+-commutative100.0%
metadata-eval100.0%
associate-+l+100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 99.6%
sub-neg99.6%
associate-*r/99.6%
metadata-eval99.6%
+-commutative99.6%
metadata-eval99.6%
associate-+l+99.6%
+-commutative99.6%
Simplified99.6%
if -7.6e7 < z < 1.11999999999999994e-8Initial program 98.1%
Taylor expanded in t around 0 95.0%
associate-+r+95.0%
associate-*r/95.0%
metadata-eval95.0%
sub-neg95.0%
metadata-eval95.0%
Simplified95.0%
Taylor expanded in z around 0 94.2%
Taylor expanded in z around inf 97.3%
associate-*r/97.3%
metadata-eval97.3%
+-commutative97.3%
associate--l+97.3%
sub-neg97.3%
metadata-eval97.3%
*-commutative97.3%
Simplified97.3%
Final simplification98.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (/ 2.0 t) -2.0)))
(if (<= z -76000000.0)
t_1
(if (<= z 4.5e-56)
(+ -2.0 (/ 2.0 (* t z)))
(if (<= z 105000000000.0) (- (/ x y) 2.0) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (2.0 / t) + -2.0;
double tmp;
if (z <= -76000000.0) {
tmp = t_1;
} else if (z <= 4.5e-56) {
tmp = -2.0 + (2.0 / (t * z));
} else if (z <= 105000000000.0) {
tmp = (x / y) - 2.0;
} 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 = (2.0d0 / t) + (-2.0d0)
if (z <= (-76000000.0d0)) then
tmp = t_1
else if (z <= 4.5d-56) then
tmp = (-2.0d0) + (2.0d0 / (t * z))
else if (z <= 105000000000.0d0) then
tmp = (x / y) - 2.0d0
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 = (2.0 / t) + -2.0;
double tmp;
if (z <= -76000000.0) {
tmp = t_1;
} else if (z <= 4.5e-56) {
tmp = -2.0 + (2.0 / (t * z));
} else if (z <= 105000000000.0) {
tmp = (x / y) - 2.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (2.0 / t) + -2.0 tmp = 0 if z <= -76000000.0: tmp = t_1 elif z <= 4.5e-56: tmp = -2.0 + (2.0 / (t * z)) elif z <= 105000000000.0: tmp = (x / y) - 2.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(2.0 / t) + -2.0) tmp = 0.0 if (z <= -76000000.0) tmp = t_1; elseif (z <= 4.5e-56) tmp = Float64(-2.0 + Float64(2.0 / Float64(t * z))); elseif (z <= 105000000000.0) tmp = Float64(Float64(x / y) - 2.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (2.0 / t) + -2.0; tmp = 0.0; if (z <= -76000000.0) tmp = t_1; elseif (z <= 4.5e-56) tmp = -2.0 + (2.0 / (t * z)); elseif (z <= 105000000000.0) tmp = (x / y) - 2.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]}, If[LessEqual[z, -76000000.0], t$95$1, If[LessEqual[z, 4.5e-56], N[(-2.0 + N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 105000000000.0], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t} + -2\\
\mathbf{if}\;z \leq -76000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-56}:\\
\;\;\;\;-2 + \frac{2}{t \cdot z}\\
\mathbf{elif}\;z \leq 105000000000:\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.6e7 or 1.05e11 < z Initial program 69.6%
Taylor expanded in t around inf 100.0%
sub-neg100.0%
metadata-eval100.0%
associate-*r/100.0%
+-commutative100.0%
metadata-eval100.0%
associate-+l+100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 99.9%
sub-neg99.9%
associate-*r/99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-+l+99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 65.5%
sub-neg65.5%
associate-*r/65.5%
metadata-eval65.5%
metadata-eval65.5%
Simplified65.5%
if -7.6e7 < z < 4.5000000000000001e-56Initial program 98.0%
Taylor expanded in t around 0 95.6%
associate-+r+95.6%
associate-*r/95.6%
metadata-eval95.6%
sub-neg95.6%
metadata-eval95.6%
Simplified95.6%
Taylor expanded in z around 0 95.0%
Taylor expanded in z around inf 97.4%
associate-*r/97.4%
metadata-eval97.4%
+-commutative97.4%
associate--l+97.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in x around 0 78.7%
sub-neg78.7%
associate-*r/78.7%
metadata-eval78.7%
associate-/r*78.7%
metadata-eval78.7%
+-commutative78.7%
associate-/r*78.7%
Simplified78.7%
if 4.5000000000000001e-56 < z < 1.05e11Initial program 99.9%
Taylor expanded in t around inf 80.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (/ 2.0 t) -2.0)))
(if (<= z -2.35e-27)
t_1
(if (<= z 2.7e-56)
(/ 2.0 (* t z))
(if (<= z 980000000000.0) (- (/ x y) 2.0) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (2.0 / t) + -2.0;
double tmp;
if (z <= -2.35e-27) {
tmp = t_1;
} else if (z <= 2.7e-56) {
tmp = 2.0 / (t * z);
} else if (z <= 980000000000.0) {
tmp = (x / y) - 2.0;
} 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 = (2.0d0 / t) + (-2.0d0)
if (z <= (-2.35d-27)) then
tmp = t_1
else if (z <= 2.7d-56) then
tmp = 2.0d0 / (t * z)
else if (z <= 980000000000.0d0) then
tmp = (x / y) - 2.0d0
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 = (2.0 / t) + -2.0;
double tmp;
if (z <= -2.35e-27) {
tmp = t_1;
} else if (z <= 2.7e-56) {
tmp = 2.0 / (t * z);
} else if (z <= 980000000000.0) {
tmp = (x / y) - 2.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (2.0 / t) + -2.0 tmp = 0 if z <= -2.35e-27: tmp = t_1 elif z <= 2.7e-56: tmp = 2.0 / (t * z) elif z <= 980000000000.0: tmp = (x / y) - 2.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(2.0 / t) + -2.0) tmp = 0.0 if (z <= -2.35e-27) tmp = t_1; elseif (z <= 2.7e-56) tmp = Float64(2.0 / Float64(t * z)); elseif (z <= 980000000000.0) tmp = Float64(Float64(x / y) - 2.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (2.0 / t) + -2.0; tmp = 0.0; if (z <= -2.35e-27) tmp = t_1; elseif (z <= 2.7e-56) tmp = 2.0 / (t * z); elseif (z <= 980000000000.0) tmp = (x / y) - 2.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]}, If[LessEqual[z, -2.35e-27], t$95$1, If[LessEqual[z, 2.7e-56], N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 980000000000.0], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t} + -2\\
\mathbf{if}\;z \leq -2.35 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-56}:\\
\;\;\;\;\frac{2}{t \cdot z}\\
\mathbf{elif}\;z \leq 980000000000:\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.35000000000000016e-27 or 9.8e11 < z Initial program 71.4%
Taylor expanded in t around inf 100.0%
sub-neg100.0%
metadata-eval100.0%
associate-*r/100.0%
+-commutative100.0%
metadata-eval100.0%
associate-+l+100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 99.2%
sub-neg99.2%
associate-*r/99.2%
metadata-eval99.2%
+-commutative99.2%
metadata-eval99.2%
associate-+l+99.2%
+-commutative99.2%
Simplified99.2%
Taylor expanded in x around 0 63.9%
sub-neg63.9%
associate-*r/63.9%
metadata-eval63.9%
metadata-eval63.9%
Simplified63.9%
if -2.35000000000000016e-27 < z < 2.69999999999999995e-56Initial program 97.8%
Taylor expanded in z around 0 70.2%
if 2.69999999999999995e-56 < z < 9.8e11Initial program 99.9%
Taylor expanded in t around inf 80.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4.6e-26) (not (<= z 3.1e-36))) (+ (/ x y) (+ (/ 2.0 t) -2.0)) (+ (/ (/ 2.0 t) z) (/ x y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.6e-26) || !(z <= 3.1e-36)) {
tmp = (x / y) + ((2.0 / t) + -2.0);
} else {
tmp = ((2.0 / t) / z) + (x / 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 <= (-4.6d-26)) .or. (.not. (z <= 3.1d-36))) then
tmp = (x / y) + ((2.0d0 / t) + (-2.0d0))
else
tmp = ((2.0d0 / t) / z) + (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.6e-26) || !(z <= 3.1e-36)) {
tmp = (x / y) + ((2.0 / t) + -2.0);
} else {
tmp = ((2.0 / t) / z) + (x / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4.6e-26) or not (z <= 3.1e-36): tmp = (x / y) + ((2.0 / t) + -2.0) else: tmp = ((2.0 / t) / z) + (x / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4.6e-26) || !(z <= 3.1e-36)) tmp = Float64(Float64(x / y) + Float64(Float64(2.0 / t) + -2.0)); else tmp = Float64(Float64(Float64(2.0 / t) / z) + Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4.6e-26) || ~((z <= 3.1e-36))) tmp = (x / y) + ((2.0 / t) + -2.0); else tmp = ((2.0 / t) / z) + (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.6e-26], N[Not[LessEqual[z, 3.1e-36]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(2.0 / t), $MachinePrecision] / z), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.6 \cdot 10^{-26} \lor \neg \left(z \leq 3.1 \cdot 10^{-36}\right):\\
\;\;\;\;\frac{x}{y} + \left(\frac{2}{t} + -2\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{t}}{z} + \frac{x}{y}\\
\end{array}
\end{array}
if z < -4.60000000000000018e-26 or 3.0999999999999999e-36 < z Initial program 73.9%
Taylor expanded in t around inf 100.0%
sub-neg100.0%
metadata-eval100.0%
associate-*r/100.0%
+-commutative100.0%
metadata-eval100.0%
associate-+l+100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 98.4%
sub-neg98.4%
associate-*r/98.4%
metadata-eval98.4%
+-commutative98.4%
metadata-eval98.4%
associate-+l+98.4%
+-commutative98.4%
Simplified98.4%
if -4.60000000000000018e-26 < z < 3.0999999999999999e-36Initial program 97.9%
+-commutative97.9%
clear-num97.8%
frac-add69.8%
+-commutative69.8%
associate-*l*69.8%
fma-define69.8%
*-commutative69.8%
*-un-lft-identity69.8%
*-commutative69.8%
*-commutative69.8%
Applied egg-rr69.8%
Taylor expanded in z around 0 62.0%
+-commutative62.0%
*-un-lft-identity62.0%
*-commutative62.0%
*-commutative62.0%
frac-add86.9%
clear-num86.9%
+-commutative86.9%
*-commutative86.9%
associate-/r*87.0%
Applied egg-rr87.0%
Final simplification93.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -5.8e-25) (not (<= z 4.2e-56))) (+ (/ x y) (+ (/ 2.0 t) -2.0)) (+ -2.0 (/ 2.0 (* t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -5.8e-25) || !(z <= 4.2e-56)) {
tmp = (x / y) + ((2.0 / t) + -2.0);
} else {
tmp = -2.0 + (2.0 / (t * z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-5.8d-25)) .or. (.not. (z <= 4.2d-56))) then
tmp = (x / y) + ((2.0d0 / t) + (-2.0d0))
else
tmp = (-2.0d0) + (2.0d0 / (t * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -5.8e-25) || !(z <= 4.2e-56)) {
tmp = (x / y) + ((2.0 / t) + -2.0);
} else {
tmp = -2.0 + (2.0 / (t * z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -5.8e-25) or not (z <= 4.2e-56): tmp = (x / y) + ((2.0 / t) + -2.0) else: tmp = -2.0 + (2.0 / (t * z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -5.8e-25) || !(z <= 4.2e-56)) tmp = Float64(Float64(x / y) + Float64(Float64(2.0 / t) + -2.0)); else tmp = Float64(-2.0 + Float64(2.0 / Float64(t * z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -5.8e-25) || ~((z <= 4.2e-56))) tmp = (x / y) + ((2.0 / t) + -2.0); else tmp = -2.0 + (2.0 / (t * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -5.8e-25], N[Not[LessEqual[z, 4.2e-56]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision], N[(-2.0 + N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-25} \lor \neg \left(z \leq 4.2 \cdot 10^{-56}\right):\\
\;\;\;\;\frac{x}{y} + \left(\frac{2}{t} + -2\right)\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t \cdot z}\\
\end{array}
\end{array}
if z < -5.8000000000000001e-25 or 4.20000000000000012e-56 < z Initial program 74.0%
Taylor expanded in t around inf 100.0%
sub-neg100.0%
metadata-eval100.0%
associate-*r/100.0%
+-commutative100.0%
metadata-eval100.0%
associate-+l+100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 97.8%
sub-neg97.8%
associate-*r/97.8%
metadata-eval97.8%
+-commutative97.8%
metadata-eval97.8%
associate-+l+97.8%
+-commutative97.8%
Simplified97.8%
if -5.8000000000000001e-25 < z < 4.20000000000000012e-56Initial program 97.9%
Taylor expanded in t around 0 95.3%
associate-+r+95.3%
associate-*r/95.3%
metadata-eval95.3%
sub-neg95.3%
metadata-eval95.3%
Simplified95.3%
Taylor expanded in z around 0 95.3%
Taylor expanded in z around inf 97.9%
associate-*r/97.9%
metadata-eval97.9%
+-commutative97.9%
associate--l+97.9%
sub-neg97.9%
metadata-eval97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in x around 0 81.6%
sub-neg81.6%
associate-*r/81.6%
metadata-eval81.6%
associate-/r*81.6%
metadata-eval81.6%
+-commutative81.6%
associate-/r*81.6%
Simplified81.6%
Final simplification91.2%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -1e+29) (not (<= (/ x y) 4e+38))) (/ x y) (+ (/ 2.0 t) -2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e+29) || !((x / y) <= 4e+38)) {
tmp = x / y;
} else {
tmp = (2.0 / t) + -2.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-1d+29)) .or. (.not. ((x / y) <= 4d+38))) then
tmp = x / y
else
tmp = (2.0d0 / t) + (-2.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e+29) || !((x / y) <= 4e+38)) {
tmp = x / y;
} else {
tmp = (2.0 / t) + -2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -1e+29) or not ((x / y) <= 4e+38): tmp = x / y else: tmp = (2.0 / t) + -2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -1e+29) || !(Float64(x / y) <= 4e+38)) tmp = Float64(x / y); else tmp = Float64(Float64(2.0 / t) + -2.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -1e+29) || ~(((x / y) <= 4e+38))) tmp = x / y; else tmp = (2.0 / t) + -2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -1e+29], N[Not[LessEqual[N[(x / y), $MachinePrecision], 4e+38]], $MachinePrecision]], N[(x / y), $MachinePrecision], N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+29} \lor \neg \left(\frac{x}{y} \leq 4 \cdot 10^{+38}\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t} + -2\\
\end{array}
\end{array}
if (/.f64 x y) < -9.99999999999999914e28 or 3.99999999999999991e38 < (/.f64 x y) Initial program 78.0%
Taylor expanded in x around inf 69.3%
if -9.99999999999999914e28 < (/.f64 x y) < 3.99999999999999991e38Initial program 87.9%
Taylor expanded in t around inf 99.9%
sub-neg99.9%
metadata-eval99.9%
associate-*r/99.9%
+-commutative99.9%
metadata-eval99.9%
associate-+l+99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around inf 62.3%
sub-neg62.3%
associate-*r/62.3%
metadata-eval62.3%
+-commutative62.3%
metadata-eval62.3%
associate-+l+62.3%
+-commutative62.3%
Simplified62.3%
Taylor expanded in x around 0 60.1%
sub-neg60.1%
associate-*r/60.1%
metadata-eval60.1%
metadata-eval60.1%
Simplified60.1%
Final simplification63.9%
(FPCore (x y z t) :precision binary64 (if (<= (/ x y) -2000000.0) (- (/ x y) 2.0) (if (<= (/ x y) 4e+38) (+ (/ 2.0 t) -2.0) (/ x y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -2000000.0) {
tmp = (x / y) - 2.0;
} else if ((x / y) <= 4e+38) {
tmp = (2.0 / t) + -2.0;
} else {
tmp = x / y;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x / y) <= (-2000000.0d0)) then
tmp = (x / y) - 2.0d0
else if ((x / y) <= 4d+38) then
tmp = (2.0d0 / t) + (-2.0d0)
else
tmp = x / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -2000000.0) {
tmp = (x / y) - 2.0;
} else if ((x / y) <= 4e+38) {
tmp = (2.0 / t) + -2.0;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -2000000.0: tmp = (x / y) - 2.0 elif (x / y) <= 4e+38: tmp = (2.0 / t) + -2.0 else: tmp = x / y return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -2000000.0) tmp = Float64(Float64(x / y) - 2.0); elseif (Float64(x / y) <= 4e+38) tmp = Float64(Float64(2.0 / t) + -2.0); else tmp = Float64(x / y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x / y) <= -2000000.0) tmp = (x / y) - 2.0; elseif ((x / y) <= 4e+38) tmp = (2.0 / t) + -2.0; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -2000000.0], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 4e+38], N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision], N[(x / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -2000000:\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{elif}\;\frac{x}{y} \leq 4 \cdot 10^{+38}:\\
\;\;\;\;\frac{2}{t} + -2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -2e6Initial program 79.4%
Taylor expanded in t around inf 66.9%
if -2e6 < (/.f64 x y) < 3.99999999999999991e38Initial program 88.9%
Taylor expanded in t around inf 99.9%
sub-neg99.9%
metadata-eval99.9%
associate-*r/99.9%
+-commutative99.9%
metadata-eval99.9%
associate-+l+99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around inf 61.9%
sub-neg61.9%
associate-*r/61.9%
metadata-eval61.9%
+-commutative61.9%
metadata-eval61.9%
associate-+l+61.9%
+-commutative61.9%
Simplified61.9%
Taylor expanded in x around 0 60.9%
sub-neg60.9%
associate-*r/60.9%
metadata-eval60.9%
metadata-eval60.9%
Simplified60.9%
if 3.99999999999999991e38 < (/.f64 x y) Initial program 74.5%
Taylor expanded in x around inf 70.4%
(FPCore (x y z t) :precision binary64 (if (or (<= t -18.5) (not (<= t 380.0))) (- (/ x y) 2.0) (/ (+ 2.0 (/ 2.0 z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -18.5) || !(t <= 380.0)) {
tmp = (x / y) - 2.0;
} else {
tmp = (2.0 + (2.0 / z)) / t;
}
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 ((t <= (-18.5d0)) .or. (.not. (t <= 380.0d0))) then
tmp = (x / y) - 2.0d0
else
tmp = (2.0d0 + (2.0d0 / z)) / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -18.5) || !(t <= 380.0)) {
tmp = (x / y) - 2.0;
} else {
tmp = (2.0 + (2.0 / z)) / t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -18.5) or not (t <= 380.0): tmp = (x / y) - 2.0 else: tmp = (2.0 + (2.0 / z)) / t return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -18.5) || !(t <= 380.0)) tmp = Float64(Float64(x / y) - 2.0); else tmp = Float64(Float64(2.0 + Float64(2.0 / z)) / t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -18.5) || ~((t <= 380.0))) tmp = (x / y) - 2.0; else tmp = (2.0 + (2.0 / z)) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -18.5], N[Not[LessEqual[t, 380.0]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -18.5 \lor \neg \left(t \leq 380\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + \frac{2}{z}}{t}\\
\end{array}
\end{array}
if t < -18.5 or 380 < t Initial program 67.9%
Taylor expanded in t around inf 81.9%
if -18.5 < t < 380Initial program 98.3%
Taylor expanded in t around 0 84.3%
associate-*r/84.3%
metadata-eval84.3%
Simplified84.3%
Final simplification83.2%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -1e+29) (not (<= (/ x y) 4e+38))) (/ x y) (/ 2.0 t)))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e+29) || !((x / y) <= 4e+38)) {
tmp = x / y;
} else {
tmp = 2.0 / t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x / y) <= (-1d+29)) .or. (.not. ((x / y) <= 4d+38))) then
tmp = x / y
else
tmp = 2.0d0 / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e+29) || !((x / y) <= 4e+38)) {
tmp = x / y;
} else {
tmp = 2.0 / t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -1e+29) or not ((x / y) <= 4e+38): tmp = x / y else: tmp = 2.0 / t return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -1e+29) || !(Float64(x / y) <= 4e+38)) tmp = Float64(x / y); else tmp = Float64(2.0 / t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -1e+29) || ~(((x / y) <= 4e+38))) tmp = x / y; else tmp = 2.0 / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -1e+29], N[Not[LessEqual[N[(x / y), $MachinePrecision], 4e+38]], $MachinePrecision]], N[(x / y), $MachinePrecision], N[(2.0 / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+29} \lor \neg \left(\frac{x}{y} \leq 4 \cdot 10^{+38}\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -9.99999999999999914e28 or 3.99999999999999991e38 < (/.f64 x y) Initial program 78.0%
Taylor expanded in x around inf 69.3%
if -9.99999999999999914e28 < (/.f64 x y) < 3.99999999999999991e38Initial program 87.9%
Taylor expanded in t around 0 67.3%
associate-*r/67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in z around inf 30.9%
Final simplification46.7%
(FPCore (x y z t) :precision binary64 (/ 2.0 t))
double code(double x, double y, double z, double t) {
return 2.0 / t;
}
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 = 2.0d0 / t
end function
public static double code(double x, double y, double z, double t) {
return 2.0 / t;
}
def code(x, y, z, t): return 2.0 / t
function code(x, y, z, t) return Float64(2.0 / t) end
function tmp = code(x, y, z, t) tmp = 2.0 / t; end
code[x_, y_, z_, t_] := N[(2.0 / t), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{t}
\end{array}
Initial program 83.8%
Taylor expanded in t around 0 52.8%
associate-*r/52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in z around inf 24.3%
(FPCore (x y z t) :precision binary64 (- (/ (+ (/ 2.0 z) 2.0) t) (- 2.0 (/ x y))))
double code(double x, double y, double z, double t) {
return (((2.0 / z) + 2.0) / t) - (2.0 - (x / 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 = (((2.0d0 / z) + 2.0d0) / t) - (2.0d0 - (x / y))
end function
public static double code(double x, double y, double z, double t) {
return (((2.0 / z) + 2.0) / t) - (2.0 - (x / y));
}
def code(x, y, z, t): return (((2.0 / z) + 2.0) / t) - (2.0 - (x / y))
function code(x, y, z, t) return Float64(Float64(Float64(Float64(2.0 / z) + 2.0) / t) - Float64(2.0 - Float64(x / y))) end
function tmp = code(x, y, z, t) tmp = (((2.0 / z) + 2.0) / t) - (2.0 - (x / y)); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(2.0 / z), $MachinePrecision] + 2.0), $MachinePrecision] / t), $MachinePrecision] - N[(2.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{2}{z} + 2}{t} - \left(2 - \frac{x}{y}\right)
\end{array}
herbie shell --seed 2024170
(FPCore (x y z t)
:name "Data.HashTable.ST.Basic:computeOverhead from hashtables-1.2.0.2"
:precision binary64
:alt
(! :herbie-platform default (- (/ (+ (/ 2 z) 2) t) (- 2 (/ x y))))
(+ (/ x y) (/ (+ 2.0 (* (* z 2.0) (- 1.0 t))) (* t z))))