\frac{1 - \cos x}{x \cdot x}\frac{1 - \cos x}{x \cdot x}(FPCore (x) :precision binary64 (/ (- 1.0 (cos x)) (* x x)))
(FPCore (x) :precision binary64 (/ (- 1.0 (cos x)) (* x x)))
double code(double x) {
return (1.0 - cos(x)) / (x * x);
}
double code(double x) {
return (1.0 - cos(x)) / (x * x);
}



Bits error versus x
Results
Initial program 31.3
herbie shell --seed 2021044
(FPCore (x)
:name "cos2 (problem 3.4.1)"
:precision binary64
(/ (- 1.0 (cos x)) (* x x)))