Average Error: 30.1 → 0
Time: 7.4s
Precision: 64
Internal Precision: 1344
\[{x}^{2} - {\left(x - 1\right)}^{2}\]
\[\left(x + x\right) + \left(-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 30.1

    \[{x}^{2} - {\left(x - 1\right)}^{2}\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{x + \left(x - 1\right)}\]
  3. Using strategy rm
  4. Applied sub-neg0.0

    \[\leadsto x + \color{blue}{\left(x + \left(-1\right)\right)}\]
  5. Applied associate-+r+0

    \[\leadsto \color{blue}{\left(x + x\right) + \left(-1\right)}\]

Runtime

Time bar (total: 7.4s)Debug log

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