Average Error: 0.2 → 0.2
Time: 10.9s
Precision: 64
Internal Precision: 384
\[\left(x \cdot 3.0\right) \cdot x\]
\[3.0 \cdot {x}^{2}\]

Error

Bits error versus x

Derivation

  1. Initial program 0.2

    \[\left(x \cdot 3.0\right) \cdot x\]
  2. Taylor expanded around 0 0.2

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

Runtime

Time bar (total: 10.9s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  (* (* x 3.0) x))