Average Error: 0.0 → 0.0
Time: 959.0ms
Precision: 64
Internal Precision: 128
\[x + x \cdot x\]
\[x \cdot x + x\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[\left(1.0 + x\right) \cdot x\]

Derivation

  1. Initial program 0.0

    \[x + x \cdot x\]
  2. Final simplification0.0

    \[\leadsto x \cdot x + x\]

Reproduce

herbie shell --seed 2019016 
(FPCore (x)
  :name "Expression 2, p15"
  :pre (<= 0 x 2)

  :herbie-target
  (* (+ 1.0 x) x)

  (+ x (* x x)))

Details

Time bar (total: 740.0ms)Debug log

sample31.0ms

Algorithm
intervals
Results
256×(pre true 80)
256×(body real 80)

simplify13.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
12.0ms
(+ x (* x x))

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize12.0ms

Local error

Found 0 expressions with local error:

rewrite0.0ms

Algorithm
rewrite-expression-head
Rules
Counts
0 → 0
Calls
0 calls:
Slowest

series0.0ms

Counts
0 → 0
Calls
0 calls:
Slowest

simplify0.0ms

Counts
0 → 0
Calls
0 calls:
Slowest

prune4.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample674.0ms

Algorithm
intervals
Results
8000×(pre true 80)
8000×(body real 80)