Average Error: 0.1 → 0.1
Time: 10.4s
Precision: 64
Internal precision: 128
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[x \cdot 0.954929658551372 - \left(x \cdot \left(x \cdot 0.12900613773279798\right)\right) \cdot x\]

Error

Bits error versus x

Derivation

  1. Initial program 0.1

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

    \[\leadsto \color{blue}{x \cdot 0.954929658551372 - {x}^2 \cdot \left(0.12900613773279798 \cdot x\right)}\]
  3. Using strategy rm
  4. Applied associate-*r* 0.1

    \[\leadsto x \cdot 0.954929658551372 - \color{blue}{\left({x}^2 \cdot 0.12900613773279798\right) \cdot x}\]
  5. Using strategy rm
  6. Applied square-mult 0.1

    \[\leadsto x \cdot 0.954929658551372 - \left(\color{blue}{\left(x \cdot x\right)} \cdot 0.12900613773279798\right) \cdot x\]
  7. Applied associate-*l* 0.1

    \[\leadsto x \cdot 0.954929658551372 - \color{blue}{\left(x \cdot \left(x \cdot 0.12900613773279798\right)\right)} \cdot x\]
  8. Removed slow pow expressions

Runtime

Time bar (total: 10.4s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(738734739 656355899 843468344 2561297016 3886096300 3503947966)'
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))