Average Error: 0.0 → 0.0
Time: 9.8s
Precision: 64
Internal Precision: 576
\[-\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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[-\log \left(\frac{1}{x} - 1\right)\]
  2. Initial simplification0.0

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

    \[\leadsto -\log \color{blue}{\left(\sqrt{\frac{1}{x} - 1} \cdot \sqrt{\frac{1}{x} - 1}\right)}\]
  5. 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)}\]
  6. Final simplification0.0

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

Runtime

Time bar (total: 9.8s)Debug logProfile

herbie shell --seed 2018250 +o rules:numerics
(FPCore (x)
  :name "neg log"
  (- (log (- (/ 1 x) 1))))