
(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
(if (<= (+ (- (exp x) 2.0) (exp (- x))) 4e-6)
(*
(pow x 2.0)
(+
1.0
(*
(pow x 2.0)
(+ 0.08333333333333333 (* (pow x 2.0) 0.002777777777777778)))))
(+ (* 2.0 (cosh x)) -2.0)))
double code(double x) {
double tmp;
if (((exp(x) - 2.0) + exp(-x)) <= 4e-6) {
tmp = pow(x, 2.0) * (1.0 + (pow(x, 2.0) * (0.08333333333333333 + (pow(x, 2.0) * 0.002777777777777778))));
} else {
tmp = (2.0 * cosh(x)) + -2.0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (((exp(x) - 2.0d0) + exp(-x)) <= 4d-6) then
tmp = (x ** 2.0d0) * (1.0d0 + ((x ** 2.0d0) * (0.08333333333333333d0 + ((x ** 2.0d0) * 0.002777777777777778d0))))
else
tmp = (2.0d0 * cosh(x)) + (-2.0d0)
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (((Math.exp(x) - 2.0) + Math.exp(-x)) <= 4e-6) {
tmp = Math.pow(x, 2.0) * (1.0 + (Math.pow(x, 2.0) * (0.08333333333333333 + (Math.pow(x, 2.0) * 0.002777777777777778))));
} else {
tmp = (2.0 * Math.cosh(x)) + -2.0;
}
return tmp;
}
def code(x): tmp = 0 if ((math.exp(x) - 2.0) + math.exp(-x)) <= 4e-6: tmp = math.pow(x, 2.0) * (1.0 + (math.pow(x, 2.0) * (0.08333333333333333 + (math.pow(x, 2.0) * 0.002777777777777778)))) else: tmp = (2.0 * math.cosh(x)) + -2.0 return tmp
function code(x) tmp = 0.0 if (Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) <= 4e-6) tmp = Float64((x ^ 2.0) * Float64(1.0 + Float64((x ^ 2.0) * Float64(0.08333333333333333 + Float64((x ^ 2.0) * 0.002777777777777778))))); else tmp = Float64(Float64(2.0 * cosh(x)) + -2.0); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (((exp(x) - 2.0) + exp(-x)) <= 4e-6) tmp = (x ^ 2.0) * (1.0 + ((x ^ 2.0) * (0.08333333333333333 + ((x ^ 2.0) * 0.002777777777777778)))); else tmp = (2.0 * cosh(x)) + -2.0; end tmp_2 = tmp; end
code[x_] := If[LessEqual[N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision], 4e-6], N[(N[Power[x, 2.0], $MachinePrecision] * N[(1.0 + N[(N[Power[x, 2.0], $MachinePrecision] * N[(0.08333333333333333 + N[(N[Power[x, 2.0], $MachinePrecision] * 0.002777777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Cosh[x], $MachinePrecision]), $MachinePrecision] + -2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(e^{x} - 2\right) + e^{-x} \leq 4 \cdot 10^{-6}:\\
\;\;\;\;{x}^{2} \cdot \left(1 + {x}^{2} \cdot \left(0.08333333333333333 + {x}^{2} \cdot 0.002777777777777778\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \cosh x + -2\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 3.99999999999999982e-6Initial program 49.1%
associate-+l-49.1%
sub-neg49.1%
sub-neg49.1%
distribute-neg-in49.1%
remove-double-neg49.1%
+-commutative49.1%
metadata-eval49.1%
Simplified49.1%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
if 3.99999999999999982e-6 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
remove-double-neg99.8%
+-commutative99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
*-rgt-identity99.8%
metadata-eval99.8%
associate-/l*99.8%
associate-*l/99.8%
cosh-def99.8%
*-commutative99.8%
metadata-eval99.8%
fma-undefine99.8%
Simplified99.8%
fma-undefine99.8%
Applied egg-rr99.8%
Final simplification100.0%
(FPCore (x) :precision binary64 (if (<= (+ (- (exp x) 2.0) (exp (- x))) 4e-6) (+ (pow x 2.0) (* 0.08333333333333333 (pow x 4.0))) (+ (* 2.0 (cosh x)) -2.0)))
double code(double x) {
double tmp;
if (((exp(x) - 2.0) + exp(-x)) <= 4e-6) {
tmp = pow(x, 2.0) + (0.08333333333333333 * pow(x, 4.0));
} else {
tmp = (2.0 * cosh(x)) + -2.0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (((exp(x) - 2.0d0) + exp(-x)) <= 4d-6) then
tmp = (x ** 2.0d0) + (0.08333333333333333d0 * (x ** 4.0d0))
else
tmp = (2.0d0 * cosh(x)) + (-2.0d0)
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (((Math.exp(x) - 2.0) + Math.exp(-x)) <= 4e-6) {
tmp = Math.pow(x, 2.0) + (0.08333333333333333 * Math.pow(x, 4.0));
} else {
tmp = (2.0 * Math.cosh(x)) + -2.0;
}
return tmp;
}
def code(x): tmp = 0 if ((math.exp(x) - 2.0) + math.exp(-x)) <= 4e-6: tmp = math.pow(x, 2.0) + (0.08333333333333333 * math.pow(x, 4.0)) else: tmp = (2.0 * math.cosh(x)) + -2.0 return tmp
function code(x) tmp = 0.0 if (Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) <= 4e-6) tmp = Float64((x ^ 2.0) + Float64(0.08333333333333333 * (x ^ 4.0))); else tmp = Float64(Float64(2.0 * cosh(x)) + -2.0); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (((exp(x) - 2.0) + exp(-x)) <= 4e-6) tmp = (x ^ 2.0) + (0.08333333333333333 * (x ^ 4.0)); else tmp = (2.0 * cosh(x)) + -2.0; end tmp_2 = tmp; end
code[x_] := If[LessEqual[N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision], 4e-6], N[(N[Power[x, 2.0], $MachinePrecision] + N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Cosh[x], $MachinePrecision]), $MachinePrecision] + -2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(e^{x} - 2\right) + e^{-x} \leq 4 \cdot 10^{-6}:\\
\;\;\;\;{x}^{2} + 0.08333333333333333 \cdot {x}^{4}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \cosh x + -2\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 3.99999999999999982e-6Initial program 49.1%
associate-+l-49.1%
sub-neg49.1%
sub-neg49.1%
distribute-neg-in49.1%
remove-double-neg49.1%
+-commutative49.1%
metadata-eval49.1%
Simplified49.1%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
distribute-rgt-in100.0%
*-un-lft-identity100.0%
*-commutative100.0%
associate-*l*100.0%
pow-prod-up100.0%
metadata-eval100.0%
Applied egg-rr100.0%
if 3.99999999999999982e-6 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
remove-double-neg99.8%
+-commutative99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
*-rgt-identity99.8%
metadata-eval99.8%
associate-/l*99.8%
associate-*l/99.8%
cosh-def99.8%
*-commutative99.8%
metadata-eval99.8%
fma-undefine99.8%
Simplified99.8%
fma-undefine99.8%
Applied egg-rr99.8%
Final simplification100.0%
(FPCore (x) :precision binary64 (if (<= (+ (- (exp x) 2.0) (exp (- x))) 4e-6) (fma x x (* 0.08333333333333333 (pow x 4.0))) (+ (* 2.0 (cosh x)) -2.0)))
double code(double x) {
double tmp;
if (((exp(x) - 2.0) + exp(-x)) <= 4e-6) {
tmp = fma(x, x, (0.08333333333333333 * pow(x, 4.0)));
} else {
tmp = (2.0 * cosh(x)) + -2.0;
}
return tmp;
}
function code(x) tmp = 0.0 if (Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) <= 4e-6) tmp = fma(x, x, Float64(0.08333333333333333 * (x ^ 4.0))); else tmp = Float64(Float64(2.0 * cosh(x)) + -2.0); end return tmp end
code[x_] := If[LessEqual[N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision], 4e-6], N[(x * x + N[(0.08333333333333333 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Cosh[x], $MachinePrecision]), $MachinePrecision] + -2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(e^{x} - 2\right) + e^{-x} \leq 4 \cdot 10^{-6}:\\
\;\;\;\;\mathsf{fma}\left(x, x, 0.08333333333333333 \cdot {x}^{4}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \cosh x + -2\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 3.99999999999999982e-6Initial program 49.1%
associate-+l-49.1%
sub-neg49.1%
sub-neg49.1%
distribute-neg-in49.1%
remove-double-neg49.1%
+-commutative49.1%
metadata-eval49.1%
Simplified49.1%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
distribute-rgt-in100.0%
*-un-lft-identity100.0%
unpow2100.0%
fma-define100.0%
*-commutative100.0%
associate-*l*100.0%
pow-prod-up100.0%
metadata-eval100.0%
Applied egg-rr100.0%
if 3.99999999999999982e-6 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
sub-neg99.8%
distribute-neg-in99.8%
remove-double-neg99.8%
+-commutative99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
*-rgt-identity99.8%
metadata-eval99.8%
associate-/l*99.8%
associate-*l/99.8%
cosh-def99.8%
*-commutative99.8%
metadata-eval99.8%
fma-undefine99.8%
Simplified99.8%
fma-undefine99.8%
Applied egg-rr99.8%
Final simplification100.0%
(FPCore (x) :precision binary64 (if (<= (+ (- (exp x) 2.0) (exp (- x))) 5e-10) (pow x 2.0) (+ (* 2.0 (cosh x)) -2.0)))
double code(double x) {
double tmp;
if (((exp(x) - 2.0) + exp(-x)) <= 5e-10) {
tmp = pow(x, 2.0);
} else {
tmp = (2.0 * cosh(x)) + -2.0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (((exp(x) - 2.0d0) + exp(-x)) <= 5d-10) then
tmp = x ** 2.0d0
else
tmp = (2.0d0 * cosh(x)) + (-2.0d0)
end if
code = tmp
end function
public static double code(double x) {
double tmp;
if (((Math.exp(x) - 2.0) + Math.exp(-x)) <= 5e-10) {
tmp = Math.pow(x, 2.0);
} else {
tmp = (2.0 * Math.cosh(x)) + -2.0;
}
return tmp;
}
def code(x): tmp = 0 if ((math.exp(x) - 2.0) + math.exp(-x)) <= 5e-10: tmp = math.pow(x, 2.0) else: tmp = (2.0 * math.cosh(x)) + -2.0 return tmp
function code(x) tmp = 0.0 if (Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) <= 5e-10) tmp = x ^ 2.0; else tmp = Float64(Float64(2.0 * cosh(x)) + -2.0); end return tmp end
function tmp_2 = code(x) tmp = 0.0; if (((exp(x) - 2.0) + exp(-x)) <= 5e-10) tmp = x ^ 2.0; else tmp = (2.0 * cosh(x)) + -2.0; end tmp_2 = tmp; end
code[x_] := If[LessEqual[N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision], 5e-10], N[Power[x, 2.0], $MachinePrecision], N[(N[(2.0 * N[Cosh[x], $MachinePrecision]), $MachinePrecision] + -2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(e^{x} - 2\right) + e^{-x} \leq 5 \cdot 10^{-10}:\\
\;\;\;\;{x}^{2}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \cosh x + -2\\
\end{array}
\end{array}
if (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) < 5.00000000000000031e-10Initial program 49.0%
associate-+l-49.0%
sub-neg49.0%
sub-neg49.0%
distribute-neg-in49.0%
remove-double-neg49.0%
+-commutative49.0%
metadata-eval49.0%
Simplified49.0%
Taylor expanded in x around 0 99.9%
if 5.00000000000000031e-10 < (+.f64 (-.f64 (exp.f64 x) 2) (exp.f64 (neg.f64 x))) Initial program 96.8%
associate-+l-97.1%
sub-neg97.1%
sub-neg97.1%
distribute-neg-in97.1%
remove-double-neg97.1%
+-commutative97.1%
metadata-eval97.1%
Simplified97.1%
Taylor expanded in x around inf 97.1%
sub-neg97.1%
*-rgt-identity97.1%
metadata-eval97.1%
associate-/l*97.1%
associate-*l/97.1%
cosh-def97.1%
*-commutative97.1%
metadata-eval97.1%
fma-undefine97.1%
Simplified97.1%
fma-undefine97.1%
Applied egg-rr97.1%
Final simplification99.8%
(FPCore (x) :precision binary64 (pow x 2.0))
double code(double x) {
return pow(x, 2.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = x ** 2.0d0
end function
public static double code(double x) {
return Math.pow(x, 2.0);
}
def code(x): return math.pow(x, 2.0)
function code(x) return x ^ 2.0 end
function tmp = code(x) tmp = x ^ 2.0; end
code[x_] := N[Power[x, 2.0], $MachinePrecision]
\begin{array}{l}
\\
{x}^{2}
\end{array}
Initial program 50.6%
associate-+l-50.6%
sub-neg50.6%
sub-neg50.6%
distribute-neg-in50.6%
remove-double-neg50.6%
+-commutative50.6%
metadata-eval50.6%
Simplified50.6%
Taylor expanded in x around 0 97.0%
Final simplification97.0%
(FPCore (x) :precision binary64 (* x (+ x 2.0)))
double code(double x) {
return x * (x + 2.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = x * (x + 2.0d0)
end function
public static double code(double x) {
return x * (x + 2.0);
}
def code(x): return x * (x + 2.0)
function code(x) return Float64(x * Float64(x + 2.0)) end
function tmp = code(x) tmp = x * (x + 2.0); end
code[x_] := N[(x * N[(x + 2.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(x + 2\right)
\end{array}
Initial program 50.6%
associate-+l-50.6%
sub-neg50.6%
sub-neg50.6%
distribute-neg-in50.6%
remove-double-neg50.6%
+-commutative50.6%
metadata-eval50.6%
Simplified50.6%
*-un-lft-identity50.6%
*-commutative50.6%
fma-define50.6%
add-sqr-sqrt25.7%
sqrt-unprod48.2%
sqr-neg48.2%
sqrt-unprod22.4%
add-sqr-sqrt47.6%
Applied egg-rr47.6%
fma-undefine47.6%
*-rgt-identity47.6%
associate-+r+47.6%
count-247.6%
*-commutative47.6%
metadata-eval47.6%
distribute-rgt-neg-in47.6%
+-commutative47.6%
*-commutative47.6%
distribute-lft-neg-in47.6%
metadata-eval47.6%
Simplified47.6%
Taylor expanded in x around 0 5.8%
+-commutative5.8%
Simplified5.8%
Final simplification5.8%
(FPCore (x) :precision binary64 (* x 2.0))
double code(double x) {
return x * 2.0;
}
real(8) function code(x)
real(8), intent (in) :: x
code = x * 2.0d0
end function
public static double code(double x) {
return x * 2.0;
}
def code(x): return x * 2.0
function code(x) return Float64(x * 2.0) end
function tmp = code(x) tmp = x * 2.0; end
code[x_] := N[(x * 2.0), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 2
\end{array}
Initial program 50.6%
associate-+l-50.6%
sub-neg50.6%
sub-neg50.6%
distribute-neg-in50.6%
remove-double-neg50.6%
+-commutative50.6%
metadata-eval50.6%
Simplified50.6%
*-un-lft-identity50.6%
*-commutative50.6%
fma-define50.6%
add-sqr-sqrt25.7%
sqrt-unprod48.2%
sqr-neg48.2%
sqrt-unprod22.4%
add-sqr-sqrt47.6%
Applied egg-rr47.6%
fma-undefine47.6%
*-rgt-identity47.6%
associate-+r+47.6%
count-247.6%
*-commutative47.6%
metadata-eval47.6%
distribute-rgt-neg-in47.6%
+-commutative47.6%
*-commutative47.6%
distribute-lft-neg-in47.6%
metadata-eval47.6%
Simplified47.6%
Taylor expanded in x around 0 5.8%
*-commutative5.8%
Simplified5.8%
Final simplification5.8%
(FPCore (x) :precision binary64 0.0)
double code(double x) {
return 0.0;
}
real(8) function code(x)
real(8), intent (in) :: x
code = 0.0d0
end function
public static double code(double x) {
return 0.0;
}
def code(x): return 0.0
function code(x) return 0.0 end
function tmp = code(x) tmp = 0.0; end
code[x_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 50.6%
associate-+l-50.6%
sub-neg50.6%
sub-neg50.6%
distribute-neg-in50.6%
remove-double-neg50.6%
+-commutative50.6%
metadata-eval50.6%
Simplified50.6%
Taylor expanded in x around inf 50.7%
sub-neg50.7%
*-rgt-identity50.7%
metadata-eval50.7%
associate-/l*50.7%
associate-*l/50.7%
cosh-def50.7%
*-commutative50.7%
metadata-eval50.7%
fma-undefine50.7%
Simplified50.7%
fma-undefine50.7%
Applied egg-rr50.7%
Taylor expanded in x around 0 47.1%
Final simplification47.1%
(FPCore (x) :precision binary64 (let* ((t_0 (sinh (/ x 2.0)))) (* 4.0 (* t_0 t_0))))
double code(double x) {
double t_0 = sinh((x / 2.0));
return 4.0 * (t_0 * t_0);
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
t_0 = sinh((x / 2.0d0))
code = 4.0d0 * (t_0 * t_0)
end function
public static double code(double x) {
double t_0 = Math.sinh((x / 2.0));
return 4.0 * (t_0 * t_0);
}
def code(x): t_0 = math.sinh((x / 2.0)) return 4.0 * (t_0 * t_0)
function code(x) t_0 = sinh(Float64(x / 2.0)) return Float64(4.0 * Float64(t_0 * t_0)) end
function tmp = code(x) t_0 = sinh((x / 2.0)); tmp = 4.0 * (t_0 * t_0); end
code[x_] := Block[{t$95$0 = N[Sinh[N[(x / 2.0), $MachinePrecision]], $MachinePrecision]}, N[(4.0 * N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sinh \left(\frac{x}{2}\right)\\
4 \cdot \left(t\_0 \cdot t\_0\right)
\end{array}
\end{array}
herbie shell --seed 2024055
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:precision binary64
:pre (<= (fabs x) 710.0)
:alt
(* 4.0 (* (sinh (/ x 2.0)) (sinh (/ x 2.0))))
(+ (- (exp x) 2.0) (exp (- x))))