Average Error: 4.2 → 0.1
Time: 24.4s
Precision: 64
Internal Precision: 320
\[\left(a \cdot {x}^{2} + b \cdot x\right) + c\]
\[x \cdot \left(a \cdot x + b\right) + c\]

Error

Bits error versus a

Bits error versus x

Bits error versus b

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 4.2

    \[\left(a \cdot {x}^{2} + b \cdot x\right) + c\]
  2. Using strategy rm
  3. Applied unpow24.2

    \[\leadsto \left(a \cdot \color{blue}{\left(x \cdot x\right)} + b \cdot x\right) + c\]
  4. Applied associate-*r*0.1

    \[\leadsto \left(\color{blue}{\left(a \cdot x\right) \cdot x} + b \cdot x\right) + c\]
  5. Using strategy rm
  6. Applied distribute-rgt-out0.1

    \[\leadsto \color{blue}{x \cdot \left(a \cdot x + b\right)} + c\]

Runtime

Time bar (total: 24.4s)Debug log

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