
(FPCore (x) :precision binary64 (log (+ x (sqrt (+ (* x x) 1.0)))))
double code(double x) {
return log((x + sqrt(((x * x) + 1.0))));
}
real(8) function code(x)
real(8), intent (in) :: x
code = log((x + sqrt(((x * x) + 1.0d0))))
end function
public static double code(double x) {
return Math.log((x + Math.sqrt(((x * x) + 1.0))));
}
def code(x): return math.log((x + math.sqrt(((x * x) + 1.0))))
function code(x) return log(Float64(x + sqrt(Float64(Float64(x * x) + 1.0)))) end
function tmp = code(x) tmp = log((x + sqrt(((x * x) + 1.0)))); end
code[x_] := N[Log[N[(x + N[Sqrt[N[(N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\log \left(x + \sqrt{x \cdot x + 1}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x) :precision binary64 (log (+ x (sqrt (+ (* x x) 1.0)))))
double code(double x) {
return log((x + sqrt(((x * x) + 1.0))));
}
real(8) function code(x)
real(8), intent (in) :: x
code = log((x + sqrt(((x * x) + 1.0d0))))
end function
public static double code(double x) {
return Math.log((x + Math.sqrt(((x * x) + 1.0))));
}
def code(x): return math.log((x + math.sqrt(((x * x) + 1.0))))
function code(x) return log(Float64(x + sqrt(Float64(Float64(x * x) + 1.0)))) end
function tmp = code(x) tmp = log((x + sqrt(((x * x) + 1.0)))); end
code[x_] := N[Log[N[(x + N[Sqrt[N[(N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\log \left(x + \sqrt{x \cdot x + 1}\right)
\end{array}
(FPCore (x)
:precision binary64
(if (<= x -0.0065)
(- (log (- (hypot 1.0 x) x)))
(if (<= x 1.3)
(* x (+ 1.0 (* (pow x 2.0) (fma (* x 0.075) x -0.16666666666666666))))
(log (* x 2.0)))))
double code(double x) {
double tmp;
if (x <= -0.0065) {
tmp = -log((hypot(1.0, x) - x));
} else if (x <= 1.3) {
tmp = x * (1.0 + (pow(x, 2.0) * fma((x * 0.075), x, -0.16666666666666666)));
} else {
tmp = log((x * 2.0));
}
return tmp;
}
function code(x) tmp = 0.0 if (x <= -0.0065) tmp = Float64(-log(Float64(hypot(1.0, x) - x))); elseif (x <= 1.3) tmp = Float64(x * Float64(1.0 + Float64((x ^ 2.0) * fma(Float64(x * 0.075), x, -0.16666666666666666)))); else tmp = log(Float64(x * 2.0)); end return tmp end
code[x_] := If[LessEqual[x, -0.0065], (-N[Log[N[(N[Sqrt[1.0 ^ 2 + x ^ 2], $MachinePrecision] - x), $MachinePrecision]], $MachinePrecision]), If[LessEqual[x, 1.3], N[(x * N[(1.0 + N[(N[Power[x, 2.0], $MachinePrecision] * N[(N[(x * 0.075), $MachinePrecision] * x + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Log[N[(x * 2.0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0065:\\
\;\;\;\;-\log \left(\mathsf{hypot}\left(1, x\right) - x\right)\\
\mathbf{elif}\;x \leq 1.3:\\
\;\;\;\;x \cdot \left(1 + {x}^{2} \cdot \mathsf{fma}\left(x \cdot 0.075, x, -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\log \left(x \cdot 2\right)\\
\end{array}
\end{array}
if x < -0.0064999999999999997Initial program 3.9%
sqr-neg3.9%
+-commutative3.9%
sqr-neg3.9%
hypot-1-def5.2%
Simplified5.2%
flip-+4.0%
clear-num4.0%
log-div2.5%
metadata-eval2.5%
pow22.5%
hypot-1-def2.9%
hypot-1-def2.5%
add-sqr-sqrt2.9%
+-commutative2.9%
fma-define2.9%
Applied egg-rr2.9%
neg-sub02.9%
div-sub2.9%
fma-undefine2.9%
unpow22.9%
associate--r+2.9%
+-inverses2.9%
metadata-eval2.9%
*-rgt-identity2.9%
associate-/l*2.9%
metadata-eval2.9%
fma-undefine2.9%
unpow22.9%
associate--r+50.7%
+-inverses100.0%
metadata-eval100.0%
*-rgt-identity100.0%
associate-/l*100.0%
metadata-eval100.0%
*-commutative100.0%
neg-mul-1100.0%
Simplified100.0%
if -0.0064999999999999997 < x < 1.30000000000000004Initial program 6.5%
sqr-neg6.5%
+-commutative6.5%
sqr-neg6.5%
hypot-1-def6.5%
Simplified6.5%
Taylor expanded in x around 0 100.0%
unpow2100.0%
associate-*r*100.0%
fma-neg100.0%
metadata-eval100.0%
Applied egg-rr100.0%
if 1.30000000000000004 < x Initial program 57.7%
sqr-neg57.7%
+-commutative57.7%
sqr-neg57.7%
hypot-1-def100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x) :precision binary64 (if (<= x -7e-6) (log (/ 1.0 (- (hypot 1.0 x) x))) (if (<= x 1.25) x (log (* x 2.0)))))
double code(double x) {
double tmp;
if (x <= -7e-6) {
tmp = log((1.0 / (hypot(1.0, x) - x)));
} else if (x <= 1.25) {
tmp = x;
} else {
tmp = log((x * 2.0));
}
return tmp;
}
public static double code(double x) {
double tmp;
if (x <= -7e-6) {
tmp = Math.log((1.0 / (Math.hypot(1.0, x) - x)));
} else if (x <= 1.25) {
tmp = x;
} else {
tmp = Math.log((x * 2.0));
}
return tmp;
}
def code(x): tmp = 0 if x <= -7e-6: tmp = math.log((1.0 / (math.hypot(1.0, x) - x))) elif x <= 1.25: tmp = x else: tmp = math.log((x * 2.0)) return tmp
function code(x) tmp = 0.0 if (x <= -7e-6) tmp = log(Float64(1.0 / Float64(hypot(1.0, x) - x))); elseif (x <= 1.25) tmp = x; else tmp = log(Float64(x * 2.0)); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= -7e-6) tmp = log((1.0 / (hypot(1.0, x) - x))); elseif (x <= 1.25) tmp = x; else tmp = log((x * 2.0)); end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, -7e-6], N[Log[N[(1.0 / N[(N[Sqrt[1.0 ^ 2 + x ^ 2], $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 1.25], x, N[Log[N[(x * 2.0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-6}:\\
\;\;\;\;\log \left(\frac{1}{\mathsf{hypot}\left(1, x\right) - x}\right)\\
\mathbf{elif}\;x \leq 1.25:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\log \left(x \cdot 2\right)\\
\end{array}
\end{array}
if x < -6.99999999999999989e-6Initial program 5.1%
sqr-neg5.1%
+-commutative5.1%
sqr-neg5.1%
hypot-1-def6.4%
Simplified6.4%
flip-+5.2%
div-sub4.9%
pow24.9%
hypot-1-def4.9%
hypot-1-def4.8%
add-sqr-sqrt4.9%
+-commutative4.9%
fma-define4.9%
Applied egg-rr4.9%
div-sub5.6%
fma-undefine5.6%
unpow25.6%
associate--r+51.3%
+-inverses99.9%
metadata-eval99.9%
metadata-eval99.9%
associate-/r*99.9%
neg-mul-199.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
sub-neg99.9%
Simplified99.9%
if -6.99999999999999989e-6 < x < 1.25Initial program 5.9%
sqr-neg5.9%
+-commutative5.9%
sqr-neg5.9%
hypot-1-def5.9%
Simplified5.9%
Taylor expanded in x around 0 100.0%
if 1.25 < x Initial program 57.7%
sqr-neg57.7%
+-commutative57.7%
sqr-neg57.7%
hypot-1-def100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x) :precision binary64 (if (<= x -7e-6) (- (log (- (hypot 1.0 x) x))) (if (<= x 1.25) x (log (* x 2.0)))))
double code(double x) {
double tmp;
if (x <= -7e-6) {
tmp = -log((hypot(1.0, x) - x));
} else if (x <= 1.25) {
tmp = x;
} else {
tmp = log((x * 2.0));
}
return tmp;
}
public static double code(double x) {
double tmp;
if (x <= -7e-6) {
tmp = -Math.log((Math.hypot(1.0, x) - x));
} else if (x <= 1.25) {
tmp = x;
} else {
tmp = Math.log((x * 2.0));
}
return tmp;
}
def code(x): tmp = 0 if x <= -7e-6: tmp = -math.log((math.hypot(1.0, x) - x)) elif x <= 1.25: tmp = x else: tmp = math.log((x * 2.0)) return tmp
function code(x) tmp = 0.0 if (x <= -7e-6) tmp = Float64(-log(Float64(hypot(1.0, x) - x))); elseif (x <= 1.25) tmp = x; else tmp = log(Float64(x * 2.0)); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= -7e-6) tmp = -log((hypot(1.0, x) - x)); elseif (x <= 1.25) tmp = x; else tmp = log((x * 2.0)); end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, -7e-6], (-N[Log[N[(N[Sqrt[1.0 ^ 2 + x ^ 2], $MachinePrecision] - x), $MachinePrecision]], $MachinePrecision]), If[LessEqual[x, 1.25], x, N[Log[N[(x * 2.0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-6}:\\
\;\;\;\;-\log \left(\mathsf{hypot}\left(1, x\right) - x\right)\\
\mathbf{elif}\;x \leq 1.25:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\log \left(x \cdot 2\right)\\
\end{array}
\end{array}
if x < -6.99999999999999989e-6Initial program 5.1%
sqr-neg5.1%
+-commutative5.1%
sqr-neg5.1%
hypot-1-def6.4%
Simplified6.4%
flip-+5.2%
clear-num5.2%
log-div3.7%
metadata-eval3.7%
pow23.7%
hypot-1-def4.1%
hypot-1-def3.7%
add-sqr-sqrt4.1%
+-commutative4.1%
fma-define4.1%
Applied egg-rr4.1%
neg-sub04.1%
div-sub4.1%
fma-undefine4.1%
unpow24.1%
associate--r+4.1%
+-inverses4.1%
metadata-eval4.1%
*-rgt-identity4.1%
associate-/l*4.1%
metadata-eval4.1%
fma-undefine4.1%
unpow24.1%
associate--r+51.3%
+-inverses99.8%
metadata-eval99.8%
*-rgt-identity99.8%
associate-/l*99.8%
metadata-eval99.8%
*-commutative99.8%
neg-mul-199.8%
Simplified99.8%
if -6.99999999999999989e-6 < x < 1.25Initial program 5.9%
sqr-neg5.9%
+-commutative5.9%
sqr-neg5.9%
hypot-1-def5.9%
Simplified5.9%
Taylor expanded in x around 0 100.0%
if 1.25 < x Initial program 57.7%
sqr-neg57.7%
+-commutative57.7%
sqr-neg57.7%
hypot-1-def100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x)
:precision binary64
(if (<= x -1.28)
(log (/ -0.5 x))
(if (<= x 1.25)
(+ x (* -0.16666666666666666 (pow x 3.0)))
(log (* x 2.0)))))
double code(double x) {
double tmp;
if (x <= -1.28) {
tmp = log((-0.5 / x));
} else if (x <= 1.25) {
tmp = x + (-0.16666666666666666 * pow(x, 3.0));
} else {
tmp = log((x * 2.0));
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= (-1.28d0)) then
tmp = log(((-0.5d0) / x))
else if (x <= 1.25d0) then
tmp = x + ((-0.16666666666666666d0) * (x ** 3.0d0))
else
tmp = log((x * 2.0d0))
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (x <= -1.28) {
tmp = Math.log((-0.5 / x));
} else if (x <= 1.25) {
tmp = x + (-0.16666666666666666 * Math.pow(x, 3.0));
} else {
tmp = Math.log((x * 2.0));
}
return tmp;
}
def code(x): tmp = 0 if x <= -1.28: tmp = math.log((-0.5 / x)) elif x <= 1.25: tmp = x + (-0.16666666666666666 * math.pow(x, 3.0)) else: tmp = math.log((x * 2.0)) return tmp
function code(x) tmp = 0.0 if (x <= -1.28) tmp = log(Float64(-0.5 / x)); elseif (x <= 1.25) tmp = Float64(x + Float64(-0.16666666666666666 * (x ^ 3.0))); else tmp = log(Float64(x * 2.0)); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= -1.28) tmp = log((-0.5 / x)); elseif (x <= 1.25) tmp = x + (-0.16666666666666666 * (x ^ 3.0)); else tmp = log((x * 2.0)); end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, -1.28], N[Log[N[(-0.5 / x), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 1.25], N[(x + N[(-0.16666666666666666 * N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Log[N[(x * 2.0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.28:\\
\;\;\;\;\log \left(\frac{-0.5}{x}\right)\\
\mathbf{elif}\;x \leq 1.25:\\
\;\;\;\;x + -0.16666666666666666 \cdot {x}^{3}\\
\mathbf{else}:\\
\;\;\;\;\log \left(x \cdot 2\right)\\
\end{array}
\end{array}
if x < -1.28000000000000003Initial program 3.9%
sqr-neg3.9%
+-commutative3.9%
sqr-neg3.9%
hypot-1-def5.2%
Simplified5.2%
Taylor expanded in x around -inf 98.9%
if -1.28000000000000003 < x < 1.25Initial program 6.5%
sqr-neg6.5%
+-commutative6.5%
sqr-neg6.5%
hypot-1-def6.5%
Simplified6.5%
Taylor expanded in x around 0 99.8%
distribute-rgt-in99.8%
*-lft-identity99.8%
associate-*l*99.8%
unpow299.8%
unpow399.8%
Simplified99.8%
if 1.25 < x Initial program 57.7%
sqr-neg57.7%
+-commutative57.7%
sqr-neg57.7%
hypot-1-def100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification99.6%
(FPCore (x) :precision binary64 (if (<= x -1.25) (log (/ -0.5 x)) (if (<= x 1.25) x (log (* x 2.0)))))
double code(double x) {
double tmp;
if (x <= -1.25) {
tmp = log((-0.5 / x));
} else if (x <= 1.25) {
tmp = x;
} else {
tmp = log((x * 2.0));
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= (-1.25d0)) then
tmp = log(((-0.5d0) / x))
else if (x <= 1.25d0) then
tmp = x
else
tmp = log((x * 2.0d0))
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (x <= -1.25) {
tmp = Math.log((-0.5 / x));
} else if (x <= 1.25) {
tmp = x;
} else {
tmp = Math.log((x * 2.0));
}
return tmp;
}
def code(x): tmp = 0 if x <= -1.25: tmp = math.log((-0.5 / x)) elif x <= 1.25: tmp = x else: tmp = math.log((x * 2.0)) return tmp
function code(x) tmp = 0.0 if (x <= -1.25) tmp = log(Float64(-0.5 / x)); elseif (x <= 1.25) tmp = x; else tmp = log(Float64(x * 2.0)); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= -1.25) tmp = log((-0.5 / x)); elseif (x <= 1.25) tmp = x; else tmp = log((x * 2.0)); end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, -1.25], N[Log[N[(-0.5 / x), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 1.25], x, N[Log[N[(x * 2.0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25:\\
\;\;\;\;\log \left(\frac{-0.5}{x}\right)\\
\mathbf{elif}\;x \leq 1.25:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\log \left(x \cdot 2\right)\\
\end{array}
\end{array}
if x < -1.25Initial program 3.9%
sqr-neg3.9%
+-commutative3.9%
sqr-neg3.9%
hypot-1-def5.2%
Simplified5.2%
Taylor expanded in x around -inf 98.9%
if -1.25 < x < 1.25Initial program 6.5%
sqr-neg6.5%
+-commutative6.5%
sqr-neg6.5%
hypot-1-def6.5%
Simplified6.5%
Taylor expanded in x around 0 99.6%
if 1.25 < x Initial program 57.7%
sqr-neg57.7%
+-commutative57.7%
sqr-neg57.7%
hypot-1-def100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification99.5%
(FPCore (x) :precision binary64 (if (<= x 1.25) x (log (* x 2.0))))
double code(double x) {
double tmp;
if (x <= 1.25) {
tmp = x;
} else {
tmp = log((x * 2.0));
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 1.25d0) then
tmp = x
else
tmp = log((x * 2.0d0))
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (x <= 1.25) {
tmp = x;
} else {
tmp = Math.log((x * 2.0));
}
return tmp;
}
def code(x): tmp = 0 if x <= 1.25: tmp = x else: tmp = math.log((x * 2.0)) return tmp
function code(x) tmp = 0.0 if (x <= 1.25) tmp = x; else tmp = log(Float64(x * 2.0)); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= 1.25) tmp = x; else tmp = log((x * 2.0)); end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, 1.25], x, N[Log[N[(x * 2.0), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.25:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\log \left(x \cdot 2\right)\\
\end{array}
\end{array}
if x < 1.25Initial program 5.6%
sqr-neg5.6%
+-commutative5.6%
sqr-neg5.6%
hypot-1-def6.1%
Simplified6.1%
Taylor expanded in x around 0 67.3%
if 1.25 < x Initial program 57.7%
sqr-neg57.7%
+-commutative57.7%
sqr-neg57.7%
hypot-1-def100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification74.3%
(FPCore (x) :precision binary64 x)
double code(double x) {
return x;
}
real(8) function code(x)
real(8), intent (in) :: x
code = x
end function
public static double code(double x) {
return x;
}
def code(x): return x
function code(x) return x end
function tmp = code(x) tmp = x; end
code[x_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 16.8%
sqr-neg16.8%
+-commutative16.8%
sqr-neg16.8%
hypot-1-def26.2%
Simplified26.2%
Taylor expanded in x around 0 54.0%
Final simplification54.0%
(FPCore (x) :precision binary64 (let* ((t_0 (sqrt (+ (* x x) 1.0)))) (if (< x 0.0) (log (/ -1.0 (- x t_0))) (log (+ x t_0)))))
double code(double x) {
double t_0 = sqrt(((x * x) + 1.0));
double tmp;
if (x < 0.0) {
tmp = log((-1.0 / (x - t_0)));
} else {
tmp = log((x + t_0));
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = sqrt(((x * x) + 1.0d0))
if (x < 0.0d0) then
tmp = log(((-1.0d0) / (x - t_0)))
else
tmp = log((x + t_0))
end if
code = tmp
end function
public static double code(double x) {
double t_0 = Math.sqrt(((x * x) + 1.0));
double tmp;
if (x < 0.0) {
tmp = Math.log((-1.0 / (x - t_0)));
} else {
tmp = Math.log((x + t_0));
}
return tmp;
}
def code(x): t_0 = math.sqrt(((x * x) + 1.0)) tmp = 0 if x < 0.0: tmp = math.log((-1.0 / (x - t_0))) else: tmp = math.log((x + t_0)) return tmp
function code(x) t_0 = sqrt(Float64(Float64(x * x) + 1.0)) tmp = 0.0 if (x < 0.0) tmp = log(Float64(-1.0 / Float64(x - t_0))); else tmp = log(Float64(x + t_0)); end return tmp end
function tmp_2 = code(x) t_0 = sqrt(((x * x) + 1.0)); tmp = 0.0; if (x < 0.0) tmp = log((-1.0 / (x - t_0))); else tmp = log((x + t_0)); end tmp_2 = tmp; end
code[x_] := Block[{t$95$0 = N[Sqrt[N[(N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]], $MachinePrecision]}, If[Less[x, 0.0], N[Log[N[(-1.0 / N[(x - t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Log[N[(x + t$95$0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt{x \cdot x + 1}\\
\mathbf{if}\;x < 0:\\
\;\;\;\;\log \left(\frac{-1}{x - t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\log \left(x + t\_0\right)\\
\end{array}
\end{array}
herbie shell --seed 2024067
(FPCore (x)
:name "Hyperbolic arcsine"
:precision binary64
:alt
(if (< x 0.0) (log (/ -1.0 (- x (sqrt (+ (* x x) 1.0))))) (log (+ x (sqrt (+ (* x x) 1.0)))))
(log (+ x (sqrt (+ (* x x) 1.0)))))