Average Error: 61.3 → 0.0
Time: 8.0s
Precision: 64
Internal precision: 1408
\[\frac{\log \left(1 - x\right)}{\log \left(1 + x\right)}\]
\[-\left(\frac{1}{2} \cdot {x}^2 + \left(1 + x\right)\right)\]

Error

Bits error versus x

Derivation

  1. Initial program 61.3

    \[\frac{\log \left(1 - x\right)}{\log \left(1 + x\right)}\]
  2. Applied taylor 0.0

    \[\leadsto -\left(\frac{1}{2} \cdot {x}^2 + \left(1 + x\right)\right)\]
  3. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{-\left(\frac{1}{2} \cdot {x}^2 + \left(1 + x\right)\right)}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 8.0s) Debug log

Please include this information when filing a bug report:

herbie shell --seed '#(3052192724 3812927732 3686175817 630908657 2373248591 511094450)'
(FPCore (x)
  :name "NMSE example 3.10"
  :pre (< -1 x 1)
  (/ (log (- 1 x)) (log (+ 1 x))))