Average Error: 0.0 → 0.0
Time: 5.0s
Precision: 64
Internal precision: 128
\[\left(x \cdot x\right) \cdot 2.0 - 1.0\]
\[\left(x \cdot x\right) \cdot 2.0 - 1.0\]

Error

Bits error versus x

Target

Original0.0
Comparison0.0
Herbie0.0
\[ {x}^2 \cdot 2.0 - 1.0 \]

Derivation

  1. Initial program 0.0

    \[\left(x \cdot x\right) \cdot 2.0 - 1.0\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 5.0s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2084769849 2920842610 2747909494 171902596 1791168374 2255815699)'
(FPCore (x)
  :name "Numeric.SpecFunctions:logGammaCorrection from math-functions-0.1.5.2"

  :target
  (- (* (sqr x) 2.0) 1.0)

  (- (* (* x x) 2.0) 1.0))