Average Error: 58.1 → 58.1
Time: 1.7s
Precision: binary64
Cost: 13184
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{e^{x} - e^{-x}}{2}\]
\frac{e^{x} - e^{-x}}{2}
\frac{e^{x} - e^{-x}}{2}
(FPCore (x) :precision binary64 (/ (- (exp x) (exp (- x))) 2.0))
(FPCore (x) :precision binary64 (/ (- (exp x) (exp (- x))) 2.0))
double code(double x) {
	return (exp(x) - exp(-x)) / 2.0;
}
double code(double x) {
	return (exp(x) - exp(-x)) / 2.0;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.1

    \[\frac{e^{x} - e^{-x}}{2}\]

Reproduce

herbie shell --seed 2021042 
(FPCore (x)
  :name "Hyperbolic sine"
  :precision binary64
  (/ (- (exp x) (exp (- x))) 2.0))