Average Error: 0.0 → 0.0
Time: 18.5s
Precision: 64
Internal Precision: 320
\[\left(ax \cdot x + b \cdot x\right) + c\]
\[\left(b + ax\right) \cdot x + c\]

Error

Bits error versus ax

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.0

    \[\left(ax \cdot x + b \cdot x\right) + c\]
  2. Applied simplify0.0

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

Runtime

Time bar (total: 18.5s)Debug log

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