Average Error: 5.2 → 0.1
Time: 2.3s
Precision: binary64
\[\]
\[\]
double code(double x, double y) {
	return ((double) (((double) (x / ((double) (y * y)))) - 3.0));
}
double code(double x, double y) {
	return ((double) (((double) (((double) (x / y)) / y)) - 3.0));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original5.2
Target0.1
Herbie0.1
\[\]

Derivation

  1. Initial program 5.2

    \[\]
  2. Using strategy rm
  3. Applied associate-/r*0.1

    \[\leadsto \]
  4. Final simplification0.1

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x y)
  :name "Statistics.Sample:$skurtosis from math-functions-0.1.5.2"
  :precision binary64

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

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