Average Error: 0.1 → 0
Time: 5.2s
Precision: 64
Internal Precision: 384
\[\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1\]
\[{d1}^{4}\]

Error

Bits error versus d1

Target

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

Derivation

  1. Initial program 0.1

    \[\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1\]
  2. Taylor expanded around 0 0

    \[\leadsto \color{blue}{{d1}^{4}}\]
  3. Removed slow pow expressions.

Runtime

Time bar (total: 5.2s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit
(FPCore (d1)
  :name "FastMath repmul"

  :herbie-target
  (pow d1 4)

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