Average Error: 0.1 → 0.1
Time: 12.7s
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\]
\[{d1}^{7} \cdot {d1}^{3}\]

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. Taylor expanded around inf 0.1

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

    \[\leadsto \color{blue}{{d1}^{7} \cdot {d1}^{3}}\]

Runtime

Time bar (total: 12.7s)Debug logProfile

herbie shell --seed '#(1070131407 1246090267 3027482374 2150728003 2026520792 2347815650)' 
(FPCore (d1)
  :name "FastMath test5"

  :herbie-target
  (pow d1 10)

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