
(FPCore (x) :precision binary64 (+ (- (exp x) 2.0) (exp (- x))))
double code(double x) {
return (exp(x) - 2.0) + exp(-x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = (exp(x) - 2.0d0) + exp(-x)
end function
public static double code(double x) {
return (Math.exp(x) - 2.0) + Math.exp(-x);
}
def code(x): return (math.exp(x) - 2.0) + math.exp(-x)
function code(x) return Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) end
function tmp = code(x) tmp = (exp(x) - 2.0) + exp(-x); end
code[x_] := N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(e^{x} - 2\right) + e^{-x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x) :precision binary64 (+ (- (exp x) 2.0) (exp (- x))))
double code(double x) {
return (exp(x) - 2.0) + exp(-x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = (exp(x) - 2.0d0) + exp(-x)
end function
public static double code(double x) {
return (Math.exp(x) - 2.0) + Math.exp(-x);
}
def code(x): return (math.exp(x) - 2.0) + math.exp(-x)
function code(x) return Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) end
function tmp = code(x) tmp = (exp(x) - 2.0) + exp(-x); end
code[x_] := N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(e^{x} - 2\right) + e^{-x}
\end{array}
(FPCore (x)
:precision binary64
(let* ((t_0 (+ (- (exp x) 2.0) (exp (- x)))))
(if (<= t_0 0.005)
(+
(* 4.96031746031746e-5 (pow x 8.0))
(+
(* 0.002777777777777778 (pow x 6.0))
(+ (* 0.08333333333333333 (pow x 4.0)) (* x x))))
t_0)))
double code(double x) {
double t_0 = (exp(x) - 2.0) + exp(-x);
double tmp;
if (t_0 <= 0.005) {
tmp = (4.96031746031746e-5 * pow(x, 8.0)) + ((0.002777777777777778 * pow(x, 6.0)) + ((0.08333333333333333 * pow(x, 4.0)) + (x * x)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = (exp(x) - 2.0d0) + exp(-x)
if (t_0 <= 0.005d0) then
tmp = (4.96031746031746d-5 * (x ** 8.0d0)) + ((0.002777777777777778d0 * (x ** 6.0d0)) + ((0.08333333333333333d0 * (x ** 4.0d0)) + (x * x)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x) {
double t_0 = (Math.exp(x) - 2.0) + Math.exp(-x);
double tmp;
if (t_0 <= 0.005) {
tmp = (4.96031746031746e-5 * Math.pow(x, 8.0)) + ((0.002777777777777778 * Math.pow(x, 6.0)) + ((0.08333333333333333 * Math.pow(x, 4.0)) + (x * x)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x): t_0 = (math.exp(x) - 2.0) + math.exp(-x) tmp = 0 if t_0 <= 0.005: tmp = (4.96031746031746e-5 * math.pow(x, 8.0)) + ((0.002777777777777778 * math.pow(x, 6.0)) + ((0.08333333333333333 * math.pow(x, 4.0)) + (x * x))) else: tmp = t_0 return tmp
function code(x) t_0 = Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) tmp = 0.0 if (t_0 <= 0.005) tmp = Float64(Float64(4.96031746031746e-5 * (x ^ 8.0)) + Float64(Float64(0.002777777777777778 * (x ^ 6.0)) + Float64(Float64(0.08333333333333333 * (x ^ 4.0)) + Float64(x * x)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x) t_0 = (exp(x) - 2.0) + exp(-x); tmp = 0.0; if (t_0 <= 0.005) tmp = (4.96031746031746e-5 * (x ^ 8.0)) + ((0.002777777777777778 * (x ^ 6.0)) + ((0.08333333333333333 * (x ^ 4.0)) + (x * x))); else tmp = t_0; end tmp_2 = tmp; end
code[x_] := Block[{t$95$0 = N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 0.005], N[(N[(4.96031746031746e-5 * N[Power[x, 8.0], $MachinePrecision]), $MachinePrecision] + N[(N[(0.002777777777777778 * N[Power[x, 6.0], $MachinePrecision]), $MachinePrecision] + N[(N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision] + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 0.005:\\
\;\;\;\;4.96031746031746 \cdot 10^{-5} \cdot {x}^{8} + \left(0.002777777777777778 \cdot {x}^{6} + \left(0.08333333333333333 \cdot {x}^{4} + x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 0.0050000000000000001Initial program 47.2%
Taylor expanded in x around 0 100.0%
unpow2100.0%
Applied egg-rr100.0%
if 0.0050000000000000001 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.9%
Final simplification100.0%
(FPCore (x)
:precision binary64
(let* ((t_0 (+ (- (exp x) 2.0) (exp (- x)))))
(if (<= t_0 4e-5)
(+
(* 0.002777777777777778 (pow x 6.0))
(+ (* 0.08333333333333333 (pow x 4.0)) (* x x)))
t_0)))
double code(double x) {
double t_0 = (exp(x) - 2.0) + exp(-x);
double tmp;
if (t_0 <= 4e-5) {
tmp = (0.002777777777777778 * pow(x, 6.0)) + ((0.08333333333333333 * pow(x, 4.0)) + (x * x));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = (exp(x) - 2.0d0) + exp(-x)
if (t_0 <= 4d-5) then
tmp = (0.002777777777777778d0 * (x ** 6.0d0)) + ((0.08333333333333333d0 * (x ** 4.0d0)) + (x * x))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x) {
double t_0 = (Math.exp(x) - 2.0) + Math.exp(-x);
double tmp;
if (t_0 <= 4e-5) {
tmp = (0.002777777777777778 * Math.pow(x, 6.0)) + ((0.08333333333333333 * Math.pow(x, 4.0)) + (x * x));
} else {
tmp = t_0;
}
return tmp;
}
def code(x): t_0 = (math.exp(x) - 2.0) + math.exp(-x) tmp = 0 if t_0 <= 4e-5: tmp = (0.002777777777777778 * math.pow(x, 6.0)) + ((0.08333333333333333 * math.pow(x, 4.0)) + (x * x)) else: tmp = t_0 return tmp
function code(x) t_0 = Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) tmp = 0.0 if (t_0 <= 4e-5) tmp = Float64(Float64(0.002777777777777778 * (x ^ 6.0)) + Float64(Float64(0.08333333333333333 * (x ^ 4.0)) + Float64(x * x))); else tmp = t_0; end return tmp end
function tmp_2 = code(x) t_0 = (exp(x) - 2.0) + exp(-x); tmp = 0.0; if (t_0 <= 4e-5) tmp = (0.002777777777777778 * (x ^ 6.0)) + ((0.08333333333333333 * (x ^ 4.0)) + (x * x)); else tmp = t_0; end tmp_2 = tmp; end
code[x_] := Block[{t$95$0 = N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 4e-5], N[(N[(0.002777777777777778 * N[Power[x, 6.0], $MachinePrecision]), $MachinePrecision] + N[(N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision] + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 4 \cdot 10^{-5}:\\
\;\;\;\;0.002777777777777778 \cdot {x}^{6} + \left(0.08333333333333333 \cdot {x}^{4} + x \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 4.00000000000000033e-5Initial program 46.8%
Taylor expanded in x around 0 100.0%
unpow2100.0%
Applied egg-rr100.0%
if 4.00000000000000033e-5 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.9%
Final simplification99.9%
(FPCore (x) :precision binary64 (let* ((t_0 (+ (- (exp x) 2.0) (exp (- x))))) (if (<= t_0 4e-5) (+ (* 0.08333333333333333 (pow x 4.0)) (* x x)) t_0)))
double code(double x) {
double t_0 = (exp(x) - 2.0) + exp(-x);
double tmp;
if (t_0 <= 4e-5) {
tmp = (0.08333333333333333 * pow(x, 4.0)) + (x * x);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = (exp(x) - 2.0d0) + exp(-x)
if (t_0 <= 4d-5) then
tmp = (0.08333333333333333d0 * (x ** 4.0d0)) + (x * x)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x) {
double t_0 = (Math.exp(x) - 2.0) + Math.exp(-x);
double tmp;
if (t_0 <= 4e-5) {
tmp = (0.08333333333333333 * Math.pow(x, 4.0)) + (x * x);
} else {
tmp = t_0;
}
return tmp;
}
def code(x): t_0 = (math.exp(x) - 2.0) + math.exp(-x) tmp = 0 if t_0 <= 4e-5: tmp = (0.08333333333333333 * math.pow(x, 4.0)) + (x * x) else: tmp = t_0 return tmp
function code(x) t_0 = Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) tmp = 0.0 if (t_0 <= 4e-5) tmp = Float64(Float64(0.08333333333333333 * (x ^ 4.0)) + Float64(x * x)); else tmp = t_0; end return tmp end
function tmp_2 = code(x) t_0 = (exp(x) - 2.0) + exp(-x); tmp = 0.0; if (t_0 <= 4e-5) tmp = (0.08333333333333333 * (x ^ 4.0)) + (x * x); else tmp = t_0; end tmp_2 = tmp; end
code[x_] := Block[{t$95$0 = N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 4e-5], N[(N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision] + N[(x * x), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 4 \cdot 10^{-5}:\\
\;\;\;\;0.08333333333333333 \cdot {x}^{4} + x \cdot x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 4.00000000000000033e-5Initial program 46.8%
Taylor expanded in x around 0 99.7%
unpow2100.0%
Applied egg-rr99.7%
if 4.00000000000000033e-5 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.9%
Final simplification99.8%
(FPCore (x) :precision binary64 (let* ((t_0 (+ (- (exp x) 2.0) (exp (- x))))) (if (<= t_0 4e-5) (fma x x (* 0.08333333333333333 (pow x 4.0))) t_0)))
double code(double x) {
double t_0 = (exp(x) - 2.0) + exp(-x);
double tmp;
if (t_0 <= 4e-5) {
tmp = fma(x, x, (0.08333333333333333 * pow(x, 4.0)));
} else {
tmp = t_0;
}
return tmp;
}
function code(x) t_0 = Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) tmp = 0.0 if (t_0 <= 4e-5) tmp = fma(x, x, Float64(0.08333333333333333 * (x ^ 4.0))); else tmp = t_0; end return tmp end
code[x_] := Block[{t$95$0 = N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 4e-5], N[(x * x + N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 4 \cdot 10^{-5}:\\
\;\;\;\;\mathsf{fma}\left(x, x, 0.08333333333333333 \cdot {x}^{4}\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 4.00000000000000033e-5Initial program 46.8%
Taylor expanded in x around 0 99.7%
+-commutative99.7%
unpow299.7%
fma-def99.7%
Applied egg-rr99.7%
if 4.00000000000000033e-5 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.9%
Final simplification99.8%
(FPCore (x) :precision binary64 (if (<= x 5.2) (+ (* 0.08333333333333333 (pow x 4.0)) (* x x)) (- (* (exp x) 2.0) 2.0)))
double code(double x) {
double tmp;
if (x <= 5.2) {
tmp = (0.08333333333333333 * pow(x, 4.0)) + (x * x);
} else {
tmp = (exp(x) * 2.0) - 2.0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 5.2d0) then
tmp = (0.08333333333333333d0 * (x ** 4.0d0)) + (x * x)
else
tmp = (exp(x) * 2.0d0) - 2.0d0
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (x <= 5.2) {
tmp = (0.08333333333333333 * Math.pow(x, 4.0)) + (x * x);
} else {
tmp = (Math.exp(x) * 2.0) - 2.0;
}
return tmp;
}
def code(x): tmp = 0 if x <= 5.2: tmp = (0.08333333333333333 * math.pow(x, 4.0)) + (x * x) else: tmp = (math.exp(x) * 2.0) - 2.0 return tmp
function code(x) tmp = 0.0 if (x <= 5.2) tmp = Float64(Float64(0.08333333333333333 * (x ^ 4.0)) + Float64(x * x)); else tmp = Float64(Float64(exp(x) * 2.0) - 2.0); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= 5.2) tmp = (0.08333333333333333 * (x ^ 4.0)) + (x * x); else tmp = (exp(x) * 2.0) - 2.0; end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, 5.2], N[(N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision] + N[(x * x), $MachinePrecision]), $MachinePrecision], N[(N[(N[Exp[x], $MachinePrecision] * 2.0), $MachinePrecision] - 2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5.2:\\
\;\;\;\;0.08333333333333333 \cdot {x}^{4} + x \cdot x\\
\mathbf{else}:\\
\;\;\;\;e^{x} \cdot 2 - 2\\
\end{array}
\end{array}
if x < 5.20000000000000018Initial program 64.7%
Taylor expanded in x around 0 93.6%
unpow296.2%
Applied egg-rr93.6%
if 5.20000000000000018 < x Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
add-sqr-sqrt0.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod100.0%
add-sqr-sqrt100.0%
count-2100.0%
*-commutative100.0%
Applied egg-rr100.0%
Final simplification95.1%
(FPCore (x) :precision binary64 (if (<= x 3.1) (* x x) (- (* (exp x) 2.0) 2.0)))
double code(double x) {
double tmp;
if (x <= 3.1) {
tmp = x * x;
} else {
tmp = (exp(x) * 2.0) - 2.0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 3.1d0) then
tmp = x * x
else
tmp = (exp(x) * 2.0d0) - 2.0d0
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (x <= 3.1) {
tmp = x * x;
} else {
tmp = (Math.exp(x) * 2.0) - 2.0;
}
return tmp;
}
def code(x): tmp = 0 if x <= 3.1: tmp = x * x else: tmp = (math.exp(x) * 2.0) - 2.0 return tmp
function code(x) tmp = 0.0 if (x <= 3.1) tmp = Float64(x * x); else tmp = Float64(Float64(exp(x) * 2.0) - 2.0); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= 3.1) tmp = x * x; else tmp = (exp(x) * 2.0) - 2.0; end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, 3.1], N[(x * x), $MachinePrecision], N[(N[(N[Exp[x], $MachinePrecision] * 2.0), $MachinePrecision] - 2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.1:\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;e^{x} \cdot 2 - 2\\
\end{array}
\end{array}
if x < 3.10000000000000009Initial program 64.7%
Taylor expanded in x around 0 84.4%
unpow296.2%
Applied egg-rr84.4%
if 3.10000000000000009 < x Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
add-sqr-sqrt0.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod100.0%
add-sqr-sqrt100.0%
count-2100.0%
*-commutative100.0%
Applied egg-rr100.0%
Final simplification88.1%
(FPCore (x) :precision binary64 (if (<= x 4.3) (* x x) (* 0.002777777777777778 (pow x 6.0))))
double code(double x) {
double tmp;
if (x <= 4.3) {
tmp = x * x;
} else {
tmp = 0.002777777777777778 * pow(x, 6.0);
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 4.3d0) then
tmp = x * x
else
tmp = 0.002777777777777778d0 * (x ** 6.0d0)
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (x <= 4.3) {
tmp = x * x;
} else {
tmp = 0.002777777777777778 * Math.pow(x, 6.0);
}
return tmp;
}
def code(x): tmp = 0 if x <= 4.3: tmp = x * x else: tmp = 0.002777777777777778 * math.pow(x, 6.0) return tmp
function code(x) tmp = 0.0 if (x <= 4.3) tmp = Float64(x * x); else tmp = Float64(0.002777777777777778 * (x ^ 6.0)); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (x <= 4.3) tmp = x * x; else tmp = 0.002777777777777778 * (x ^ 6.0); end tmp_2 = tmp; end
code[x_] := If[LessEqual[x, 4.3], N[(x * x), $MachinePrecision], N[(0.002777777777777778 * N[Power[x, 6.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.3:\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;0.002777777777777778 \cdot {x}^{6}\\
\end{array}
\end{array}
if x < 4.29999999999999982Initial program 64.7%
Taylor expanded in x around 0 84.4%
unpow296.2%
Applied egg-rr84.4%
if 4.29999999999999982 < x Initial program 100.0%
Taylor expanded in x around 0 89.1%
Taylor expanded in x around inf 89.1%
Final simplification85.5%
(FPCore (x) :precision binary64 (* x x))
double code(double x) {
return x * x;
}
real(8) function code(x)
real(8), intent (in) :: x
code = x * x
end function
public static double code(double x) {
return x * x;
}
def code(x): return x * x
function code(x) return Float64(x * x) end
function tmp = code(x) tmp = x * x; end
code[x_] := N[(x * x), $MachinePrecision]
\begin{array}{l}
\\
x \cdot x
\end{array}
Initial program 72.9%
Taylor expanded in x around 0 77.7%
unpow296.0%
Applied egg-rr77.7%
Final simplification77.7%
(FPCore (x) :precision binary64 (* 4.0 (pow (sinh (/ x 2.0)) 2.0)))
double code(double x) {
return 4.0 * pow(sinh((x / 2.0)), 2.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = 4.0d0 * (sinh((x / 2.0d0)) ** 2.0d0)
end function
public static double code(double x) {
return 4.0 * Math.pow(Math.sinh((x / 2.0)), 2.0);
}
def code(x): return 4.0 * math.pow(math.sinh((x / 2.0)), 2.0)
function code(x) return Float64(4.0 * (sinh(Float64(x / 2.0)) ^ 2.0)) end
function tmp = code(x) tmp = 4.0 * (sinh((x / 2.0)) ^ 2.0); end
code[x_] := N[(4.0 * N[Power[N[Sinh[N[(x / 2.0), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
4 \cdot {\sinh \left(\frac{x}{2}\right)}^{2}
\end{array}
herbie shell --seed 2023326
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:precision binary64
:herbie-target
(* 4.0 (pow (sinh (/ x 2.0)) 2.0))
(+ (- (exp x) 2.0) (exp (- x))))