
(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 15 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 (fma x (/ 1.0 y) (+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t))))
double code(double x, double y, double z, double t) {
return fma(x, (1.0 / y), (-2.0 + ((2.0 + (2.0 / z)) / t)));
}
function code(x, y, z, t) return fma(x, Float64(1.0 / y), Float64(-2.0 + Float64(Float64(2.0 + Float64(2.0 / z)) / t))) end
code[x_, y_, z_, t_] := N[(x * N[(1.0 / y), $MachinePrecision] + N[(-2.0 + N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, \frac{1}{y}, -2 + \frac{2 + \frac{2}{z}}{t}\right)
\end{array}
Initial program 85.3%
sub-neg85.3%
distribute-rgt-in85.3%
*-lft-identity85.3%
associate-+r+85.3%
cancel-sign-sub-inv85.3%
div-sub72.8%
associate-*r*72.8%
associate-*l/73.2%
*-inverses99.0%
metadata-eval99.0%
sub-neg99.0%
metadata-eval99.0%
metadata-eval99.0%
+-commutative99.0%
metadata-eval99.0%
associate-/l/99.1%
Simplified99.1%
div-inv99.0%
fma-def99.4%
Applied egg-rr99.4%
Final simplification99.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)) (t_2 (+ (/ x y) (/ 2.0 t))))
(if (<= z -4.5e+39)
t_2
(if (<= z -7.5e-61)
t_1
(if (<= z 3.8e-117)
(+ -2.0 (/ 2.0 (* z t)))
(if (<= z 1.5e+52) t_1 t_2))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double t_2 = (x / y) + (2.0 / t);
double tmp;
if (z <= -4.5e+39) {
tmp = t_2;
} else if (z <= -7.5e-61) {
tmp = t_1;
} else if (z <= 3.8e-117) {
tmp = -2.0 + (2.0 / (z * t));
} else if (z <= 1.5e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x / y) - 2.0d0
t_2 = (x / y) + (2.0d0 / t)
if (z <= (-4.5d+39)) then
tmp = t_2
else if (z <= (-7.5d-61)) then
tmp = t_1
else if (z <= 3.8d-117) then
tmp = (-2.0d0) + (2.0d0 / (z * t))
else if (z <= 1.5d+52) then
tmp = t_1
else
tmp = t_2
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 t_2 = (x / y) + (2.0 / t);
double tmp;
if (z <= -4.5e+39) {
tmp = t_2;
} else if (z <= -7.5e-61) {
tmp = t_1;
} else if (z <= 3.8e-117) {
tmp = -2.0 + (2.0 / (z * t));
} else if (z <= 1.5e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 t_2 = (x / y) + (2.0 / t) tmp = 0 if z <= -4.5e+39: tmp = t_2 elif z <= -7.5e-61: tmp = t_1 elif z <= 3.8e-117: tmp = -2.0 + (2.0 / (z * t)) elif z <= 1.5e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) t_2 = Float64(Float64(x / y) + Float64(2.0 / t)) tmp = 0.0 if (z <= -4.5e+39) tmp = t_2; elseif (z <= -7.5e-61) tmp = t_1; elseif (z <= 3.8e-117) tmp = Float64(-2.0 + Float64(2.0 / Float64(z * t))); elseif (z <= 1.5e+52) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; t_2 = (x / y) + (2.0 / t); tmp = 0.0; if (z <= -4.5e+39) tmp = t_2; elseif (z <= -7.5e-61) tmp = t_1; elseif (z <= 3.8e-117) tmp = -2.0 + (2.0 / (z * t)); elseif (z <= 1.5e+52) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / y), $MachinePrecision] + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+39], t$95$2, If[LessEqual[z, -7.5e-61], t$95$1, If[LessEqual[z, 3.8e-117], N[(-2.0 + N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+52], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
t_2 := \frac{x}{y} + \frac{2}{t}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-117}:\\
\;\;\;\;-2 + \frac{2}{z \cdot t}\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -4.49999999999999996e39 or 1.5e52 < z Initial program 63.6%
sub-neg63.6%
distribute-rgt-in63.6%
*-lft-identity63.6%
associate-+r+63.6%
cancel-sign-sub-inv63.6%
div-sub63.6%
associate-*r*63.6%
associate-*l/64.7%
*-inverses99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
metadata-eval99.8%
+-commutative99.8%
metadata-eval99.8%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
sub-neg100.0%
associate-*r/100.0%
metadata-eval100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in t around 0 83.7%
if -4.49999999999999996e39 < z < -7.50000000000000047e-61 or 3.79999999999999972e-117 < z < 1.5e52Initial program 96.6%
sub-neg96.6%
distribute-rgt-in96.6%
*-lft-identity96.6%
associate-+r+96.6%
cancel-sign-sub-inv96.6%
div-sub96.6%
associate-*r*96.6%
associate-*l/96.6%
*-inverses98.2%
metadata-eval98.2%
sub-neg98.2%
metadata-eval98.2%
metadata-eval98.2%
+-commutative98.2%
metadata-eval98.2%
associate-/l/98.3%
Simplified98.3%
Taylor expanded in t around inf 76.5%
if -7.50000000000000047e-61 < z < 3.79999999999999972e-117Initial program 98.8%
sub-neg98.8%
distribute-rgt-in98.8%
*-lft-identity98.8%
associate-+r+98.8%
cancel-sign-sub-inv98.8%
div-sub66.8%
associate-*r*66.8%
associate-*l/66.8%
*-inverses98.8%
metadata-eval98.8%
sub-neg98.8%
metadata-eval98.8%
metadata-eval98.8%
+-commutative98.8%
metadata-eval98.8%
associate-/l/98.8%
Simplified98.8%
div-inv98.8%
fma-def99.9%
Applied egg-rr99.9%
Taylor expanded in z around 0 99.9%
Taylor expanded in x around 0 81.6%
sub-neg81.6%
associate-*r/81.6%
metadata-eval81.6%
*-commutative81.6%
metadata-eval81.6%
+-commutative81.6%
*-commutative81.6%
Simplified81.6%
Final simplification81.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (+ 2.0 (/ 2.0 z)) t)) (t_2 (- (/ x y) 2.0)))
(if (<= t -2.1e-15)
t_2
(if (<= t 1.35e-128)
t_1
(if (<= t 3.9e-61)
(+ (/ x y) (/ 2.0 t))
(if (<= t 1.8e-11) t_1 t_2))))))
double code(double x, double y, double z, double t) {
double t_1 = (2.0 + (2.0 / z)) / t;
double t_2 = (x / y) - 2.0;
double tmp;
if (t <= -2.1e-15) {
tmp = t_2;
} else if (t <= 1.35e-128) {
tmp = t_1;
} else if (t <= 3.9e-61) {
tmp = (x / y) + (2.0 / t);
} else if (t <= 1.8e-11) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (2.0d0 + (2.0d0 / z)) / t
t_2 = (x / y) - 2.0d0
if (t <= (-2.1d-15)) then
tmp = t_2
else if (t <= 1.35d-128) then
tmp = t_1
else if (t <= 3.9d-61) then
tmp = (x / y) + (2.0d0 / t)
else if (t <= 1.8d-11) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (2.0 + (2.0 / z)) / t;
double t_2 = (x / y) - 2.0;
double tmp;
if (t <= -2.1e-15) {
tmp = t_2;
} else if (t <= 1.35e-128) {
tmp = t_1;
} else if (t <= 3.9e-61) {
tmp = (x / y) + (2.0 / t);
} else if (t <= 1.8e-11) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = (2.0 + (2.0 / z)) / t t_2 = (x / y) - 2.0 tmp = 0 if t <= -2.1e-15: tmp = t_2 elif t <= 1.35e-128: tmp = t_1 elif t <= 3.9e-61: tmp = (x / y) + (2.0 / t) elif t <= 1.8e-11: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(2.0 + Float64(2.0 / z)) / t) t_2 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (t <= -2.1e-15) tmp = t_2; elseif (t <= 1.35e-128) tmp = t_1; elseif (t <= 3.9e-61) tmp = Float64(Float64(x / y) + Float64(2.0 / t)); elseif (t <= 1.8e-11) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (2.0 + (2.0 / z)) / t; t_2 = (x / y) - 2.0; tmp = 0.0; if (t <= -2.1e-15) tmp = t_2; elseif (t <= 1.35e-128) tmp = t_1; elseif (t <= 3.9e-61) tmp = (x / y) + (2.0 / t); elseif (t <= 1.8e-11) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / y), $MachinePrecision] - 2.0), $MachinePrecision]}, If[LessEqual[t, -2.1e-15], t$95$2, If[LessEqual[t, 1.35e-128], t$95$1, If[LessEqual[t, 3.9e-61], N[(N[(x / y), $MachinePrecision] + N[(2.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-11], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2 + \frac{2}{z}}{t}\\
t_2 := \frac{x}{y} - 2\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{-15}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-61}:\\
\;\;\;\;\frac{x}{y} + \frac{2}{t}\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-11}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.09999999999999981e-15 or 1.79999999999999992e-11 < t Initial program 74.7%
sub-neg74.7%
distribute-rgt-in74.7%
*-lft-identity74.7%
associate-+r+74.7%
cancel-sign-sub-inv74.7%
div-sub74.7%
associate-*r*74.7%
associate-*l/75.4%
*-inverses99.9%
metadata-eval99.9%
sub-neg99.9%
metadata-eval99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around inf 81.7%
if -2.09999999999999981e-15 < t < 1.35000000000000003e-128 or 3.90000000000000033e-61 < t < 1.79999999999999992e-11Initial program 97.8%
sub-neg97.8%
distribute-rgt-in97.8%
*-lft-identity97.8%
associate-+r+97.8%
cancel-sign-sub-inv97.8%
div-sub67.6%
associate-*r*67.6%
associate-*l/67.6%
*-inverses97.8%
metadata-eval97.8%
sub-neg97.8%
metadata-eval97.8%
metadata-eval97.8%
+-commutative97.8%
metadata-eval97.8%
associate-/l/98.0%
Simplified98.0%
Taylor expanded in t around 0 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if 1.35000000000000003e-128 < t < 3.90000000000000033e-61Initial program 99.6%
sub-neg99.6%
distribute-rgt-in99.6%
*-lft-identity99.6%
associate-+r+99.6%
cancel-sign-sub-inv99.6%
div-sub99.6%
associate-*r*99.6%
associate-*l/99.6%
*-inverses99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
metadata-eval99.6%
+-commutative99.6%
metadata-eval99.6%
associate-/l/99.7%
Simplified99.7%
Taylor expanded in z around inf 85.5%
associate--l+85.5%
sub-neg85.5%
associate-*r/85.5%
metadata-eval85.5%
metadata-eval85.5%
Simplified85.5%
Taylor expanded in t around 0 85.5%
Final simplification83.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.18) (not (<= z 3.1e-61))) (+ (/ x y) (+ -2.0 (/ 2.0 t))) (+ (/ x y) (+ -2.0 (/ (/ 2.0 z) t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.18) || !(z <= 3.1e-61)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (x / y) + (-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.18d0)) .or. (.not. (z <= 3.1d-61))) then
tmp = (x / y) + ((-2.0d0) + (2.0d0 / t))
else
tmp = (x / y) + ((-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.18) || !(z <= 3.1e-61)) {
tmp = (x / y) + (-2.0 + (2.0 / t));
} else {
tmp = (x / y) + (-2.0 + ((2.0 / z) / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.18) or not (z <= 3.1e-61): tmp = (x / y) + (-2.0 + (2.0 / t)) else: tmp = (x / y) + (-2.0 + ((2.0 / z) / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.18) || !(z <= 3.1e-61)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(Float64(x / y) + 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.18) || ~((z <= 3.1e-61))) tmp = (x / y) + (-2.0 + (2.0 / t)); else tmp = (x / y) + (-2.0 + ((2.0 / z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.18], N[Not[LessEqual[z, 3.1e-61]], $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[(N[(2.0 / z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.18 \lor \neg \left(z \leq 3.1 \cdot 10^{-61}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{\frac{2}{z}}{t}\right)\\
\end{array}
\end{array}
if z < -1.17999999999999994 or 3.09999999999999995e-61 < z Initial program 71.2%
sub-neg71.2%
distribute-rgt-in71.2%
*-lft-identity71.2%
associate-+r+71.2%
cancel-sign-sub-inv71.2%
div-sub71.2%
associate-*r*71.2%
associate-*l/72.0%
*-inverses99.0%
metadata-eval99.0%
sub-neg99.0%
metadata-eval99.0%
metadata-eval99.0%
+-commutative99.0%
metadata-eval99.0%
associate-/l/99.1%
Simplified99.1%
Taylor expanded in z around inf 97.7%
associate--l+97.7%
sub-neg97.7%
associate-*r/97.7%
metadata-eval97.7%
metadata-eval97.7%
Simplified97.7%
if -1.17999999999999994 < z < 3.09999999999999995e-61Initial program 99.0%
sub-neg99.0%
distribute-rgt-in99.0%
*-lft-identity99.0%
associate-+r+99.0%
cancel-sign-sub-inv99.0%
div-sub74.4%
associate-*r*74.4%
associate-*l/74.4%
*-inverses99.0%
metadata-eval99.0%
sub-neg99.0%
metadata-eval99.0%
metadata-eval99.0%
+-commutative99.0%
metadata-eval99.0%
associate-/l/99.1%
Simplified99.1%
Taylor expanded in z around 0 98.4%
Final simplification98.0%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.18)
(+ (/ x y) (/ (- 1.0 t) (/ t 2.0)))
(if (<= z 3.1e-61)
(+ (/ x y) (+ -2.0 (/ (/ 2.0 z) t)))
(+ (/ x y) (+ -2.0 (/ 2.0 t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.18) {
tmp = (x / y) + ((1.0 - t) / (t / 2.0));
} else if (z <= 3.1e-61) {
tmp = (x / y) + (-2.0 + ((2.0 / z) / t));
} else {
tmp = (x / y) + (-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 (z <= (-1.18d0)) then
tmp = (x / y) + ((1.0d0 - t) / (t / 2.0d0))
else if (z <= 3.1d-61) then
tmp = (x / y) + ((-2.0d0) + ((2.0d0 / z) / t))
else
tmp = (x / y) + ((-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 (z <= -1.18) {
tmp = (x / y) + ((1.0 - t) / (t / 2.0));
} else if (z <= 3.1e-61) {
tmp = (x / y) + (-2.0 + ((2.0 / z) / t));
} else {
tmp = (x / y) + (-2.0 + (2.0 / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.18: tmp = (x / y) + ((1.0 - t) / (t / 2.0)) elif z <= 3.1e-61: tmp = (x / y) + (-2.0 + ((2.0 / z) / t)) else: tmp = (x / y) + (-2.0 + (2.0 / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.18) tmp = Float64(Float64(x / y) + Float64(Float64(1.0 - t) / Float64(t / 2.0))); elseif (z <= 3.1e-61) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(Float64(2.0 / z) / t))); else tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.18) tmp = (x / y) + ((1.0 - t) / (t / 2.0)); elseif (z <= 3.1e-61) tmp = (x / y) + (-2.0 + ((2.0 / z) / t)); else tmp = (x / y) + (-2.0 + (2.0 / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.18], N[(N[(x / y), $MachinePrecision] + N[(N[(1.0 - t), $MachinePrecision] / N[(t / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-61], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(N[(2.0 / z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.18:\\
\;\;\;\;\frac{x}{y} + \frac{1 - t}{\frac{t}{2}}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-61}:\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{\frac{2}{z}}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\end{array}
\end{array}
if z < -1.17999999999999994Initial program 67.2%
Taylor expanded in z around inf 98.4%
associate-*r/98.4%
*-commutative98.4%
associate-/l*98.4%
Simplified98.4%
if -1.17999999999999994 < z < 3.09999999999999995e-61Initial program 99.0%
sub-neg99.0%
distribute-rgt-in99.0%
*-lft-identity99.0%
associate-+r+99.0%
cancel-sign-sub-inv99.0%
div-sub74.4%
associate-*r*74.4%
associate-*l/74.4%
*-inverses99.0%
metadata-eval99.0%
sub-neg99.0%
metadata-eval99.0%
metadata-eval99.0%
+-commutative99.0%
metadata-eval99.0%
associate-/l/99.1%
Simplified99.1%
Taylor expanded in z around 0 98.4%
if 3.09999999999999995e-61 < z Initial program 73.8%
sub-neg73.8%
distribute-rgt-in73.8%
*-lft-identity73.8%
associate-+r+73.8%
cancel-sign-sub-inv73.8%
div-sub73.8%
associate-*r*73.8%
associate-*l/75.1%
*-inverses98.5%
metadata-eval98.5%
sub-neg98.5%
metadata-eval98.5%
metadata-eval98.5%
+-commutative98.5%
metadata-eval98.5%
associate-/l/98.6%
Simplified98.6%
Taylor expanded in z around inf 97.3%
associate--l+97.3%
sub-neg97.3%
associate-*r/97.3%
metadata-eval97.3%
metadata-eval97.3%
Simplified97.3%
Final simplification98.0%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -3600.0) (not (<= (/ x y) 4e-13))) (- (/ x y) 2.0) (+ -2.0 (/ 2.0 t))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -3600.0) || !((x / y) <= 4e-13)) {
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) <= (-3600.0d0)) .or. (.not. ((x / y) <= 4d-13))) 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) <= -3600.0) || !((x / y) <= 4e-13)) {
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) <= -3600.0) or not ((x / y) <= 4e-13): 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) <= -3600.0) || !(Float64(x / y) <= 4e-13)) 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) <= -3600.0) || ~(((x / y) <= 4e-13))) 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], -3600.0], N[Not[LessEqual[N[(x / y), $MachinePrecision], 4e-13]], $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 -3600 \lor \neg \left(\frac{x}{y} \leq 4 \cdot 10^{-13}\right):\\
\;\;\;\;\frac{x}{y} - 2\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if (/.f64 x y) < -3600 or 4.0000000000000001e-13 < (/.f64 x y) Initial program 82.6%
sub-neg82.6%
distribute-rgt-in82.6%
*-lft-identity82.6%
associate-+r+82.6%
cancel-sign-sub-inv82.6%
div-sub69.0%
associate-*r*69.0%
associate-*l/69.7%
*-inverses98.5%
metadata-eval98.5%
sub-neg98.5%
metadata-eval98.5%
metadata-eval98.5%
+-commutative98.5%
metadata-eval98.5%
associate-/l/98.5%
Simplified98.5%
Taylor expanded in t around inf 66.5%
if -3600 < (/.f64 x y) < 4.0000000000000001e-13Initial program 88.6%
sub-neg88.6%
distribute-rgt-in88.6%
*-lft-identity88.6%
associate-+r+88.6%
cancel-sign-sub-inv88.6%
div-sub77.4%
associate-*r*77.4%
associate-*l/77.4%
*-inverses99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
metadata-eval99.7%
+-commutative99.7%
metadata-eval99.7%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in x around 0 99.8%
+-commutative99.8%
associate--l+99.8%
associate-*r/99.8%
metadata-eval99.8%
sub-neg99.8%
associate-*r/99.8%
metadata-eval99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in z around inf 61.8%
sub-neg61.8%
metadata-eval61.8%
associate-*r/61.8%
metadata-eval61.8%
+-commutative61.8%
Simplified61.8%
Final simplification64.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.55e-60) (not (<= z 4.5e-117))) (+ (/ 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.55e-60) || !(z <= 4.5e-117)) {
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.55d-60)) .or. (.not. (z <= 4.5d-117))) 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.55e-60) || !(z <= 4.5e-117)) {
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.55e-60) or not (z <= 4.5e-117): 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.55e-60) || !(z <= 4.5e-117)) tmp = Float64(Float64(x / y) + Float64(-2.0 + Float64(2.0 / t))); else tmp = Float64(-2.0 + Float64(2.0 / Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.55e-60) || ~((z <= 4.5e-117))) 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.55e-60], N[Not[LessEqual[z, 4.5e-117]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-2.0 + N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{-60} \lor \neg \left(z \leq 4.5 \cdot 10^{-117}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{z \cdot t}\\
\end{array}
\end{array}
if z < -1.54999999999999994e-60 or 4.49999999999999969e-117 < z Initial program 76.7%
sub-neg76.7%
distribute-rgt-in76.7%
*-lft-identity76.7%
associate-+r+76.7%
cancel-sign-sub-inv76.7%
div-sub76.7%
associate-*r*76.7%
associate-*l/77.4%
*-inverses99.2%
metadata-eval99.2%
sub-neg99.2%
metadata-eval99.2%
metadata-eval99.2%
+-commutative99.2%
metadata-eval99.2%
associate-/l/99.3%
Simplified99.3%
Taylor expanded in z around inf 93.1%
associate--l+93.1%
sub-neg93.1%
associate-*r/93.1%
metadata-eval93.1%
metadata-eval93.1%
Simplified93.1%
if -1.54999999999999994e-60 < z < 4.49999999999999969e-117Initial program 98.8%
sub-neg98.8%
distribute-rgt-in98.8%
*-lft-identity98.8%
associate-+r+98.8%
cancel-sign-sub-inv98.8%
div-sub66.8%
associate-*r*66.8%
associate-*l/66.8%
*-inverses98.8%
metadata-eval98.8%
sub-neg98.8%
metadata-eval98.8%
metadata-eval98.8%
+-commutative98.8%
metadata-eval98.8%
associate-/l/98.8%
Simplified98.8%
div-inv98.8%
fma-def99.9%
Applied egg-rr99.9%
Taylor expanded in z around 0 99.9%
Taylor expanded in x around 0 81.6%
sub-neg81.6%
associate-*r/81.6%
metadata-eval81.6%
*-commutative81.6%
metadata-eval81.6%
+-commutative81.6%
*-commutative81.6%
Simplified81.6%
Final simplification88.6%
(FPCore (x y z t) :precision binary64 (if (<= (/ x y) -1.42e+29) (/ x y) (if (<= (/ x y) 4e-13) (+ -2.0 (/ 2.0 t)) (/ x y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -1.42e+29) {
tmp = x / y;
} else if ((x / y) <= 4e-13) {
tmp = -2.0 + (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) <= (-1.42d+29)) then
tmp = x / y
else if ((x / y) <= 4d-13) then
tmp = (-2.0d0) + (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) <= -1.42e+29) {
tmp = x / y;
} else if ((x / y) <= 4e-13) {
tmp = -2.0 + (2.0 / t);
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -1.42e+29: tmp = x / y elif (x / y) <= 4e-13: tmp = -2.0 + (2.0 / t) else: tmp = x / y return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -1.42e+29) tmp = Float64(x / y); elseif (Float64(x / y) <= 4e-13) tmp = Float64(-2.0 + 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) <= -1.42e+29) tmp = x / y; elseif ((x / y) <= 4e-13) tmp = -2.0 + (2.0 / t); else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -1.42e+29], N[(x / y), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 4e-13], N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision], N[(x / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1.42 \cdot 10^{+29}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 4 \cdot 10^{-13}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -1.42e29 or 4.0000000000000001e-13 < (/.f64 x y) Initial program 81.9%
sub-neg81.9%
distribute-rgt-in81.9%
*-lft-identity81.9%
associate-+r+81.9%
cancel-sign-sub-inv81.9%
div-sub67.9%
associate-*r*67.9%
associate-*l/68.7%
*-inverses98.3%
metadata-eval98.3%
sub-neg98.3%
metadata-eval98.3%
metadata-eval98.3%
+-commutative98.3%
metadata-eval98.3%
associate-/l/98.4%
Simplified98.4%
Taylor expanded in x around inf 68.0%
if -1.42e29 < (/.f64 x y) < 4.0000000000000001e-13Initial program 88.8%
sub-neg88.8%
distribute-rgt-in88.7%
*-lft-identity88.7%
associate-+r+88.7%
cancel-sign-sub-inv88.7%
div-sub77.8%
associate-*r*77.8%
associate-*l/77.8%
*-inverses99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
metadata-eval99.7%
+-commutative99.7%
metadata-eval99.7%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in x around 0 97.0%
+-commutative97.0%
associate--l+97.0%
associate-*r/97.0%
metadata-eval97.0%
sub-neg97.0%
associate-*r/97.0%
metadata-eval97.0%
metadata-eval97.0%
Simplified97.0%
Taylor expanded in z around inf 59.3%
sub-neg59.3%
metadata-eval59.3%
associate-*r/59.3%
metadata-eval59.3%
+-commutative59.3%
Simplified59.3%
Final simplification63.7%
(FPCore (x y z t) :precision binary64 (+ (+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t)) (/ x y)))
double code(double x, double y, double z, double t) {
return (-2.0 + ((2.0 + (2.0 / z)) / t)) + (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) + ((2.0d0 + (2.0d0 / z)) / t)) + (x / y)
end function
public static double code(double x, double y, double z, double t) {
return (-2.0 + ((2.0 + (2.0 / z)) / t)) + (x / y);
}
def code(x, y, z, t): return (-2.0 + ((2.0 + (2.0 / z)) / t)) + (x / y)
function code(x, y, z, t) return Float64(Float64(-2.0 + Float64(Float64(2.0 + Float64(2.0 / z)) / t)) + Float64(x / y)) end
function tmp = code(x, y, z, t) tmp = (-2.0 + ((2.0 + (2.0 / z)) / t)) + (x / y); end
code[x_, y_, z_, t_] := N[(N[(-2.0 + N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-2 + \frac{2 + \frac{2}{z}}{t}\right) + \frac{x}{y}
\end{array}
Initial program 85.3%
sub-neg85.3%
distribute-rgt-in85.3%
*-lft-identity85.3%
associate-+r+85.3%
cancel-sign-sub-inv85.3%
div-sub72.8%
associate-*r*72.8%
associate-*l/73.2%
*-inverses99.0%
metadata-eval99.0%
sub-neg99.0%
metadata-eval99.0%
metadata-eval99.0%
+-commutative99.0%
metadata-eval99.0%
associate-/l/99.1%
Simplified99.1%
Final simplification99.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)))
(if (<= z -2.5e-91)
t_1
(if (<= z 2.8e-120)
(/ 2.0 (* z t))
(if (<= z 3.1e+217) t_1 (+ -2.0 (/ 2.0 t)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -2.5e-91) {
tmp = t_1;
} else if (z <= 2.8e-120) {
tmp = 2.0 / (z * t);
} else if (z <= 3.1e+217) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (x / y) - 2.0d0
if (z <= (-2.5d-91)) then
tmp = t_1
else if (z <= 2.8d-120) then
tmp = 2.0d0 / (z * t)
else if (z <= 3.1d+217) then
tmp = t_1
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 t_1 = (x / y) - 2.0;
double tmp;
if (z <= -2.5e-91) {
tmp = t_1;
} else if (z <= 2.8e-120) {
tmp = 2.0 / (z * t);
} else if (z <= 3.1e+217) {
tmp = t_1;
} else {
tmp = -2.0 + (2.0 / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 tmp = 0 if z <= -2.5e-91: tmp = t_1 elif z <= 2.8e-120: tmp = 2.0 / (z * t) elif z <= 3.1e+217: tmp = t_1 else: tmp = -2.0 + (2.0 / t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (z <= -2.5e-91) tmp = t_1; elseif (z <= 2.8e-120) tmp = Float64(2.0 / Float64(z * t)); elseif (z <= 3.1e+217) tmp = t_1; else tmp = Float64(-2.0 + Float64(2.0 / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; tmp = 0.0; if (z <= -2.5e-91) tmp = t_1; elseif (z <= 2.8e-120) tmp = 2.0 / (z * t); elseif (z <= 3.1e+217) tmp = t_1; else tmp = -2.0 + (2.0 / 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, -2.5e-91], t$95$1, If[LessEqual[z, 2.8e-120], N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+217], t$95$1, N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{-91}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-120}:\\
\;\;\;\;\frac{2}{z \cdot t}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+217}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if z < -2.49999999999999999e-91 or 2.79999999999999994e-120 < z < 3.1000000000000002e217Initial program 79.3%
sub-neg79.3%
distribute-rgt-in79.3%
*-lft-identity79.3%
associate-+r+79.3%
cancel-sign-sub-inv79.3%
div-sub77.9%
associate-*r*77.9%
associate-*l/78.6%
*-inverses99.1%
metadata-eval99.1%
sub-neg99.1%
metadata-eval99.1%
metadata-eval99.1%
+-commutative99.1%
metadata-eval99.1%
associate-/l/99.2%
Simplified99.2%
Taylor expanded in t around inf 71.4%
if -2.49999999999999999e-91 < z < 2.79999999999999994e-120Initial program 98.7%
sub-neg98.7%
distribute-rgt-in98.7%
*-lft-identity98.7%
associate-+r+98.7%
cancel-sign-sub-inv98.7%
div-sub65.7%
associate-*r*65.7%
associate-*l/65.7%
*-inverses98.7%
metadata-eval98.7%
sub-neg98.7%
metadata-eval98.7%
metadata-eval98.7%
+-commutative98.7%
metadata-eval98.7%
associate-/l/98.7%
Simplified98.7%
Taylor expanded in z around 0 73.8%
if 3.1000000000000002e217 < z Initial program 68.0%
sub-neg68.0%
distribute-rgt-in68.0%
*-lft-identity68.0%
associate-+r+68.0%
cancel-sign-sub-inv68.0%
div-sub68.0%
associate-*r*68.0%
associate-*l/68.0%
*-inverses99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
metadata-eval99.6%
+-commutative99.6%
metadata-eval99.6%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in x around 0 74.3%
+-commutative74.3%
associate--l+74.3%
associate-*r/74.3%
metadata-eval74.3%
sub-neg74.3%
associate-*r/74.3%
metadata-eval74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in z around inf 74.3%
sub-neg74.3%
metadata-eval74.3%
associate-*r/74.3%
metadata-eval74.3%
+-commutative74.3%
Simplified74.3%
Final simplification72.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)))
(if (<= z -9.5e-92)
t_1
(if (<= z 2.4e-118)
(/ (/ 2.0 t) z)
(if (<= z 3e+217) t_1 (+ -2.0 (/ 2.0 t)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -9.5e-92) {
tmp = t_1;
} else if (z <= 2.4e-118) {
tmp = (2.0 / t) / z;
} else if (z <= 3e+217) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (x / y) - 2.0d0
if (z <= (-9.5d-92)) then
tmp = t_1
else if (z <= 2.4d-118) then
tmp = (2.0d0 / t) / z
else if (z <= 3d+217) then
tmp = t_1
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 t_1 = (x / y) - 2.0;
double tmp;
if (z <= -9.5e-92) {
tmp = t_1;
} else if (z <= 2.4e-118) {
tmp = (2.0 / t) / z;
} else if (z <= 3e+217) {
tmp = t_1;
} else {
tmp = -2.0 + (2.0 / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 tmp = 0 if z <= -9.5e-92: tmp = t_1 elif z <= 2.4e-118: tmp = (2.0 / t) / z elif z <= 3e+217: tmp = t_1 else: tmp = -2.0 + (2.0 / t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (z <= -9.5e-92) tmp = t_1; elseif (z <= 2.4e-118) tmp = Float64(Float64(2.0 / t) / z); elseif (z <= 3e+217) tmp = t_1; else tmp = Float64(-2.0 + Float64(2.0 / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; tmp = 0.0; if (z <= -9.5e-92) tmp = t_1; elseif (z <= 2.4e-118) tmp = (2.0 / t) / z; elseif (z <= 3e+217) tmp = t_1; else tmp = -2.0 + (2.0 / 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, -9.5e-92], t$95$1, If[LessEqual[z, 2.4e-118], N[(N[(2.0 / t), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 3e+217], t$95$1, N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{-92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-118}:\\
\;\;\;\;\frac{\frac{2}{t}}{z}\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+217}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if z < -9.49999999999999946e-92 or 2.4000000000000001e-118 < z < 2.99999999999999976e217Initial program 79.3%
sub-neg79.3%
distribute-rgt-in79.3%
*-lft-identity79.3%
associate-+r+79.3%
cancel-sign-sub-inv79.3%
div-sub77.9%
associate-*r*77.9%
associate-*l/78.6%
*-inverses99.1%
metadata-eval99.1%
sub-neg99.1%
metadata-eval99.1%
metadata-eval99.1%
+-commutative99.1%
metadata-eval99.1%
associate-/l/99.2%
Simplified99.2%
Taylor expanded in t around inf 71.4%
if -9.49999999999999946e-92 < z < 2.4000000000000001e-118Initial program 98.7%
sub-neg98.7%
distribute-rgt-in98.7%
*-lft-identity98.7%
associate-+r+98.7%
cancel-sign-sub-inv98.7%
div-sub65.7%
associate-*r*65.7%
associate-*l/65.7%
*-inverses98.7%
metadata-eval98.7%
sub-neg98.7%
metadata-eval98.7%
metadata-eval98.7%
+-commutative98.7%
metadata-eval98.7%
associate-/l/98.7%
Simplified98.7%
Taylor expanded in z around 0 98.7%
Taylor expanded in z around 0 73.8%
associate-/r*73.9%
Simplified73.9%
if 2.99999999999999976e217 < z Initial program 68.0%
sub-neg68.0%
distribute-rgt-in68.0%
*-lft-identity68.0%
associate-+r+68.0%
cancel-sign-sub-inv68.0%
div-sub68.0%
associate-*r*68.0%
associate-*l/68.0%
*-inverses99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
metadata-eval99.6%
+-commutative99.6%
metadata-eval99.6%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in x around 0 74.3%
+-commutative74.3%
associate--l+74.3%
associate-*r/74.3%
metadata-eval74.3%
sub-neg74.3%
associate-*r/74.3%
metadata-eval74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in z around inf 74.3%
sub-neg74.3%
metadata-eval74.3%
associate-*r/74.3%
metadata-eval74.3%
+-commutative74.3%
Simplified74.3%
Final simplification72.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ x y) 2.0)))
(if (<= z -1.2e-60)
t_1
(if (<= z 1.05e-118)
(+ -2.0 (/ 2.0 (* z t)))
(if (<= z 3.1e+217) t_1 (+ -2.0 (/ 2.0 t)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x / y) - 2.0;
double tmp;
if (z <= -1.2e-60) {
tmp = t_1;
} else if (z <= 1.05e-118) {
tmp = -2.0 + (2.0 / (z * t));
} else if (z <= 3.1e+217) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (x / y) - 2.0d0
if (z <= (-1.2d-60)) then
tmp = t_1
else if (z <= 1.05d-118) then
tmp = (-2.0d0) + (2.0d0 / (z * t))
else if (z <= 3.1d+217) then
tmp = t_1
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 t_1 = (x / y) - 2.0;
double tmp;
if (z <= -1.2e-60) {
tmp = t_1;
} else if (z <= 1.05e-118) {
tmp = -2.0 + (2.0 / (z * t));
} else if (z <= 3.1e+217) {
tmp = t_1;
} else {
tmp = -2.0 + (2.0 / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / y) - 2.0 tmp = 0 if z <= -1.2e-60: tmp = t_1 elif z <= 1.05e-118: tmp = -2.0 + (2.0 / (z * t)) elif z <= 3.1e+217: tmp = t_1 else: tmp = -2.0 + (2.0 / t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / y) - 2.0) tmp = 0.0 if (z <= -1.2e-60) tmp = t_1; elseif (z <= 1.05e-118) tmp = Float64(-2.0 + Float64(2.0 / Float64(z * t))); elseif (z <= 3.1e+217) tmp = t_1; else tmp = Float64(-2.0 + Float64(2.0 / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / y) - 2.0; tmp = 0.0; if (z <= -1.2e-60) tmp = t_1; elseif (z <= 1.05e-118) tmp = -2.0 + (2.0 / (z * t)); elseif (z <= 3.1e+217) tmp = t_1; else tmp = -2.0 + (2.0 / 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, -1.2e-60], t$95$1, If[LessEqual[z, 1.05e-118], N[(-2.0 + N[(2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+217], t$95$1, N[(-2.0 + N[(2.0 / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} - 2\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{-60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-118}:\\
\;\;\;\;-2 + \frac{2}{z \cdot t}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+217}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\end{array}
if z < -1.20000000000000005e-60 or 1.05e-118 < z < 3.1000000000000002e217Initial program 78.0%
sub-neg78.0%
distribute-rgt-in77.9%
*-lft-identity77.9%
associate-+r+77.9%
cancel-sign-sub-inv77.9%
div-sub77.9%
associate-*r*77.9%
associate-*l/78.7%
*-inverses99.1%
metadata-eval99.1%
sub-neg99.1%
metadata-eval99.1%
metadata-eval99.1%
+-commutative99.1%
metadata-eval99.1%
associate-/l/99.2%
Simplified99.2%
Taylor expanded in t around inf 72.2%
if -1.20000000000000005e-60 < z < 1.05e-118Initial program 98.8%
sub-neg98.8%
distribute-rgt-in98.8%
*-lft-identity98.8%
associate-+r+98.8%
cancel-sign-sub-inv98.8%
div-sub66.8%
associate-*r*66.8%
associate-*l/66.8%
*-inverses98.8%
metadata-eval98.8%
sub-neg98.8%
metadata-eval98.8%
metadata-eval98.8%
+-commutative98.8%
metadata-eval98.8%
associate-/l/98.8%
Simplified98.8%
div-inv98.8%
fma-def99.9%
Applied egg-rr99.9%
Taylor expanded in z around 0 99.9%
Taylor expanded in x around 0 81.6%
sub-neg81.6%
associate-*r/81.6%
metadata-eval81.6%
*-commutative81.6%
metadata-eval81.6%
+-commutative81.6%
*-commutative81.6%
Simplified81.6%
if 3.1000000000000002e217 < z Initial program 68.0%
sub-neg68.0%
distribute-rgt-in68.0%
*-lft-identity68.0%
associate-+r+68.0%
cancel-sign-sub-inv68.0%
div-sub68.0%
associate-*r*68.0%
associate-*l/68.0%
*-inverses99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
metadata-eval99.6%
+-commutative99.6%
metadata-eval99.6%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in x around 0 74.3%
+-commutative74.3%
associate--l+74.3%
associate-*r/74.3%
metadata-eval74.3%
sub-neg74.3%
associate-*r/74.3%
metadata-eval74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in z around inf 74.3%
sub-neg74.3%
metadata-eval74.3%
associate-*r/74.3%
metadata-eval74.3%
+-commutative74.3%
Simplified74.3%
Final simplification76.0%
(FPCore (x y z t) :precision binary64 (if (<= (/ x y) -0.00024) (/ x y) (if (<= (/ x y) 3.2e-17) -2.0 (/ x y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -0.00024) {
tmp = x / y;
} else if ((x / y) <= 3.2e-17) {
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) <= (-0.00024d0)) then
tmp = x / y
else if ((x / y) <= 3.2d-17) 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) <= -0.00024) {
tmp = x / y;
} else if ((x / y) <= 3.2e-17) {
tmp = -2.0;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -0.00024: tmp = x / y elif (x / y) <= 3.2e-17: tmp = -2.0 else: tmp = x / y return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -0.00024) tmp = Float64(x / y); elseif (Float64(x / y) <= 3.2e-17) 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) <= -0.00024) tmp = x / y; elseif ((x / y) <= 3.2e-17) tmp = -2.0; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -0.00024], N[(x / y), $MachinePrecision], If[LessEqual[N[(x / y), $MachinePrecision], 3.2e-17], -2.0, N[(x / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -0.00024:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 3.2 \cdot 10^{-17}:\\
\;\;\;\;-2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 x y) < -2.40000000000000006e-4 or 3.2000000000000002e-17 < (/.f64 x y) Initial program 83.3%
sub-neg83.3%
distribute-rgt-in83.3%
*-lft-identity83.3%
associate-+r+83.3%
cancel-sign-sub-inv83.3%
div-sub69.5%
associate-*r*69.5%
associate-*l/70.2%
*-inverses98.5%
metadata-eval98.5%
sub-neg98.5%
metadata-eval98.5%
metadata-eval98.5%
+-commutative98.5%
metadata-eval98.5%
associate-/l/98.5%
Simplified98.5%
Taylor expanded in x around inf 62.6%
if -2.40000000000000006e-4 < (/.f64 x y) < 3.2000000000000002e-17Initial program 88.0%
sub-neg88.0%
distribute-rgt-in88.0%
*-lft-identity88.0%
associate-+r+88.0%
cancel-sign-sub-inv88.0%
div-sub77.2%
associate-*r*77.2%
associate-*l/77.2%
*-inverses99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
metadata-eval99.7%
+-commutative99.7%
metadata-eval99.7%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in x around 0 99.8%
+-commutative99.8%
associate--l+99.8%
associate-*r/99.8%
metadata-eval99.8%
sub-neg99.8%
associate-*r/99.8%
metadata-eval99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 38.7%
Final simplification52.2%
(FPCore (x y z t) :precision binary64 (if (<= t -330000000.0) -2.0 (if (<= t 2.2e+48) (/ 2.0 t) -2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -330000000.0) {
tmp = -2.0;
} else if (t <= 2.2e+48) {
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 <= (-330000000.0d0)) then
tmp = -2.0d0
else if (t <= 2.2d+48) 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 <= -330000000.0) {
tmp = -2.0;
} else if (t <= 2.2e+48) {
tmp = 2.0 / t;
} else {
tmp = -2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -330000000.0: tmp = -2.0 elif t <= 2.2e+48: tmp = 2.0 / t else: tmp = -2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -330000000.0) tmp = -2.0; elseif (t <= 2.2e+48) 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 <= -330000000.0) tmp = -2.0; elseif (t <= 2.2e+48) tmp = 2.0 / t; else tmp = -2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -330000000.0], -2.0, If[LessEqual[t, 2.2e+48], N[(2.0 / t), $MachinePrecision], -2.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -330000000:\\
\;\;\;\;-2\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+48}:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;-2\\
\end{array}
\end{array}
if t < -3.3e8 or 2.1999999999999999e48 < t Initial program 71.2%
sub-neg71.2%
distribute-rgt-in71.2%
*-lft-identity71.2%
associate-+r+71.2%
cancel-sign-sub-inv71.2%
div-sub71.2%
associate-*r*71.2%
associate-*l/72.1%
*-inverses99.9%
metadata-eval99.9%
sub-neg99.9%
metadata-eval99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in x around 0 50.7%
+-commutative50.7%
associate--l+50.7%
associate-*r/50.7%
metadata-eval50.7%
sub-neg50.7%
associate-*r/50.7%
metadata-eval50.7%
metadata-eval50.7%
Simplified50.7%
Taylor expanded in t around inf 35.6%
if -3.3e8 < t < 2.1999999999999999e48Initial program 98.2%
sub-neg98.2%
distribute-rgt-in98.2%
*-lft-identity98.2%
associate-+r+98.2%
cancel-sign-sub-inv98.2%
div-sub74.3%
associate-*r*74.3%
associate-*l/74.3%
*-inverses98.2%
metadata-eval98.2%
sub-neg98.2%
metadata-eval98.2%
metadata-eval98.2%
+-commutative98.2%
metadata-eval98.2%
associate-/l/98.4%
Simplified98.4%
Taylor expanded in t around 0 76.2%
associate-*r/76.2%
metadata-eval76.2%
Simplified76.2%
Taylor expanded in z around inf 29.7%
Final simplification32.5%
(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.3%
sub-neg85.3%
distribute-rgt-in85.3%
*-lft-identity85.3%
associate-+r+85.3%
cancel-sign-sub-inv85.3%
div-sub72.8%
associate-*r*72.8%
associate-*l/73.2%
*-inverses99.0%
metadata-eval99.0%
sub-neg99.0%
metadata-eval99.0%
metadata-eval99.0%
+-commutative99.0%
metadata-eval99.0%
associate-/l/99.1%
Simplified99.1%
Taylor expanded in x around 0 64.4%
+-commutative64.4%
associate--l+64.4%
associate-*r/64.4%
metadata-eval64.4%
sub-neg64.4%
associate-*r/64.4%
metadata-eval64.4%
metadata-eval64.4%
Simplified64.4%
Taylor expanded in t around inf 18.2%
Final simplification18.2%
(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 2023199
(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))))