Average Error: 59.3 → 0
Time: 1.2m
Precision: 64
Internal Precision: 1344
\[\left(\frac{\left(x + 1\right) \cdot \left(x + 1\right)}{2 \cdot x} - \frac{x}{2}\right) - \frac{1}{2 \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 59.3

    \[\left(\frac{\left(x + 1\right) \cdot \left(x + 1\right)}{2 \cdot x} - \frac{x}{2}\right) - \frac{1}{2 \cdot x}\]
  2. Taylor expanded around 0 0

    \[\leadsto \color{blue}{1}\]

Runtime

Time bar (total: 1.2m)Debug log

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