
(FPCore (x eps) :precision binary64 (- x (sqrt (- (* x x) eps))))
double code(double x, double eps) {
return x - sqrt(((x * x) - eps));
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = x - sqrt(((x * x) - eps))
end function
public static double code(double x, double eps) {
return x - Math.sqrt(((x * x) - eps));
}
def code(x, eps): return x - math.sqrt(((x * x) - eps))
function code(x, eps) return Float64(x - sqrt(Float64(Float64(x * x) - eps))) end
function tmp = code(x, eps) tmp = x - sqrt(((x * x) - eps)); end
code[x_, eps_] := N[(x - N[Sqrt[N[(N[(x * x), $MachinePrecision] - eps), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \sqrt{x \cdot x - \varepsilon}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x eps) :precision binary64 (- x (sqrt (- (* x x) eps))))
double code(double x, double eps) {
return x - sqrt(((x * x) - eps));
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = x - sqrt(((x * x) - eps))
end function
public static double code(double x, double eps) {
return x - Math.sqrt(((x * x) - eps));
}
def code(x, eps): return x - math.sqrt(((x * x) - eps))
function code(x, eps) return Float64(x - sqrt(Float64(Float64(x * x) - eps))) end
function tmp = code(x, eps) tmp = x - sqrt(((x * x) - eps)); end
code[x_, eps_] := N[(x - N[Sqrt[N[(N[(x * x), $MachinePrecision] - eps), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \sqrt{x \cdot x - \varepsilon}
\end{array}
(FPCore (x eps)
:precision binary64
(if (<= (- x (sqrt (- (* x x) eps))) -2e-154)
(/ eps (+ x (hypot x (sqrt (- eps)))))
(/
eps
(+
x
(+ x (fma -0.125 (/ (/ (/ eps x) (/ x eps)) x) (* (/ eps x) -0.5)))))))
double code(double x, double eps) {
double tmp;
if ((x - sqrt(((x * x) - eps))) <= -2e-154) {
tmp = eps / (x + hypot(x, sqrt(-eps)));
} else {
tmp = eps / (x + (x + fma(-0.125, (((eps / x) / (x / eps)) / x), ((eps / x) * -0.5))));
}
return tmp;
}
function code(x, eps) tmp = 0.0 if (Float64(x - sqrt(Float64(Float64(x * x) - eps))) <= -2e-154) tmp = Float64(eps / Float64(x + hypot(x, sqrt(Float64(-eps))))); else tmp = Float64(eps / Float64(x + Float64(x + fma(-0.125, Float64(Float64(Float64(eps / x) / Float64(x / eps)) / x), Float64(Float64(eps / x) * -0.5))))); end return tmp end
code[x_, eps_] := If[LessEqual[N[(x - N[Sqrt[N[(N[(x * x), $MachinePrecision] - eps), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], -2e-154], N[(eps / N[(x + N[Sqrt[x ^ 2 + N[Sqrt[(-eps)], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(eps / N[(x + N[(x + N[(-0.125 * N[(N[(N[(eps / x), $MachinePrecision] / N[(x / eps), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(N[(eps / x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x - \sqrt{x \cdot x - \varepsilon} \leq -2 \cdot 10^{-154}:\\
\;\;\;\;\frac{\varepsilon}{x + \mathsf{hypot}\left(x, \sqrt{-\varepsilon}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\varepsilon}{x + \left(x + \mathsf{fma}\left(-0.125, \frac{\frac{\frac{\varepsilon}{x}}{\frac{x}{\varepsilon}}}{x}, \frac{\varepsilon}{x} \cdot -0.5\right)\right)}\\
\end{array}
\end{array}
if (-.f64 x (sqrt.f64 (-.f64 (*.f64 x x) eps))) < -1.9999999999999999e-154Initial program 98.6%
flip--98.5%
div-inv98.2%
add-sqr-sqrt98.1%
associate--r-99.3%
pow299.0%
pow299.3%
sub-neg99.3%
add-sqr-sqrt99.3%
hypot-def99.3%
Applied egg-rr99.3%
+-inverses99.3%
+-lft-identity99.3%
associate-*r/99.3%
associate-/l*99.3%
/-rgt-identity99.3%
Simplified99.3%
if -1.9999999999999999e-154 < (-.f64 x (sqrt.f64 (-.f64 (*.f64 x x) eps))) Initial program 9.3%
flip--9.3%
div-inv9.3%
add-sqr-sqrt9.6%
associate--r-99.6%
pow299.6%
pow299.6%
sub-neg99.6%
add-sqr-sqrt44.9%
hypot-def44.9%
Applied egg-rr44.9%
+-inverses44.9%
+-lft-identity44.9%
associate-*r/45.0%
associate-/l*45.0%
/-rgt-identity45.0%
Simplified45.0%
Taylor expanded in x around inf 0.0%
fma-def0.0%
metadata-eval0.0%
pow-sqr0.0%
unpow20.0%
rem-square-sqrt0.0%
unpow20.0%
rem-square-sqrt0.0%
metadata-eval0.0%
*-rgt-identity0.0%
associate-*r/0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt89.4%
associate-*r*89.4%
metadata-eval89.4%
associate-*r/89.4%
*-commutative89.4%
Simplified89.4%
*-un-lft-identity89.4%
cube-mult89.4%
times-frac99.2%
unpow299.2%
frac-times99.3%
pow299.3%
Applied egg-rr99.3%
associate-*l/99.3%
*-lft-identity99.3%
Simplified99.3%
unpow299.3%
clear-num99.3%
un-div-inv99.3%
Applied egg-rr99.3%
Final simplification99.3%
(FPCore (x eps)
:precision binary64
(let* ((t_0 (- x (sqrt (- (* x x) eps)))))
(if (<= t_0 -2e-154)
t_0
(/
eps
(+
x
(+ x (fma -0.125 (/ (/ (/ eps x) (/ x eps)) x) (* (/ eps x) -0.5))))))))
double code(double x, double eps) {
double t_0 = x - sqrt(((x * x) - eps));
double tmp;
if (t_0 <= -2e-154) {
tmp = t_0;
} else {
tmp = eps / (x + (x + fma(-0.125, (((eps / x) / (x / eps)) / x), ((eps / x) * -0.5))));
}
return tmp;
}
function code(x, eps) t_0 = Float64(x - sqrt(Float64(Float64(x * x) - eps))) tmp = 0.0 if (t_0 <= -2e-154) tmp = t_0; else tmp = Float64(eps / Float64(x + Float64(x + fma(-0.125, Float64(Float64(Float64(eps / x) / Float64(x / eps)) / x), Float64(Float64(eps / x) * -0.5))))); end return tmp end
code[x_, eps_] := Block[{t$95$0 = N[(x - N[Sqrt[N[(N[(x * x), $MachinePrecision] - eps), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-154], t$95$0, N[(eps / N[(x + N[(x + N[(-0.125 * N[(N[(N[(eps / x), $MachinePrecision] / N[(x / eps), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(N[(eps / x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x - \sqrt{x \cdot x - \varepsilon}\\
\mathbf{if}\;t\_0 \leq -2 \cdot 10^{-154}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\varepsilon}{x + \left(x + \mathsf{fma}\left(-0.125, \frac{\frac{\frac{\varepsilon}{x}}{\frac{x}{\varepsilon}}}{x}, \frac{\varepsilon}{x} \cdot -0.5\right)\right)}\\
\end{array}
\end{array}
if (-.f64 x (sqrt.f64 (-.f64 (*.f64 x x) eps))) < -1.9999999999999999e-154Initial program 98.6%
if -1.9999999999999999e-154 < (-.f64 x (sqrt.f64 (-.f64 (*.f64 x x) eps))) Initial program 9.3%
flip--9.3%
div-inv9.3%
add-sqr-sqrt9.6%
associate--r-99.6%
pow299.6%
pow299.6%
sub-neg99.6%
add-sqr-sqrt44.9%
hypot-def44.9%
Applied egg-rr44.9%
+-inverses44.9%
+-lft-identity44.9%
associate-*r/45.0%
associate-/l*45.0%
/-rgt-identity45.0%
Simplified45.0%
Taylor expanded in x around inf 0.0%
fma-def0.0%
metadata-eval0.0%
pow-sqr0.0%
unpow20.0%
rem-square-sqrt0.0%
unpow20.0%
rem-square-sqrt0.0%
metadata-eval0.0%
*-rgt-identity0.0%
associate-*r/0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt89.4%
associate-*r*89.4%
metadata-eval89.4%
associate-*r/89.4%
*-commutative89.4%
Simplified89.4%
*-un-lft-identity89.4%
cube-mult89.4%
times-frac99.2%
unpow299.2%
frac-times99.3%
pow299.3%
Applied egg-rr99.3%
associate-*l/99.3%
*-lft-identity99.3%
Simplified99.3%
unpow299.3%
clear-num99.3%
un-div-inv99.3%
Applied egg-rr99.3%
Final simplification98.9%
(FPCore (x eps) :precision binary64 (let* ((t_0 (- x (sqrt (- (* x x) eps))))) (if (<= t_0 -2e-154) t_0 (/ eps (+ (* x 2.0) (/ (* eps -0.5) x))))))
double code(double x, double eps) {
double t_0 = x - sqrt(((x * x) - eps));
double tmp;
if (t_0 <= -2e-154) {
tmp = t_0;
} else {
tmp = eps / ((x * 2.0) + ((eps * -0.5) / x));
}
return tmp;
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
real(8) :: t_0
real(8) :: tmp
t_0 = x - sqrt(((x * x) - eps))
if (t_0 <= (-2d-154)) then
tmp = t_0
else
tmp = eps / ((x * 2.0d0) + ((eps * (-0.5d0)) / x))
end if
code = tmp
end function
public static double code(double x, double eps) {
double t_0 = x - Math.sqrt(((x * x) - eps));
double tmp;
if (t_0 <= -2e-154) {
tmp = t_0;
} else {
tmp = eps / ((x * 2.0) + ((eps * -0.5) / x));
}
return tmp;
}
def code(x, eps): t_0 = x - math.sqrt(((x * x) - eps)) tmp = 0 if t_0 <= -2e-154: tmp = t_0 else: tmp = eps / ((x * 2.0) + ((eps * -0.5) / x)) return tmp
function code(x, eps) t_0 = Float64(x - sqrt(Float64(Float64(x * x) - eps))) tmp = 0.0 if (t_0 <= -2e-154) tmp = t_0; else tmp = Float64(eps / Float64(Float64(x * 2.0) + Float64(Float64(eps * -0.5) / x))); end return tmp end
function tmp_2 = code(x, eps) t_0 = x - sqrt(((x * x) - eps)); tmp = 0.0; if (t_0 <= -2e-154) tmp = t_0; else tmp = eps / ((x * 2.0) + ((eps * -0.5) / x)); end tmp_2 = tmp; end
code[x_, eps_] := Block[{t$95$0 = N[(x - N[Sqrt[N[(N[(x * x), $MachinePrecision] - eps), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-154], t$95$0, N[(eps / N[(N[(x * 2.0), $MachinePrecision] + N[(N[(eps * -0.5), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x - \sqrt{x \cdot x - \varepsilon}\\
\mathbf{if}\;t\_0 \leq -2 \cdot 10^{-154}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\varepsilon}{x \cdot 2 + \frac{\varepsilon \cdot -0.5}{x}}\\
\end{array}
\end{array}
if (-.f64 x (sqrt.f64 (-.f64 (*.f64 x x) eps))) < -1.9999999999999999e-154Initial program 98.6%
if -1.9999999999999999e-154 < (-.f64 x (sqrt.f64 (-.f64 (*.f64 x x) eps))) Initial program 9.3%
flip--9.3%
div-inv9.3%
add-sqr-sqrt9.6%
associate--r-99.6%
pow299.6%
pow299.6%
sub-neg99.6%
add-sqr-sqrt44.9%
hypot-def44.9%
Applied egg-rr44.9%
+-inverses44.9%
+-lft-identity44.9%
associate-*r/45.0%
associate-/l*45.0%
/-rgt-identity45.0%
Simplified45.0%
Taylor expanded in x around inf 0.0%
+-commutative0.0%
*-commutative0.0%
fma-def0.0%
associate-*r/0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt99.0%
associate-*r*99.0%
metadata-eval99.0%
associate-*r/99.0%
*-commutative99.0%
Simplified99.0%
fma-udef99.0%
associate-*l/99.0%
Applied egg-rr99.0%
Final simplification98.8%
(FPCore (x eps) :precision binary64 (if (or (<= x 1.9e-114) (and (not (<= x 5e-91)) (<= x 9.2e-66))) (- x (sqrt (- eps))) (/ eps (+ (* x 2.0) (/ (* eps -0.5) x)))))
double code(double x, double eps) {
double tmp;
if ((x <= 1.9e-114) || (!(x <= 5e-91) && (x <= 9.2e-66))) {
tmp = x - sqrt(-eps);
} else {
tmp = eps / ((x * 2.0) + ((eps * -0.5) / x));
}
return tmp;
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
real(8) :: tmp
if ((x <= 1.9d-114) .or. (.not. (x <= 5d-91)) .and. (x <= 9.2d-66)) then
tmp = x - sqrt(-eps)
else
tmp = eps / ((x * 2.0d0) + ((eps * (-0.5d0)) / x))
end if
code = tmp
end function
public static double code(double x, double eps) {
double tmp;
if ((x <= 1.9e-114) || (!(x <= 5e-91) && (x <= 9.2e-66))) {
tmp = x - Math.sqrt(-eps);
} else {
tmp = eps / ((x * 2.0) + ((eps * -0.5) / x));
}
return tmp;
}
def code(x, eps): tmp = 0 if (x <= 1.9e-114) or (not (x <= 5e-91) and (x <= 9.2e-66)): tmp = x - math.sqrt(-eps) else: tmp = eps / ((x * 2.0) + ((eps * -0.5) / x)) return tmp
function code(x, eps) tmp = 0.0 if ((x <= 1.9e-114) || (!(x <= 5e-91) && (x <= 9.2e-66))) tmp = Float64(x - sqrt(Float64(-eps))); else tmp = Float64(eps / Float64(Float64(x * 2.0) + Float64(Float64(eps * -0.5) / x))); end return tmp end
function tmp_2 = code(x, eps) tmp = 0.0; if ((x <= 1.9e-114) || (~((x <= 5e-91)) && (x <= 9.2e-66))) tmp = x - sqrt(-eps); else tmp = eps / ((x * 2.0) + ((eps * -0.5) / x)); end tmp_2 = tmp; end
code[x_, eps_] := If[Or[LessEqual[x, 1.9e-114], And[N[Not[LessEqual[x, 5e-91]], $MachinePrecision], LessEqual[x, 9.2e-66]]], N[(x - N[Sqrt[(-eps)], $MachinePrecision]), $MachinePrecision], N[(eps / N[(N[(x * 2.0), $MachinePrecision] + N[(N[(eps * -0.5), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.9 \cdot 10^{-114} \lor \neg \left(x \leq 5 \cdot 10^{-91}\right) \land x \leq 9.2 \cdot 10^{-66}:\\
\;\;\;\;x - \sqrt{-\varepsilon}\\
\mathbf{else}:\\
\;\;\;\;\frac{\varepsilon}{x \cdot 2 + \frac{\varepsilon \cdot -0.5}{x}}\\
\end{array}
\end{array}
if x < 1.8999999999999999e-114 or 4.99999999999999997e-91 < x < 9.19999999999999967e-66Initial program 91.9%
Taylor expanded in x around 0 86.8%
neg-mul-186.8%
Simplified86.8%
if 1.8999999999999999e-114 < x < 4.99999999999999997e-91 or 9.19999999999999967e-66 < x Initial program 21.3%
flip--21.4%
div-inv21.3%
add-sqr-sqrt21.6%
associate--r-99.6%
pow299.6%
pow299.6%
sub-neg99.6%
add-sqr-sqrt52.3%
hypot-def52.3%
Applied egg-rr52.3%
+-inverses52.3%
+-lft-identity52.3%
associate-*r/52.5%
associate-/l*52.5%
/-rgt-identity52.5%
Simplified52.5%
Taylor expanded in x around inf 0.0%
+-commutative0.0%
*-commutative0.0%
fma-def0.0%
associate-*r/0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt87.2%
associate-*r*87.2%
metadata-eval87.2%
associate-*r/87.2%
*-commutative87.2%
Simplified87.2%
fma-udef87.2%
associate-*l/87.2%
Applied egg-rr87.2%
Final simplification87.0%
(FPCore (x eps) :precision binary64 (/ eps (+ (* x 2.0) (/ (* eps -0.5) x))))
double code(double x, double eps) {
return eps / ((x * 2.0) + ((eps * -0.5) / x));
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = eps / ((x * 2.0d0) + ((eps * (-0.5d0)) / x))
end function
public static double code(double x, double eps) {
return eps / ((x * 2.0) + ((eps * -0.5) / x));
}
def code(x, eps): return eps / ((x * 2.0) + ((eps * -0.5) / x))
function code(x, eps) return Float64(eps / Float64(Float64(x * 2.0) + Float64(Float64(eps * -0.5) / x))) end
function tmp = code(x, eps) tmp = eps / ((x * 2.0) + ((eps * -0.5) / x)); end
code[x_, eps_] := N[(eps / N[(N[(x * 2.0), $MachinePrecision] + N[(N[(eps * -0.5), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\varepsilon}{x \cdot 2 + \frac{\varepsilon \cdot -0.5}{x}}
\end{array}
Initial program 59.9%
flip--59.8%
div-inv59.7%
add-sqr-sqrt59.7%
associate--r-99.4%
pow299.3%
pow299.4%
sub-neg99.4%
add-sqr-sqrt75.7%
hypot-def75.7%
Applied egg-rr75.7%
+-inverses75.7%
+-lft-identity75.7%
associate-*r/75.8%
associate-/l*75.8%
/-rgt-identity75.8%
Simplified75.8%
Taylor expanded in x around inf 0.0%
+-commutative0.0%
*-commutative0.0%
fma-def0.0%
associate-*r/0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt48.0%
associate-*r*48.0%
metadata-eval48.0%
associate-*r/48.0%
*-commutative48.0%
Simplified48.0%
fma-udef48.0%
associate-*l/48.0%
Applied egg-rr48.0%
Final simplification48.0%
(FPCore (x eps) :precision binary64 (* (/ eps x) 0.5))
double code(double x, double eps) {
return (eps / x) * 0.5;
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = (eps / x) * 0.5d0
end function
public static double code(double x, double eps) {
return (eps / x) * 0.5;
}
def code(x, eps): return (eps / x) * 0.5
function code(x, eps) return Float64(Float64(eps / x) * 0.5) end
function tmp = code(x, eps) tmp = (eps / x) * 0.5; end
code[x_, eps_] := N[(N[(eps / x), $MachinePrecision] * 0.5), $MachinePrecision]
\begin{array}{l}
\\
\frac{\varepsilon}{x} \cdot 0.5
\end{array}
Initial program 59.9%
Taylor expanded in x around inf 47.0%
Final simplification47.0%
(FPCore (x eps) :precision binary64 (* x -2.0))
double code(double x, double eps) {
return x * -2.0;
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = x * (-2.0d0)
end function
public static double code(double x, double eps) {
return x * -2.0;
}
def code(x, eps): return x * -2.0
function code(x, eps) return Float64(x * -2.0) end
function tmp = code(x, eps) tmp = x * -2.0; end
code[x_, eps_] := N[(x * -2.0), $MachinePrecision]
\begin{array}{l}
\\
x \cdot -2
\end{array}
Initial program 59.9%
flip--59.8%
div-inv59.7%
add-sqr-sqrt59.7%
associate--r-99.4%
pow299.3%
pow299.4%
sub-neg99.4%
add-sqr-sqrt75.7%
hypot-def75.7%
Applied egg-rr75.7%
+-inverses75.7%
+-lft-identity75.7%
associate-*r/75.8%
associate-/l*75.8%
/-rgt-identity75.8%
Simplified75.8%
Taylor expanded in x around inf 0.0%
+-commutative0.0%
*-commutative0.0%
fma-def0.0%
associate-*r/0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt48.0%
associate-*r*48.0%
metadata-eval48.0%
associate-*r/48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in eps around inf 5.6%
*-commutative5.6%
Simplified5.6%
Final simplification5.6%
(FPCore (x eps) :precision binary64 (/ eps (+ x (sqrt (- (* x x) eps)))))
double code(double x, double eps) {
return eps / (x + sqrt(((x * x) - eps)));
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = eps / (x + sqrt(((x * x) - eps)))
end function
public static double code(double x, double eps) {
return eps / (x + Math.sqrt(((x * x) - eps)));
}
def code(x, eps): return eps / (x + math.sqrt(((x * x) - eps)))
function code(x, eps) return Float64(eps / Float64(x + sqrt(Float64(Float64(x * x) - eps)))) end
function tmp = code(x, eps) tmp = eps / (x + sqrt(((x * x) - eps))); end
code[x_, eps_] := N[(eps / N[(x + N[Sqrt[N[(N[(x * x), $MachinePrecision] - eps), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\varepsilon}{x + \sqrt{x \cdot x - \varepsilon}}
\end{array}
herbie shell --seed 2024031
(FPCore (x eps)
:name "ENA, Section 1.4, Exercise 4d"
:precision binary64
:pre (and (and (<= 0.0 x) (<= x 1000000000.0)) (and (<= -1.0 eps) (<= eps 1.0)))
:herbie-target
(/ eps (+ x (sqrt (- (* x x) eps))))
(- x (sqrt (- (* x x) eps))))