Average Error: 38.9 → 0.0
Time: 7.9s
Precision: 64
Internal Precision: 1344
\[1 - {\left(2 \cdot x - 1\right)}^{2}\]
\[\left(x - x \cdot x\right) \cdot 4\]

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

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

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

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

    \[\leadsto \left(x - x \cdot x\right) \cdot 4\]

Runtime

Time bar (total: 7.9s)Debug log

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