Average Error: 25.8 → 0.1
Time: 28.8s
Precision: 64
Internal Precision: 1088
\[2 \cdot \frac{x}{x \cdot x - 1} - \frac{2}{x}\]
\[\frac{\frac{2}{x}}{x \cdot 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 25.8

    \[2 \cdot \frac{x}{x \cdot x - 1} - \frac{2}{x}\]
  2. Applied simplify10.0

    \[\leadsto \color{blue}{\frac{2}{x - \frac{1}{x}} - \frac{2}{x}}\]
  3. Using strategy rm
  4. Applied frac-sub10.1

    \[\leadsto \color{blue}{\frac{2 \cdot x - \left(x - \frac{1}{x}\right) \cdot 2}{\left(x - \frac{1}{x}\right) \cdot x}}\]
  5. Applied simplify0.1

    \[\leadsto \frac{\color{blue}{\frac{2}{x}}}{\left(x - \frac{1}{x}\right) \cdot x}\]
  6. Applied simplify0.1

    \[\leadsto \frac{\frac{2}{x}}{\color{blue}{x \cdot x - 1}}\]

Runtime

Time bar (total: 28.8s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x)
  :name "2x/(x*x-1) -2/x"
  (- (* 2 (/ x (- (* x x) 1))) (/ 2 x)))