
(FPCore (x y) :precision binary64 (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))))
double code(double x, double y) {
return 1.0 - (((1.0 - x) * y) / (y + 1.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 - (((1.0d0 - x) * y) / (y + 1.0d0))
end function
public static double code(double x, double y) {
return 1.0 - (((1.0 - x) * y) / (y + 1.0));
}
def code(x, y): return 1.0 - (((1.0 - x) * y) / (y + 1.0))
function code(x, y) return Float64(1.0 - Float64(Float64(Float64(1.0 - x) * y) / Float64(y + 1.0))) end
function tmp = code(x, y) tmp = 1.0 - (((1.0 - x) * y) / (y + 1.0)); end
code[x_, y_] := N[(1.0 - N[(N[(N[(1.0 - x), $MachinePrecision] * y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{\left(1 - x\right) \cdot y}{y + 1}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))))
double code(double x, double y) {
return 1.0 - (((1.0 - x) * y) / (y + 1.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 - (((1.0d0 - x) * y) / (y + 1.0d0))
end function
public static double code(double x, double y) {
return 1.0 - (((1.0 - x) * y) / (y + 1.0));
}
def code(x, y): return 1.0 - (((1.0 - x) * y) / (y + 1.0))
function code(x, y) return Float64(1.0 - Float64(Float64(Float64(1.0 - x) * y) / Float64(y + 1.0))) end
function tmp = code(x, y) tmp = 1.0 - (((1.0 - x) * y) / (y + 1.0)); end
code[x_, y_] := N[(1.0 - N[(N[(N[(1.0 - x), $MachinePrecision] * y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{\left(1 - x\right) \cdot y}{y + 1}
\end{array}
(FPCore (x y)
:precision binary64
(if (<= y -32500000000.0)
(+ x (/ 1.0 y))
(if (<= y 310000.0)
(+ 1.0 (* y (/ (+ x -1.0) (+ y 1.0))))
(+ x (+ (/ (- 1.0 x) y) (/ (+ x -1.0) (* y y)))))))
double code(double x, double y) {
double tmp;
if (y <= -32500000000.0) {
tmp = x + (1.0 / y);
} else if (y <= 310000.0) {
tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0)));
} else {
tmp = x + (((1.0 - x) / y) + ((x + -1.0) / (y * y)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-32500000000.0d0)) then
tmp = x + (1.0d0 / y)
else if (y <= 310000.0d0) then
tmp = 1.0d0 + (y * ((x + (-1.0d0)) / (y + 1.0d0)))
else
tmp = x + (((1.0d0 - x) / y) + ((x + (-1.0d0)) / (y * y)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -32500000000.0) {
tmp = x + (1.0 / y);
} else if (y <= 310000.0) {
tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0)));
} else {
tmp = x + (((1.0 - x) / y) + ((x + -1.0) / (y * y)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -32500000000.0: tmp = x + (1.0 / y) elif y <= 310000.0: tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0))) else: tmp = x + (((1.0 - x) / y) + ((x + -1.0) / (y * y))) return tmp
function code(x, y) tmp = 0.0 if (y <= -32500000000.0) tmp = Float64(x + Float64(1.0 / y)); elseif (y <= 310000.0) tmp = Float64(1.0 + Float64(y * Float64(Float64(x + -1.0) / Float64(y + 1.0)))); else tmp = Float64(x + Float64(Float64(Float64(1.0 - x) / y) + Float64(Float64(x + -1.0) / Float64(y * y)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -32500000000.0) tmp = x + (1.0 / y); elseif (y <= 310000.0) tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0))); else tmp = x + (((1.0 - x) / y) + ((x + -1.0) / (y * y))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -32500000000.0], N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 310000.0], N[(1.0 + N[(y * N[(N[(x + -1.0), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(1.0 - x), $MachinePrecision] / y), $MachinePrecision] + N[(N[(x + -1.0), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -32500000000:\\
\;\;\;\;x + \frac{1}{y}\\
\mathbf{elif}\;y \leq 310000:\\
\;\;\;\;1 + y \cdot \frac{x + -1}{y + 1}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{1 - x}{y} + \frac{x + -1}{y \cdot y}\right)\\
\end{array}
\end{array}
if y < -3.25e10Initial program 40.0%
sub-neg40.0%
metadata-eval40.0%
associate--r-40.0%
neg-sub040.0%
remove-double-neg40.0%
associate-/l*53.3%
+-commutative53.3%
Simplified53.3%
Taylor expanded in y around -inf 100.0%
mul-1-neg100.0%
sub-neg100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
+-commutative100.0%
distribute-neg-in100.0%
metadata-eval100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
if -3.25e10 < y < 3.1e5Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
if 3.1e5 < y Initial program 31.0%
sub-neg31.0%
metadata-eval31.0%
associate--r-31.0%
neg-sub031.0%
remove-double-neg31.0%
associate-/l*51.8%
+-commutative51.8%
Simplified51.8%
Taylor expanded in y around -inf 100.0%
associate--l+100.0%
associate--l+100.0%
mul-1-neg100.0%
sub-neg100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
+-commutative100.0%
distribute-neg-in100.0%
metadata-eval100.0%
sub-neg100.0%
div-sub100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
unpow2100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ x (/ 1.0 y))))
(if (<= y -1.0)
t_0
(if (<= y -1.45e-118)
(- 1.0 y)
(if (<= y -8e-127)
(* y x)
(if (<= y 4e-98)
1.0
(if (<= y 1.8e-59) (* y x) (if (<= y 4.2e-7) (- 1.0 y) t_0))))))))
double code(double x, double y) {
double t_0 = x + (1.0 / y);
double tmp;
if (y <= -1.0) {
tmp = t_0;
} else if (y <= -1.45e-118) {
tmp = 1.0 - y;
} else if (y <= -8e-127) {
tmp = y * x;
} else if (y <= 4e-98) {
tmp = 1.0;
} else if (y <= 1.8e-59) {
tmp = y * x;
} else if (y <= 4.2e-7) {
tmp = 1.0 - y;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = x + (1.0d0 / y)
if (y <= (-1.0d0)) then
tmp = t_0
else if (y <= (-1.45d-118)) then
tmp = 1.0d0 - y
else if (y <= (-8d-127)) then
tmp = y * x
else if (y <= 4d-98) then
tmp = 1.0d0
else if (y <= 1.8d-59) then
tmp = y * x
else if (y <= 4.2d-7) then
tmp = 1.0d0 - y
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x + (1.0 / y);
double tmp;
if (y <= -1.0) {
tmp = t_0;
} else if (y <= -1.45e-118) {
tmp = 1.0 - y;
} else if (y <= -8e-127) {
tmp = y * x;
} else if (y <= 4e-98) {
tmp = 1.0;
} else if (y <= 1.8e-59) {
tmp = y * x;
} else if (y <= 4.2e-7) {
tmp = 1.0 - y;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = x + (1.0 / y) tmp = 0 if y <= -1.0: tmp = t_0 elif y <= -1.45e-118: tmp = 1.0 - y elif y <= -8e-127: tmp = y * x elif y <= 4e-98: tmp = 1.0 elif y <= 1.8e-59: tmp = y * x elif y <= 4.2e-7: tmp = 1.0 - y else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(x + Float64(1.0 / y)) tmp = 0.0 if (y <= -1.0) tmp = t_0; elseif (y <= -1.45e-118) tmp = Float64(1.0 - y); elseif (y <= -8e-127) tmp = Float64(y * x); elseif (y <= 4e-98) tmp = 1.0; elseif (y <= 1.8e-59) tmp = Float64(y * x); elseif (y <= 4.2e-7) tmp = Float64(1.0 - y); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = x + (1.0 / y); tmp = 0.0; if (y <= -1.0) tmp = t_0; elseif (y <= -1.45e-118) tmp = 1.0 - y; elseif (y <= -8e-127) tmp = y * x; elseif (y <= 4e-98) tmp = 1.0; elseif (y <= 1.8e-59) tmp = y * x; elseif (y <= 4.2e-7) tmp = 1.0 - y; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.0], t$95$0, If[LessEqual[y, -1.45e-118], N[(1.0 - y), $MachinePrecision], If[LessEqual[y, -8e-127], N[(y * x), $MachinePrecision], If[LessEqual[y, 4e-98], 1.0, If[LessEqual[y, 1.8e-59], N[(y * x), $MachinePrecision], If[LessEqual[y, 4.2e-7], N[(1.0 - y), $MachinePrecision], t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x + \frac{1}{y}\\
\mathbf{if}\;y \leq -1:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-118}:\\
\;\;\;\;1 - y\\
\mathbf{elif}\;y \leq -8 \cdot 10^{-127}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-59}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-7}:\\
\;\;\;\;1 - y\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y < -1 or 4.2e-7 < y Initial program 36.1%
sub-neg36.1%
metadata-eval36.1%
associate--r-36.1%
neg-sub036.1%
remove-double-neg36.1%
associate-/l*53.2%
+-commutative53.2%
Simplified53.2%
Taylor expanded in y around -inf 98.5%
mul-1-neg98.5%
sub-neg98.5%
metadata-eval98.5%
distribute-neg-frac98.5%
+-commutative98.5%
distribute-neg-in98.5%
metadata-eval98.5%
sub-neg98.5%
Simplified98.5%
Taylor expanded in x around 0 98.2%
if -1 < y < -1.4499999999999999e-118 or 1.8e-59 < y < 4.2e-7Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
associate--r-100.0%
neg-sub0100.0%
remove-double-neg100.0%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 93.7%
*-commutative93.7%
/-rgt-identity93.7%
associate-/r/93.6%
div-sub93.6%
remove-double-div93.6%
associate-/r/93.7%
/-rgt-identity93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in x around 0 82.4%
if -1.4499999999999999e-118 < y < -8.0000000000000002e-127 or 3.99999999999999976e-98 < y < 1.8e-59Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 84.3%
associate-*r/84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in y around 0 84.3%
*-commutative84.3%
Simplified84.3%
if -8.0000000000000002e-127 < y < 3.99999999999999976e-98Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 84.5%
Final simplification90.9%
(FPCore (x y)
:precision binary64
(if (<= y -1.0)
x
(if (<= y -1.45e-118)
(- 1.0 y)
(if (<= y -8e-127)
(* y x)
(if (<= y 4e-98)
1.0
(if (<= y 4.4e-57) (* y x) (if (<= y 4.2e-7) (- 1.0 y) x)))))))
double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = x;
} else if (y <= -1.45e-118) {
tmp = 1.0 - y;
} else if (y <= -8e-127) {
tmp = y * x;
} else if (y <= 4e-98) {
tmp = 1.0;
} else if (y <= 4.4e-57) {
tmp = y * x;
} else if (y <= 4.2e-7) {
tmp = 1.0 - y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.0d0)) then
tmp = x
else if (y <= (-1.45d-118)) then
tmp = 1.0d0 - y
else if (y <= (-8d-127)) then
tmp = y * x
else if (y <= 4d-98) then
tmp = 1.0d0
else if (y <= 4.4d-57) then
tmp = y * x
else if (y <= 4.2d-7) then
tmp = 1.0d0 - y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = x;
} else if (y <= -1.45e-118) {
tmp = 1.0 - y;
} else if (y <= -8e-127) {
tmp = y * x;
} else if (y <= 4e-98) {
tmp = 1.0;
} else if (y <= 4.4e-57) {
tmp = y * x;
} else if (y <= 4.2e-7) {
tmp = 1.0 - y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.0: tmp = x elif y <= -1.45e-118: tmp = 1.0 - y elif y <= -8e-127: tmp = y * x elif y <= 4e-98: tmp = 1.0 elif y <= 4.4e-57: tmp = y * x elif y <= 4.2e-7: tmp = 1.0 - y else: tmp = x return tmp
function code(x, y) tmp = 0.0 if (y <= -1.0) tmp = x; elseif (y <= -1.45e-118) tmp = Float64(1.0 - y); elseif (y <= -8e-127) tmp = Float64(y * x); elseif (y <= 4e-98) tmp = 1.0; elseif (y <= 4.4e-57) tmp = Float64(y * x); elseif (y <= 4.2e-7) tmp = Float64(1.0 - y); else tmp = x; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.0) tmp = x; elseif (y <= -1.45e-118) tmp = 1.0 - y; elseif (y <= -8e-127) tmp = y * x; elseif (y <= 4e-98) tmp = 1.0; elseif (y <= 4.4e-57) tmp = y * x; elseif (y <= 4.2e-7) tmp = 1.0 - y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.0], x, If[LessEqual[y, -1.45e-118], N[(1.0 - y), $MachinePrecision], If[LessEqual[y, -8e-127], N[(y * x), $MachinePrecision], If[LessEqual[y, 4e-98], 1.0, If[LessEqual[y, 4.4e-57], N[(y * x), $MachinePrecision], If[LessEqual[y, 4.2e-7], N[(1.0 - y), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-118}:\\
\;\;\;\;1 - y\\
\mathbf{elif}\;y \leq -8 \cdot 10^{-127}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-57}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-7}:\\
\;\;\;\;1 - y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1 or 4.2e-7 < y Initial program 36.1%
sub-neg36.1%
associate-*l/53.1%
distribute-lft-neg-in53.1%
distribute-frac-neg53.1%
neg-sub053.1%
associate--r-53.1%
metadata-eval53.1%
+-commutative53.1%
+-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 76.2%
if -1 < y < -1.4499999999999999e-118 or 4.39999999999999997e-57 < y < 4.2e-7Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
associate--r-100.0%
neg-sub0100.0%
remove-double-neg100.0%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 93.7%
*-commutative93.7%
/-rgt-identity93.7%
associate-/r/93.6%
div-sub93.6%
remove-double-div93.6%
associate-/r/93.7%
/-rgt-identity93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in x around 0 82.4%
if -1.4499999999999999e-118 < y < -8.0000000000000002e-127 or 3.99999999999999976e-98 < y < 4.39999999999999997e-57Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 84.3%
associate-*r/84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in y around 0 84.3%
*-commutative84.3%
Simplified84.3%
if -8.0000000000000002e-127 < y < 3.99999999999999976e-98Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 84.5%
Final simplification80.1%
(FPCore (x y)
:precision binary64
(if (<= y -55000000000.0)
(+ x (/ 1.0 y))
(if (<= y 150000000.0)
(+ 1.0 (* y (/ (+ x -1.0) (+ y 1.0))))
(+ x (/ (- 1.0 x) y)))))
double code(double x, double y) {
double tmp;
if (y <= -55000000000.0) {
tmp = x + (1.0 / y);
} else if (y <= 150000000.0) {
tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0)));
} else {
tmp = x + ((1.0 - x) / y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-55000000000.0d0)) then
tmp = x + (1.0d0 / y)
else if (y <= 150000000.0d0) then
tmp = 1.0d0 + (y * ((x + (-1.0d0)) / (y + 1.0d0)))
else
tmp = x + ((1.0d0 - x) / y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -55000000000.0) {
tmp = x + (1.0 / y);
} else if (y <= 150000000.0) {
tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0)));
} else {
tmp = x + ((1.0 - x) / y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -55000000000.0: tmp = x + (1.0 / y) elif y <= 150000000.0: tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0))) else: tmp = x + ((1.0 - x) / y) return tmp
function code(x, y) tmp = 0.0 if (y <= -55000000000.0) tmp = Float64(x + Float64(1.0 / y)); elseif (y <= 150000000.0) tmp = Float64(1.0 + Float64(y * Float64(Float64(x + -1.0) / Float64(y + 1.0)))); else tmp = Float64(x + Float64(Float64(1.0 - x) / y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -55000000000.0) tmp = x + (1.0 / y); elseif (y <= 150000000.0) tmp = 1.0 + (y * ((x + -1.0) / (y + 1.0))); else tmp = x + ((1.0 - x) / y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -55000000000.0], N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 150000000.0], N[(1.0 + N[(y * N[(N[(x + -1.0), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(1.0 - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -55000000000:\\
\;\;\;\;x + \frac{1}{y}\\
\mathbf{elif}\;y \leq 150000000:\\
\;\;\;\;1 + y \cdot \frac{x + -1}{y + 1}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1 - x}{y}\\
\end{array}
\end{array}
if y < -5.5e10Initial program 40.0%
sub-neg40.0%
metadata-eval40.0%
associate--r-40.0%
neg-sub040.0%
remove-double-neg40.0%
associate-/l*53.3%
+-commutative53.3%
Simplified53.3%
Taylor expanded in y around -inf 100.0%
mul-1-neg100.0%
sub-neg100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
+-commutative100.0%
distribute-neg-in100.0%
metadata-eval100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
if -5.5e10 < y < 1.5e8Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
if 1.5e8 < y Initial program 31.0%
sub-neg31.0%
metadata-eval31.0%
associate--r-31.0%
neg-sub031.0%
remove-double-neg31.0%
associate-/l*51.8%
+-commutative51.8%
Simplified51.8%
Taylor expanded in y around -inf 99.8%
mul-1-neg99.8%
sub-neg99.8%
metadata-eval99.8%
distribute-neg-frac99.8%
+-commutative99.8%
distribute-neg-in99.8%
metadata-eval99.8%
sub-neg99.8%
Simplified99.8%
Final simplification100.0%
(FPCore (x y)
:precision binary64
(if (<= y -1.0)
x
(if (<= y -1.45e-118)
1.0
(if (<= y -3.55e-127)
(* y x)
(if (<= y 4e-98)
1.0
(if (<= y 1.85e-59) (* y x) (if (<= y 4.2e-7) 1.0 x)))))))
double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = x;
} else if (y <= -1.45e-118) {
tmp = 1.0;
} else if (y <= -3.55e-127) {
tmp = y * x;
} else if (y <= 4e-98) {
tmp = 1.0;
} else if (y <= 1.85e-59) {
tmp = y * x;
} else if (y <= 4.2e-7) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.0d0)) then
tmp = x
else if (y <= (-1.45d-118)) then
tmp = 1.0d0
else if (y <= (-3.55d-127)) then
tmp = y * x
else if (y <= 4d-98) then
tmp = 1.0d0
else if (y <= 1.85d-59) then
tmp = y * x
else if (y <= 4.2d-7) then
tmp = 1.0d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = x;
} else if (y <= -1.45e-118) {
tmp = 1.0;
} else if (y <= -3.55e-127) {
tmp = y * x;
} else if (y <= 4e-98) {
tmp = 1.0;
} else if (y <= 1.85e-59) {
tmp = y * x;
} else if (y <= 4.2e-7) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.0: tmp = x elif y <= -1.45e-118: tmp = 1.0 elif y <= -3.55e-127: tmp = y * x elif y <= 4e-98: tmp = 1.0 elif y <= 1.85e-59: tmp = y * x elif y <= 4.2e-7: tmp = 1.0 else: tmp = x return tmp
function code(x, y) tmp = 0.0 if (y <= -1.0) tmp = x; elseif (y <= -1.45e-118) tmp = 1.0; elseif (y <= -3.55e-127) tmp = Float64(y * x); elseif (y <= 4e-98) tmp = 1.0; elseif (y <= 1.85e-59) tmp = Float64(y * x); elseif (y <= 4.2e-7) tmp = 1.0; else tmp = x; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.0) tmp = x; elseif (y <= -1.45e-118) tmp = 1.0; elseif (y <= -3.55e-127) tmp = y * x; elseif (y <= 4e-98) tmp = 1.0; elseif (y <= 1.85e-59) tmp = y * x; elseif (y <= 4.2e-7) tmp = 1.0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.0], x, If[LessEqual[y, -1.45e-118], 1.0, If[LessEqual[y, -3.55e-127], N[(y * x), $MachinePrecision], If[LessEqual[y, 4e-98], 1.0, If[LessEqual[y, 1.85e-59], N[(y * x), $MachinePrecision], If[LessEqual[y, 4.2e-7], 1.0, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-118}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -3.55 \cdot 10^{-127}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-59}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-7}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1 or 4.2e-7 < y Initial program 36.1%
sub-neg36.1%
associate-*l/53.1%
distribute-lft-neg-in53.1%
distribute-frac-neg53.1%
neg-sub053.1%
associate--r-53.1%
metadata-eval53.1%
+-commutative53.1%
+-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 76.2%
if -1 < y < -1.4499999999999999e-118 or -3.5500000000000001e-127 < y < 3.99999999999999976e-98 or 1.85e-59 < y < 4.2e-7Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 83.4%
if -1.4499999999999999e-118 < y < -3.5500000000000001e-127 or 3.99999999999999976e-98 < y < 1.85e-59Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 84.3%
associate-*r/84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in y around 0 84.3%
*-commutative84.3%
Simplified84.3%
Final simplification79.9%
(FPCore (x y) :precision binary64 (if (or (<= y -1.0) (not (<= y 1.22))) (+ x (/ (- 1.0 x) y)) (+ 1.0 (* y x))))
double code(double x, double y) {
double tmp;
if ((y <= -1.0) || !(y <= 1.22)) {
tmp = x + ((1.0 - x) / y);
} else {
tmp = 1.0 + (y * x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-1.0d0)) .or. (.not. (y <= 1.22d0))) then
tmp = x + ((1.0d0 - x) / y)
else
tmp = 1.0d0 + (y * x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -1.0) || !(y <= 1.22)) {
tmp = x + ((1.0 - x) / y);
} else {
tmp = 1.0 + (y * x);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.0) or not (y <= 1.22): tmp = x + ((1.0 - x) / y) else: tmp = 1.0 + (y * x) return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.0) || !(y <= 1.22)) tmp = Float64(x + Float64(Float64(1.0 - x) / y)); else tmp = Float64(1.0 + Float64(y * x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -1.0) || ~((y <= 1.22))) tmp = x + ((1.0 - x) / y); else tmp = 1.0 + (y * x); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.0], N[Not[LessEqual[y, 1.22]], $MachinePrecision]], N[(x + N[(N[(1.0 - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(y * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \lor \neg \left(y \leq 1.22\right):\\
\;\;\;\;x + \frac{1 - x}{y}\\
\mathbf{else}:\\
\;\;\;\;1 + y \cdot x\\
\end{array}
\end{array}
if y < -1 or 1.21999999999999997 < y Initial program 35.6%
sub-neg35.6%
metadata-eval35.6%
associate--r-35.6%
neg-sub035.6%
remove-double-neg35.6%
associate-/l*52.9%
+-commutative52.9%
Simplified52.9%
Taylor expanded in y around -inf 99.3%
mul-1-neg99.3%
sub-neg99.3%
metadata-eval99.3%
distribute-neg-frac99.3%
+-commutative99.3%
distribute-neg-in99.3%
metadata-eval99.3%
sub-neg99.3%
Simplified99.3%
if -1 < y < 1.21999999999999997Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
associate--r-100.0%
neg-sub0100.0%
remove-double-neg100.0%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 98.1%
*-commutative98.1%
/-rgt-identity98.1%
associate-/r/98.0%
div-sub98.0%
remove-double-div98.0%
associate-/r/98.1%
/-rgt-identity98.1%
*-commutative98.1%
Simplified98.1%
Taylor expanded in x around inf 97.6%
associate-*r*97.6%
neg-mul-197.6%
*-commutative97.6%
Simplified97.6%
Final simplification98.4%
(FPCore (x y) :precision binary64 (if (or (<= y -1.0) (not (<= y 1.0))) (+ x (/ (- 1.0 x) y)) (+ 1.0 (- (* y x) y))))
double code(double x, double y) {
double tmp;
if ((y <= -1.0) || !(y <= 1.0)) {
tmp = x + ((1.0 - x) / y);
} else {
tmp = 1.0 + ((y * x) - y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-1.0d0)) .or. (.not. (y <= 1.0d0))) then
tmp = x + ((1.0d0 - x) / y)
else
tmp = 1.0d0 + ((y * x) - y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -1.0) || !(y <= 1.0)) {
tmp = x + ((1.0 - x) / y);
} else {
tmp = 1.0 + ((y * x) - y);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.0) or not (y <= 1.0): tmp = x + ((1.0 - x) / y) else: tmp = 1.0 + ((y * x) - y) return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.0) || !(y <= 1.0)) tmp = Float64(x + Float64(Float64(1.0 - x) / y)); else tmp = Float64(1.0 + Float64(Float64(y * x) - y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -1.0) || ~((y <= 1.0))) tmp = x + ((1.0 - x) / y); else tmp = 1.0 + ((y * x) - y); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.0], N[Not[LessEqual[y, 1.0]], $MachinePrecision]], N[(x + N[(N[(1.0 - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(y * x), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \lor \neg \left(y \leq 1\right):\\
\;\;\;\;x + \frac{1 - x}{y}\\
\mathbf{else}:\\
\;\;\;\;1 + \left(y \cdot x - y\right)\\
\end{array}
\end{array}
if y < -1 or 1 < y Initial program 35.6%
sub-neg35.6%
metadata-eval35.6%
associate--r-35.6%
neg-sub035.6%
remove-double-neg35.6%
associate-/l*52.9%
+-commutative52.9%
Simplified52.9%
Taylor expanded in y around -inf 99.3%
mul-1-neg99.3%
sub-neg99.3%
metadata-eval99.3%
distribute-neg-frac99.3%
+-commutative99.3%
distribute-neg-in99.3%
metadata-eval99.3%
sub-neg99.3%
Simplified99.3%
if -1 < y < 1Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
associate--r-100.0%
neg-sub0100.0%
remove-double-neg100.0%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 98.1%
*-commutative98.1%
/-rgt-identity98.1%
associate-/r/98.0%
div-sub98.0%
remove-double-div98.0%
associate-/r/98.1%
/-rgt-identity98.1%
*-commutative98.1%
Simplified98.1%
Final simplification98.7%
(FPCore (x y) :precision binary64 (if (or (<= y -1.0) (not (<= y 1.0))) (+ x (/ 1.0 y)) (+ 1.0 (* y x))))
double code(double x, double y) {
double tmp;
if ((y <= -1.0) || !(y <= 1.0)) {
tmp = x + (1.0 / y);
} else {
tmp = 1.0 + (y * x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-1.0d0)) .or. (.not. (y <= 1.0d0))) then
tmp = x + (1.0d0 / y)
else
tmp = 1.0d0 + (y * x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -1.0) || !(y <= 1.0)) {
tmp = x + (1.0 / y);
} else {
tmp = 1.0 + (y * x);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.0) or not (y <= 1.0): tmp = x + (1.0 / y) else: tmp = 1.0 + (y * x) return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.0) || !(y <= 1.0)) tmp = Float64(x + Float64(1.0 / y)); else tmp = Float64(1.0 + Float64(y * x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -1.0) || ~((y <= 1.0))) tmp = x + (1.0 / y); else tmp = 1.0 + (y * x); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.0], N[Not[LessEqual[y, 1.0]], $MachinePrecision]], N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(y * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \lor \neg \left(y \leq 1\right):\\
\;\;\;\;x + \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;1 + y \cdot x\\
\end{array}
\end{array}
if y < -1 or 1 < y Initial program 35.6%
sub-neg35.6%
metadata-eval35.6%
associate--r-35.6%
neg-sub035.6%
remove-double-neg35.6%
associate-/l*52.9%
+-commutative52.9%
Simplified52.9%
Taylor expanded in y around -inf 99.3%
mul-1-neg99.3%
sub-neg99.3%
metadata-eval99.3%
distribute-neg-frac99.3%
+-commutative99.3%
distribute-neg-in99.3%
metadata-eval99.3%
sub-neg99.3%
Simplified99.3%
Taylor expanded in x around 0 98.9%
if -1 < y < 1Initial program 100.0%
sub-neg100.0%
metadata-eval100.0%
associate--r-100.0%
neg-sub0100.0%
remove-double-neg100.0%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 98.1%
*-commutative98.1%
/-rgt-identity98.1%
associate-/r/98.0%
div-sub98.0%
remove-double-div98.0%
associate-/r/98.1%
/-rgt-identity98.1%
*-commutative98.1%
Simplified98.1%
Taylor expanded in x around inf 97.6%
associate-*r*97.6%
neg-mul-197.6%
*-commutative97.6%
Simplified97.6%
Final simplification98.2%
(FPCore (x y) :precision binary64 (if (<= y -1.0) x (if (<= y 4.2e-7) 1.0 x)))
double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = x;
} else if (y <= 4.2e-7) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.0d0)) then
tmp = x
else if (y <= 4.2d-7) then
tmp = 1.0d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = x;
} else if (y <= 4.2e-7) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.0: tmp = x elif y <= 4.2e-7: tmp = 1.0 else: tmp = x return tmp
function code(x, y) tmp = 0.0 if (y <= -1.0) tmp = x; elseif (y <= 4.2e-7) tmp = 1.0; else tmp = x; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.0) tmp = x; elseif (y <= 4.2e-7) tmp = 1.0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.0], x, If[LessEqual[y, 4.2e-7], 1.0, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-7}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1 or 4.2e-7 < y Initial program 36.1%
sub-neg36.1%
associate-*l/53.1%
distribute-lft-neg-in53.1%
distribute-frac-neg53.1%
neg-sub053.1%
associate--r-53.1%
metadata-eval53.1%
+-commutative53.1%
+-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 76.2%
if -1 < y < 4.2e-7Initial program 100.0%
sub-neg100.0%
associate-*l/100.0%
distribute-lft-neg-in100.0%
distribute-frac-neg100.0%
neg-sub0100.0%
associate--r-100.0%
metadata-eval100.0%
+-commutative100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 76.3%
Final simplification76.2%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 68.8%
sub-neg68.8%
associate-*l/77.1%
distribute-lft-neg-in77.1%
distribute-frac-neg77.1%
neg-sub077.1%
associate--r-77.1%
metadata-eval77.1%
+-commutative77.1%
+-commutative77.1%
Simplified77.1%
Taylor expanded in y around 0 40.8%
Final simplification40.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (- (/ 1.0 y) (- (/ x y) x))))
(if (< y -3693.8482788297247)
t_0
(if (< y 6799310503.41891) (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))) t_0))))
double code(double x, double y) {
double t_0 = (1.0 / y) - ((x / y) - x);
double tmp;
if (y < -3693.8482788297247) {
tmp = t_0;
} else if (y < 6799310503.41891) {
tmp = 1.0 - (((1.0 - x) * y) / (y + 1.0));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = (1.0d0 / y) - ((x / y) - x)
if (y < (-3693.8482788297247d0)) then
tmp = t_0
else if (y < 6799310503.41891d0) then
tmp = 1.0d0 - (((1.0d0 - x) * y) / (y + 1.0d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (1.0 / y) - ((x / y) - x);
double tmp;
if (y < -3693.8482788297247) {
tmp = t_0;
} else if (y < 6799310503.41891) {
tmp = 1.0 - (((1.0 - x) * y) / (y + 1.0));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = (1.0 / y) - ((x / y) - x) tmp = 0 if y < -3693.8482788297247: tmp = t_0 elif y < 6799310503.41891: tmp = 1.0 - (((1.0 - x) * y) / (y + 1.0)) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(Float64(1.0 / y) - Float64(Float64(x / y) - x)) tmp = 0.0 if (y < -3693.8482788297247) tmp = t_0; elseif (y < 6799310503.41891) tmp = Float64(1.0 - Float64(Float64(Float64(1.0 - x) * y) / Float64(y + 1.0))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = (1.0 / y) - ((x / y) - x); tmp = 0.0; if (y < -3693.8482788297247) tmp = t_0; elseif (y < 6799310503.41891) tmp = 1.0 - (((1.0 - x) * y) / (y + 1.0)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(1.0 / y), $MachinePrecision] - N[(N[(x / y), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[Less[y, -3693.8482788297247], t$95$0, If[Less[y, 6799310503.41891], N[(1.0 - N[(N[(N[(1.0 - x), $MachinePrecision] * y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{y} - \left(\frac{x}{y} - x\right)\\
\mathbf{if}\;y < -3693.8482788297247:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y < 6799310503.41891:\\
\;\;\;\;1 - \frac{\left(1 - x\right) \cdot y}{y + 1}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
herbie shell --seed 2023271
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, D"
:precision binary64
:herbie-target
(if (< y -3693.8482788297247) (- (/ 1.0 y) (- (/ x y) x)) (if (< y 6799310503.41891) (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))) (- (/ 1.0 y) (- (/ x y) x))))
(- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))))