Average Error: 0.3 → 0
Time: 5.1s
Precision: 64
Internal Precision: 320
\[\left(\left(a + 2 \cdot a\right) + 3 \cdot a\right) + 4 \cdot a\]
\[a \cdot \left(\left(4 + 2\right) + \left(1 + 3\right)\right)\]

Error

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[\left(\left(a + 2 \cdot a\right) + 3 \cdot a\right) + 4 \cdot a\]
  2. Applied simplify0

    \[\leadsto \color{blue}{a \cdot \left(\left(4 + 2\right) + \left(1 + 3\right)\right)}\]

Runtime

Time bar (total: 5.1s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (a)
  :name "a + 2*a+3*a+4*a"
  (+ (+ (+ a (* 2 a)) (* 3 a)) (* 4 a)))