Average Error: 0.0 → 0.0
Time: 1.7m
Precision: 64
Internal Precision: 320
\[\frac{1}{x - 1} + \frac{x}{x + 1}\]
\[\frac{{\left(\frac{1}{x - 1}\right)}^{3} + {\left(\frac{x}{x + 1}\right)}^{3}}{\frac{1}{x - 1} \cdot \frac{1}{x - 1} + \left(\frac{x}{x + 1} \cdot \frac{x}{x + 1} - \frac{1}{x - 1} \cdot \frac{x}{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

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

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

    \[\leadsto \frac{{\left(\frac{1}{x - 1}\right)}^{3} + {\left(\frac{x}{x + 1}\right)}^{3}}{\frac{1}{x - 1} \cdot \frac{1}{x - 1} + \left(\frac{x}{x + 1} \cdot \frac{x}{x + 1} - \frac{1}{x - 1} \cdot \frac{x}{x + 1}\right)}\]

Runtime

Time bar (total: 1.7m)Debug logProfile

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