\frac{e^{x} - e^{-x}}{2}\frac{2 \cdot \sinh x}{2}(FPCore (x) :precision binary64 (/ (- (exp x) (exp (- x))) 2.0))
(FPCore (x) :precision binary64 (/ (* 2.0 (sinh x)) 2.0))
double code(double x) {
return (exp(x) - exp(-x)) / 2.0;
}
double code(double x) {
return (2.0 * sinh(x)) / 2.0;
}







Bits error versus x
Results
| Alternative 1 | |
|---|---|
| Error | 0.8 |
| Cost | 832 |
| Alternative 2 | |
|---|---|
| Error | 1.2 |
| Cost | 320 |
| Alternative 3 | |
|---|---|
| Error | 60.6 |
| Cost | 64 |
| Alternative 4 | |
|---|---|
| Error | 61.5 |
| Cost | 64 |

Initial program 58.0
rmApplied sinh-undef_binary64_23170.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x)
:name "Hyperbolic sine"
:precision binary64
(/ (- (exp x) (exp (- x))) 2.0))