
(FPCore (x y) :precision binary64 (/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))
double code(double x, double y) {
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0d0))
end function
public static double code(double x, double y) {
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
}
def code(x, y): return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0))
function code(x, y) return Float64(Float64(x * y) / Float64(Float64(Float64(x + y) * Float64(x + y)) * Float64(Float64(x + y) + 1.0))) end
function tmp = code(x, y) tmp = (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0)); end
code[x_, y_] := N[(N[(x * y), $MachinePrecision] / N[(N[(N[(x + y), $MachinePrecision] * N[(x + y), $MachinePrecision]), $MachinePrecision] * N[(N[(x + y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))
double code(double x, double y) {
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0d0))
end function
public static double code(double x, double y) {
return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0));
}
def code(x, y): return (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0))
function code(x, y) return Float64(Float64(x * y) / Float64(Float64(Float64(x + y) * Float64(x + y)) * Float64(Float64(x + y) + 1.0))) end
function tmp = code(x, y) tmp = (x * y) / (((x + y) * (x + y)) * ((x + y) + 1.0)); end
code[x_, y_] := N[(N[(x * y), $MachinePrecision] / N[(N[(N[(x + y), $MachinePrecision] * N[(x + y), $MachinePrecision]), $MachinePrecision] * N[(N[(x + y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}
\end{array}
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (* (/ x (+ x y)) (/ (/ y (+ x y)) (+ y (+ x 1.0)))))
assert(x < y);
double code(double x, double y) {
return (x / (x + y)) * ((y / (x + y)) / (y + (x + 1.0)));
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x / (x + y)) * ((y / (x + y)) / (y + (x + 1.0d0)))
end function
assert x < y;
public static double code(double x, double y) {
return (x / (x + y)) * ((y / (x + y)) / (y + (x + 1.0)));
}
[x, y] = sort([x, y]) def code(x, y): return (x / (x + y)) * ((y / (x + y)) / (y + (x + 1.0)))
x, y = sort([x, y]) function code(x, y) return Float64(Float64(x / Float64(x + y)) * Float64(Float64(y / Float64(x + y)) / Float64(y + Float64(x + 1.0)))) end
x, y = num2cell(sort([x, y])){:}
function tmp = code(x, y)
tmp = (x / (x + y)) * ((y / (x + y)) / (y + (x + 1.0)));
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := N[(N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision] * N[(N[(y / N[(x + y), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\frac{x}{x + y} \cdot \frac{\frac{y}{x + y}}{y + \left(x + 1\right)}
\end{array}
Initial program 69.2%
associate-*l*69.2%
times-frac93.4%
+-commutative93.4%
+-commutative93.4%
associate-+r+93.5%
+-commutative93.5%
associate-+l+93.5%
Applied egg-rr93.5%
div-inv93.4%
distribute-rgt-in89.7%
+-commutative89.7%
distribute-rgt-in93.4%
Applied egg-rr93.4%
associate-*r/93.5%
*-rgt-identity93.5%
associate-/r*99.8%
Simplified99.8%
Final simplification99.8%
NOTE: x and y should be sorted in increasing order before calling this function.
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ x (+ x y))))
(if (<= y 4.6e+127)
(* t_0 (/ y (* (+ x y) (+ y (+ x 1.0)))))
(* t_0 (/ 1.0 y)))))assert(x < y);
double code(double x, double y) {
double t_0 = x / (x + y);
double tmp;
if (y <= 4.6e+127) {
tmp = t_0 * (y / ((x + y) * (y + (x + 1.0))));
} else {
tmp = t_0 * (1.0 / y);
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
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 / (x + y)
if (y <= 4.6d+127) then
tmp = t_0 * (y / ((x + y) * (y + (x + 1.0d0))))
else
tmp = t_0 * (1.0d0 / y)
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double t_0 = x / (x + y);
double tmp;
if (y <= 4.6e+127) {
tmp = t_0 * (y / ((x + y) * (y + (x + 1.0))));
} else {
tmp = t_0 * (1.0 / y);
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): t_0 = x / (x + y) tmp = 0 if y <= 4.6e+127: tmp = t_0 * (y / ((x + y) * (y + (x + 1.0)))) else: tmp = t_0 * (1.0 / y) return tmp
x, y = sort([x, y]) function code(x, y) t_0 = Float64(x / Float64(x + y)) tmp = 0.0 if (y <= 4.6e+127) tmp = Float64(t_0 * Float64(y / Float64(Float64(x + y) * Float64(y + Float64(x + 1.0))))); else tmp = Float64(t_0 * Float64(1.0 / y)); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
t_0 = x / (x + y);
tmp = 0.0;
if (y <= 4.6e+127)
tmp = t_0 * (y / ((x + y) * (y + (x + 1.0))));
else
tmp = t_0 * (1.0 / y);
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function.
code[x_, y_] := Block[{t$95$0 = N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 4.6e+127], N[(t$95$0 * N[(y / N[(N[(x + y), $MachinePrecision] * N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
t_0 := \frac{x}{x + y}\\
\mathbf{if}\;y \leq 4.6 \cdot 10^{+127}:\\
\;\;\;\;t\_0 \cdot \frac{y}{\left(x + y\right) \cdot \left(y + \left(x + 1\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \frac{1}{y}\\
\end{array}
\end{array}
if y < 4.6000000000000003e127Initial program 70.6%
associate-*l*70.6%
times-frac94.2%
+-commutative94.2%
+-commutative94.2%
associate-+r+94.2%
+-commutative94.2%
associate-+l+94.2%
Applied egg-rr94.2%
if 4.6000000000000003e127 < y Initial program 59.7%
associate-*l*59.7%
times-frac88.3%
+-commutative88.3%
+-commutative88.3%
associate-+r+88.3%
+-commutative88.3%
associate-+l+88.3%
Applied egg-rr88.3%
div-inv88.3%
distribute-rgt-in78.7%
+-commutative78.7%
distribute-rgt-in88.3%
Applied egg-rr88.3%
associate-*r/88.3%
*-rgt-identity88.3%
associate-/r*99.9%
Simplified99.9%
Taylor expanded in y around inf 94.0%
Final simplification94.2%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= x -2e-5) (/ (/ y x) (* (+ y (+ x 1.0)) (/ (+ x y) x))) (/ (* x (/ y (+ x y))) (* (+ x y) (+ y 1.0)))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (x <= -2e-5) {
tmp = (y / x) / ((y + (x + 1.0)) * ((x + y) / x));
} else {
tmp = (x * (y / (x + y))) / ((x + y) * (y + 1.0));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-2d-5)) then
tmp = (y / x) / ((y + (x + 1.0d0)) * ((x + y) / x))
else
tmp = (x * (y / (x + y))) / ((x + y) * (y + 1.0d0))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (x <= -2e-5) {
tmp = (y / x) / ((y + (x + 1.0)) * ((x + y) / x));
} else {
tmp = (x * (y / (x + y))) / ((x + y) * (y + 1.0));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if x <= -2e-5: tmp = (y / x) / ((y + (x + 1.0)) * ((x + y) / x)) else: tmp = (x * (y / (x + y))) / ((x + y) * (y + 1.0)) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (x <= -2e-5) tmp = Float64(Float64(y / x) / Float64(Float64(y + Float64(x + 1.0)) * Float64(Float64(x + y) / x))); else tmp = Float64(Float64(x * Float64(y / Float64(x + y))) / Float64(Float64(x + y) * Float64(y + 1.0))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (x <= -2e-5)
tmp = (y / x) / ((y + (x + 1.0)) * ((x + y) / x));
else
tmp = (x * (y / (x + y))) / ((x + y) * (y + 1.0));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[x, -2e-5], N[(N[(y / x), $MachinePrecision] / N[(N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[(x + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x + y), $MachinePrecision] * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2 \cdot 10^{-5}:\\
\;\;\;\;\frac{\frac{y}{x}}{\left(y + \left(x + 1\right)\right) \cdot \frac{x + y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{y}{x + y}}{\left(x + y\right) \cdot \left(y + 1\right)}\\
\end{array}
\end{array}
if x < -2.00000000000000016e-5Initial program 73.8%
associate-*l*73.9%
times-frac92.7%
+-commutative92.7%
+-commutative92.7%
associate-+r+92.7%
+-commutative92.7%
associate-+l+92.8%
Applied egg-rr92.8%
clear-num92.8%
associate-/r*99.7%
+-commutative99.7%
frac-times99.0%
metadata-eval99.0%
times-frac99.0%
*-un-lft-identity99.0%
*-un-lft-identity99.0%
Applied egg-rr99.0%
Taylor expanded in y around 0 88.1%
if -2.00000000000000016e-5 < x Initial program 67.4%
Taylor expanded in x around 0 61.6%
+-commutative61.6%
Simplified61.6%
*-commutative61.6%
associate-*l*61.6%
+-commutative61.6%
times-frac83.6%
+-commutative83.6%
Applied egg-rr83.6%
associate-*r/83.6%
*-commutative83.6%
+-commutative83.6%
*-commutative83.6%
+-commutative83.6%
Simplified83.6%
Final simplification84.9%
NOTE: x and y should be sorted in increasing order before calling this function.
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ y (+ x y))))
(if (<= x -0.00192)
(/ t_0 (+ y (+ x 1.0)))
(/ (* x t_0) (* (+ x y) (+ y 1.0))))))assert(x < y);
double code(double x, double y) {
double t_0 = y / (x + y);
double tmp;
if (x <= -0.00192) {
tmp = t_0 / (y + (x + 1.0));
} else {
tmp = (x * t_0) / ((x + y) * (y + 1.0));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
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 = y / (x + y)
if (x <= (-0.00192d0)) then
tmp = t_0 / (y + (x + 1.0d0))
else
tmp = (x * t_0) / ((x + y) * (y + 1.0d0))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double t_0 = y / (x + y);
double tmp;
if (x <= -0.00192) {
tmp = t_0 / (y + (x + 1.0));
} else {
tmp = (x * t_0) / ((x + y) * (y + 1.0));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): t_0 = y / (x + y) tmp = 0 if x <= -0.00192: tmp = t_0 / (y + (x + 1.0)) else: tmp = (x * t_0) / ((x + y) * (y + 1.0)) return tmp
x, y = sort([x, y]) function code(x, y) t_0 = Float64(y / Float64(x + y)) tmp = 0.0 if (x <= -0.00192) tmp = Float64(t_0 / Float64(y + Float64(x + 1.0))); else tmp = Float64(Float64(x * t_0) / Float64(Float64(x + y) * Float64(y + 1.0))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
t_0 = y / (x + y);
tmp = 0.0;
if (x <= -0.00192)
tmp = t_0 / (y + (x + 1.0));
else
tmp = (x * t_0) / ((x + y) * (y + 1.0));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function.
code[x_, y_] := Block[{t$95$0 = N[(y / N[(x + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.00192], N[(t$95$0 / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * t$95$0), $MachinePrecision] / N[(N[(x + y), $MachinePrecision] * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
t_0 := \frac{y}{x + y}\\
\mathbf{if}\;x \leq -0.00192:\\
\;\;\;\;\frac{t\_0}{y + \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot t\_0}{\left(x + y\right) \cdot \left(y + 1\right)}\\
\end{array}
\end{array}
if x < -0.00192000000000000005Initial program 73.1%
associate-*l*73.1%
times-frac92.5%
+-commutative92.5%
+-commutative92.5%
associate-+r+92.5%
+-commutative92.5%
associate-+l+92.6%
Applied egg-rr92.6%
div-inv92.5%
distribute-rgt-in86.7%
+-commutative86.7%
distribute-rgt-in92.5%
Applied egg-rr92.5%
associate-*r/92.6%
*-rgt-identity92.6%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around inf 82.0%
if -0.00192000000000000005 < x Initial program 67.7%
Taylor expanded in x around 0 62.0%
+-commutative62.0%
Simplified62.0%
*-commutative62.0%
associate-*l*62.0%
+-commutative62.0%
times-frac83.8%
+-commutative83.8%
Applied egg-rr83.8%
associate-*r/83.8%
*-commutative83.8%
+-commutative83.8%
*-commutative83.8%
+-commutative83.8%
Simplified83.8%
Final simplification83.3%
NOTE: x and y should be sorted in increasing order before calling this function.
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ y (+ x y))))
(if (<= x -0.00335)
(/ t_0 (+ y (+ x 1.0)))
(* t_0 (/ x (* (+ x y) (+ y 1.0)))))))assert(x < y);
double code(double x, double y) {
double t_0 = y / (x + y);
double tmp;
if (x <= -0.00335) {
tmp = t_0 / (y + (x + 1.0));
} else {
tmp = t_0 * (x / ((x + y) * (y + 1.0)));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
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 = y / (x + y)
if (x <= (-0.00335d0)) then
tmp = t_0 / (y + (x + 1.0d0))
else
tmp = t_0 * (x / ((x + y) * (y + 1.0d0)))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double t_0 = y / (x + y);
double tmp;
if (x <= -0.00335) {
tmp = t_0 / (y + (x + 1.0));
} else {
tmp = t_0 * (x / ((x + y) * (y + 1.0)));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): t_0 = y / (x + y) tmp = 0 if x <= -0.00335: tmp = t_0 / (y + (x + 1.0)) else: tmp = t_0 * (x / ((x + y) * (y + 1.0))) return tmp
x, y = sort([x, y]) function code(x, y) t_0 = Float64(y / Float64(x + y)) tmp = 0.0 if (x <= -0.00335) tmp = Float64(t_0 / Float64(y + Float64(x + 1.0))); else tmp = Float64(t_0 * Float64(x / Float64(Float64(x + y) * Float64(y + 1.0)))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
t_0 = y / (x + y);
tmp = 0.0;
if (x <= -0.00335)
tmp = t_0 / (y + (x + 1.0));
else
tmp = t_0 * (x / ((x + y) * (y + 1.0)));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function.
code[x_, y_] := Block[{t$95$0 = N[(y / N[(x + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.00335], N[(t$95$0 / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
t_0 := \frac{y}{x + y}\\
\mathbf{if}\;x \leq -0.00335:\\
\;\;\;\;\frac{t\_0}{y + \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \frac{x}{\left(x + y\right) \cdot \left(y + 1\right)}\\
\end{array}
\end{array}
if x < -0.00335000000000000011Initial program 73.1%
associate-*l*73.1%
times-frac92.5%
+-commutative92.5%
+-commutative92.5%
associate-+r+92.5%
+-commutative92.5%
associate-+l+92.6%
Applied egg-rr92.6%
div-inv92.5%
distribute-rgt-in86.7%
+-commutative86.7%
distribute-rgt-in92.5%
Applied egg-rr92.5%
associate-*r/92.6%
*-rgt-identity92.6%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around inf 82.0%
if -0.00335000000000000011 < x Initial program 67.7%
Taylor expanded in x around 0 62.0%
+-commutative62.0%
Simplified62.0%
*-commutative62.0%
associate-*l*62.0%
+-commutative62.0%
times-frac83.8%
+-commutative83.8%
Applied egg-rr83.8%
Final simplification83.3%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= x -4.6e-113) (/ y (* (+ x y) (+ y (+ x 1.0)))) (* (/ x y) (/ 1.0 (+ y 1.0)))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (x <= -4.6e-113) {
tmp = y / ((x + y) * (y + (x + 1.0)));
} else {
tmp = (x / y) * (1.0 / (y + 1.0));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-4.6d-113)) then
tmp = y / ((x + y) * (y + (x + 1.0d0)))
else
tmp = (x / y) * (1.0d0 / (y + 1.0d0))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (x <= -4.6e-113) {
tmp = y / ((x + y) * (y + (x + 1.0)));
} else {
tmp = (x / y) * (1.0 / (y + 1.0));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if x <= -4.6e-113: tmp = y / ((x + y) * (y + (x + 1.0))) else: tmp = (x / y) * (1.0 / (y + 1.0)) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (x <= -4.6e-113) tmp = Float64(y / Float64(Float64(x + y) * Float64(y + Float64(x + 1.0)))); else tmp = Float64(Float64(x / y) * Float64(1.0 / Float64(y + 1.0))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (x <= -4.6e-113)
tmp = y / ((x + y) * (y + (x + 1.0)));
else
tmp = (x / y) * (1.0 / (y + 1.0));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[x, -4.6e-113], N[(y / N[(N[(x + y), $MachinePrecision] * N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.6 \cdot 10^{-113}:\\
\;\;\;\;\frac{y}{\left(x + y\right) \cdot \left(y + \left(x + 1\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{y + 1}\\
\end{array}
\end{array}
if x < -4.60000000000000016e-113Initial program 73.9%
associate-*l*73.9%
times-frac94.5%
+-commutative94.5%
+-commutative94.5%
associate-+r+94.5%
+-commutative94.5%
associate-+l+94.6%
Applied egg-rr94.6%
Taylor expanded in x around inf 78.3%
if -4.60000000000000016e-113 < x Initial program 66.3%
associate-/l*81.5%
associate-+l+81.5%
Simplified81.5%
Taylor expanded in x around 0 52.4%
+-commutative52.4%
Simplified52.4%
*-un-lft-identity52.4%
*-commutative52.4%
times-frac53.8%
Applied egg-rr53.8%
*-commutative53.8%
Simplified53.8%
Final simplification63.2%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= y 7.6e-52) (/ (/ y x) (+ x 1.0)) (* (/ 1.0 (+ x y)) (/ x (+ y 1.0)))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (y <= 7.6e-52) {
tmp = (y / x) / (x + 1.0);
} else {
tmp = (1.0 / (x + y)) * (x / (y + 1.0));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 7.6d-52) then
tmp = (y / x) / (x + 1.0d0)
else
tmp = (1.0d0 / (x + y)) * (x / (y + 1.0d0))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (y <= 7.6e-52) {
tmp = (y / x) / (x + 1.0);
} else {
tmp = (1.0 / (x + y)) * (x / (y + 1.0));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if y <= 7.6e-52: tmp = (y / x) / (x + 1.0) else: tmp = (1.0 / (x + y)) * (x / (y + 1.0)) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (y <= 7.6e-52) tmp = Float64(Float64(y / x) / Float64(x + 1.0)); else tmp = Float64(Float64(1.0 / Float64(x + y)) * Float64(x / Float64(y + 1.0))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (y <= 7.6e-52)
tmp = (y / x) / (x + 1.0);
else
tmp = (1.0 / (x + y)) * (x / (y + 1.0));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[y, 7.6e-52], N[(N[(y / x), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[(x + y), $MachinePrecision]), $MachinePrecision] * N[(x / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.6 \cdot 10^{-52}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{x + y} \cdot \frac{x}{y + 1}\\
\end{array}
\end{array}
if y < 7.6000000000000007e-52Initial program 68.2%
associate-/l*82.4%
associate-+l+82.4%
Simplified82.4%
Taylor expanded in y around 0 64.2%
associate-/r*66.5%
+-commutative66.5%
Simplified66.5%
if 7.6000000000000007e-52 < y Initial program 71.9%
*-un-lft-identity71.9%
associate-*l*71.9%
times-frac76.0%
+-commutative76.0%
*-commutative76.0%
+-commutative76.0%
associate-+r+76.0%
+-commutative76.0%
associate-+l+76.0%
Applied egg-rr76.0%
+-commutative76.0%
Simplified76.0%
Taylor expanded in x around 0 75.7%
+-commutative75.7%
Simplified75.7%
Final simplification68.9%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= y 5.6e-35) (/ (/ y x) (+ x 1.0)) (/ (/ x y) (+ y 1.0))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (y <= 5.6e-35) {
tmp = (y / x) / (x + 1.0);
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 5.6d-35) then
tmp = (y / x) / (x + 1.0d0)
else
tmp = (x / y) / (y + 1.0d0)
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (y <= 5.6e-35) {
tmp = (y / x) / (x + 1.0);
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if y <= 5.6e-35: tmp = (y / x) / (x + 1.0) else: tmp = (x / y) / (y + 1.0) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (y <= 5.6e-35) tmp = Float64(Float64(y / x) / Float64(x + 1.0)); else tmp = Float64(Float64(x / y) / Float64(y + 1.0)); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (y <= 5.6e-35)
tmp = (y / x) / (x + 1.0);
else
tmp = (x / y) / (y + 1.0);
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[y, 5.6e-35], N[(N[(y / x), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.6 \cdot 10^{-35}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\end{array}
if y < 5.5999999999999999e-35Initial program 68.5%
associate-/l*82.5%
associate-+l+82.6%
Simplified82.6%
Taylor expanded in y around 0 64.0%
associate-/r*66.4%
+-commutative66.4%
Simplified66.4%
if 5.5999999999999999e-35 < y Initial program 71.3%
associate-*l*71.3%
times-frac91.3%
+-commutative91.3%
+-commutative91.3%
associate-+r+91.3%
+-commutative91.3%
associate-+l+91.3%
Applied egg-rr91.3%
div-inv91.3%
distribute-rgt-in85.0%
+-commutative85.0%
distribute-rgt-in91.3%
Applied egg-rr91.3%
associate-*r/91.3%
*-rgt-identity91.3%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 71.9%
associate-/r*76.2%
+-commutative76.2%
Simplified76.2%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= y 1.1e-42) (/ y (* x (+ x 1.0))) (/ (/ x y) (+ y 1.0))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (y <= 1.1e-42) {
tmp = y / (x * (x + 1.0));
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 1.1d-42) then
tmp = y / (x * (x + 1.0d0))
else
tmp = (x / y) / (y + 1.0d0)
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (y <= 1.1e-42) {
tmp = y / (x * (x + 1.0));
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if y <= 1.1e-42: tmp = y / (x * (x + 1.0)) else: tmp = (x / y) / (y + 1.0) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (y <= 1.1e-42) tmp = Float64(y / Float64(x * Float64(x + 1.0))); else tmp = Float64(Float64(x / y) / Float64(y + 1.0)); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (y <= 1.1e-42)
tmp = y / (x * (x + 1.0));
else
tmp = (x / y) / (y + 1.0);
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[y, 1.1e-42], N[(y / N[(x * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.1 \cdot 10^{-42}:\\
\;\;\;\;\frac{y}{x \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\end{array}
if y < 1.10000000000000003e-42Initial program 68.5%
associate-/l*82.5%
associate-+l+82.6%
Simplified82.6%
Taylor expanded in y around 0 64.0%
if 1.10000000000000003e-42 < y Initial program 71.3%
associate-*l*71.3%
times-frac91.3%
+-commutative91.3%
+-commutative91.3%
associate-+r+91.3%
+-commutative91.3%
associate-+l+91.3%
Applied egg-rr91.3%
div-inv91.3%
distribute-rgt-in85.0%
+-commutative85.0%
distribute-rgt-in91.3%
Applied egg-rr91.3%
associate-*r/91.3%
*-rgt-identity91.3%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 71.9%
associate-/r*76.2%
+-commutative76.2%
Simplified76.2%
Final simplification67.1%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= y 4.8e-45) (/ y (* x (+ x 1.0))) (/ x (* y (+ y 1.0)))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (y <= 4.8e-45) {
tmp = y / (x * (x + 1.0));
} else {
tmp = x / (y * (y + 1.0));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 4.8d-45) then
tmp = y / (x * (x + 1.0d0))
else
tmp = x / (y * (y + 1.0d0))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (y <= 4.8e-45) {
tmp = y / (x * (x + 1.0));
} else {
tmp = x / (y * (y + 1.0));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if y <= 4.8e-45: tmp = y / (x * (x + 1.0)) else: tmp = x / (y * (y + 1.0)) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (y <= 4.8e-45) tmp = Float64(y / Float64(x * Float64(x + 1.0))); else tmp = Float64(x / Float64(y * Float64(y + 1.0))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (y <= 4.8e-45)
tmp = y / (x * (x + 1.0));
else
tmp = x / (y * (y + 1.0));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[y, 4.8e-45], N[(y / N[(x * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.8 \cdot 10^{-45}:\\
\;\;\;\;\frac{y}{x \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\end{array}
\end{array}
if y < 4.7999999999999998e-45Initial program 68.5%
associate-/l*82.5%
associate-+l+82.6%
Simplified82.6%
Taylor expanded in y around 0 64.0%
if 4.7999999999999998e-45 < y Initial program 71.3%
associate-/l*86.9%
associate-+l+86.9%
Simplified86.9%
Taylor expanded in x around 0 71.9%
+-commutative71.9%
Simplified71.9%
Final simplification66.0%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= y 6.8e-184) (* y (/ 1.0 (+ x y))) (/ x (* y (+ y 1.0)))))
assert(x < y);
double code(double x, double y) {
double tmp;
if (y <= 6.8e-184) {
tmp = y * (1.0 / (x + y));
} else {
tmp = x / (y * (y + 1.0));
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 6.8d-184) then
tmp = y * (1.0d0 / (x + y))
else
tmp = x / (y * (y + 1.0d0))
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (y <= 6.8e-184) {
tmp = y * (1.0 / (x + y));
} else {
tmp = x / (y * (y + 1.0));
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if y <= 6.8e-184: tmp = y * (1.0 / (x + y)) else: tmp = x / (y * (y + 1.0)) return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (y <= 6.8e-184) tmp = Float64(y * Float64(1.0 / Float64(x + y))); else tmp = Float64(x / Float64(y * Float64(y + 1.0))); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (y <= 6.8e-184)
tmp = y * (1.0 / (x + y));
else
tmp = x / (y * (y + 1.0));
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[y, 6.8e-184], N[(y * N[(1.0 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.8 \cdot 10^{-184}:\\
\;\;\;\;y \cdot \frac{1}{x + y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\end{array}
\end{array}
if y < 6.80000000000000008e-184Initial program 65.7%
*-un-lft-identity65.7%
associate-*l*65.7%
times-frac68.5%
+-commutative68.5%
*-commutative68.5%
+-commutative68.5%
associate-+r+68.5%
+-commutative68.5%
associate-+l+68.5%
Applied egg-rr68.5%
+-commutative68.5%
Simplified68.5%
Taylor expanded in y around 0 65.7%
+-commutative65.7%
Simplified65.7%
Taylor expanded in x around 0 41.2%
if 6.80000000000000008e-184 < y Initial program 74.0%
associate-/l*87.3%
associate-+l+87.3%
Simplified87.3%
Taylor expanded in x around 0 55.1%
+-commutative55.1%
Simplified55.1%
Final simplification47.0%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (if (<= x -1.3e-151) (* y (/ 1.0 (+ x y))) (/ x y)))
assert(x < y);
double code(double x, double y) {
double tmp;
if (x <= -1.3e-151) {
tmp = y * (1.0 / (x + y));
} else {
tmp = x / y;
}
return tmp;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-1.3d-151)) then
tmp = y * (1.0d0 / (x + y))
else
tmp = x / y
end if
code = tmp
end function
assert x < y;
public static double code(double x, double y) {
double tmp;
if (x <= -1.3e-151) {
tmp = y * (1.0 / (x + y));
} else {
tmp = x / y;
}
return tmp;
}
[x, y] = sort([x, y]) def code(x, y): tmp = 0 if x <= -1.3e-151: tmp = y * (1.0 / (x + y)) else: tmp = x / y return tmp
x, y = sort([x, y]) function code(x, y) tmp = 0.0 if (x <= -1.3e-151) tmp = Float64(y * Float64(1.0 / Float64(x + y))); else tmp = Float64(x / y); end return tmp end
x, y = num2cell(sort([x, y])){:}
function tmp_2 = code(x, y)
tmp = 0.0;
if (x <= -1.3e-151)
tmp = y * (1.0 / (x + y));
else
tmp = x / y;
end
tmp_2 = tmp;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := If[LessEqual[x, -1.3e-151], N[(y * N[(1.0 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / y), $MachinePrecision]]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{-151}:\\
\;\;\;\;y \cdot \frac{1}{x + y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if x < -1.3e-151Initial program 74.3%
*-un-lft-identity74.3%
associate-*l*74.3%
times-frac78.7%
+-commutative78.7%
*-commutative78.7%
+-commutative78.7%
associate-+r+78.7%
+-commutative78.7%
associate-+l+78.8%
Applied egg-rr78.8%
+-commutative78.8%
Simplified78.8%
Taylor expanded in y around 0 67.5%
+-commutative67.5%
Simplified67.5%
Taylor expanded in x around 0 34.3%
if -1.3e-151 < x Initial program 65.5%
associate-/l*80.4%
associate-+l+80.4%
Simplified80.4%
Taylor expanded in x around 0 50.8%
+-commutative50.8%
Simplified50.8%
Taylor expanded in y around 0 31.7%
Final simplification32.8%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (/ x y))
assert(x < y);
double code(double x, double y) {
return x / y;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x / y
end function
assert x < y;
public static double code(double x, double y) {
return x / y;
}
[x, y] = sort([x, y]) def code(x, y): return x / y
x, y = sort([x, y]) function code(x, y) return Float64(x / y) end
x, y = num2cell(sort([x, y])){:}
function tmp = code(x, y)
tmp = x / y;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\frac{x}{y}
\end{array}
Initial program 69.2%
associate-/l*83.6%
associate-+l+83.7%
Simplified83.7%
Taylor expanded in x around 0 43.0%
+-commutative43.0%
Simplified43.0%
Taylor expanded in y around 0 21.7%
NOTE: x and y should be sorted in increasing order before calling this function. (FPCore (x y) :precision binary64 (/ 1.0 x))
assert(x < y);
double code(double x, double y) {
return 1.0 / x;
}
NOTE: x and y should be sorted in increasing order before calling this function.
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 / x
end function
assert x < y;
public static double code(double x, double y) {
return 1.0 / x;
}
[x, y] = sort([x, y]) def code(x, y): return 1.0 / x
x, y = sort([x, y]) function code(x, y) return Float64(1.0 / x) end
x, y = num2cell(sort([x, y])){:}
function tmp = code(x, y)
tmp = 1.0 / x;
end
NOTE: x and y should be sorted in increasing order before calling this function. code[x_, y_] := N[(1.0 / x), $MachinePrecision]
\begin{array}{l}
[x, y] = \mathsf{sort}([x, y])\\
\\
\frac{1}{x}
\end{array}
Initial program 69.2%
Taylor expanded in y around inf 39.7%
Taylor expanded in x around inf 4.5%
(FPCore (x y) :precision binary64 (/ (/ (/ x (+ (+ y 1.0) x)) (+ y x)) (/ 1.0 (/ y (+ y x)))))
double code(double x, double y) {
return ((x / ((y + 1.0) + x)) / (y + x)) / (1.0 / (y / (y + x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x / ((y + 1.0d0) + x)) / (y + x)) / (1.0d0 / (y / (y + x)))
end function
public static double code(double x, double y) {
return ((x / ((y + 1.0) + x)) / (y + x)) / (1.0 / (y / (y + x)));
}
def code(x, y): return ((x / ((y + 1.0) + x)) / (y + x)) / (1.0 / (y / (y + x)))
function code(x, y) return Float64(Float64(Float64(x / Float64(Float64(y + 1.0) + x)) / Float64(y + x)) / Float64(1.0 / Float64(y / Float64(y + x)))) end
function tmp = code(x, y) tmp = ((x / ((y + 1.0) + x)) / (y + x)) / (1.0 / (y / (y + x))); end
code[x_, y_] := N[(N[(N[(x / N[(N[(y + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] / N[(y + x), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{\frac{x}{\left(y + 1\right) + x}}{y + x}}{\frac{1}{\frac{y}{y + x}}}
\end{array}
herbie shell --seed 2024100
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
:precision binary64
:alt
(/ (/ (/ x (+ (+ y 1.0) x)) (+ y x)) (/ 1.0 (/ y (+ y x))))
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))