Average Error: 38.9 → 0.0
Time: 5.2s
Precision: 64
Internal Precision: 1344
\[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
\[x \cdot \left(2 + x\right)\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 38.9

    \[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
  2. Initial simplification0.0

    \[\leadsto x \cdot x + \left(x + x\right)\]
  3. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{{x}^{2} + 2 \cdot x}\]
  4. Simplified0.0

    \[\leadsto \color{blue}{x \cdot \left(2 + x\right)}\]
  5. Final simplification0.0

    \[\leadsto x \cdot \left(2 + x\right)\]

Runtime

Time bar (total: 5.2s)Debug log

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