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

Error

Bits error versus x

Derivation

  1. Initial program 58.1

    \[\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.8

    \[\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.8

    \[\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.8

    \[\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}\]
  9. Applied associate-+l+0.7

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

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

Runtime

Time bar (total: 16.9s)Debug logProfile

herbie shell --seed '#(1070386091 2509006183 1430610344 1025408621 36622005 1425925650)' +o rules:numerics
(FPCore (x)
  :name "Hyperbolic sine"
  (/ (- (exp x) (exp (- x))) 2))