
(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 11 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 (+ (/ x y) (+ (/ 2.0 (* t z)) (- (/ 2.0 t) 2.0))))
double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 / (t * z)) + ((2.0 / t) - 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 = (x / y) + ((2.0d0 / (t * z)) + ((2.0d0 / t) - 2.0d0))
end function
public static double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 / (t * z)) + ((2.0 / t) - 2.0));
}
def code(x, y, z, t): return (x / y) + ((2.0 / (t * z)) + ((2.0 / t) - 2.0))
function code(x, y, z, t) return Float64(Float64(x / y) + Float64(Float64(2.0 / Float64(t * z)) + Float64(Float64(2.0 / t) - 2.0))) end
function tmp = code(x, y, z, t) tmp = (x / y) + ((2.0 / (t * z)) + ((2.0 / t) - 2.0)); end
code[x_, y_, z_, t_] := N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 / t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} + \left(\frac{2}{t \cdot z} + \left(\frac{2}{t} - 2\right)\right)
\end{array}
Initial program 85.4%
Taylor expanded in t around 0 98.4%
associate--l+98.4%
*-commutative98.4%
associate-*r/98.4%
metadata-eval98.4%
*-commutative98.4%
Simplified98.4%
Final simplification98.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (/ x y) (/ 2.0 t))))
(if (<= (/ x y) -3300000.0)
t_1
(if (<= (/ x y) 3.2e-39)
(+ (/ 2.0 t) -2.0)
(if (<= (/ x y) 68000000000.0) (/ 2.0 (* t z)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) + (2.0 / t);
double tmp;
if ((x / y) <= -3300000.0) {
tmp = t_1;
} else if ((x / y) <= 3.2e-39) {
tmp = (2.0 / t) + -2.0;
} else if ((x / y) <= 68000000000.0) {
tmp = 2.0 / (t * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (x / y) + (2.0d0 / t)
if ((x / y) <= (-3300000.0d0)) then
tmp = t_1
else if ((x / y) <= 3.2d-39) then
tmp = (2.0d0 / t) + (-2.0d0)
else if ((x / y) <= 68000000000.0d0) then
tmp = 2.0d0 / (t * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x / y) + (2.0 / t);
double tmp;
if ((x / y) <= -3300000.0) {
tmp = t_1;
} else if ((x / y) <= 3.2e-39) {
tmp = (2.0 / t) + -2.0;
} else if ((x / y) <= 68000000000.0) {
tmp = 2.0 / (t * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) + (2.0 / t) tmp = 0 if (x / y) <= -3300000.0: tmp = t_1 elif (x / y) <= 3.2e-39: tmp = (2.0 / t) + -2.0 elif (x / y) <= 68000000000.0: tmp = 2.0 / (t * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) + Float64(2.0 / t)) tmp = 0.0 if (Float64(x / y) <= -3300000.0) tmp = t_1; elseif (Float64(x / y) <= 3.2e-39) tmp = Float64(Float64(2.0 / t) + -2.0); elseif (Float64(x / y) <= 68000000000.0) tmp = Float64(2.0 / Float64(t * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) + (2.0 / t); tmp = 0.0; if ((x / y) <= -3300000.0) tmp = t_1; elseif ((x / y) <= 3.2e-39) tmp = (2.0 / t) + -2.0; elseif ((x / y) <= 68000000000.0) tmp = 2.0 / (t * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x / y), $MachinePrecision], -3300000.0], t$95$1, If[LessEqual[N[(x / y), $MachinePrecision], 3.2e-39], N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 68000000000.0], N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} + \frac{2}{t}\\
\mathbf{if}\;\frac{x}{y} \leq -3300000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{x}{y} \leq 3.2 \cdot 10^{-39}:\\
\;\;\;\;\frac{2}{t} + -2\\
\mathbf{elif}\;\frac{x}{y} \leq 68000000000:\\
\;\;\;\;\frac{2}{t \cdot z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (/.f64 x y) < -3.3e6 or 6.8e10 < (/.f64 x y) Initial program 80.3%
Taylor expanded in t around 0 96.8%
associate--l+96.8%
*-commutative96.8%
associate-*r/96.8%
metadata-eval96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in z around inf 85.7%
+-commutative85.7%
associate-*r/85.7%
metadata-eval85.7%
associate--l+85.7%
sub-neg85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
Taylor expanded in t around 0 84.8%
if -3.3e6 < (/.f64 x y) < 3.1999999999999998e-39Initial program 90.5%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 99.9%
sub-neg99.9%
+-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-/l/99.9%
associate-*r/99.9%
metadata-eval99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-*l/99.9%
associate-*r/99.8%
metadata-eval99.8%
associate-*r/99.8%
distribute-rgt-in99.8%
+-commutative99.8%
associate-*l/99.9%
associate-*r/99.9%
*-lft-identity99.9%
Simplified99.9%
Taylor expanded in z around inf 65.3%
associate-*r/65.3%
metadata-eval65.3%
sub-neg65.3%
metadata-eval65.3%
Simplified65.3%
if 3.1999999999999998e-39 < (/.f64 x y) < 6.8e10Initial program 89.7%
Taylor expanded in t around 0 99.7%
associate--l+99.7%
*-commutative99.7%
associate-*r/99.7%
metadata-eval99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around 0 71.2%
Final simplification75.3%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -5.2e+20) (not (<= (/ x y) 2800000000000.0))) (+ (/ x y) (/ 2.0 t)) (+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5.2e+20) || !((x / y) <= 2800000000000.0)) {
tmp = (x / y) + (2.0 / t);
} else {
tmp = -2.0 + ((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 (((x / y) <= (-5.2d+20)) .or. (.not. ((x / y) <= 2800000000000.0d0))) then
tmp = (x / y) + (2.0d0 / t)
else
tmp = (-2.0d0) + ((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 (((x / y) <= -5.2e+20) || !((x / y) <= 2800000000000.0)) {
tmp = (x / y) + (2.0 / t);
} else {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -5.2e+20) or not ((x / y) <= 2800000000000.0): tmp = (x / y) + (2.0 / t) else: tmp = -2.0 + ((2.0 + (2.0 / z)) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -5.2e+20) || !(Float64(x / y) <= 2800000000000.0)) tmp = Float64(Float64(x / y) + Float64(2.0 / t)); else tmp = Float64(-2.0 + 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 (((x / y) <= -5.2e+20) || ~(((x / y) <= 2800000000000.0))) tmp = (x / y) + (2.0 / t); else tmp = -2.0 + ((2.0 + (2.0 / z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -5.2e+20], N[Not[LessEqual[N[(x / y), $MachinePrecision], 2800000000000.0]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(2.0 / t), $MachinePrecision]), $MachinePrecision], N[(-2.0 + N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -5.2 \cdot 10^{+20} \lor \neg \left(\frac{x}{y} \leq 2800000000000\right):\\
\;\;\;\;\frac{x}{y} + \frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2 + \frac{2}{z}}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -5.2e20 or 2.8e12 < (/.f64 x y) Initial program 79.7%
Taylor expanded in t around 0 96.6%
associate--l+96.6%
*-commutative96.6%
associate-*r/96.6%
metadata-eval96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in z around inf 88.6%
+-commutative88.6%
associate-*r/88.6%
metadata-eval88.6%
associate--l+88.6%
sub-neg88.6%
metadata-eval88.6%
+-commutative88.6%
Simplified88.6%
Taylor expanded in t around 0 88.5%
if -5.2e20 < (/.f64 x y) < 2.8e12Initial program 90.3%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 96.5%
sub-neg96.5%
+-commutative96.5%
associate-*r/96.5%
metadata-eval96.5%
associate-/l/96.6%
associate-*r/96.6%
metadata-eval96.6%
metadata-eval96.6%
+-commutative96.6%
metadata-eval96.6%
associate-*l/96.6%
associate-*r/96.5%
metadata-eval96.5%
associate-*r/96.5%
distribute-rgt-in96.5%
+-commutative96.5%
associate-*l/96.6%
associate-*r/96.6%
*-lft-identity96.6%
Simplified96.6%
Final simplification92.8%
(FPCore (x y z t)
:precision binary64
(if (<= (/ x y) -9.9e+20)
(+ (/ x y) (/ 2.0 t))
(if (<= (/ x y) 3200000000000.0)
(+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t))
(+ (/ x y) (+ (/ 2.0 t) -2.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -9.9e+20) {
tmp = (x / y) + (2.0 / t);
} else if ((x / y) <= 3200000000000.0) {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
} else {
tmp = (x / y) + ((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) <= (-9.9d+20)) then
tmp = (x / y) + (2.0d0 / t)
else if ((x / y) <= 3200000000000.0d0) then
tmp = (-2.0d0) + ((2.0d0 + (2.0d0 / z)) / t)
else
tmp = (x / y) + ((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) <= -9.9e+20) {
tmp = (x / y) + (2.0 / t);
} else if ((x / y) <= 3200000000000.0) {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
} else {
tmp = (x / y) + ((2.0 / t) + -2.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -9.9e+20: tmp = (x / y) + (2.0 / t) elif (x / y) <= 3200000000000.0: tmp = -2.0 + ((2.0 + (2.0 / z)) / t) else: tmp = (x / y) + ((2.0 / t) + -2.0) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -9.9e+20) tmp = Float64(Float64(x / y) + Float64(2.0 / t)); elseif (Float64(x / y) <= 3200000000000.0) tmp = Float64(-2.0 + Float64(Float64(2.0 + Float64(2.0 / z)) / t)); else tmp = Float64(Float64(x / y) + 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) <= -9.9e+20) tmp = (x / y) + (2.0 / t); elseif ((x / y) <= 3200000000000.0) tmp = -2.0 + ((2.0 + (2.0 / z)) / t); else tmp = (x / y) + ((2.0 / t) + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -9.9e+20], N[(N[(x / y), $MachinePrecision] + N[(2.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 3200000000000.0], 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 / t), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -9.9 \cdot 10^{+20}:\\
\;\;\;\;\frac{x}{y} + \frac{2}{t}\\
\mathbf{elif}\;\frac{x}{y} \leq 3200000000000:\\
\;\;\;\;-2 + \frac{2 + \frac{2}{z}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \left(\frac{2}{t} + -2\right)\\
\end{array}
\end{array}
if (/.f64 x y) < -9.9e20Initial program 77.8%
Taylor expanded in t around 0 94.9%
associate--l+94.9%
*-commutative94.9%
associate-*r/94.9%
metadata-eval94.9%
*-commutative94.9%
Simplified94.9%
Taylor expanded in z around inf 89.5%
+-commutative89.5%
associate-*r/89.5%
metadata-eval89.5%
associate--l+89.5%
sub-neg89.5%
metadata-eval89.5%
+-commutative89.5%
Simplified89.5%
Taylor expanded in t around 0 89.5%
if -9.9e20 < (/.f64 x y) < 3.2e12Initial program 90.3%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 96.5%
sub-neg96.5%
+-commutative96.5%
associate-*r/96.5%
metadata-eval96.5%
associate-/l/96.6%
associate-*r/96.6%
metadata-eval96.6%
metadata-eval96.6%
+-commutative96.6%
metadata-eval96.6%
associate-*l/96.6%
associate-*r/96.5%
metadata-eval96.5%
associate-*r/96.5%
distribute-rgt-in96.5%
+-commutative96.5%
associate-*l/96.6%
associate-*r/96.6%
*-lft-identity96.6%
Simplified96.6%
if 3.2e12 < (/.f64 x y) Initial program 81.5%
Taylor expanded in t around 0 98.3%
associate--l+98.3%
*-commutative98.3%
associate-*r/98.3%
metadata-eval98.3%
*-commutative98.3%
Simplified98.3%
Taylor expanded in z around inf 87.7%
+-commutative87.7%
associate-*r/87.7%
metadata-eval87.7%
associate--l+87.7%
sub-neg87.7%
metadata-eval87.7%
+-commutative87.7%
Simplified87.7%
Final simplification92.9%
(FPCore (x y z t)
:precision binary64
(if (<= (/ x y) -7000000.0)
(+ (/ x y) (/ 2.0 (* t z)))
(if (<= (/ x y) 1000000000000.0)
(+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t))
(+ (/ x y) (+ (/ 2.0 t) -2.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -7000000.0) {
tmp = (x / y) + (2.0 / (t * z));
} else if ((x / y) <= 1000000000000.0) {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
} else {
tmp = (x / y) + ((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) <= (-7000000.0d0)) then
tmp = (x / y) + (2.0d0 / (t * z))
else if ((x / y) <= 1000000000000.0d0) then
tmp = (-2.0d0) + ((2.0d0 + (2.0d0 / z)) / t)
else
tmp = (x / y) + ((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) <= -7000000.0) {
tmp = (x / y) + (2.0 / (t * z));
} else if ((x / y) <= 1000000000000.0) {
tmp = -2.0 + ((2.0 + (2.0 / z)) / t);
} else {
tmp = (x / y) + ((2.0 / t) + -2.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -7000000.0: tmp = (x / y) + (2.0 / (t * z)) elif (x / y) <= 1000000000000.0: tmp = -2.0 + ((2.0 + (2.0 / z)) / t) else: tmp = (x / y) + ((2.0 / t) + -2.0) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -7000000.0) tmp = Float64(Float64(x / y) + Float64(2.0 / Float64(t * z))); elseif (Float64(x / y) <= 1000000000000.0) tmp = Float64(-2.0 + Float64(Float64(2.0 + Float64(2.0 / z)) / t)); else tmp = Float64(Float64(x / y) + 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) <= -7000000.0) tmp = (x / y) + (2.0 / (t * z)); elseif ((x / y) <= 1000000000000.0) tmp = -2.0 + ((2.0 + (2.0 / z)) / t); else tmp = (x / y) + ((2.0 / t) + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -7000000.0], N[(N[(x / y), $MachinePrecision] + N[(2.0 / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 1000000000000.0], 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 / t), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -7000000:\\
\;\;\;\;\frac{x}{y} + \frac{2}{t \cdot z}\\
\mathbf{elif}\;\frac{x}{y} \leq 1000000000000:\\
\;\;\;\;-2 + \frac{2 + \frac{2}{z}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \left(\frac{2}{t} + -2\right)\\
\end{array}
\end{array}
if (/.f64 x y) < -7e6Initial program 79.3%
Taylor expanded in z around 0 87.8%
if -7e6 < (/.f64 x y) < 1e12Initial program 90.4%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 99.1%
sub-neg99.1%
+-commutative99.1%
associate-*r/99.1%
metadata-eval99.1%
associate-/l/99.1%
associate-*r/99.1%
metadata-eval99.1%
metadata-eval99.1%
+-commutative99.1%
metadata-eval99.1%
associate-*l/99.1%
associate-*r/99.0%
metadata-eval99.0%
associate-*r/99.0%
distribute-rgt-in99.0%
+-commutative99.0%
associate-*l/99.1%
associate-*r/99.1%
*-lft-identity99.1%
Simplified99.1%
if 1e12 < (/.f64 x y) Initial program 81.5%
Taylor expanded in t around 0 98.3%
associate--l+98.3%
*-commutative98.3%
associate-*r/98.3%
metadata-eval98.3%
*-commutative98.3%
Simplified98.3%
Taylor expanded in z around inf 87.7%
+-commutative87.7%
associate-*r/87.7%
metadata-eval87.7%
associate--l+87.7%
sub-neg87.7%
metadata-eval87.7%
+-commutative87.7%
Simplified87.7%
Final simplification93.4%
(FPCore (x y z t)
:precision binary64
(if (<= (/ x y) -26500000.0)
(/ x y)
(if (<= (/ x y) -3.3e-121)
(/ 2.0 t)
(if (<= (/ x y) 3.3e-33) -2.0 (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -26500000.0) {
tmp = x / y;
} else if ((x / y) <= -3.3e-121) {
tmp = 2.0 / t;
} else if ((x / y) <= 3.3e-33) {
tmp = -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) <= (-26500000.0d0)) then
tmp = x / y
else if ((x / y) <= (-3.3d-121)) then
tmp = 2.0d0 / t
else if ((x / y) <= 3.3d-33) then
tmp = -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) <= -26500000.0) {
tmp = x / y;
} else if ((x / y) <= -3.3e-121) {
tmp = 2.0 / t;
} else if ((x / y) <= 3.3e-33) {
tmp = -2.0;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -26500000.0: tmp = x / y elif (x / y) <= -3.3e-121: tmp = 2.0 / t elif (x / y) <= 3.3e-33: tmp = -2.0 else: tmp = x / y return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -26500000.0) tmp = Float64(x / y); elseif (Float64(x / y) <= -3.3e-121) tmp = Float64(2.0 / t); elseif (Float64(x / y) <= 3.3e-33) tmp = -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) <= -26500000.0) tmp = x / y; elseif ((x / y) <= -3.3e-121) tmp = 2.0 / t; elseif ((x / y) <= 3.3e-33) tmp = -2.0; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -26500000.0], N[(x / y), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], -3.3e-121], N[(2.0 / t), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 3.3e-33], -2.0, N[(x / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -26500000:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -3.3 \cdot 10^{-121}:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{elif}\;\frac{x}{y} \leq 3.3 \cdot 10^{-33}:\\
\;\;\;\;-2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -2.65e7 or 3.3000000000000003e-33 < (/.f64 x y) Initial program 80.7%
Taylor expanded in x around inf 71.8%
if -2.65e7 < (/.f64 x y) < -3.3000000000000001e-121Initial program 96.0%
Taylor expanded in t around 0 99.8%
associate--l+99.8%
*-commutative99.8%
associate-*r/99.8%
metadata-eval99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 56.9%
+-commutative56.9%
associate-*r/56.9%
metadata-eval56.9%
associate--l+56.9%
sub-neg56.9%
metadata-eval56.9%
+-commutative56.9%
Simplified56.9%
Taylor expanded in t around 0 39.8%
Taylor expanded in x around 0 39.3%
if -3.3000000000000001e-121 < (/.f64 x y) < 3.3000000000000003e-33Initial program 89.1%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 99.9%
sub-neg99.9%
+-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-/l/99.9%
associate-*r/99.9%
metadata-eval99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-*l/99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-*r/99.9%
distribute-rgt-in99.9%
+-commutative99.9%
associate-*l/99.9%
associate-*r/99.9%
*-lft-identity99.9%
Simplified99.9%
Taylor expanded in t around inf 45.0%
Final simplification58.6%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -4300000.0) (not (<= (/ x y) 1.22e-14))) (/ x y) (+ (/ 2.0 t) -2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -4300000.0) || !((x / y) <= 1.22e-14)) {
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) <= (-4300000.0d0)) .or. (.not. ((x / y) <= 1.22d-14))) 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) <= -4300000.0) || !((x / y) <= 1.22e-14)) {
tmp = x / y;
} else {
tmp = (2.0 / t) + -2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -4300000.0) or not ((x / y) <= 1.22e-14): 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) <= -4300000.0) || !(Float64(x / y) <= 1.22e-14)) 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) <= -4300000.0) || ~(((x / y) <= 1.22e-14))) 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], -4300000.0], N[Not[LessEqual[N[(x / y), $MachinePrecision], 1.22e-14]], $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 -4300000 \lor \neg \left(\frac{x}{y} \leq 1.22 \cdot 10^{-14}\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t} + -2\\
\end{array}
\end{array}
if (/.f64 x y) < -4.3e6 or 1.21999999999999994e-14 < (/.f64 x y) Initial program 80.1%
Taylor expanded in x around inf 73.9%
if -4.3e6 < (/.f64 x y) < 1.21999999999999994e-14Initial program 90.9%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 99.9%
sub-neg99.9%
+-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-/l/99.9%
associate-*r/99.9%
metadata-eval99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-*l/99.9%
associate-*r/99.8%
metadata-eval99.8%
associate-*r/99.8%
distribute-rgt-in99.8%
+-commutative99.8%
associate-*l/99.9%
associate-*r/99.9%
*-lft-identity99.9%
Simplified99.9%
Taylor expanded in z around inf 63.9%
associate-*r/63.9%
metadata-eval63.9%
sub-neg63.9%
metadata-eval63.9%
Simplified63.9%
Final simplification69.0%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -7400000.0) (not (<= (/ x y) 1.22e-14))) (- (/ x y) 2.0) (+ (/ 2.0 t) -2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -7400000.0) || !((x / y) <= 1.22e-14)) {
tmp = (x / y) - 2.0;
} 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) <= (-7400000.0d0)) .or. (.not. ((x / y) <= 1.22d-14))) then
tmp = (x / y) - 2.0d0
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) <= -7400000.0) || !((x / y) <= 1.22e-14)) {
tmp = (x / y) - 2.0;
} else {
tmp = (2.0 / t) + -2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -7400000.0) or not ((x / y) <= 1.22e-14): tmp = (x / y) - 2.0 else: tmp = (2.0 / t) + -2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -7400000.0) || !(Float64(x / y) <= 1.22e-14)) tmp = Float64(Float64(x / y) - 2.0); 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) <= -7400000.0) || ~(((x / y) <= 1.22e-14))) tmp = (x / y) - 2.0; else tmp = (2.0 / t) + -2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -7400000.0], N[Not[LessEqual[N[(x / y), $MachinePrecision], 1.22e-14]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision], N[(N[(2.0 / t), $MachinePrecision] + -2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -7400000 \lor \neg \left(\frac{x}{y} \leq 1.22 \cdot 10^{-14}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t} + -2\\
\end{array}
\end{array}
if (/.f64 x y) < -7.4e6 or 1.21999999999999994e-14 < (/.f64 x y) Initial program 80.1%
Taylor expanded in t around inf 75.2%
if -7.4e6 < (/.f64 x y) < 1.21999999999999994e-14Initial program 90.9%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 99.9%
sub-neg99.9%
+-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
associate-/l/99.9%
associate-*r/99.9%
metadata-eval99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-*l/99.9%
associate-*r/99.8%
metadata-eval99.8%
associate-*r/99.8%
distribute-rgt-in99.8%
+-commutative99.8%
associate-*l/99.9%
associate-*r/99.9%
*-lft-identity99.9%
Simplified99.9%
Taylor expanded in z around inf 63.9%
associate-*r/63.9%
metadata-eval63.9%
sub-neg63.9%
metadata-eval63.9%
Simplified63.9%
Final simplification69.7%
(FPCore (x y z t) :precision binary64 (if (or (<= t -3.2e-11) (not (<= t 1.42e+24))) (- (/ x y) 2.0) (/ (+ 2.0 (/ 2.0 z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -3.2e-11) || !(t <= 1.42e+24)) {
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 <= (-3.2d-11)) .or. (.not. (t <= 1.42d+24))) 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 <= -3.2e-11) || !(t <= 1.42e+24)) {
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 <= -3.2e-11) or not (t <= 1.42e+24): 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 <= -3.2e-11) || !(t <= 1.42e+24)) 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 <= -3.2e-11) || ~((t <= 1.42e+24))) 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, -3.2e-11], N[Not[LessEqual[t, 1.42e+24]], $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 -3.2 \cdot 10^{-11} \lor \neg \left(t \leq 1.42 \cdot 10^{+24}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + \frac{2}{z}}{t}\\
\end{array}
\end{array}
if t < -3.19999999999999994e-11 or 1.42e24 < t Initial program 74.9%
Taylor expanded in t around inf 84.3%
if -3.19999999999999994e-11 < t < 1.42e24Initial program 96.5%
Taylor expanded in t around 0 72.7%
associate-*r/72.7%
metadata-eval72.7%
Simplified72.7%
Final simplification78.6%
(FPCore (x y z t) :precision binary64 (if (<= t -375.0) -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 <= -375.0) {
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 <= (-375.0d0)) 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 <= -375.0) {
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 <= -375.0: 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 <= -375.0) 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 <= -375.0) 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, -375.0], -2.0, If[LessEqual[t, 1.0], N[(2.0 / t), $MachinePrecision], -2.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -375:\\
\;\;\;\;-2\\
\mathbf{elif}\;t \leq 1:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;-2\\
\end{array}
\end{array}
if t < -375 or 1 < t Initial program 75.6%
Taylor expanded in t around 0 99.9%
associate--l+99.9%
*-commutative99.9%
associate-*r/99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 53.6%
sub-neg53.6%
+-commutative53.6%
associate-*r/53.6%
metadata-eval53.6%
associate-/l/53.6%
associate-*r/53.6%
metadata-eval53.6%
metadata-eval53.6%
+-commutative53.6%
metadata-eval53.6%
associate-*l/53.6%
associate-*r/53.6%
metadata-eval53.6%
associate-*r/53.6%
distribute-rgt-in53.6%
+-commutative53.6%
associate-*l/53.6%
associate-*r/53.6%
*-lft-identity53.6%
Simplified53.6%
Taylor expanded in t around inf 35.4%
if -375 < t < 1Initial program 96.4%
Taylor expanded in t around 0 96.6%
associate--l+96.6%
*-commutative96.6%
associate-*r/96.6%
metadata-eval96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in z around inf 64.4%
+-commutative64.4%
associate-*r/64.4%
metadata-eval64.4%
associate--l+64.4%
sub-neg64.4%
metadata-eval64.4%
+-commutative64.4%
Simplified64.4%
Taylor expanded in t around 0 62.9%
Taylor expanded in x around 0 35.1%
Final simplification35.2%
(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 85.4%
Taylor expanded in t around 0 98.4%
associate--l+98.4%
*-commutative98.4%
associate-*r/98.4%
metadata-eval98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in x around 0 62.7%
sub-neg62.7%
+-commutative62.7%
associate-*r/62.7%
metadata-eval62.7%
associate-/l/62.8%
associate-*r/62.8%
metadata-eval62.8%
metadata-eval62.8%
+-commutative62.8%
metadata-eval62.8%
associate-*l/62.8%
associate-*r/62.7%
metadata-eval62.7%
associate-*r/62.7%
distribute-rgt-in62.7%
+-commutative62.7%
associate-*l/62.8%
associate-*r/62.8%
*-lft-identity62.8%
Simplified62.8%
Taylor expanded in t around inf 20.1%
Final simplification20.1%
(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 2023301
(FPCore (x y z t)
:name "Data.HashTable.ST.Basic:computeOverhead from hashtables-1.2.0.2"
:precision binary64
:herbie-target
(- (/ (+ (/ 2.0 z) 2.0) t) (- 2.0 (/ x y)))
(+ (/ x y) (/ (+ 2.0 (* (* z 2.0) (- 1.0 t))) (* t z))))