Average Error: 0.0 → 0.0
Time: 12.8s
Precision: 64
Internal Precision: 576
\[-\log \left(\frac{1}{x} - 1\right)\]
\[-\log \left((e^{-\log x} - 1)^*\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. Using strategy rm
  3. Applied add-exp-log0.0

    \[\leadsto -\log \left(\color{blue}{e^{\log \left(\frac{1}{x}\right)}} - 1\right)\]
  4. Applied expm1-def0.0

    \[\leadsto -\log \color{blue}{\left((e^{\log \left(\frac{1}{x}\right)} - 1)^*\right)}\]
  5. Simplified0.0

    \[\leadsto -\log \left((e^{\color{blue}{-\log x}} - 1)^*\right)\]
  6. Final simplification0.0

    \[\leadsto -\log \left((e^{-\log x} - 1)^*\right)\]

Runtime

Time bar (total: 12.8s)Debug logProfile

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