
(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 85.0%
+-commutative85.0%
remove-double-neg85.0%
distribute-frac-neg85.0%
unsub-neg85.0%
*-commutative85.0%
associate-*r*85.0%
distribute-rgt1-in85.0%
associate-/l*84.9%
fma-neg84.9%
*-commutative84.9%
fma-define84.9%
*-commutative84.9%
distribute-frac-neg84.9%
remove-double-neg84.9%
Simplified84.9%
Taylor expanded in t around inf 98.3%
associate--l+98.3%
+-commutative98.3%
sub-neg98.3%
metadata-eval98.3%
+-commutative98.3%
associate-*r/98.3%
distribute-lft-in98.3%
metadata-eval98.3%
associate-*r/98.3%
metadata-eval98.3%
Simplified98.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)))
(if (<= z -1.85e+23)
(+ -2.0 (/ 2.0 t))
(if (<= z -2.5e-41)
t_1
(if (<= z 1850000000.0)
(+ -2.0 (/ (/ 2.0 z) t))
(if (<= z 6.5e+73) (/ 2.0 t) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -1.85e+23) {
tmp = -2.0 + (2.0 / t);
} else if (z <= -2.5e-41) {
tmp = t_1;
} else if (z <= 1850000000.0) {
tmp = -2.0 + ((2.0 / z) / t);
} else if (z <= 6.5e+73) {
tmp = 2.0 / t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (x / y) - 2.0d0
if (z <= (-1.85d+23)) then
tmp = (-2.0d0) + (2.0d0 / t)
else if (z <= (-2.5d-41)) then
tmp = t_1
else if (z <= 1850000000.0d0) then
tmp = (-2.0d0) + ((2.0d0 / z) / t)
else if (z <= 6.5d+73) then
tmp = 2.0d0 / t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -1.85e+23) {
tmp = -2.0 + (2.0 / t);
} else if (z <= -2.5e-41) {
tmp = t_1;
} else if (z <= 1850000000.0) {
tmp = -2.0 + ((2.0 / z) / t);
} else if (z <= 6.5e+73) {
tmp = 2.0 / t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 tmp = 0 if z <= -1.85e+23: tmp = -2.0 + (2.0 / t) elif z <= -2.5e-41: tmp = t_1 elif z <= 1850000000.0: tmp = -2.0 + ((2.0 / z) / t) elif z <= 6.5e+73: tmp = 2.0 / t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (z <= -1.85e+23) tmp = Float64(-2.0 + Float64(2.0 / t)); elseif (z <= -2.5e-41) tmp = t_1; elseif (z <= 1850000000.0) tmp = Float64(-2.0 + Float64(Float64(2.0 / z) / t)); elseif (z <= 6.5e+73) tmp = Float64(2.0 / t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; tmp = 0.0; if (z <= -1.85e+23) tmp = -2.0 + (2.0 / t); elseif (z <= -2.5e-41) tmp = t_1; elseif (z <= 1850000000.0) tmp = -2.0 + ((2.0 / z) / t); elseif (z <= 6.5e+73) tmp = 2.0 / t; else tmp = t_1; 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, -1.85e+23], N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.5e-41], t$95$1, If[LessEqual[z, 1850000000.0], N[(-2.0 + N[(N[(2.0 / z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+73], N[(2.0 / t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+23}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1850000000:\\
\;\;\;\;-2 + \frac{\frac{2}{z}}{t}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+73}:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.85000000000000006e23Initial program 72.6%
Taylor expanded in z around inf 99.9%
div-sub100.0%
sub-neg100.0%
*-inverses100.0%
metadata-eval100.0%
distribute-lft-in100.0%
associate-*r/100.0%
metadata-eval100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 67.8%
sub-neg67.8%
associate-*r/67.8%
metadata-eval67.8%
metadata-eval67.8%
Simplified67.8%
if -1.85000000000000006e23 < z < -2.4999999999999998e-41 or 6.5000000000000001e73 < z Initial program 68.3%
Taylor expanded in t around inf 77.8%
if -2.4999999999999998e-41 < z < 1.85e9Initial program 96.8%
+-commutative96.8%
remove-double-neg96.8%
distribute-frac-neg96.8%
unsub-neg96.8%
*-commutative96.8%
associate-*r*96.8%
distribute-rgt1-in96.8%
associate-/l*96.7%
fma-neg96.7%
*-commutative96.7%
fma-define96.7%
*-commutative96.7%
distribute-frac-neg96.7%
remove-double-neg96.7%
Simplified96.7%
Taylor expanded in t around inf 96.7%
associate--l+96.7%
+-commutative96.7%
sub-neg96.7%
metadata-eval96.7%
+-commutative96.7%
associate-*r/96.7%
distribute-lft-in96.7%
metadata-eval96.7%
associate-*r/96.7%
metadata-eval96.7%
Simplified96.7%
Taylor expanded in x around 0 78.9%
sub-neg78.9%
associate-*r/78.9%
metadata-eval78.9%
*-commutative78.9%
associate-/r*78.8%
metadata-eval78.8%
associate-*r/78.8%
associate-*l/78.7%
metadata-eval78.7%
associate-*r/78.7%
*-commutative78.7%
associate-*r*78.7%
*-commutative78.7%
associate-*r/78.7%
metadata-eval78.7%
distribute-rgt-in78.7%
associate-*l/78.8%
*-lft-identity78.8%
metadata-eval78.8%
Simplified78.8%
Taylor expanded in z around 0 78.8%
if 1.85e9 < z < 6.5000000000000001e73Initial program 99.6%
Taylor expanded in t around 0 90.8%
associate-*r/90.8%
metadata-eval90.8%
Simplified90.8%
Taylor expanded in z around inf 89.0%
Final simplification76.5%
(FPCore (x y z t)
:precision binary64
(if (<= (/ x y) -5000.0)
(+ (/ x y) (/ 2.0 (* z t)))
(if (<= (/ x y) 0.0002)
(+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t))
(+ (/ x y) (/ (/ 2.0 z) t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -5000.0) {
tmp = (x / y) + (2.0 / (z * t));
} else if ((x / y) <= 0.0002) {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
} else {
tmp = (x / y) + ((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 ((x / y) <= (-5000.0d0)) then
tmp = (x / y) + (2.0d0 / (z * t))
else if ((x / y) <= 0.0002d0) then
tmp = (-2.0d0) + ((2.0d0 + (2.0d0 / z)) / t)
else
tmp = (x / y) + ((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 ((x / y) <= -5000.0) {
tmp = (x / y) + (2.0 / (z * t));
} else if ((x / y) <= 0.0002) {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
} else {
tmp = (x / y) + ((2.0 / z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -5000.0: tmp = (x / y) + (2.0 / (z * t)) elif (x / y) <= 0.0002: tmp = -2.0 + ((2.0 + (2.0 / z)) / t) else: tmp = (x / y) + ((2.0 / z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -5000.0) tmp = Float64(Float64(x / y) + Float64(2.0 / Float64(z * t))); elseif (Float64(x / y) <= 0.0002) tmp = Float64(-2.0 + Float64(Float64(2.0 + Float64(2.0 / z)) / t)); else tmp = Float64(Float64(x / y) + Float64(Float64(2.0 / z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x / y) <= -5000.0) tmp = (x / y) + (2.0 / (z * t)); elseif ((x / y) <= 0.0002) tmp = -2.0 + ((2.0 + (2.0 / z)) / t); else tmp = (x / y) + ((2.0 / z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -5000.0], N[(N[(x / y), $MachinePrecision] + N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 0.0002], N[(-2.0 + N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -5000:\\
\;\;\;\;\frac{x}{y} + \frac{2}{z \cdot t}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.0002:\\
\;\;\;\;-2 + \frac{2 + \frac{2}{z}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \frac{\frac{2}{z}}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -5e3Initial program 85.5%
Taylor expanded in z around 0 85.0%
if -5e3 < (/.f64 x y) < 2.0000000000000001e-4Initial program 85.7%
+-commutative85.7%
remove-double-neg85.7%
distribute-frac-neg85.7%
unsub-neg85.7%
*-commutative85.7%
associate-*r*85.7%
distribute-rgt1-in85.7%
associate-/l*85.6%
fma-neg85.6%
*-commutative85.6%
fma-define85.6%
*-commutative85.6%
distribute-frac-neg85.6%
remove-double-neg85.6%
Simplified85.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.6%
sub-neg98.6%
associate-*r/98.6%
metadata-eval98.6%
*-commutative98.6%
associate-/r*98.6%
metadata-eval98.6%
associate-*r/98.6%
associate-*l/98.6%
metadata-eval98.6%
associate-*r/98.6%
*-commutative98.6%
associate-*r*98.6%
*-commutative98.6%
associate-*r/98.6%
metadata-eval98.6%
distribute-rgt-in98.5%
associate-*l/98.6%
*-lft-identity98.6%
metadata-eval98.6%
Simplified98.6%
if 2.0000000000000001e-4 < (/.f64 x y) Initial program 82.7%
Taylor expanded in z around 0 82.2%
Taylor expanded in t around 0 71.3%
associate-*r/71.3%
metadata-eval71.3%
associate-/l*66.3%
Simplified66.3%
Taylor expanded in z around inf 82.2%
+-commutative82.2%
associate-*r/82.2%
metadata-eval82.2%
*-commutative82.2%
associate-/r*82.2%
Simplified82.2%
Final simplification91.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.0) (not (<= z 3.8e-16))) (+ (/ x y) (+ -2.0 (/ 2.0 t))) (+ (+ -2.0 (/ x y)) (/ (/ 2.0 z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 3.8e-16)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (-2.0 + (x / y)) + ((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 ((z <= (-1.0d0)) .or. (.not. (z <= 3.8d-16))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / t))
else
tmp = ((-2.0d0) + (x / y)) + ((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 ((z <= -1.0) || !(z <= 3.8e-16)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (-2.0 + (x / y)) + ((2.0 / z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.0) or not (z <= 3.8e-16): tmp = (x / y) + (-2.0 + (2.0 / t)) else: tmp = (-2.0 + (x / y)) + ((2.0 / z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.0) || !(z <= 3.8e-16)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(Float64(-2.0 + Float64(x / y)) + Float64(Float64(2.0 / z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.0) || ~((z <= 3.8e-16))) tmp = (x / y) + (-2.0 + (2.0 / t)); else tmp = (-2.0 + (x / y)) + ((2.0 / z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 3.8e-16]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-2.0 + N[(x / y), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 / z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 3.8 \cdot 10^{-16}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-2 + \frac{x}{y}\right) + \frac{\frac{2}{z}}{t}\\
\end{array}
\end{array}
if z < -1 or 3.80000000000000012e-16 < z Initial program 71.7%
Taylor expanded in z around inf 99.2%
div-sub99.2%
sub-neg99.2%
*-inverses99.2%
metadata-eval99.2%
distribute-lft-in99.2%
associate-*r/99.2%
metadata-eval99.2%
metadata-eval99.2%
Simplified99.2%
if -1 < z < 3.80000000000000012e-16Initial program 96.9%
+-commutative96.9%
remove-double-neg96.9%
distribute-frac-neg96.9%
unsub-neg96.9%
*-commutative96.9%
associate-*r*96.9%
distribute-rgt1-in96.9%
associate-/l*96.9%
fma-neg96.9%
*-commutative96.9%
fma-define96.9%
*-commutative96.9%
distribute-frac-neg96.9%
remove-double-neg96.9%
Simplified96.9%
Taylor expanded in t around inf 96.9%
associate--l+96.9%
+-commutative96.9%
sub-neg96.9%
metadata-eval96.9%
+-commutative96.9%
associate-*r/96.9%
distribute-lft-in96.9%
metadata-eval96.9%
associate-*r/96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in z around 0 96.5%
Final simplification97.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -7.8e-42) (not (<= z 8.2e-37))) (+ (/ x y) (+ -2.0 (/ 2.0 t))) (+ (/ x y) (/ 2.0 (* z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -7.8e-42) || !(z <= 8.2e-37)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (x / y) + (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 ((z <= (-7.8d-42)) .or. (.not. (z <= 8.2d-37))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / t))
else
tmp = (x / y) + (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 ((z <= -7.8e-42) || !(z <= 8.2e-37)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (x / y) + (2.0 / (z * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -7.8e-42) or not (z <= 8.2e-37): tmp = (x / y) + (-2.0 + (2.0 / t)) else: tmp = (x / y) + (2.0 / (z * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -7.8e-42) || !(z <= 8.2e-37)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(Float64(x / y) + Float64(2.0 / Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -7.8e-42) || ~((z <= 8.2e-37))) tmp = (x / y) + (-2.0 + (2.0 / t)); else tmp = (x / y) + (2.0 / (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -7.8e-42], N[Not[LessEqual[z, 8.2e-37]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] + N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{-42} \lor \neg \left(z \leq 8.2 \cdot 10^{-37}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \frac{2}{z \cdot t}\\
\end{array}
\end{array}
if z < -7.8000000000000003e-42 or 8.1999999999999996e-37 < z Initial program 74.3%
Taylor expanded in z around inf 97.3%
div-sub97.3%
sub-neg97.3%
*-inverses97.3%
metadata-eval97.3%
distribute-lft-in97.3%
associate-*r/97.3%
metadata-eval97.3%
metadata-eval97.3%
Simplified97.3%
if -7.8000000000000003e-42 < z < 8.1999999999999996e-37Initial program 96.6%
Taylor expanded in z around 0 84.6%
Final simplification91.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.6e-41) (not (<= z 1.15e-16))) (+ (/ x y) (+ -2.0 (/ 2.0 t))) (+ -2.0 (/ (/ 2.0 z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.6e-41) || !(z <= 1.15e-16)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} 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 ((z <= (-1.6d-41)) .or. (.not. (z <= 1.15d-16))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / t))
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 ((z <= -1.6e-41) || !(z <= 1.15e-16)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = -2.0 + ((2.0 / z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.6e-41) or not (z <= 1.15e-16): tmp = (x / y) + (-2.0 + (2.0 / t)) else: tmp = -2.0 + ((2.0 / z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.6e-41) || !(z <= 1.15e-16)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(-2.0 + Float64(Float64(2.0 / z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.6e-41) || ~((z <= 1.15e-16))) tmp = (x / y) + (-2.0 + (2.0 / t)); else tmp = -2.0 + ((2.0 / z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.6e-41], N[Not[LessEqual[z, 1.15e-16]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-2.0 + N[(N[(2.0 / z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{-41} \lor \neg \left(z \leq 1.15 \cdot 10^{-16}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{\frac{2}{z}}{t}\\
\end{array}
\end{array}
if z < -1.60000000000000006e-41 or 1.15e-16 < z Initial program 73.7%
Taylor expanded in z around inf 98.5%
div-sub98.5%
sub-neg98.5%
*-inverses98.5%
metadata-eval98.5%
distribute-lft-in98.5%
associate-*r/98.5%
metadata-eval98.5%
metadata-eval98.5%
Simplified98.5%
if -1.60000000000000006e-41 < z < 1.15e-16Initial program 96.7%
+-commutative96.7%
remove-double-neg96.7%
distribute-frac-neg96.7%
unsub-neg96.7%
*-commutative96.7%
associate-*r*96.7%
distribute-rgt1-in96.7%
associate-/l*96.7%
fma-neg96.7%
*-commutative96.7%
fma-define96.7%
*-commutative96.7%
distribute-frac-neg96.7%
remove-double-neg96.7%
Simplified96.7%
Taylor expanded in t around inf 96.6%
associate--l+96.6%
+-commutative96.6%
sub-neg96.6%
metadata-eval96.6%
+-commutative96.6%
associate-*r/96.6%
distribute-lft-in96.6%
metadata-eval96.6%
associate-*r/96.6%
metadata-eval96.6%
Simplified96.6%
Taylor expanded in x around 0 79.9%
sub-neg79.9%
associate-*r/79.9%
metadata-eval79.9%
*-commutative79.9%
associate-/r*79.8%
metadata-eval79.8%
associate-*r/79.8%
associate-*l/79.8%
metadata-eval79.8%
associate-*r/79.8%
*-commutative79.8%
associate-*r*79.8%
*-commutative79.8%
associate-*r/79.8%
metadata-eval79.8%
distribute-rgt-in79.8%
associate-*l/79.8%
*-lft-identity79.8%
metadata-eval79.8%
Simplified79.8%
Taylor expanded in z around 0 79.8%
Final simplification89.3%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -4.2e-39) (not (<= (/ x y) 8.5e-5))) (- (/ x y) 2.0) (+ -2.0 (/ 2.0 t))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -4.2e-39) || !((x / y) <= 8.5e-5)) {
tmp = (x / y) - 2.0;
} 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) <= (-4.2d-39)) .or. (.not. ((x / y) <= 8.5d-5))) then
tmp = (x / y) - 2.0d0
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) <= -4.2e-39) || !((x / y) <= 8.5e-5)) {
tmp = (x / y) - 2.0;
} else {
tmp = -2.0 + (2.0 / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -4.2e-39) or not ((x / y) <= 8.5e-5): tmp = (x / y) - 2.0 else: tmp = -2.0 + (2.0 / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -4.2e-39) || !(Float64(x / y) <= 8.5e-5)) tmp = Float64(Float64(x / y) - 2.0); 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) <= -4.2e-39) || ~(((x / y) <= 8.5e-5))) tmp = (x / y) - 2.0; else tmp = -2.0 + (2.0 / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -4.2e-39], N[Not[LessEqual[N[(x / y), $MachinePrecision], 8.5e-5]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -4.2 \cdot 10^{-39} \lor \neg \left(\frac{x}{y} \leq 8.5 \cdot 10^{-5}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -4.19999999999999987e-39 or 8.500000000000001e-5 < (/.f64 x y) Initial program 84.0%
Taylor expanded in t around inf 61.9%
if -4.19999999999999987e-39 < (/.f64 x y) < 8.500000000000001e-5Initial program 86.0%
Taylor expanded in z around inf 62.1%
div-sub62.1%
sub-neg62.1%
*-inverses62.1%
metadata-eval62.1%
distribute-lft-in62.1%
associate-*r/62.1%
metadata-eval62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in x around 0 62.0%
sub-neg62.0%
associate-*r/62.0%
metadata-eval62.0%
metadata-eval62.0%
Simplified62.0%
Final simplification62.0%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -2.5e-5) (not (<= (/ x y) 800.0))) (/ x y) (+ -2.0 (/ 2.0 t))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -2.5e-5) || !((x / y) <= 800.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) <= (-2.5d-5)) .or. (.not. ((x / y) <= 800.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) <= -2.5e-5) || !((x / y) <= 800.0)) {
tmp = x / y;
} else {
tmp = -2.0 + (2.0 / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -2.5e-5) or not ((x / y) <= 800.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) <= -2.5e-5) || !(Float64(x / y) <= 800.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) <= -2.5e-5) || ~(((x / y) <= 800.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], -2.5e-5], N[Not[LessEqual[N[(x / y), $MachinePrecision], 800.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 -2.5 \cdot 10^{-5} \lor \neg \left(\frac{x}{y} \leq 800\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -2.50000000000000012e-5 or 800 < (/.f64 x y) Initial program 84.2%
Taylor expanded in x around inf 61.7%
if -2.50000000000000012e-5 < (/.f64 x y) < 800Initial program 85.6%
Taylor expanded in z around inf 61.4%
div-sub61.4%
sub-neg61.4%
*-inverses61.4%
metadata-eval61.4%
distribute-lft-in61.4%
associate-*r/61.4%
metadata-eval61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in x around 0 60.1%
sub-neg60.1%
associate-*r/60.1%
metadata-eval60.1%
metadata-eval60.1%
Simplified60.1%
Final simplification60.8%
(FPCore (x y z t) :precision binary64 (if (or (<= t -4.8e-19) (not (<= t 5.6e+28))) (- (/ x y) 2.0) (/ (+ 2.0 (/ 2.0 z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -4.8e-19) || !(t <= 5.6e+28)) {
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 <= (-4.8d-19)) .or. (.not. (t <= 5.6d+28))) 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 <= -4.8e-19) || !(t <= 5.6e+28)) {
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 <= -4.8e-19) or not (t <= 5.6e+28): 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 <= -4.8e-19) || !(t <= 5.6e+28)) 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 <= -4.8e-19) || ~((t <= 5.6e+28))) 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, -4.8e-19], N[Not[LessEqual[t, 5.6e+28]], $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 -4.8 \cdot 10^{-19} \lor \neg \left(t \leq 5.6 \cdot 10^{+28}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + \frac{2}{z}}{t}\\
\end{array}
\end{array}
if t < -4.80000000000000046e-19 or 5.6000000000000003e28 < t Initial program 72.5%
Taylor expanded in t around inf 84.4%
if -4.80000000000000046e-19 < t < 5.6000000000000003e28Initial program 96.7%
Taylor expanded in t around 0 86.9%
associate-*r/86.9%
metadata-eval86.9%
Simplified86.9%
Final simplification85.7%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -4.2e-39) (not (<= (/ x y) 920.0))) (/ x y) (/ 2.0 t)))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -4.2e-39) || !((x / y) <= 920.0)) {
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) <= (-4.2d-39)) .or. (.not. ((x / y) <= 920.0d0))) 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) <= -4.2e-39) || !((x / y) <= 920.0)) {
tmp = x / y;
} else {
tmp = 2.0 / t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -4.2e-39) or not ((x / y) <= 920.0): tmp = x / y else: tmp = 2.0 / t return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -4.2e-39) || !(Float64(x / y) <= 920.0)) 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) <= -4.2e-39) || ~(((x / y) <= 920.0))) 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], -4.2e-39], N[Not[LessEqual[N[(x / y), $MachinePrecision], 920.0]], $MachinePrecision]], N[(x / y), $MachinePrecision], N[(2.0 / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -4.2 \cdot 10^{-39} \lor \neg \left(\frac{x}{y} \leq 920\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -4.19999999999999987e-39 or 920 < (/.f64 x y) Initial program 83.9%
Taylor expanded in x around inf 57.3%
if -4.19999999999999987e-39 < (/.f64 x y) < 920Initial program 86.1%
Taylor expanded in t around 0 61.9%
associate-*r/61.9%
metadata-eval61.9%
Simplified61.9%
Taylor expanded in z around inf 26.0%
Final simplification41.3%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.75e-22) (not (<= t 2.7e+29))) (- (/ x y) 2.0) (/ 2.0 (* z t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.75e-22) || !(t <= 2.7e+29)) {
tmp = (x / y) - 2.0;
} 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) :: tmp
if ((t <= (-1.75d-22)) .or. (.not. (t <= 2.7d+29))) then
tmp = (x / y) - 2.0d0
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 tmp;
if ((t <= -1.75e-22) || !(t <= 2.7e+29)) {
tmp = (x / y) - 2.0;
} else {
tmp = 2.0 / (z * t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -1.75e-22) or not (t <= 2.7e+29): tmp = (x / y) - 2.0 else: tmp = 2.0 / (z * t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.75e-22) || !(t <= 2.7e+29)) tmp = Float64(Float64(x / y) - 2.0); else tmp = Float64(2.0 / Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -1.75e-22) || ~((t <= 2.7e+29))) tmp = (x / y) - 2.0; else tmp = 2.0 / (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.75e-22], N[Not[LessEqual[t, 2.7e+29]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{-22} \lor \neg \left(t \leq 2.7 \cdot 10^{+29}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{z \cdot t}\\
\end{array}
\end{array}
if t < -1.75000000000000003e-22 or 2.7e29 < t Initial program 72.5%
Taylor expanded in t around inf 84.4%
if -1.75000000000000003e-22 < t < 2.7e29Initial program 96.7%
+-commutative96.7%
remove-double-neg96.7%
distribute-frac-neg96.7%
unsub-neg96.7%
*-commutative96.7%
associate-*r*96.7%
distribute-rgt1-in96.7%
associate-/l*96.6%
fma-neg96.6%
*-commutative96.6%
fma-define96.6%
*-commutative96.6%
distribute-frac-neg96.6%
remove-double-neg96.6%
Simplified96.6%
Taylor expanded in t around inf 96.9%
associate--l+96.9%
+-commutative96.9%
sub-neg96.9%
metadata-eval96.9%
+-commutative96.9%
associate-*r/96.9%
distribute-lft-in96.9%
metadata-eval96.9%
associate-*r/96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in z around 0 53.9%
Final simplification68.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 85.0%
Taylor expanded in t around 0 52.2%
associate-*r/52.2%
metadata-eval52.2%
Simplified52.2%
Taylor expanded in z around inf 19.4%
(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 2024101
(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))))