Average Error: 14.4 → 0.1
Time: 34.0s
Precision: 64
Internal Precision: 832
\[\frac{1}{x + 1} - \frac{1}{x - 1}\]
\[\frac{1 + 1}{x - 1} \cdot \frac{-1}{x + 1}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 14.4

    \[\frac{1}{x + 1} - \frac{1}{x - 1}\]
  2. Using strategy rm
  3. Applied frac-sub13.8

    \[\leadsto \color{blue}{\frac{1 \cdot \left(x - 1\right) - \left(x + 1\right) \cdot 1}{\left(x + 1\right) \cdot \left(x - 1\right)}}\]
  4. Simplified0.4

    \[\leadsto \frac{\color{blue}{-\left(1 + 1\right)}}{\left(x + 1\right) \cdot \left(x - 1\right)}\]
  5. Using strategy rm
  6. Applied *-un-lft-identity0.4

    \[\leadsto \frac{\color{blue}{1 \cdot \left(-\left(1 + 1\right)\right)}}{\left(x + 1\right) \cdot \left(x - 1\right)}\]
  7. Applied times-frac0.1

    \[\leadsto \color{blue}{\frac{1}{x + 1} \cdot \frac{-\left(1 + 1\right)}{x - 1}}\]
  8. Final simplification0.1

    \[\leadsto \frac{1 + 1}{x - 1} \cdot \frac{-1}{x + 1}\]

Runtime

Time bar (total: 34.0s)Debug logProfile

herbie shell --seed 2018221 
(FPCore (x)
  :name "Asymptote A"
  (- (/ 1 (+ x 1)) (/ 1 (- x 1))))