Average Error: 14.7 → 0.0
Time: 3.1s
Precision: 64
Internal Precision: 320
\[\frac{x \cdot x + 1}{x}\]
\[x + \frac{1}{x}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 14.7

    \[\frac{x \cdot x + 1}{x}\]
  2. Taylor expanded around -inf 0.0

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

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

Runtime

Time bar (total: 3.1s)Debug log

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