\frac{e \cdot \sin v}{1 + e \cdot \cos v}
e \cdot \frac{\sin v}{\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) (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) / fma(e, cos(v), 1.0));
}



Bits error versus e



Bits error versus v
Initial program 0.1
Simplified0.1
Applied *-un-lft-identity_binary640.1
Applied times-frac_binary640.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2022020
(FPCore (e v)
:name "Trigonometry A"
:precision binary64
:pre (and (<= 0.0 e) (<= e 1.0))
(/ (* e (sin v)) (+ 1.0 (* e (cos v)))))