Average Error: 0.1 → 0.1
Time: 4.7s
Precision: 64
Internal precision: 128
\[\frac{x \cdot x - 3.0}{6.0}\]
\[\frac{{x}^2 - 3.0}{6.0}\]

Error

Bits error versus x

Target

Original0.1
Comparison0.1
Herbie0.1
\[ \frac{{x}^2 - 3.0}{6.0} \]

Derivation

  1. Initial program 0.1

    \[\frac{x \cdot x - 3.0}{6.0}\]
  2. Applied simplify 0.1

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

Runtime

Time bar (total: 4.7s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(869391965 1041956701 3059271338 1348121129 1329984125 2650534534)'
(FPCore (x)
  :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, H"

  :target
  (/ (- (sqr x) 3.0) 6.0)

  (/ (- (* x x) 3.0) 6.0))