e^{re} \cdot \sin im\sqrt{e^{re}} \cdot \left(\sin im \cdot e^{re \cdot 0.5}\right)(FPCore (re im) :precision binary64 (* (exp re) (sin im)))
(FPCore (re im) :precision binary64 (* (sqrt (exp re)) (* (sin im) (exp (* re 0.5)))))
double code(double re, double im) {
return exp(re) * sin(im);
}
double code(double re, double im) {
return sqrt(exp(re)) * (sin(im) * exp(re * 0.5));
}



Bits error versus re



Bits error versus im
Results
Initial program 0.0
rmApplied add-sqr-sqrt_binary640.0
Applied associate-*l*_binary640.0
Simplified0.0
rmApplied add-exp-log_binary640.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020260
(FPCore (re im)
:name "math.exp on complex, imaginary part"
:precision binary64
(* (exp re) (sin im)))