\frac{e \cdot \sin v}{1 + e \cdot \cos v}\frac{e}{e \cdot \cos v + 1} \cdot \sin v(FPCore (e v) :precision binary64 (/ (* e (sin v)) (+ 1.0 (* e (cos v)))))
(FPCore (e v) :precision binary64 (* (/ e (+ (* e (cos v)) 1.0)) (sin v)))
double code(double e, double v) {
return (e * sin(v)) / (1.0 + (e * cos(v)));
}
double code(double e, double v) {
return (e / ((e * cos(v)) + 1.0)) * sin(v);
}



Bits error versus e



Bits error versus v
Results
Initial program 0.1
rmApplied associate-/l*_binary640.3
Simplified0.3
rmApplied associate-/r/_binary640.1
Final simplification0.1
herbie shell --seed 2020253
(FPCore (e v)
:name "Trigonometry A"
:precision binary64
:pre (<= 0.0 e 1.0)
(/ (* e (sin v)) (+ 1.0 (* e (cos v)))))