Average Error: 0.0 → 0.0
Time: 11.1s
Precision: 64
Internal Precision: 128
\[\frac{1}{x - 1} + \frac{x}{x + 1}\]
\[\frac{x}{1 + x} + \frac{1}{x - 1}\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

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

    \[\leadsto \color{blue}{\frac{x}{x + 1} + \frac{1}{x - 1}}\]
  4. Final simplification0.0

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

Reproduce

herbie shell --seed 2019051 
(FPCore (x)
  :name "Asymptote B"
  (+ (/ 1 (- x 1)) (/ x (+ x 1))))