\frac{e \cdot \sin v}{1 + e \cdot \cos v}\frac{e \cdot \sin v}{1 + \log \left(e^{e \cdot \cos v}\right)}(FPCore (e v) :precision binary64 (/ (* e (sin v)) (+ 1.0 (* e (cos v)))))
(FPCore (e v) :precision binary64 (/ (* e (sin v)) (+ 1.0 (log (exp (* e (cos v)))))))
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 + log(exp(e * cos(v))));
}



Bits error versus e



Bits error versus v
Results
Initial program 0.1
rmApplied add-log-exp_binary640.1
Final simplification0.1
herbie shell --seed 2020219
(FPCore (e v)
:name "Trigonometry A"
:precision binary64
:pre (<= 0.0 e 1.0)
(/ (* e (sin v)) (+ 1.0 (* e (cos v)))))