
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
(FPCore (x y) :precision binary64 (- (+ 1.0 (/ -1.0 (* x 9.0))) (/ (/ y (sqrt x)) 3.0)))
double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - ((y / sqrt(x)) / 3.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 + ((-1.0d0) / (x * 9.0d0))) - ((y / sqrt(x)) / 3.0d0)
end function
public static double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - ((y / Math.sqrt(x)) / 3.0);
}
def code(x, y): return (1.0 + (-1.0 / (x * 9.0))) - ((y / math.sqrt(x)) / 3.0)
function code(x, y) return Float64(Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) - Float64(Float64(y / sqrt(x)) / 3.0)) end
function tmp = code(x, y) tmp = (1.0 + (-1.0 / (x * 9.0))) - ((y / sqrt(x)) / 3.0); end
code[x_, y_] := N[(N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-1}{x \cdot 9}\right) - \frac{\frac{y}{\sqrt{x}}}{3}
\end{array}
Initial program 99.7%
*-commutative99.7%
metadata-eval99.7%
sqrt-prod99.3%
pow1/299.3%
Applied egg-rr99.3%
unpow1/299.3%
Simplified99.3%
*-un-lft-identity99.3%
sqrt-prod99.7%
metadata-eval99.7%
times-frac99.7%
pow1/299.7%
pow-flip99.7%
metadata-eval99.7%
Applied egg-rr99.7%
metadata-eval99.7%
sqrt-pow199.7%
inv-pow99.7%
associate-*r/99.7%
sqrt-div99.7%
metadata-eval99.7%
associate-*l/99.7%
*-un-lft-identity99.7%
Applied egg-rr99.7%
Final simplification99.7%
(FPCore (x y) :precision binary64 (- (+ 1.0 (/ -1.0 (* x 9.0))) (/ y (* (sqrt x) 3.0))))
double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / (sqrt(x) * 3.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 + ((-1.0d0) / (x * 9.0d0))) - (y / (sqrt(x) * 3.0d0))
end function
public static double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / (Math.sqrt(x) * 3.0));
}
def code(x, y): return (1.0 + (-1.0 / (x * 9.0))) - (y / (math.sqrt(x) * 3.0))
function code(x, y) return Float64(Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) - Float64(y / Float64(sqrt(x) * 3.0))) end
function tmp = code(x, y) tmp = (1.0 + (-1.0 / (x * 9.0))) - (y / (sqrt(x) * 3.0)); end
code[x_, y_] := N[(N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(N[Sqrt[x], $MachinePrecision] * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-1}{x \cdot 9}\right) - \frac{y}{\sqrt{x} \cdot 3}
\end{array}
Initial program 99.7%
Final simplification99.7%
(FPCore (x y)
:precision binary64
(if (<= y -2.5e+38)
(+ 1.0 (* (/ y (sqrt x)) -0.3333333333333333))
(if (<= y 1.7e+54)
(- 1.0 (pow (* x 9.0) -1.0))
(+ 1.0 (* (pow x -0.5) (* y -0.3333333333333333))))))
double code(double x, double y) {
double tmp;
if (y <= -2.5e+38) {
tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333);
} else if (y <= 1.7e+54) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = 1.0 + (pow(x, -0.5) * (y * -0.3333333333333333));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-2.5d+38)) then
tmp = 1.0d0 + ((y / sqrt(x)) * (-0.3333333333333333d0))
else if (y <= 1.7d+54) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = 1.0d0 + ((x ** (-0.5d0)) * (y * (-0.3333333333333333d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -2.5e+38) {
tmp = 1.0 + ((y / Math.sqrt(x)) * -0.3333333333333333);
} else if (y <= 1.7e+54) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = 1.0 + (Math.pow(x, -0.5) * (y * -0.3333333333333333));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2.5e+38: tmp = 1.0 + ((y / math.sqrt(x)) * -0.3333333333333333) elif y <= 1.7e+54: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = 1.0 + (math.pow(x, -0.5) * (y * -0.3333333333333333)) return tmp
function code(x, y) tmp = 0.0 if (y <= -2.5e+38) tmp = Float64(1.0 + Float64(Float64(y / sqrt(x)) * -0.3333333333333333)); elseif (y <= 1.7e+54) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(1.0 + Float64((x ^ -0.5) * Float64(y * -0.3333333333333333))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2.5e+38) tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333); elseif (y <= 1.7e+54) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = 1.0 + ((x ^ -0.5) * (y * -0.3333333333333333)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2.5e+38], N[(1.0 + N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+54], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[Power[x, -0.5], $MachinePrecision] * N[(y * -0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+38}:\\
\;\;\;\;1 + \frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+54}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;1 + {x}^{-0.5} \cdot \left(y \cdot -0.3333333333333333\right)\\
\end{array}
\end{array}
if y < -2.49999999999999985e38Initial program 99.6%
associate--l-99.6%
+-commutative99.6%
associate--r+99.6%
sub-neg99.6%
distribute-frac-neg99.6%
associate-+r-99.6%
neg-mul-199.6%
associate-*l/99.5%
fma-neg99.5%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.7%
*-commutative93.7%
associate-*l*93.7%
*-commutative93.7%
Simplified93.7%
*-commutative93.7%
associate-*r*93.7%
sqrt-div93.8%
metadata-eval93.8%
associate-/r/93.8%
associate-*l/93.7%
metadata-eval93.7%
Applied egg-rr93.7%
div-inv93.8%
clear-num93.8%
*-commutative93.8%
Applied egg-rr93.8%
if -2.49999999999999985e38 < y < 1.7e54Initial program 99.8%
associate--l-99.8%
+-commutative99.8%
associate--r+99.8%
sub-neg99.8%
distribute-frac-neg99.8%
associate-+r-99.8%
neg-mul-199.8%
associate-*l/99.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-neg-frac99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 99.3%
add-sqr-sqrt0.0%
sqrt-unprod45.4%
pow145.4%
frac-times45.4%
metadata-eval45.4%
metadata-eval45.4%
frac-times45.4%
pow-prod-down45.4%
pow-prod-up45.4%
clear-num45.4%
div-inv45.4%
metadata-eval45.4%
metadata-eval45.4%
pow245.4%
sqrt-unprod45.5%
add-sqr-sqrt45.5%
frac-2neg45.5%
metadata-eval45.5%
div-inv45.5%
distribute-rgt-neg-in45.5%
metadata-eval45.5%
metadata-eval45.5%
div-inv45.5%
clear-num45.5%
Applied egg-rr45.5%
add-sqr-sqrt0.0%
sqrt-unprod79.8%
pow179.8%
frac-times79.8%
metadata-eval79.8%
metadata-eval79.8%
frac-times79.8%
pow-prod-down79.8%
pow-prod-up79.8%
clear-num79.7%
div-inv79.8%
metadata-eval79.8%
metadata-eval79.8%
pow279.8%
sqrt-unprod99.1%
add-sqr-sqrt99.3%
inv-pow99.3%
Applied egg-rr99.3%
if 1.7e54 < y Initial program 99.5%
associate--l-99.5%
+-commutative99.5%
associate--r+99.5%
sub-neg99.5%
distribute-frac-neg99.5%
associate-+r-99.5%
neg-mul-199.5%
associate-*l/99.4%
fma-neg99.4%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.9%
*-commutative93.9%
associate-*l*94.0%
*-commutative94.0%
Simplified94.0%
expm1-log1p-u92.6%
expm1-udef44.9%
inv-pow44.9%
sqrt-pow144.9%
metadata-eval44.9%
Applied egg-rr44.9%
expm1-def92.6%
expm1-log1p94.0%
Simplified94.0%
Final simplification97.0%
(FPCore (x y) :precision binary64 (if (or (<= y -1.82e+40) (not (<= y 3.1e+54))) (+ 1.0 (* y (/ -0.3333333333333333 (sqrt x)))) (+ 1.0 (/ -0.1111111111111111 x))))
double code(double x, double y) {
double tmp;
if ((y <= -1.82e+40) || !(y <= 3.1e+54)) {
tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x)));
} else {
tmp = 1.0 + (-0.1111111111111111 / 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.82d+40)) .or. (.not. (y <= 3.1d+54))) then
tmp = 1.0d0 + (y * ((-0.3333333333333333d0) / sqrt(x)))
else
tmp = 1.0d0 + ((-0.1111111111111111d0) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -1.82e+40) || !(y <= 3.1e+54)) {
tmp = 1.0 + (y * (-0.3333333333333333 / Math.sqrt(x)));
} else {
tmp = 1.0 + (-0.1111111111111111 / x);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.82e+40) or not (y <= 3.1e+54): tmp = 1.0 + (y * (-0.3333333333333333 / math.sqrt(x))) else: tmp = 1.0 + (-0.1111111111111111 / x) return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.82e+40) || !(y <= 3.1e+54)) tmp = Float64(1.0 + Float64(y * Float64(-0.3333333333333333 / sqrt(x)))); else tmp = Float64(1.0 + Float64(-0.1111111111111111 / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -1.82e+40) || ~((y <= 3.1e+54))) tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x))); else tmp = 1.0 + (-0.1111111111111111 / x); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.82e+40], N[Not[LessEqual[y, 3.1e+54]], $MachinePrecision]], N[(1.0 + N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.82 \cdot 10^{+40} \lor \neg \left(y \leq 3.1 \cdot 10^{+54}\right):\\
\;\;\;\;1 + y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\end{array}
\end{array}
if y < -1.82e40 or 3.0999999999999999e54 < y Initial program 99.6%
associate--l-99.6%
+-commutative99.6%
associate--r+99.6%
sub-neg99.6%
distribute-frac-neg99.6%
associate-+r-99.6%
neg-mul-199.6%
associate-*l/99.5%
fma-neg99.5%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.8%
*-commutative93.8%
associate-*l*93.8%
*-commutative93.8%
Simplified93.8%
*-commutative93.8%
associate-*r*93.8%
sqrt-div93.8%
metadata-eval93.8%
associate-/r/93.8%
associate-*l/93.7%
metadata-eval93.7%
Applied egg-rr93.7%
associate-/r/93.8%
Applied egg-rr93.8%
if -1.82e40 < y < 3.0999999999999999e54Initial program 99.8%
associate--l-99.8%
+-commutative99.8%
associate--r+99.8%
sub-neg99.8%
distribute-frac-neg99.8%
associate-+r-99.8%
neg-mul-199.8%
associate-*l/99.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-neg-frac99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 99.3%
Final simplification96.9%
(FPCore (x y)
:precision binary64
(if (<= y -1.2e+40)
(+ 1.0 (* (/ y (sqrt x)) -0.3333333333333333))
(if (<= y 3.2e+54)
(+ 1.0 (/ -0.1111111111111111 x))
(+ 1.0 (* y (/ -0.3333333333333333 (sqrt x)))))))
double code(double x, double y) {
double tmp;
if (y <= -1.2e+40) {
tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333);
} else if (y <= 3.2e+54) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(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.2d+40)) then
tmp = 1.0d0 + ((y / sqrt(x)) * (-0.3333333333333333d0))
else if (y <= 3.2d+54) then
tmp = 1.0d0 + ((-0.1111111111111111d0) / x)
else
tmp = 1.0d0 + (y * ((-0.3333333333333333d0) / sqrt(x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.2e+40) {
tmp = 1.0 + ((y / Math.sqrt(x)) * -0.3333333333333333);
} else if (y <= 3.2e+54) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = 1.0 + (y * (-0.3333333333333333 / Math.sqrt(x)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.2e+40: tmp = 1.0 + ((y / math.sqrt(x)) * -0.3333333333333333) elif y <= 3.2e+54: tmp = 1.0 + (-0.1111111111111111 / x) else: tmp = 1.0 + (y * (-0.3333333333333333 / math.sqrt(x))) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.2e+40) tmp = Float64(1.0 + Float64(Float64(y / sqrt(x)) * -0.3333333333333333)); elseif (y <= 3.2e+54) tmp = Float64(1.0 + Float64(-0.1111111111111111 / x)); else tmp = Float64(1.0 + Float64(y * Float64(-0.3333333333333333 / sqrt(x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.2e+40) tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333); elseif (y <= 3.2e+54) tmp = 1.0 + (-0.1111111111111111 / x); else tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.2e+40], N[(1.0 + N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+54], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+40}:\\
\;\;\;\;1 + \frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+54}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1 + y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -1.2e40Initial program 99.6%
associate--l-99.6%
+-commutative99.6%
associate--r+99.6%
sub-neg99.6%
distribute-frac-neg99.6%
associate-+r-99.6%
neg-mul-199.6%
associate-*l/99.5%
fma-neg99.5%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.7%
*-commutative93.7%
associate-*l*93.7%
*-commutative93.7%
Simplified93.7%
*-commutative93.7%
associate-*r*93.7%
sqrt-div93.8%
metadata-eval93.8%
associate-/r/93.8%
associate-*l/93.7%
metadata-eval93.7%
Applied egg-rr93.7%
div-inv93.8%
clear-num93.8%
*-commutative93.8%
Applied egg-rr93.8%
if -1.2e40 < y < 3.2e54Initial program 99.8%
associate--l-99.8%
+-commutative99.8%
associate--r+99.8%
sub-neg99.8%
distribute-frac-neg99.8%
associate-+r-99.8%
neg-mul-199.8%
associate-*l/99.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-neg-frac99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 99.3%
if 3.2e54 < y Initial program 99.5%
associate--l-99.5%
+-commutative99.5%
associate--r+99.5%
sub-neg99.5%
distribute-frac-neg99.5%
associate-+r-99.5%
neg-mul-199.5%
associate-*l/99.4%
fma-neg99.4%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.9%
*-commutative93.9%
associate-*l*94.0%
*-commutative94.0%
Simplified94.0%
*-commutative94.0%
associate-*r*93.9%
sqrt-div93.9%
metadata-eval93.9%
associate-/r/93.9%
associate-*l/93.8%
metadata-eval93.8%
Applied egg-rr93.8%
associate-/r/93.9%
Applied egg-rr93.9%
Final simplification96.9%
(FPCore (x y)
:precision binary64
(if (<= y -1.96e+39)
(+ 1.0 (* (/ y (sqrt x)) -0.3333333333333333))
(if (<= y 1.22e+54)
(+ 1.0 (/ -0.1111111111111111 x))
(+ 1.0 (/ (* y -0.3333333333333333) (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -1.96e+39) {
tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333);
} else if (y <= 1.22e+54) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = 1.0 + ((y * -0.3333333333333333) / sqrt(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.96d+39)) then
tmp = 1.0d0 + ((y / sqrt(x)) * (-0.3333333333333333d0))
else if (y <= 1.22d+54) then
tmp = 1.0d0 + ((-0.1111111111111111d0) / x)
else
tmp = 1.0d0 + ((y * (-0.3333333333333333d0)) / sqrt(x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.96e+39) {
tmp = 1.0 + ((y / Math.sqrt(x)) * -0.3333333333333333);
} else if (y <= 1.22e+54) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = 1.0 + ((y * -0.3333333333333333) / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.96e+39: tmp = 1.0 + ((y / math.sqrt(x)) * -0.3333333333333333) elif y <= 1.22e+54: tmp = 1.0 + (-0.1111111111111111 / x) else: tmp = 1.0 + ((y * -0.3333333333333333) / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.96e+39) tmp = Float64(1.0 + Float64(Float64(y / sqrt(x)) * -0.3333333333333333)); elseif (y <= 1.22e+54) tmp = Float64(1.0 + Float64(-0.1111111111111111 / x)); else tmp = Float64(1.0 + Float64(Float64(y * -0.3333333333333333) / sqrt(x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.96e+39) tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333); elseif (y <= 1.22e+54) tmp = 1.0 + (-0.1111111111111111 / x); else tmp = 1.0 + ((y * -0.3333333333333333) / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.96e+39], N[(1.0 + N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.22e+54], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(y * -0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.96 \cdot 10^{+39}:\\
\;\;\;\;1 + \frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{+54}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{y \cdot -0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -1.96000000000000001e39Initial program 99.6%
associate--l-99.6%
+-commutative99.6%
associate--r+99.6%
sub-neg99.6%
distribute-frac-neg99.6%
associate-+r-99.6%
neg-mul-199.6%
associate-*l/99.5%
fma-neg99.5%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.7%
*-commutative93.7%
associate-*l*93.7%
*-commutative93.7%
Simplified93.7%
*-commutative93.7%
associate-*r*93.7%
sqrt-div93.8%
metadata-eval93.8%
associate-/r/93.8%
associate-*l/93.7%
metadata-eval93.7%
Applied egg-rr93.7%
div-inv93.8%
clear-num93.8%
*-commutative93.8%
Applied egg-rr93.8%
if -1.96000000000000001e39 < y < 1.22e54Initial program 99.8%
associate--l-99.8%
+-commutative99.8%
associate--r+99.8%
sub-neg99.8%
distribute-frac-neg99.8%
associate-+r-99.8%
neg-mul-199.8%
associate-*l/99.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-neg-frac99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 99.3%
if 1.22e54 < y Initial program 99.5%
associate--l-99.5%
+-commutative99.5%
associate--r+99.5%
sub-neg99.5%
distribute-frac-neg99.5%
associate-+r-99.5%
neg-mul-199.5%
associate-*l/99.4%
fma-neg99.4%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.9%
*-commutative93.9%
associate-*l*94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in y around 0 93.9%
unpow1/293.9%
sqr-pow93.7%
sqr-pow93.9%
unpow-193.9%
exp-to-pow89.4%
*-commutative89.4%
neg-mul-189.4%
exp-prod89.4%
distribute-lft-neg-out89.4%
exp-neg89.4%
exp-to-pow93.9%
unpow1/293.9%
associate-*l/93.9%
*-lft-identity93.9%
associate-*r/94.0%
Simplified94.0%
Final simplification97.0%
(FPCore (x y)
:precision binary64
(if (<= y -7.4e+40)
(+ 1.0 (* (/ y (sqrt x)) -0.3333333333333333))
(if (<= y 1.7e+54)
(- 1.0 (pow (* x 9.0) -1.0))
(+ 1.0 (/ (* y -0.3333333333333333) (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -7.4e+40) {
tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333);
} else if (y <= 1.7e+54) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = 1.0 + ((y * -0.3333333333333333) / sqrt(x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-7.4d+40)) then
tmp = 1.0d0 + ((y / sqrt(x)) * (-0.3333333333333333d0))
else if (y <= 1.7d+54) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = 1.0d0 + ((y * (-0.3333333333333333d0)) / sqrt(x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -7.4e+40) {
tmp = 1.0 + ((y / Math.sqrt(x)) * -0.3333333333333333);
} else if (y <= 1.7e+54) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = 1.0 + ((y * -0.3333333333333333) / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -7.4e+40: tmp = 1.0 + ((y / math.sqrt(x)) * -0.3333333333333333) elif y <= 1.7e+54: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = 1.0 + ((y * -0.3333333333333333) / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -7.4e+40) tmp = Float64(1.0 + Float64(Float64(y / sqrt(x)) * -0.3333333333333333)); elseif (y <= 1.7e+54) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(1.0 + Float64(Float64(y * -0.3333333333333333) / sqrt(x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -7.4e+40) tmp = 1.0 + ((y / sqrt(x)) * -0.3333333333333333); elseif (y <= 1.7e+54) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = 1.0 + ((y * -0.3333333333333333) / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -7.4e+40], N[(1.0 + N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+54], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(y * -0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.4 \cdot 10^{+40}:\\
\;\;\;\;1 + \frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+54}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{y \cdot -0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -7.4e40Initial program 99.6%
associate--l-99.6%
+-commutative99.6%
associate--r+99.6%
sub-neg99.6%
distribute-frac-neg99.6%
associate-+r-99.6%
neg-mul-199.6%
associate-*l/99.5%
fma-neg99.5%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.7%
*-commutative93.7%
associate-*l*93.7%
*-commutative93.7%
Simplified93.7%
*-commutative93.7%
associate-*r*93.7%
sqrt-div93.8%
metadata-eval93.8%
associate-/r/93.8%
associate-*l/93.7%
metadata-eval93.7%
Applied egg-rr93.7%
div-inv93.8%
clear-num93.8%
*-commutative93.8%
Applied egg-rr93.8%
if -7.4e40 < y < 1.7e54Initial program 99.8%
associate--l-99.8%
+-commutative99.8%
associate--r+99.8%
sub-neg99.8%
distribute-frac-neg99.8%
associate-+r-99.8%
neg-mul-199.8%
associate-*l/99.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-neg-frac99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 99.3%
add-sqr-sqrt0.0%
sqrt-unprod45.4%
pow145.4%
frac-times45.4%
metadata-eval45.4%
metadata-eval45.4%
frac-times45.4%
pow-prod-down45.4%
pow-prod-up45.4%
clear-num45.4%
div-inv45.4%
metadata-eval45.4%
metadata-eval45.4%
pow245.4%
sqrt-unprod45.5%
add-sqr-sqrt45.5%
frac-2neg45.5%
metadata-eval45.5%
div-inv45.5%
distribute-rgt-neg-in45.5%
metadata-eval45.5%
metadata-eval45.5%
div-inv45.5%
clear-num45.5%
Applied egg-rr45.5%
add-sqr-sqrt0.0%
sqrt-unprod79.8%
pow179.8%
frac-times79.8%
metadata-eval79.8%
metadata-eval79.8%
frac-times79.8%
pow-prod-down79.8%
pow-prod-up79.8%
clear-num79.7%
div-inv79.8%
metadata-eval79.8%
metadata-eval79.8%
pow279.8%
sqrt-unprod99.1%
add-sqr-sqrt99.3%
inv-pow99.3%
Applied egg-rr99.3%
if 1.7e54 < y Initial program 99.5%
associate--l-99.5%
+-commutative99.5%
associate--r+99.5%
sub-neg99.5%
distribute-frac-neg99.5%
associate-+r-99.5%
neg-mul-199.5%
associate-*l/99.4%
fma-neg99.4%
associate-/r*99.4%
metadata-eval99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf 93.9%
*-commutative93.9%
associate-*l*94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in y around 0 93.9%
unpow1/293.9%
sqr-pow93.7%
sqr-pow93.9%
unpow-193.9%
exp-to-pow89.4%
*-commutative89.4%
neg-mul-189.4%
exp-prod89.4%
distribute-lft-neg-out89.4%
exp-neg89.4%
exp-to-pow93.9%
unpow1/293.9%
associate-*l/93.9%
*-lft-identity93.9%
associate-*r/94.0%
Simplified94.0%
Final simplification97.0%
(FPCore (x y) :precision binary64 (+ (- 1.0 (/ 0.1111111111111111 x)) (* (/ y (sqrt x)) -0.3333333333333333)))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + ((y / sqrt(x)) * -0.3333333333333333);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) + ((y / sqrt(x)) * (-0.3333333333333333d0))
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + ((y / Math.sqrt(x)) * -0.3333333333333333);
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) + ((y / math.sqrt(x)) * -0.3333333333333333)
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) + Float64(Float64(y / sqrt(x)) * -0.3333333333333333)) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) + ((y / sqrt(x)) * -0.3333333333333333); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) + \frac{y}{\sqrt{x}} \cdot -0.3333333333333333
\end{array}
Initial program 99.7%
sub-neg99.7%
distribute-frac-neg99.7%
*-commutative99.7%
associate-/r*99.7%
metadata-eval99.7%
neg-mul-199.7%
times-frac99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 0.1111111111111111 x)) (/ y (* (sqrt x) 3.0))))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) - (y / (sqrt(x) * 3.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) - (y / (sqrt(x) * 3.0d0))
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) - (y / (Math.sqrt(x) * 3.0));
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) - (y / (math.sqrt(x) * 3.0))
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) - Float64(y / Float64(sqrt(x) * 3.0))) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) - (y / (sqrt(x) * 3.0)); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] - N[(y / N[(N[Sqrt[x], $MachinePrecision] * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) - \frac{y}{\sqrt{x} \cdot 3}
\end{array}
Initial program 99.7%
Taylor expanded in x around 0 99.7%
Final simplification99.7%
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 0.1111111111111111 x)) (/ (/ y (sqrt x)) 3.0)))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) - ((y / sqrt(x)) / 3.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) - ((y / sqrt(x)) / 3.0d0)
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) - ((y / Math.sqrt(x)) / 3.0);
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) - ((y / math.sqrt(x)) / 3.0)
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) - Float64(Float64(y / sqrt(x)) / 3.0)) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) - ((y / sqrt(x)) / 3.0); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) - \frac{\frac{y}{\sqrt{x}}}{3}
\end{array}
Initial program 99.7%
*-commutative99.7%
metadata-eval99.7%
sqrt-prod99.3%
pow1/299.3%
Applied egg-rr99.3%
unpow1/299.3%
Simplified99.3%
*-un-lft-identity99.3%
sqrt-prod99.7%
metadata-eval99.7%
times-frac99.7%
pow1/299.7%
pow-flip99.7%
metadata-eval99.7%
Applied egg-rr99.7%
metadata-eval99.7%
sqrt-pow199.7%
inv-pow99.7%
associate-*r/99.7%
sqrt-div99.7%
metadata-eval99.7%
associate-*l/99.7%
*-un-lft-identity99.7%
Applied egg-rr99.7%
Taylor expanded in x around 0 99.7%
Final simplification99.7%
(FPCore (x y) :precision binary64 (+ 1.0 (/ -0.1111111111111111 x)))
double code(double x, double y) {
return 1.0 + (-0.1111111111111111 / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((-0.1111111111111111d0) / x)
end function
public static double code(double x, double y) {
return 1.0 + (-0.1111111111111111 / x);
}
def code(x, y): return 1.0 + (-0.1111111111111111 / x)
function code(x, y) return Float64(1.0 + Float64(-0.1111111111111111 / x)) end
function tmp = code(x, y) tmp = 1.0 + (-0.1111111111111111 / x); end
code[x_, y_] := N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{-0.1111111111111111}{x}
\end{array}
Initial program 99.7%
associate--l-99.7%
+-commutative99.7%
associate--r+99.7%
sub-neg99.7%
distribute-frac-neg99.7%
associate-+r-99.7%
neg-mul-199.7%
associate-*l/99.7%
fma-neg99.7%
associate-/r*99.6%
metadata-eval99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 64.0%
Final simplification64.0%
(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 99.7%
associate--l-99.7%
+-commutative99.7%
associate--r+99.7%
sub-neg99.7%
distribute-frac-neg99.7%
associate-+r-99.7%
neg-mul-199.7%
associate-*l/99.7%
fma-neg99.7%
associate-/r*99.6%
metadata-eval99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 66.7%
*-commutative66.7%
associate-*l*66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in x around inf 31.0%
Final simplification31.0%
(FPCore (x y) :precision binary64 (- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - ((1.0d0 / x) / 9.0d0)) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(Float64(1.0 / x) / 9.0)) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(N[(1.0 / x), $MachinePrecision] / 9.0), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{\frac{1}{x}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
herbie shell --seed 2023333
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"
:precision binary64
:herbie-target
(- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x))))
(- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))