Average Error: 4.9 → 0.1
Time: 6.6s
Precision: 64
Internal precision: 128
\[\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.9
Comparison0.1
Herbie0.1
\[ \frac{\frac{x}{y}}{y} - 3.0 \]

Derivation

  1. Initial program 4.9

    \[\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: 6.6s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3387246809 355218153 683486412 4144400499 4221056903 2033699527)'
(FPCore (x y)
  :name "Statistics.Sample:$skurtosis from math-functions-0.1.5.2"

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

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