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



Bits error versus re



Bits error versus im
Results
Initial program 0.0
Applied *-commutative_binary640.0
Final simplification0.0
herbie shell --seed 2022067
(FPCore (re im)
:name "math.exp on complex, imaginary part"
:precision binary64
(* (exp re) (sin im)))