Average Error: 57.9 → 0.7
Time: 17.9s
Precision: 64
Internal Precision: 1408
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{\left(x \cdot \left(\frac{1}{3} \cdot \left(x \cdot x\right)\right) + x \cdot 2\right) + \frac{1}{60} \cdot {x}^{5}}{2}\]

Error

Bits error versus x

Derivation

  1. Initial program 57.9

    \[\frac{e^{x} - e^{-x}}{2}\]
  2. Taylor expanded around 0 0.7

    \[\leadsto \frac{\color{blue}{\frac{1}{3} \cdot {x}^{3} + \left(\frac{1}{60} \cdot {x}^{5} + 2 \cdot x\right)}}{2}\]
  3. Applied simplify0.7

    \[\leadsto \color{blue}{\frac{(x \cdot \left((\frac{1}{3} \cdot \left(x \cdot x\right) + 2)_*\right) + \left(\frac{1}{60} \cdot {x}^{5}\right))_*}{2}}\]
  4. Using strategy rm
  5. Applied fma-udef0.7

    \[\leadsto \frac{\color{blue}{x \cdot (\frac{1}{3} \cdot \left(x \cdot x\right) + 2)_* + \frac{1}{60} \cdot {x}^{5}}}{2}\]
  6. Using strategy rm
  7. Applied fma-udef0.7

    \[\leadsto \frac{x \cdot \color{blue}{\left(\frac{1}{3} \cdot \left(x \cdot x\right) + 2\right)} + \frac{1}{60} \cdot {x}^{5}}{2}\]
  8. Applied distribute-lft-in0.7

    \[\leadsto \frac{\color{blue}{\left(x \cdot \left(\frac{1}{3} \cdot \left(x \cdot x\right)\right) + x \cdot 2\right)} + \frac{1}{60} \cdot {x}^{5}}{2}\]

Runtime

Time bar (total: 17.9s)Debug logProfile

herbie shell --seed '#(1070355188 2193211668 3977393919 3454156579 3755371326 1656365382)' +o rules:numerics
(FPCore (x)
  :name "Hyperbolic sine"
  (/ (- (exp x) (exp (- x))) 2))