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



Bits error versus e



Bits error versus v
Initial program 0.1
Simplified0.1
Applied div-inv_binary640.1
Final simplification0.1
herbie shell --seed 2021224
(FPCore (e v)
:name "Trigonometry A"
:precision binary64
:pre (<= 0.0 e 1.0)
(/ (* e (sin v)) (+ 1.0 (* e (cos v)))))