Average Error: 0.1 → 0
Time: 1.5s
Precision: 64
Internal Precision: 128
\[\left(x \cdot x\right) \cdot x\]
\[{x}^{3}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0
Herbie0
\[{x}^{3}\]

Derivation

  1. Initial program 0.1

    \[\left(x \cdot x\right) \cdot x\]
  2. Simplified0

    \[\leadsto \color{blue}{{x}^{3}}\]
  3. Final simplification0

    \[\leadsto {x}^{3}\]

Reproduce

herbie shell --seed 2019008 +o rules:numerics
(FPCore (x)
  :name "math.cube on real"

  :herbie-target
  (pow x 3)

  (* (* x x) x))

Details

Time bar (total: 1.2s)Debug log

sample39.0ms

Algorithm
intervals

simplify5.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

5.0ms
(* (* x x) x)

prune13.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize8.0ms

Local error

Found 0 expressions with local error:

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
0 → 0
Calls

0 calls. Slowest were:

series0.0ms

Counts
0 → 0
Calls

0 calls. Slowest were:

simplify0.0ms

Counts
0 → 0
Calls

0 calls. Slowest were:

prune5.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample1.2s

Algorithm
intervals