\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 | 60.4 |
| Cost | 6656 |
| Alternative 2 | |
|---|---|
| Error | 1.2 |
| Cost | 7040 |
| Alternative 3 | |
|---|---|
| Error | 61.5 |
| Cost | 19520 |
| Alternative 4 | |
|---|---|
| Error | 1.2 |
| Cost | 64 |
| Alternative 5 | |
|---|---|
| Error | 60.2 |
| Cost | 320 |

Initial program 59.0
Taylor expanded around 0 57.9
rmApplied sinh-undef_binary64_2710.0
Final simplification0.0
herbie shell --seed 2021043
(FPCore (x)
:name "Hyperbolic sine"
:precision binary64
(/ (- (exp x) (exp (- x))) 2.0))