Average Error: 0.0 → 0.0
Time: 5.0s
Precision: 64
Internal Precision: 576
\[a \cdot \left(b - c\right)\]
\[b \cdot a + c \cdot \left(-a\right)\]

Error

Bits error versus a

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

    \[a \cdot \left(b - c\right)\]
  2. Using strategy rm
  3. Applied sub-neg0.0

    \[\leadsto a \cdot \color{blue}{\left(b + \left(-c\right)\right)}\]
  4. Applied distribute-rgt-in0.0

    \[\leadsto \color{blue}{b \cdot a + \left(-c\right) \cdot a}\]
  5. Final simplification0.0

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

Runtime

Time bar (total: 5.0s)Debug log

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