Average Error: 4.6 → 0.1
Time: 24.2s
Precision: 64
Internal Precision: 384
\[\frac{x}{y \cdot y} - 3.0\]
\[\frac{\frac{x}{y}}{y} - 3.0\]

Error

Bits error versus x

Bits error versus y

Target

Original4.6
Target0.1
Herbie0.1
\[\frac{\frac{x}{y}}{y} - 3.0\]

Derivation

  1. Initial program 4.6

    \[\frac{x}{y \cdot y} - 3.0\]
  2. Using strategy rm
  3. Applied associate-/r*0.1

    \[\leadsto \color{blue}{\frac{\frac{x}{y}}{y}} - 3.0\]
  4. Removed slow pow expressions.

Runtime

Time bar (total: 24.2s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x y)
  :name "Statistics.Sample:$skurtosis from math-functions-0.1.5.2"

  :herbie-target
  (- (/ (/ x y) y) 3.0)

  (- (/ x (* y y)) 3.0))