Average Error: 0.6 → 0
Time: 1.4s
Precision: binary64
\[\]
\[\]
double code(double x) {
	return ((double) (1.0 / ((double) (x * x))));
}
double code(double x) {
	return ((double) (((double) pow(x, -2.0)) * 1.0));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.6
Target0.2
Herbie0
\[\]

Derivation

  1. Initial program 0.6

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

    \[\leadsto \]
  4. Using strategy rm
  5. Applied add-cube-cbrt0.9

    \[\leadsto \]
  6. Applied *-un-lft-identity0.9

    \[\leadsto \]
  7. Applied times-frac0.9

    \[\leadsto \]
  8. Applied associate-/l*0.9

    \[\leadsto \]
  9. Simplified0.9

    \[\leadsto \]
  10. Using strategy rm
  11. Applied cbrt-unprod1.0

    \[\leadsto \]
  12. Using strategy rm
  13. Applied associate-*r/1.0

    \[\leadsto \]
  14. Applied associate-/r/1.0

    \[\leadsto \]
  15. Simplified0

    \[\leadsto \]
  16. Final simplification0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020179 
(FPCore (x)
  :name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (/ (/ 1.0 x) x)

  (/ 1.0 (* x x)))