
(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 15 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}
(FPCore (x y) :precision binary64 (* (/ y (+ y x)) (/ (/ x (+ y x)) (+ y (+ x 1.0)))))
double code(double x, double y) {
return (y / (y + x)) * ((x / (y + x)) / (y + (x + 1.0)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (y / (y + x)) * ((x / (y + x)) / (y + (x + 1.0d0)))
end function
public static double code(double x, double y) {
return (y / (y + x)) * ((x / (y + x)) / (y + (x + 1.0)));
}
def code(x, y): return (y / (y + x)) * ((x / (y + x)) / (y + (x + 1.0)))
function code(x, y) return Float64(Float64(y / Float64(y + x)) * Float64(Float64(x / Float64(y + x)) / Float64(y + Float64(x + 1.0)))) end
function tmp = code(x, y) tmp = (y / (y + x)) * ((x / (y + x)) / (y + (x + 1.0))); end
code[x_, y_] := N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * N[(N[(x / N[(y + x), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{y + x} \cdot \frac{\frac{x}{y + x}}{y + \left(x + 1\right)}
\end{array}
Initial program 66.6%
+-commutative66.6%
+-commutative66.6%
+-commutative66.6%
*-commutative66.6%
distribute-rgt1-in50.4%
fma-define66.6%
+-commutative66.6%
+-commutative66.6%
cube-unmult66.6%
+-commutative66.6%
Simplified66.6%
*-commutative66.6%
fma-define50.4%
cube-mult50.4%
distribute-rgt1-in66.6%
*-commutative66.6%
associate-*l*66.6%
times-frac91.9%
associate-+r+91.9%
Applied egg-rr91.9%
*-un-lft-identity91.9%
*-commutative91.9%
+-commutative91.9%
associate-+l+91.9%
times-frac99.8%
+-commutative99.8%
+-commutative99.8%
Applied egg-rr99.8%
*-commutative99.8%
div-inv99.8%
+-commutative99.8%
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ x (+ y x))))
(if (<= y 4.3e-7)
(* (/ y (+ y x)) (/ t_0 (+ x 1.0)))
(if (<= y 8.3e+123)
(* x (/ y (* (+ x (+ y 1.0)) (* (+ y x) (+ y x)))))
(* t_0 (/ 1.0 (+ y (+ x 1.0))))))))
double code(double x, double y) {
double t_0 = x / (y + x);
double tmp;
if (y <= 4.3e-7) {
tmp = (y / (y + x)) * (t_0 / (x + 1.0));
} else if (y <= 8.3e+123) {
tmp = x * (y / ((x + (y + 1.0)) * ((y + x) * (y + x))));
} else {
tmp = t_0 * (1.0 / (y + (x + 1.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 / (y + x)
if (y <= 4.3d-7) then
tmp = (y / (y + x)) * (t_0 / (x + 1.0d0))
else if (y <= 8.3d+123) then
tmp = x * (y / ((x + (y + 1.0d0)) * ((y + x) * (y + x))))
else
tmp = t_0 * (1.0d0 / (y + (x + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x / (y + x);
double tmp;
if (y <= 4.3e-7) {
tmp = (y / (y + x)) * (t_0 / (x + 1.0));
} else if (y <= 8.3e+123) {
tmp = x * (y / ((x + (y + 1.0)) * ((y + x) * (y + x))));
} else {
tmp = t_0 * (1.0 / (y + (x + 1.0)));
}
return tmp;
}
def code(x, y): t_0 = x / (y + x) tmp = 0 if y <= 4.3e-7: tmp = (y / (y + x)) * (t_0 / (x + 1.0)) elif y <= 8.3e+123: tmp = x * (y / ((x + (y + 1.0)) * ((y + x) * (y + x)))) else: tmp = t_0 * (1.0 / (y + (x + 1.0))) return tmp
function code(x, y) t_0 = Float64(x / Float64(y + x)) tmp = 0.0 if (y <= 4.3e-7) tmp = Float64(Float64(y / Float64(y + x)) * Float64(t_0 / Float64(x + 1.0))); elseif (y <= 8.3e+123) tmp = Float64(x * Float64(y / Float64(Float64(x + Float64(y + 1.0)) * Float64(Float64(y + x) * Float64(y + x))))); else tmp = Float64(t_0 * Float64(1.0 / Float64(y + Float64(x + 1.0)))); end return tmp end
function tmp_2 = code(x, y) t_0 = x / (y + x); tmp = 0.0; if (y <= 4.3e-7) tmp = (y / (y + x)) * (t_0 / (x + 1.0)); elseif (y <= 8.3e+123) tmp = x * (y / ((x + (y + 1.0)) * ((y + x) * (y + x)))); else tmp = t_0 * (1.0 / (y + (x + 1.0))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 4.3e-7], N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.3e+123], N[(x * N[(y / N[(N[(x + N[(y + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[(y + x), $MachinePrecision] * N[(y + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(1.0 / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y + x}\\
\mathbf{if}\;y \leq 4.3 \cdot 10^{-7}:\\
\;\;\;\;\frac{y}{y + x} \cdot \frac{t\_0}{x + 1}\\
\mathbf{elif}\;y \leq 8.3 \cdot 10^{+123}:\\
\;\;\;\;x \cdot \frac{y}{\left(x + \left(y + 1\right)\right) \cdot \left(\left(y + x\right) \cdot \left(y + x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \frac{1}{y + \left(x + 1\right)}\\
\end{array}
\end{array}
if y < 4.3000000000000001e-7Initial program 66.8%
+-commutative66.8%
+-commutative66.8%
+-commutative66.8%
*-commutative66.8%
distribute-rgt1-in46.2%
fma-define66.8%
+-commutative66.8%
+-commutative66.8%
cube-unmult66.8%
+-commutative66.8%
Simplified66.8%
*-commutative66.8%
fma-define46.2%
cube-mult46.2%
distribute-rgt1-in66.8%
*-commutative66.8%
associate-*l*66.8%
times-frac94.5%
associate-+r+94.5%
Applied egg-rr94.5%
Taylor expanded in y around 0 81.9%
+-commutative81.9%
Simplified81.9%
div-inv81.8%
Applied egg-rr81.8%
associate-*r/81.9%
*-rgt-identity81.9%
associate-/r*81.3%
Simplified81.3%
if 4.3000000000000001e-7 < y < 8.2999999999999998e123Initial program 71.6%
associate-/l*82.8%
associate-+l+82.8%
Simplified82.8%
if 8.2999999999999998e123 < y Initial program 61.8%
+-commutative61.8%
+-commutative61.8%
+-commutative61.8%
*-commutative61.8%
distribute-rgt1-in61.8%
fma-define61.8%
+-commutative61.8%
+-commutative61.8%
cube-unmult61.8%
+-commutative61.8%
Simplified61.8%
*-commutative61.8%
fma-define61.8%
cube-mult61.8%
distribute-rgt1-in61.8%
*-commutative61.8%
associate-*l*61.8%
times-frac80.6%
associate-+r+80.6%
Applied egg-rr80.6%
*-un-lft-identity80.6%
*-commutative80.6%
+-commutative80.6%
associate-+l+80.6%
times-frac99.8%
+-commutative99.8%
+-commutative99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 84.0%
Final simplification81.9%
(FPCore (x y) :precision binary64 (if (<= y 1.02e+142) (* (/ y (+ y x)) (/ x (* (+ y x) (+ x (+ y 1.0))))) (* (/ x (+ y x)) (/ 1.0 (+ y (+ x 1.0))))))
double code(double x, double y) {
double tmp;
if (y <= 1.02e+142) {
tmp = (y / (y + x)) * (x / ((y + x) * (x + (y + 1.0))));
} else {
tmp = (x / (y + x)) * (1.0 / (y + (x + 1.0)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 1.02d+142) then
tmp = (y / (y + x)) * (x / ((y + x) * (x + (y + 1.0d0))))
else
tmp = (x / (y + x)) * (1.0d0 / (y + (x + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.02e+142) {
tmp = (y / (y + x)) * (x / ((y + x) * (x + (y + 1.0))));
} else {
tmp = (x / (y + x)) * (1.0 / (y + (x + 1.0)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.02e+142: tmp = (y / (y + x)) * (x / ((y + x) * (x + (y + 1.0)))) else: tmp = (x / (y + x)) * (1.0 / (y + (x + 1.0))) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.02e+142) tmp = Float64(Float64(y / Float64(y + x)) * Float64(x / Float64(Float64(y + x) * Float64(x + Float64(y + 1.0))))); else tmp = Float64(Float64(x / Float64(y + x)) * Float64(1.0 / Float64(y + Float64(x + 1.0)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.02e+142) tmp = (y / (y + x)) * (x / ((y + x) * (x + (y + 1.0)))); else tmp = (x / (y + x)) * (1.0 / (y + (x + 1.0))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.02e+142], N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * N[(x / N[(N[(y + x), $MachinePrecision] * N[(x + N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y + x), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.02 \cdot 10^{+142}:\\
\;\;\;\;\frac{y}{y + x} \cdot \frac{x}{\left(y + x\right) \cdot \left(x + \left(y + 1\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y + x} \cdot \frac{1}{y + \left(x + 1\right)}\\
\end{array}
\end{array}
if y < 1.0199999999999999e142Initial program 66.3%
+-commutative66.3%
+-commutative66.3%
+-commutative66.3%
*-commutative66.3%
distribute-rgt1-in47.6%
fma-define66.3%
+-commutative66.3%
+-commutative66.3%
cube-unmult66.3%
+-commutative66.3%
Simplified66.3%
*-commutative66.3%
fma-define47.6%
cube-mult47.6%
distribute-rgt1-in66.3%
*-commutative66.3%
associate-*l*66.3%
times-frac93.6%
associate-+r+93.6%
Applied egg-rr93.6%
if 1.0199999999999999e142 < y Initial program 68.4%
+-commutative68.4%
+-commutative68.4%
+-commutative68.4%
*-commutative68.4%
distribute-rgt1-in68.4%
fma-define68.4%
+-commutative68.4%
+-commutative68.4%
cube-unmult68.4%
+-commutative68.4%
Simplified68.4%
*-commutative68.4%
fma-define68.4%
cube-mult68.4%
distribute-rgt1-in68.4%
*-commutative68.4%
associate-*l*68.4%
times-frac81.1%
associate-+r+81.1%
Applied egg-rr81.1%
*-un-lft-identity81.1%
*-commutative81.1%
+-commutative81.1%
associate-+l+81.1%
times-frac99.8%
+-commutative99.8%
+-commutative99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 89.9%
Final simplification93.1%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ x (+ y x))))
(if (<= y 0.1)
(* (/ y (+ y x)) (/ t_0 (+ x 1.0)))
(/ t_0 (+ y (+ x 1.0))))))
double code(double x, double y) {
double t_0 = x / (y + x);
double tmp;
if (y <= 0.1) {
tmp = (y / (y + x)) * (t_0 / (x + 1.0));
} else {
tmp = t_0 / (y + (x + 1.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 / (y + x)
if (y <= 0.1d0) then
tmp = (y / (y + x)) * (t_0 / (x + 1.0d0))
else
tmp = t_0 / (y + (x + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x / (y + x);
double tmp;
if (y <= 0.1) {
tmp = (y / (y + x)) * (t_0 / (x + 1.0));
} else {
tmp = t_0 / (y + (x + 1.0));
}
return tmp;
}
def code(x, y): t_0 = x / (y + x) tmp = 0 if y <= 0.1: tmp = (y / (y + x)) * (t_0 / (x + 1.0)) else: tmp = t_0 / (y + (x + 1.0)) return tmp
function code(x, y) t_0 = Float64(x / Float64(y + x)) tmp = 0.0 if (y <= 0.1) tmp = Float64(Float64(y / Float64(y + x)) * Float64(t_0 / Float64(x + 1.0))); else tmp = Float64(t_0 / Float64(y + Float64(x + 1.0))); end return tmp end
function tmp_2 = code(x, y) t_0 = x / (y + x); tmp = 0.0; if (y <= 0.1) tmp = (y / (y + x)) * (t_0 / (x + 1.0)); else tmp = t_0 / (y + (x + 1.0)); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 0.1], N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y + x}\\
\mathbf{if}\;y \leq 0.1:\\
\;\;\;\;\frac{y}{y + x} \cdot \frac{t\_0}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_0}{y + \left(x + 1\right)}\\
\end{array}
\end{array}
if y < 0.10000000000000001Initial program 66.8%
+-commutative66.8%
+-commutative66.8%
+-commutative66.8%
*-commutative66.8%
distribute-rgt1-in46.2%
fma-define66.8%
+-commutative66.8%
+-commutative66.8%
cube-unmult66.8%
+-commutative66.8%
Simplified66.8%
*-commutative66.8%
fma-define46.2%
cube-mult46.2%
distribute-rgt1-in66.8%
*-commutative66.8%
associate-*l*66.8%
times-frac94.5%
associate-+r+94.5%
Applied egg-rr94.5%
Taylor expanded in y around 0 81.9%
+-commutative81.9%
Simplified81.9%
div-inv81.8%
Applied egg-rr81.8%
associate-*r/81.9%
*-rgt-identity81.9%
associate-/r*81.3%
Simplified81.3%
if 0.10000000000000001 < y Initial program 65.8%
+-commutative65.8%
+-commutative65.8%
+-commutative65.8%
*-commutative65.8%
distribute-rgt1-in62.6%
fma-define65.8%
+-commutative65.8%
+-commutative65.8%
cube-unmult65.9%
+-commutative65.9%
Simplified65.9%
*-commutative65.9%
fma-define62.7%
cube-mult62.6%
distribute-rgt1-in65.8%
*-commutative65.8%
associate-*l*65.8%
times-frac84.3%
associate-+r+84.3%
Applied egg-rr84.3%
*-un-lft-identity84.3%
*-commutative84.3%
+-commutative84.3%
associate-+l+84.3%
times-frac99.8%
+-commutative99.8%
+-commutative99.8%
Applied egg-rr99.8%
*-commutative99.8%
div-inv99.8%
+-commutative99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 72.3%
Final simplification79.0%
(FPCore (x y) :precision binary64 (if (<= y 5.8) (* (/ y (+ y x)) (/ x (* (+ y x) (+ x 1.0)))) (/ (/ x (+ y x)) (+ y (+ x 1.0)))))
double code(double x, double y) {
double tmp;
if (y <= 5.8) {
tmp = (y / (y + x)) * (x / ((y + x) * (x + 1.0)));
} else {
tmp = (x / (y + x)) / (y + (x + 1.0));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 5.8d0) then
tmp = (y / (y + x)) * (x / ((y + x) * (x + 1.0d0)))
else
tmp = (x / (y + x)) / (y + (x + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 5.8) {
tmp = (y / (y + x)) * (x / ((y + x) * (x + 1.0)));
} else {
tmp = (x / (y + x)) / (y + (x + 1.0));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 5.8: tmp = (y / (y + x)) * (x / ((y + x) * (x + 1.0))) else: tmp = (x / (y + x)) / (y + (x + 1.0)) return tmp
function code(x, y) tmp = 0.0 if (y <= 5.8) tmp = Float64(Float64(y / Float64(y + x)) * Float64(x / Float64(Float64(y + x) * Float64(x + 1.0)))); else tmp = Float64(Float64(x / Float64(y + x)) / Float64(y + Float64(x + 1.0))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 5.8) tmp = (y / (y + x)) * (x / ((y + x) * (x + 1.0))); else tmp = (x / (y + x)) / (y + (x + 1.0)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 5.8], N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * N[(x / N[(N[(y + x), $MachinePrecision] * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y + x), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.8:\\
\;\;\;\;\frac{y}{y + x} \cdot \frac{x}{\left(y + x\right) \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y + x}}{y + \left(x + 1\right)}\\
\end{array}
\end{array}
if y < 5.79999999999999982Initial program 66.8%
+-commutative66.8%
+-commutative66.8%
+-commutative66.8%
*-commutative66.8%
distribute-rgt1-in46.2%
fma-define66.8%
+-commutative66.8%
+-commutative66.8%
cube-unmult66.8%
+-commutative66.8%
Simplified66.8%
*-commutative66.8%
fma-define46.2%
cube-mult46.2%
distribute-rgt1-in66.8%
*-commutative66.8%
associate-*l*66.8%
times-frac94.5%
associate-+r+94.5%
Applied egg-rr94.5%
Taylor expanded in y around 0 81.9%
+-commutative81.9%
Simplified81.9%
if 5.79999999999999982 < y Initial program 65.8%
+-commutative65.8%
+-commutative65.8%
+-commutative65.8%
*-commutative65.8%
distribute-rgt1-in62.6%
fma-define65.8%
+-commutative65.8%
+-commutative65.8%
cube-unmult65.9%
+-commutative65.9%
Simplified65.9%
*-commutative65.9%
fma-define62.7%
cube-mult62.6%
distribute-rgt1-in65.8%
*-commutative65.8%
associate-*l*65.8%
times-frac84.3%
associate-+r+84.3%
Applied egg-rr84.3%
*-un-lft-identity84.3%
*-commutative84.3%
+-commutative84.3%
associate-+l+84.3%
times-frac99.8%
+-commutative99.8%
+-commutative99.8%
Applied egg-rr99.8%
*-commutative99.8%
div-inv99.8%
+-commutative99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 72.3%
Final simplification79.4%
(FPCore (x y) :precision binary64 (if (<= x -9e-141) (/ y (* x (+ x 1.0))) (if (<= x 5.6e-59) (/ x (* y (+ y 1.0))) (* (/ x y) (/ 1.0 y)))))
double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = y / (x * (x + 1.0));
} else if (x <= 5.6e-59) {
tmp = x / (y * (y + 1.0));
} else {
tmp = (x / y) * (1.0 / y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-9d-141)) then
tmp = y / (x * (x + 1.0d0))
else if (x <= 5.6d-59) then
tmp = x / (y * (y + 1.0d0))
else
tmp = (x / y) * (1.0d0 / y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = y / (x * (x + 1.0));
} else if (x <= 5.6e-59) {
tmp = x / (y * (y + 1.0));
} else {
tmp = (x / y) * (1.0 / y);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= -9e-141: tmp = y / (x * (x + 1.0)) elif x <= 5.6e-59: tmp = x / (y * (y + 1.0)) else: tmp = (x / y) * (1.0 / y) return tmp
function code(x, y) tmp = 0.0 if (x <= -9e-141) tmp = Float64(y / Float64(x * Float64(x + 1.0))); elseif (x <= 5.6e-59) tmp = Float64(x / Float64(y * Float64(y + 1.0))); else tmp = Float64(Float64(x / y) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= -9e-141) tmp = y / (x * (x + 1.0)); elseif (x <= 5.6e-59) tmp = x / (y * (y + 1.0)); else tmp = (x / y) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, -9e-141], N[(y / N[(x * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e-59], N[(x / N[(y * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-141}:\\
\;\;\;\;\frac{y}{x \cdot \left(x + 1\right)}\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if x < -9.0000000000000001e-141Initial program 73.5%
associate-/l*82.6%
associate-+l+82.6%
Simplified82.6%
Taylor expanded in y around 0 65.3%
+-commutative65.3%
Simplified65.3%
if -9.0000000000000001e-141 < x < 5.59999999999999961e-59Initial program 69.0%
associate-/l*86.6%
associate-+l+86.6%
Simplified86.6%
Taylor expanded in x around 0 83.5%
if 5.59999999999999961e-59 < x Initial program 53.6%
associate-/l*72.2%
associate-+l+72.2%
Simplified72.2%
Taylor expanded in x around 0 31.9%
associate-/r*33.9%
+-commutative33.9%
clear-num33.7%
inv-pow33.7%
Applied egg-rr33.7%
unpow-133.7%
associate-/r/33.7%
Simplified33.7%
associate-/r*33.8%
div-inv33.8%
clear-num33.9%
+-commutative33.9%
Applied egg-rr33.9%
Taylor expanded in y around inf 33.6%
Final simplification62.7%
(FPCore (x y) :precision binary64 (if (<= x -9e-141) (/ (/ y (+ x (+ y 1.0))) x) (/ (/ x y) (+ y 1.0))))
double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = (y / (x + (y + 1.0))) / x;
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-9d-141)) then
tmp = (y / (x + (y + 1.0d0))) / x
else
tmp = (x / y) / (y + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = (y / (x + (y + 1.0))) / x;
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= -9e-141: tmp = (y / (x + (y + 1.0))) / x else: tmp = (x / y) / (y + 1.0) return tmp
function code(x, y) tmp = 0.0 if (x <= -9e-141) tmp = Float64(Float64(y / Float64(x + Float64(y + 1.0))) / x); else tmp = Float64(Float64(x / y) / Float64(y + 1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= -9e-141) tmp = (y / (x + (y + 1.0))) / x; else tmp = (x / y) / (y + 1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, -9e-141], N[(N[(y / N[(x + N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-141}:\\
\;\;\;\;\frac{\frac{y}{x + \left(y + 1\right)}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\end{array}
if x < -9.0000000000000001e-141Initial program 73.5%
associate-/l*82.6%
+-commutative82.6%
+-commutative82.6%
+-commutative82.6%
*-commutative82.6%
distribute-rgt1-in46.1%
+-commutative46.1%
+-commutative46.1%
cube-unmult46.1%
+-commutative46.1%
Simplified46.1%
clear-num46.1%
un-div-inv46.2%
cube-mult46.1%
distribute-rgt1-in82.6%
*-commutative82.6%
associate-/l*86.3%
pow286.3%
associate-+r+86.3%
Applied egg-rr86.3%
associate-/r*91.4%
+-commutative91.4%
associate-+r+91.4%
+-commutative91.4%
associate-+r+91.4%
+-commutative91.4%
Simplified91.4%
Taylor expanded in x around inf 68.7%
*-un-lft-identity68.7%
div-inv68.6%
clear-num68.6%
remove-double-div68.7%
associate-+l+68.7%
+-commutative68.7%
Applied egg-rr68.7%
*-lft-identity68.7%
associate-*l/68.8%
*-lft-identity68.8%
Simplified68.8%
if -9.0000000000000001e-141 < x Initial program 62.1%
associate-/l*80.1%
associate-+l+80.1%
Simplified80.1%
Taylor expanded in x around 0 60.4%
associate-/r*61.3%
+-commutative61.3%
Simplified61.3%
(FPCore (x y) :precision binary64 (if (<= x -9e-141) (/ (/ y x) (+ x 1.0)) (/ (/ x y) (+ y 1.0))))
double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = (y / x) / (x + 1.0);
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-9d-141)) then
tmp = (y / x) / (x + 1.0d0)
else
tmp = (x / y) / (y + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = (y / x) / (x + 1.0);
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= -9e-141: tmp = (y / x) / (x + 1.0) else: tmp = (x / y) / (y + 1.0) return tmp
function code(x, y) tmp = 0.0 if (x <= -9e-141) tmp = Float64(Float64(y / x) / Float64(x + 1.0)); else tmp = Float64(Float64(x / y) / Float64(y + 1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= -9e-141) tmp = (y / x) / (x + 1.0); else tmp = (x / y) / (y + 1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, -9e-141], 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}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-141}:\\
\;\;\;\;\frac{\frac{y}{x}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\end{array}
if x < -9.0000000000000001e-141Initial program 73.5%
+-commutative73.5%
+-commutative73.5%
+-commutative73.5%
*-commutative73.5%
distribute-rgt1-in44.2%
fma-define73.5%
+-commutative73.5%
+-commutative73.5%
cube-unmult73.5%
+-commutative73.5%
Simplified73.5%
*-commutative73.5%
fma-define44.2%
cube-mult44.2%
distribute-rgt1-in73.5%
*-commutative73.5%
associate-*l*73.5%
times-frac91.4%
associate-+r+91.4%
Applied egg-rr91.4%
Taylor expanded in y around 0 72.4%
+-commutative72.4%
Simplified72.4%
Taylor expanded in y around 0 65.3%
associate-/r*68.4%
+-commutative68.4%
Simplified68.4%
if -9.0000000000000001e-141 < x Initial program 62.1%
associate-/l*80.1%
associate-+l+80.1%
Simplified80.1%
Taylor expanded in x around 0 60.4%
associate-/r*61.3%
+-commutative61.3%
Simplified61.3%
(FPCore (x y) :precision binary64 (if (<= x -9e-141) (/ y (* x (+ x 1.0))) (/ (/ x y) (+ y 1.0))))
double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = y / (x * (x + 1.0));
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-9d-141)) then
tmp = y / (x * (x + 1.0d0))
else
tmp = (x / y) / (y + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= -9e-141) {
tmp = y / (x * (x + 1.0));
} else {
tmp = (x / y) / (y + 1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= -9e-141: tmp = y / (x * (x + 1.0)) else: tmp = (x / y) / (y + 1.0) return tmp
function code(x, y) tmp = 0.0 if (x <= -9e-141) tmp = Float64(y / Float64(x * Float64(x + 1.0))); else tmp = Float64(Float64(x / y) / Float64(y + 1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= -9e-141) tmp = y / (x * (x + 1.0)); else tmp = (x / y) / (y + 1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, -9e-141], 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}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-141}:\\
\;\;\;\;\frac{y}{x \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{y + 1}\\
\end{array}
\end{array}
if x < -9.0000000000000001e-141Initial program 73.5%
associate-/l*82.6%
associate-+l+82.6%
Simplified82.6%
Taylor expanded in y around 0 65.3%
+-commutative65.3%
Simplified65.3%
if -9.0000000000000001e-141 < x Initial program 62.1%
associate-/l*80.1%
associate-+l+80.1%
Simplified80.1%
Taylor expanded in x around 0 60.4%
associate-/r*61.3%
+-commutative61.3%
Simplified61.3%
(FPCore (x y) :precision binary64 (if (<= y 2e+38) (/ x (* y (+ y 1.0))) (* (/ x y) (/ 1.0 y))))
double code(double x, double y) {
double tmp;
if (y <= 2e+38) {
tmp = x / (y * (y + 1.0));
} else {
tmp = (x / y) * (1.0 / y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2d+38) then
tmp = x / (y * (y + 1.0d0))
else
tmp = (x / y) * (1.0d0 / y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2e+38) {
tmp = x / (y * (y + 1.0));
} else {
tmp = (x / y) * (1.0 / y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2e+38: tmp = x / (y * (y + 1.0)) else: tmp = (x / y) * (1.0 / y) return tmp
function code(x, y) tmp = 0.0 if (y <= 2e+38) tmp = Float64(x / Float64(y * Float64(y + 1.0))); else tmp = Float64(Float64(x / y) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2e+38) tmp = x / (y * (y + 1.0)); else tmp = (x / y) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2e+38], N[(x / N[(y * N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2 \cdot 10^{+38}:\\
\;\;\;\;\frac{x}{y \cdot \left(y + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if y < 1.99999999999999995e38Initial program 67.3%
associate-/l*82.3%
associate-+l+82.3%
Simplified82.3%
Taylor expanded in x around 0 41.6%
if 1.99999999999999995e38 < y Initial program 63.9%
associate-/l*77.1%
associate-+l+77.1%
Simplified77.1%
Taylor expanded in x around 0 69.7%
associate-/r*75.0%
+-commutative75.0%
clear-num74.6%
inv-pow74.6%
Applied egg-rr74.6%
unpow-174.6%
associate-/r/74.6%
Simplified74.6%
associate-/r*74.9%
div-inv74.9%
clear-num74.9%
+-commutative74.9%
Applied egg-rr74.9%
Taylor expanded in y around inf 74.9%
Final simplification49.0%
(FPCore (x y) :precision binary64 (if (<= y 1.0) (/ x y) (* (/ x y) (/ 1.0 y))))
double code(double x, double y) {
double tmp;
if (y <= 1.0) {
tmp = x / y;
} else {
tmp = (x / y) * (1.0 / 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) then
tmp = x / y
else
tmp = (x / y) * (1.0d0 / y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.0) {
tmp = x / y;
} else {
tmp = (x / y) * (1.0 / y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.0: tmp = x / y else: tmp = (x / y) * (1.0 / y) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.0) tmp = Float64(x / y); else tmp = Float64(Float64(x / y) * Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.0) tmp = x / y; else tmp = (x / y) * (1.0 / y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.0], N[(x / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{y}\\
\end{array}
\end{array}
if y < 1Initial program 66.8%
associate-/l*81.9%
associate-+l+81.9%
Simplified81.9%
Taylor expanded in x around 0 41.4%
Taylor expanded in y around 0 24.7%
if 1 < y Initial program 65.8%
associate-/l*78.8%
associate-+l+78.8%
Simplified78.8%
Taylor expanded in x around 0 66.4%
associate-/r*70.9%
+-commutative70.9%
clear-num70.6%
inv-pow70.6%
Applied egg-rr70.6%
unpow-170.6%
associate-/r/70.7%
Simplified70.7%
associate-/r*70.9%
div-inv70.8%
clear-num70.8%
+-commutative70.8%
Applied egg-rr70.8%
Taylor expanded in y around inf 69.8%
(FPCore (x y) :precision binary64 (if (<= y 1.0) (/ x y) (/ x (* y y))))
double code(double x, double y) {
double tmp;
if (y <= 1.0) {
tmp = x / y;
} else {
tmp = x / (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 <= 1.0d0) then
tmp = x / y
else
tmp = x / (y * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.0) {
tmp = x / y;
} else {
tmp = x / (y * y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.0: tmp = x / y else: tmp = x / (y * y) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.0) tmp = Float64(x / y); else tmp = Float64(x / Float64(y * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.0) tmp = x / y; else tmp = x / (y * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.0], N[(x / y), $MachinePrecision], N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot y}\\
\end{array}
\end{array}
if y < 1Initial program 66.8%
associate-/l*81.9%
associate-+l+81.9%
Simplified81.9%
Taylor expanded in x around 0 41.4%
Taylor expanded in y around 0 24.7%
if 1 < y Initial program 65.8%
associate-/l*78.8%
associate-+l+78.8%
Simplified78.8%
Taylor expanded in x around 0 66.4%
Taylor expanded in y around inf 65.4%
(FPCore (x y) :precision binary64 (/ 1.0 (/ y x)))
double code(double x, double y) {
return 1.0 / (y / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 / (y / x)
end function
public static double code(double x, double y) {
return 1.0 / (y / x);
}
def code(x, y): return 1.0 / (y / x)
function code(x, y) return Float64(1.0 / Float64(y / x)) end
function tmp = code(x, y) tmp = 1.0 / (y / x); end
code[x_, y_] := N[(1.0 / N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{y}{x}}
\end{array}
Initial program 66.6%
associate-/l*81.1%
associate-+l+81.1%
Simplified81.1%
Taylor expanded in x around 0 47.9%
Taylor expanded in y around 0 26.7%
clear-num26.6%
inv-pow26.6%
Applied egg-rr26.6%
unpow-126.6%
Simplified26.6%
(FPCore (x y) :precision binary64 (/ x y))
double code(double x, double y) {
return x / y;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x / y
end function
public static double code(double x, double y) {
return x / y;
}
def code(x, y): return x / y
function code(x, y) return Float64(x / y) end
function tmp = code(x, y) tmp = x / y; end
code[x_, y_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 66.6%
associate-/l*81.1%
associate-+l+81.1%
Simplified81.1%
Taylor expanded in x around 0 47.9%
Taylor expanded in y around 0 26.7%
(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 66.6%
+-commutative66.6%
+-commutative66.6%
+-commutative66.6%
*-commutative66.6%
distribute-rgt1-in50.4%
fma-define66.6%
+-commutative66.6%
+-commutative66.6%
cube-unmult66.6%
+-commutative66.6%
Simplified66.6%
*-commutative66.6%
fma-define50.4%
cube-mult50.4%
distribute-rgt1-in66.6%
*-commutative66.6%
associate-*l*66.6%
times-frac91.9%
associate-+r+91.9%
Applied egg-rr91.9%
Taylor expanded in x around 0 48.0%
Taylor expanded in y around 0 3.4%
(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 2024137
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (/ (/ (/ x (+ (+ y 1) x)) (+ y x)) (/ 1 (/ y (+ y x)))))
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))