Average Error: 32.1 → 0.0
Time: 7.9s
Precision: 64
Internal Precision: 2368
\[{\left(x + y\right)}^{2} - {x}^{2}\]
\[y \cdot \left(2 \cdot x + y\right)\]

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 32.1

    \[{\left(x + y\right)}^{2} - {x}^{2}\]
  2. Initial simplification0.0

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

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

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

Runtime

Time bar (total: 7.9s)Debug log

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