Average Error: 0.1 → 0.1
Time: 15.4s
Precision: 64
Internal Precision: 384
\[\left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right)\right) \cdot d1\]
\[\left(d1 \cdot {d1}^{\left(\left(1 + 2\right) + \left(2 + 3\right)\right)}\right) \cdot d1\]

Error

Bits error versus d1

Target

Original0.1
Target0
Herbie0.1
\[{d1}^{10}\]

Derivation

  1. Initial program 0.1

    \[\left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right)\right) \cdot d1\]
  2. Using strategy rm
  3. Applied pow20.1

    \[\leadsto \left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \color{blue}{{d1}^{2}}\right) \cdot d1\right)\right) \cdot d1\]
  4. Applied cube-unmult0.1

    \[\leadsto \left(d1 \cdot \left(\left(\left(\left(\color{blue}{{d1}^{3}} \cdot d1\right) \cdot d1\right) \cdot {d1}^{2}\right) \cdot d1\right)\right) \cdot d1\]
  5. Applied pow-plus0.1

    \[\leadsto \left(d1 \cdot \left(\left(\left(\color{blue}{{d1}^{\left(3 + 1\right)}} \cdot d1\right) \cdot {d1}^{2}\right) \cdot d1\right)\right) \cdot d1\]
  6. Applied pow-plus0.1

    \[\leadsto \left(d1 \cdot \left(\left(\color{blue}{{d1}^{\left(\left(3 + 1\right) + 1\right)}} \cdot {d1}^{2}\right) \cdot d1\right)\right) \cdot d1\]
  7. Applied pow-prod-up0.1

    \[\leadsto \left(d1 \cdot \left(\color{blue}{{d1}^{\left(\left(\left(3 + 1\right) + 1\right) + 2\right)}} \cdot d1\right)\right) \cdot d1\]
  8. Applied pow-plus0.1

    \[\leadsto \left(d1 \cdot \color{blue}{{d1}^{\left(\left(\left(\left(3 + 1\right) + 1\right) + 2\right) + 1\right)}}\right) \cdot d1\]
  9. Applied simplify0.1

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

Runtime

Time bar (total: 15.4s)Debug logProfile

herbie shell --seed '#(1070227846 1561819246 480764335 4016816270 2602869839 2117310382)' +o rules:numerics
(FPCore (d1)
  :name "FastMath test5"

  :herbie-target
  (pow d1 10)

  (* (* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1)) d1))