
(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 (/ x y)) (/ (+ 2.0 (/ 2.0 z)) t)))
double code(double x, double y, double z, double t) {
return (-2.0 + (x / y)) + ((2.0 + (2.0 / z)) / 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) + (x / y)) + ((2.0d0 + (2.0d0 / z)) / t)
end function
public static double code(double x, double y, double z, double t) {
return (-2.0 + (x / y)) + ((2.0 + (2.0 / z)) / t);
}
def code(x, y, z, t): return (-2.0 + (x / y)) + ((2.0 + (2.0 / z)) / t)
function code(x, y, z, t) return Float64(Float64(-2.0 + Float64(x / y)) + Float64(Float64(2.0 + Float64(2.0 / z)) / t)) end
function tmp = code(x, y, z, t) tmp = (-2.0 + (x / y)) + ((2.0 + (2.0 / z)) / t); end
code[x_, y_, z_, t_] := N[(N[(-2.0 + N[(x / y), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-2 + \frac{x}{y}\right) + \frac{2 + \frac{2}{z}}{t}
\end{array}
Initial program 81.1%
+-commutative81.1%
remove-double-neg81.1%
distribute-frac-neg81.1%
unsub-neg81.1%
*-commutative81.1%
associate-*r*81.1%
distribute-rgt1-in81.1%
associate-/l*81.0%
fma-neg81.0%
*-commutative81.0%
fma-define81.0%
*-commutative81.0%
distribute-frac-neg81.0%
remove-double-neg81.0%
Simplified81.0%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
+-commutative99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
associate-*r/99.9%
distribute-lft-in99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)))
(if (<= z -2.1e+209)
t_1
(if (<= z -1.42e+192)
(/ 2.0 t)
(if (or (<= z -1.65e-65) (not (<= z 8e-69))) t_1 (/ (/ 2.0 t) z))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -2.1e+209) {
tmp = t_1;
} else if (z <= -1.42e+192) {
tmp = 2.0 / t;
} else if ((z <= -1.65e-65) || !(z <= 8e-69)) {
tmp = t_1;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = (x / y) - 2.0d0
if (z <= (-2.1d+209)) then
tmp = t_1
else if (z <= (-1.42d+192)) then
tmp = 2.0d0 / t
else if ((z <= (-1.65d-65)) .or. (.not. (z <= 8d-69))) then
tmp = t_1
else
tmp = (2.0d0 / t) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -2.1e+209) {
tmp = t_1;
} else if (z <= -1.42e+192) {
tmp = 2.0 / t;
} else if ((z <= -1.65e-65) || !(z <= 8e-69)) {
tmp = t_1;
} else {
tmp = (2.0 / t) / z;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 tmp = 0 if z <= -2.1e+209: tmp = t_1 elif z <= -1.42e+192: tmp = 2.0 / t elif (z <= -1.65e-65) or not (z <= 8e-69): tmp = t_1 else: tmp = (2.0 / t) / z return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (z <= -2.1e+209) tmp = t_1; elseif (z <= -1.42e+192) tmp = Float64(2.0 / t); elseif ((z <= -1.65e-65) || !(z <= 8e-69)) tmp = t_1; else tmp = Float64(Float64(2.0 / t) / z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; tmp = 0.0; if (z <= -2.1e+209) tmp = t_1; elseif (z <= -1.42e+192) tmp = 2.0 / t; elseif ((z <= -1.65e-65) || ~((z <= 8e-69))) tmp = t_1; else tmp = (2.0 / t) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision]}, If[LessEqual[z, -2.1e+209], t$95$1, If[LessEqual[z, -1.42e+192], N[(2.0 / t), $MachinePrecision], If[Or[LessEqual[z, -1.65e-65], N[Not[LessEqual[z, 8e-69]], $MachinePrecision]], t$95$1, N[(N[(2.0 / t), $MachinePrecision] / z), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
\mathbf{if}\;z \leq -2.1 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.42 \cdot 10^{+192}:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{-65} \lor \neg \left(z \leq 8 \cdot 10^{-69}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{t}}{z}\\
\end{array}
\end{array}
if z < -2.1e209 or -1.42000000000000006e192 < z < -1.6500000000000001e-65 or 7.9999999999999997e-69 < z Initial program 68.5%
Taylor expanded in t around inf 70.6%
if -2.1e209 < z < -1.42000000000000006e192Initial program 100.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 100.0%
if -1.6500000000000001e-65 < z < 7.9999999999999997e-69Initial program 99.8%
+-commutative99.8%
remove-double-neg99.8%
distribute-frac-neg99.8%
unsub-neg99.8%
*-commutative99.8%
associate-*r*99.8%
distribute-rgt1-in99.8%
associate-/l*99.8%
fma-neg99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
distribute-frac-neg99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in t around inf 99.8%
associate--l+99.8%
+-commutative99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
associate-*r/99.8%
distribute-lft-in99.8%
metadata-eval99.8%
associate-*r/99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around 0 83.2%
associate--l+83.2%
associate-*r/83.2%
metadata-eval83.2%
associate-*r/83.2%
metadata-eval83.2%
Simplified83.2%
Taylor expanded in z around 0 76.4%
associate-/r*76.4%
Simplified76.4%
Final simplification73.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)))
(if (<= z -6.1e+212)
t_1
(if (<= z -1.42e+192)
(/ 2.0 t)
(if (or (<= z -1.66e-68) (not (<= z 8e-69))) t_1 (/ 2.0 (* z t)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -6.1e+212) {
tmp = t_1;
} else if (z <= -1.42e+192) {
tmp = 2.0 / t;
} else if ((z <= -1.66e-68) || !(z <= 8e-69)) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = (x / y) - 2.0d0
if (z <= (-6.1d+212)) then
tmp = t_1
else if (z <= (-1.42d+192)) then
tmp = 2.0d0 / t
else if ((z <= (-1.66d-68)) .or. (.not. (z <= 8d-69))) then
tmp = t_1
else
tmp = 2.0d0 / (z * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -6.1e+212) {
tmp = t_1;
} else if (z <= -1.42e+192) {
tmp = 2.0 / t;
} else if ((z <= -1.66e-68) || !(z <= 8e-69)) {
tmp = t_1;
} else {
tmp = 2.0 / (z * t);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 tmp = 0 if z <= -6.1e+212: tmp = t_1 elif z <= -1.42e+192: tmp = 2.0 / t elif (z <= -1.66e-68) or not (z <= 8e-69): tmp = t_1 else: tmp = 2.0 / (z * t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (z <= -6.1e+212) tmp = t_1; elseif (z <= -1.42e+192) tmp = Float64(2.0 / t); elseif ((z <= -1.66e-68) || !(z <= 8e-69)) tmp = t_1; else tmp = Float64(2.0 / Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; tmp = 0.0; if (z <= -6.1e+212) tmp = t_1; elseif (z <= -1.42e+192) tmp = 2.0 / t; elseif ((z <= -1.66e-68) || ~((z <= 8e-69))) tmp = t_1; else tmp = 2.0 / (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision]}, If[LessEqual[z, -6.1e+212], t$95$1, If[LessEqual[z, -1.42e+192], N[(2.0 / t), $MachinePrecision], If[Or[LessEqual[z, -1.66e-68], N[Not[LessEqual[z, 8e-69]], $MachinePrecision]], t$95$1, N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
\mathbf{if}\;z \leq -6.1 \cdot 10^{+212}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.42 \cdot 10^{+192}:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{elif}\;z \leq -1.66 \cdot 10^{-68} \lor \neg \left(z \leq 8 \cdot 10^{-69}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{z \cdot t}\\
\end{array}
\end{array}
if z < -6.0999999999999997e212 or -1.42000000000000006e192 < z < -1.6600000000000001e-68 or 7.9999999999999997e-69 < z Initial program 68.5%
Taylor expanded in t around inf 70.6%
if -6.0999999999999997e212 < z < -1.42000000000000006e192Initial program 100.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 100.0%
if -1.6600000000000001e-68 < z < 7.9999999999999997e-69Initial program 99.8%
Taylor expanded in t around 0 76.4%
associate-*r/76.4%
metadata-eval76.4%
Simplified76.4%
Taylor expanded in z around 0 76.4%
Final simplification73.4%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -1e+22) (not (<= (/ x y) 2000000000.0))) (+ (/ x y) (/ (/ 2.0 t) z)) (+ (/ 2.0 t) (- (/ 2.0 (* z t)) 2.0))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -1e+22) || !((x / y) <= 2000000000.0)) {
tmp = (x / y) + ((2.0 / t) / z);
} else {
tmp = (2.0 / t) + ((2.0 / (z * 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+22)) .or. (.not. ((x / y) <= 2000000000.0d0))) then
tmp = (x / y) + ((2.0d0 / t) / z)
else
tmp = (2.0d0 / t) + ((2.0d0 / (z * 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+22) || !((x / y) <= 2000000000.0)) {
tmp = (x / y) + ((2.0 / t) / z);
} else {
tmp = (2.0 / t) + ((2.0 / (z * t)) - 2.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -1e+22) or not ((x / y) <= 2000000000.0): tmp = (x / y) + ((2.0 / t) / z) else: tmp = (2.0 / t) + ((2.0 / (z * t)) - 2.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -1e+22) || !(Float64(x / y) <= 2000000000.0)) tmp = Float64(Float64(x / y) + Float64(Float64(2.0 / t) / z)); else tmp = Float64(Float64(2.0 / t) + Float64(Float64(2.0 / Float64(z * t)) - 2.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -1e+22) || ~(((x / y) <= 2000000000.0))) tmp = (x / y) + ((2.0 / t) / z); else tmp = (2.0 / t) + ((2.0 / (z * t)) - 2.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -1e+22], N[Not[LessEqual[N[(x / y), $MachinePrecision], 2000000000.0]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / t), $MachinePrecision] + N[(N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+22} \lor \neg \left(\frac{x}{y} \leq 2000000000\right):\\
\;\;\;\;\frac{x}{y} + \frac{\frac{2}{t}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t} + \left(\frac{2}{z \cdot t} - 2\right)\\
\end{array}
\end{array}
if (/.f64 x y) < -1e22 or 2e9 < (/.f64 x y) Initial program 81.7%
Taylor expanded in z around 0 92.4%
associate-/r*92.4%
Simplified92.4%
if -1e22 < (/.f64 x y) < 2e9Initial program 80.5%
+-commutative80.5%
remove-double-neg80.5%
distribute-frac-neg80.5%
unsub-neg80.5%
*-commutative80.5%
associate-*r*80.5%
distribute-rgt1-in80.5%
associate-/l*80.4%
fma-neg80.4%
*-commutative80.4%
fma-define80.4%
*-commutative80.4%
distribute-frac-neg80.4%
remove-double-neg80.4%
Simplified80.4%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
+-commutative99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
associate-*r/99.9%
distribute-lft-in99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 98.2%
associate--l+98.2%
associate-*r/98.2%
metadata-eval98.2%
associate-*r/98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification95.5%
(FPCore (x y z t)
:precision binary64
(if (<= (/ x y) -2.0)
(/ x y)
(if (<= (/ x y) 3.6e-127)
-2.0
(if (<= (/ x y) 3900000000.0) (/ 2.0 t) (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -2.0) {
tmp = x / y;
} else if ((x / y) <= 3.6e-127) {
tmp = -2.0;
} else if ((x / y) <= 3900000000.0) {
tmp = 2.0 / t;
} 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) <= (-2.0d0)) then
tmp = x / y
else if ((x / y) <= 3.6d-127) then
tmp = -2.0d0
else if ((x / y) <= 3900000000.0d0) then
tmp = 2.0d0 / t
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) <= -2.0) {
tmp = x / y;
} else if ((x / y) <= 3.6e-127) {
tmp = -2.0;
} else if ((x / y) <= 3900000000.0) {
tmp = 2.0 / t;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -2.0: tmp = x / y elif (x / y) <= 3.6e-127: tmp = -2.0 elif (x / y) <= 3900000000.0: tmp = 2.0 / t else: tmp = x / y return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -2.0) tmp = Float64(x / y); elseif (Float64(x / y) <= 3.6e-127) tmp = -2.0; elseif (Float64(x / y) <= 3900000000.0) tmp = Float64(2.0 / t); else tmp = Float64(x / y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x / y) <= -2.0) tmp = x / y; elseif ((x / y) <= 3.6e-127) tmp = -2.0; elseif ((x / y) <= 3900000000.0) tmp = 2.0 / t; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -2.0], N[(x / y), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 3.6e-127], -2.0, If[LessEqual[N[(x / y), $MachinePrecision], 3900000000.0], N[(2.0 / t), $MachinePrecision], N[(x / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -2:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 3.6 \cdot 10^{-127}:\\
\;\;\;\;-2\\
\mathbf{elif}\;\frac{x}{y} \leq 3900000000:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -2 or 3.9e9 < (/.f64 x y) Initial program 82.6%
Taylor expanded in x around inf 64.7%
if -2 < (/.f64 x y) < 3.5999999999999999e-127Initial program 76.7%
+-commutative76.7%
remove-double-neg76.7%
distribute-frac-neg76.7%
unsub-neg76.7%
*-commutative76.7%
associate-*r*76.7%
distribute-rgt1-in76.7%
associate-/l*76.6%
fma-neg76.6%
*-commutative76.6%
fma-define76.6%
*-commutative76.6%
distribute-frac-neg76.6%
remove-double-neg76.6%
Simplified76.6%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
+-commutative99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
associate-*r/99.9%
distribute-lft-in99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 98.8%
associate--l+98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
Taylor expanded in t around inf 45.2%
if 3.5999999999999999e-127 < (/.f64 x y) < 3.9e9Initial program 87.8%
Taylor expanded in t around 0 81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
Taylor expanded in z around inf 44.6%
(FPCore (x y z t) :precision binary64 (if (or (<= z -620000.0) (not (<= z 4.2e-71))) (+ (/ x y) (+ -2.0 (/ 2.0 t))) (+ (/ x y) (/ (/ 2.0 t) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -620000.0) || !(z <= 4.2e-71)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (x / y) + ((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 <= (-620000.0d0)) .or. (.not. (z <= 4.2d-71))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / t))
else
tmp = (x / y) + ((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 <= -620000.0) || !(z <= 4.2e-71)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (x / y) + ((2.0 / t) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -620000.0) or not (z <= 4.2e-71): tmp = (x / y) + (-2.0 + (2.0 / t)) else: tmp = (x / y) + ((2.0 / t) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -620000.0) || !(z <= 4.2e-71)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(Float64(x / y) + Float64(Float64(2.0 / t) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -620000.0) || ~((z <= 4.2e-71))) tmp = (x / y) + (-2.0 + (2.0 / t)); else tmp = (x / y) + ((2.0 / t) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -620000.0], N[Not[LessEqual[z, 4.2e-71]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -620000 \lor \neg \left(z \leq 4.2 \cdot 10^{-71}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \frac{\frac{2}{t}}{z}\\
\end{array}
\end{array}
if z < -6.2e5 or 4.2000000000000002e-71 < z Initial program 67.6%
Taylor expanded in z around inf 95.1%
div-sub95.1%
sub-neg95.1%
*-inverses95.1%
metadata-eval95.1%
distribute-lft-in95.1%
associate-*r/95.1%
metadata-eval95.1%
metadata-eval95.1%
Simplified95.1%
if -6.2e5 < z < 4.2000000000000002e-71Initial program 99.8%
Taylor expanded in z around 0 93.3%
associate-/r*93.3%
Simplified93.3%
Final simplification94.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4.4e-14) (not (<= z 7e-75))) (+ (/ x y) (+ -2.0 (/ 2.0 t))) (* 2.0 (/ (+ z 1.0) (* z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.4e-14) || !(z <= 7e-75)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = 2.0 * ((z + 1.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 ((z <= (-4.4d-14)) .or. (.not. (z <= 7d-75))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / t))
else
tmp = 2.0d0 * ((z + 1.0d0) / (z * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.4e-14) || !(z <= 7e-75)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = 2.0 * ((z + 1.0) / (z * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4.4e-14) or not (z <= 7e-75): tmp = (x / y) + (-2.0 + (2.0 / t)) else: tmp = 2.0 * ((z + 1.0) / (z * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4.4e-14) || !(z <= 7e-75)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(2.0 * Float64(Float64(z + 1.0) / Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4.4e-14) || ~((z <= 7e-75))) tmp = (x / y) + (-2.0 + (2.0 / t)); else tmp = 2.0 * ((z + 1.0) / (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.4e-14], N[Not[LessEqual[z, 7e-75]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(z + 1.0), $MachinePrecision] / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{-14} \lor \neg \left(z \leq 7 \cdot 10^{-75}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{z + 1}{z \cdot t}\\
\end{array}
\end{array}
if z < -4.4000000000000002e-14 or 6.9999999999999997e-75 < z Initial program 68.3%
Taylor expanded in z around inf 95.2%
div-sub95.2%
sub-neg95.2%
*-inverses95.2%
metadata-eval95.2%
distribute-lft-in95.2%
associate-*r/95.2%
metadata-eval95.2%
metadata-eval95.2%
Simplified95.2%
if -4.4000000000000002e-14 < z < 6.9999999999999997e-75Initial program 99.8%
+-commutative99.8%
remove-double-neg99.8%
distribute-frac-neg99.8%
unsub-neg99.8%
*-commutative99.8%
associate-*r*99.8%
distribute-rgt1-in99.8%
associate-/l*99.8%
fma-neg99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
distribute-frac-neg99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in t around 0 74.9%
Final simplification86.9%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -8.6e+21) (not (<= (/ x y) 9500000000.0))) (/ x y) (+ -2.0 (/ 2.0 t))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -8.6e+21) || !((x / y) <= 9500000000.0)) {
tmp = x / y;
} else {
tmp = -2.0 + (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) <= (-8.6d+21)) .or. (.not. ((x / y) <= 9500000000.0d0))) then
tmp = x / y
else
tmp = (-2.0d0) + (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) <= -8.6e+21) || !((x / y) <= 9500000000.0)) {
tmp = x / y;
} else {
tmp = -2.0 + (2.0 / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -8.6e+21) or not ((x / y) <= 9500000000.0): tmp = x / y else: tmp = -2.0 + (2.0 / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -8.6e+21) || !(Float64(x / y) <= 9500000000.0)) tmp = Float64(x / y); else tmp = Float64(-2.0 + Float64(2.0 / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -8.6e+21) || ~(((x / y) <= 9500000000.0))) tmp = x / y; else tmp = -2.0 + (2.0 / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -8.6e+21], N[Not[LessEqual[N[(x / y), $MachinePrecision], 9500000000.0]], $MachinePrecision]], N[(x / y), $MachinePrecision], N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -8.6 \cdot 10^{+21} \lor \neg \left(\frac{x}{y} \leq 9500000000\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -8.6e21 or 9.5e9 < (/.f64 x y) Initial program 81.6%
Taylor expanded in x around inf 67.9%
if -8.6e21 < (/.f64 x y) < 9.5e9Initial program 80.7%
Taylor expanded in z around inf 61.7%
div-sub61.7%
sub-neg61.7%
*-inverses61.7%
metadata-eval61.7%
distribute-lft-in61.7%
associate-*r/61.7%
metadata-eval61.7%
metadata-eval61.7%
Simplified61.7%
Taylor expanded in x around 0 60.0%
sub-neg60.0%
associate-*r/60.0%
metadata-eval60.0%
metadata-eval60.0%
Simplified60.0%
Final simplification63.7%
(FPCore (x y z t) :precision binary64 (if (<= (/ x y) -8.5e+21) (/ x y) (if (<= (/ x y) 3400000000.0) (+ -2.0 (/ 2.0 t)) (- (/ x y) 2.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -8.5e+21) {
tmp = x / y;
} else if ((x / y) <= 3400000000.0) {
tmp = -2.0 + (2.0 / t);
} else {
tmp = (x / y) - 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) <= (-8.5d+21)) then
tmp = x / y
else if ((x / y) <= 3400000000.0d0) then
tmp = (-2.0d0) + (2.0d0 / t)
else
tmp = (x / y) - 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) <= -8.5e+21) {
tmp = x / y;
} else if ((x / y) <= 3400000000.0) {
tmp = -2.0 + (2.0 / t);
} else {
tmp = (x / y) - 2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -8.5e+21: tmp = x / y elif (x / y) <= 3400000000.0: tmp = -2.0 + (2.0 / t) else: tmp = (x / y) - 2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -8.5e+21) tmp = Float64(x / y); elseif (Float64(x / y) <= 3400000000.0) tmp = Float64(-2.0 + Float64(2.0 / t)); else tmp = Float64(Float64(x / y) - 2.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x / y) <= -8.5e+21) tmp = x / y; elseif ((x / y) <= 3400000000.0) tmp = -2.0 + (2.0 / t); else tmp = (x / y) - 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -8.5e+21], N[(x / y), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 3400000000.0], N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -8.5 \cdot 10^{+21}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 3400000000:\\
\;\;\;\;-2 + \frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} - 2\\
\end{array}
\end{array}
if (/.f64 x y) < -8.5e21Initial program 78.3%
Taylor expanded in x around inf 74.6%
if -8.5e21 < (/.f64 x y) < 3.4e9Initial program 80.7%
Taylor expanded in z around inf 61.7%
div-sub61.7%
sub-neg61.7%
*-inverses61.7%
metadata-eval61.7%
distribute-lft-in61.7%
associate-*r/61.7%
metadata-eval61.7%
metadata-eval61.7%
Simplified61.7%
Taylor expanded in x around 0 60.0%
sub-neg60.0%
associate-*r/60.0%
metadata-eval60.0%
metadata-eval60.0%
Simplified60.0%
if 3.4e9 < (/.f64 x y) Initial program 84.0%
Taylor expanded in t around inf 63.4%
Final simplification63.8%
(FPCore (x y z t) :precision binary64 (if (or (<= t -5500000000000.0) (not (<= t 2.7e+19))) (- (/ x y) 2.0) (/ (+ 2.0 (/ 2.0 z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -5500000000000.0) || !(t <= 2.7e+19)) {
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 <= (-5500000000000.0d0)) .or. (.not. (t <= 2.7d+19))) 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 <= -5500000000000.0) || !(t <= 2.7e+19)) {
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 <= -5500000000000.0) or not (t <= 2.7e+19): 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 <= -5500000000000.0) || !(t <= 2.7e+19)) 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 <= -5500000000000.0) || ~((t <= 2.7e+19))) 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, -5500000000000.0], N[Not[LessEqual[t, 2.7e+19]], $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 -5500000000000 \lor \neg \left(t \leq 2.7 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + \frac{2}{z}}{t}\\
\end{array}
\end{array}
if t < -5.5e12 or 2.7e19 < t Initial program 61.5%
Taylor expanded in t around inf 85.0%
if -5.5e12 < t < 2.7e19Initial program 99.7%
Taylor expanded in t around 0 81.2%
associate-*r/81.2%
metadata-eval81.2%
Simplified81.2%
Final simplification83.0%
(FPCore (x y z t) :precision binary64 (if (<= t -0.0039) -2.0 (if (<= t 1.0) (/ 2.0 t) -2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -0.0039) {
tmp = -2.0;
} else if (t <= 1.0) {
tmp = 2.0 / t;
} else {
tmp = -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 (t <= (-0.0039d0)) then
tmp = -2.0d0
else if (t <= 1.0d0) then
tmp = 2.0d0 / t
else
tmp = -2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -0.0039) {
tmp = -2.0;
} else if (t <= 1.0) {
tmp = 2.0 / t;
} else {
tmp = -2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -0.0039: tmp = -2.0 elif t <= 1.0: tmp = 2.0 / t else: tmp = -2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -0.0039) tmp = -2.0; elseif (t <= 1.0) tmp = Float64(2.0 / t); else tmp = -2.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -0.0039) tmp = -2.0; elseif (t <= 1.0) tmp = 2.0 / t; else tmp = -2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -0.0039], -2.0, If[LessEqual[t, 1.0], N[(2.0 / t), $MachinePrecision], -2.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0039:\\
\;\;\;\;-2\\
\mathbf{elif}\;t \leq 1:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;-2\\
\end{array}
\end{array}
if t < -0.0038999999999999998 or 1 < t Initial program 64.4%
+-commutative64.4%
remove-double-neg64.4%
distribute-frac-neg64.4%
unsub-neg64.4%
*-commutative64.4%
associate-*r*64.4%
distribute-rgt1-in64.4%
associate-/l*64.3%
fma-neg64.3%
*-commutative64.3%
fma-define64.3%
*-commutative64.3%
distribute-frac-neg64.3%
remove-double-neg64.3%
Simplified64.3%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
+-commutative99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
associate-*r/99.9%
distribute-lft-in99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 56.2%
associate--l+56.2%
associate-*r/56.2%
metadata-eval56.2%
associate-*r/56.2%
metadata-eval56.2%
Simplified56.2%
Taylor expanded in t around inf 37.1%
if -0.0038999999999999998 < t < 1Initial program 99.7%
Taylor expanded in t around 0 81.9%
associate-*r/81.9%
metadata-eval81.9%
Simplified81.9%
Taylor expanded in z around inf 34.6%
(FPCore (x y z t) :precision binary64 -2.0)
double code(double x, double y, double z, double t) {
return -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
end function
public static double code(double x, double y, double z, double t) {
return -2.0;
}
def code(x, y, z, t): return -2.0
function code(x, y, z, t) return -2.0 end
function tmp = code(x, y, z, t) tmp = -2.0; end
code[x_, y_, z_, t_] := -2.0
\begin{array}{l}
\\
-2
\end{array}
Initial program 81.1%
+-commutative81.1%
remove-double-neg81.1%
distribute-frac-neg81.1%
unsub-neg81.1%
*-commutative81.1%
associate-*r*81.1%
distribute-rgt1-in81.1%
associate-/l*81.0%
fma-neg81.0%
*-commutative81.0%
fma-define81.0%
*-commutative81.0%
distribute-frac-neg81.0%
remove-double-neg81.0%
Simplified81.0%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
+-commutative99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
associate-*r/99.9%
distribute-lft-in99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 68.6%
associate--l+68.6%
associate-*r/68.6%
metadata-eval68.6%
associate-*r/68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in t around inf 20.8%
(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 2024118
(FPCore (x y z t)
:name "Data.HashTable.ST.Basic:computeOverhead from hashtables-1.2.0.2"
:precision binary64
:alt
(- (/ (+ (/ 2.0 z) 2.0) t) (- 2.0 (/ x y)))
(+ (/ x y) (/ (+ 2.0 (* (* z 2.0) (- 1.0 t))) (* t z))))