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

Error

Bits error versus x

Target

Original0.1
Comparison0.1
Herbie0
\[ x \cdot \left(x \cdot x\right) \]

Derivation

  1. Initial program 0.1

    \[\left(x \cdot x\right) \cdot x\]
  2. Applied simplify 0.1

    \[\leadsto \color{blue}{{x}^3}\]
  3. Using strategy rm
  4. Applied pow3 0

    \[\leadsto \color{blue}{{x}^{3}}\]
  5. Removed slow pow expressions

Runtime

Time bar (total: 2.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2713398816 3790085336 2530807714 676156019 3334009157 2175322680)'
(FPCore (x)
  :name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, C"

  :target
  (* x (* x x))

  (* (* x x) x))