\left(0.5 \cdot \sin re\right) \cdot \left(e^{0.0 - im} + e^{im}\right)\mathsf{fma}\left(\sin re, e^{im}, \frac{\sin re}{e^{im - 0.0}}\right) \cdot 0.5double f(double re, double im) {
double r17695 = 0.5;
double r17696 = re;
double r17697 = sin(r17696);
double r17698 = r17695 * r17697;
double r17699 = 0.0;
double r17700 = im;
double r17701 = r17699 - r17700;
double r17702 = exp(r17701);
double r17703 = exp(r17700);
double r17704 = r17702 + r17703;
double r17705 = r17698 * r17704;
return r17705;
}
double f(double re, double im) {
double r17706 = re;
double r17707 = sin(r17706);
double r17708 = im;
double r17709 = exp(r17708);
double r17710 = 0.0;
double r17711 = r17708 - r17710;
double r17712 = exp(r17711);
double r17713 = r17707 / r17712;
double r17714 = fma(r17707, r17709, r17713);
double r17715 = 0.5;
double r17716 = r17714 * r17715;
return r17716;
}



Bits error versus re



Bits error versus im
Initial program 0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
rmApplied sub-neg0.0
Applied exp-sum0.0
Applied associate-*l*0.0
Simplified0.0
Taylor expanded around inf 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019195 +o rules:numerics
(FPCore (re im)
:name "math.sin on complex, real part"
(* (* 0.5 (sin re)) (+ (exp (- 0.0 im)) (exp im))))