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

Error

Bits error versus x

Target

Original0.0
Comparison0.0
Herbie0.0
\[ x \cdot \left(1.0 - x \cdot 0.5\right) \]

Derivation

  1. Initial program 0.0

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

Runtime

Time bar (total: 5.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(147132974 2247368885 1020830293 4279015142 3553285519 2497202348)'
(FPCore (x)
  :name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, B"

  :target
  (* x (- 1.0 (* x 0.5)))

  (* x (- 1.0 (* x 0.5))))