Average Error: 0.0 → 0.0
Time: 9.3s
Precision: 64
Internal Precision: 128
\[-\log \left(\frac{1}{x} - 1\right)\]
\[-\left(\log \left(\sqrt{\frac{1}{x} - 1}\right) + \log \left(\sqrt{\frac{1}{x} - 1}\right)\right)\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

    \[-\log \left(\frac{1}{x} - 1\right)\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.0

    \[\leadsto -\log \color{blue}{\left(\sqrt{\frac{1}{x} - 1} \cdot \sqrt{\frac{1}{x} - 1}\right)}\]
  4. Applied log-prod0.0

    \[\leadsto -\color{blue}{\left(\log \left(\sqrt{\frac{1}{x} - 1}\right) + \log \left(\sqrt{\frac{1}{x} - 1}\right)\right)}\]
  5. Final simplification0.0

    \[\leadsto -\left(\log \left(\sqrt{\frac{1}{x} - 1}\right) + \log \left(\sqrt{\frac{1}{x} - 1}\right)\right)\]

Reproduce

herbie shell --seed 2019051 
(FPCore (x)
  :name "neg log"
  (- (log (- (/ 1 x) 1))))