Average Error: 0.1 → 0.1
Time: 9.9s
Precision: 64
Internal Precision: 576
\[\left(\left(a \cdot x\right) \cdot x + b \cdot x\right) + c\]
\[x \cdot \left(b + x \cdot a\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 0.1

    \[\left(\left(a \cdot x\right) \cdot x + b \cdot x\right) + c\]
  2. Using strategy rm
  3. Applied distribute-rgt-out0.1

    \[\leadsto \color{blue}{x \cdot \left(a \cdot x + b\right)} + c\]
  4. Final simplification0.1

    \[\leadsto x \cdot \left(b + x \cdot a\right) + c\]

Runtime

Time bar (total: 9.9s)Debug log

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