Question: Complex numbers

Hi everyone, I'm a newbie at Maple and am building a model for the transmission and reflection of EM waves in layered media. I'm trying to separate something like: R[s] = (-I*sin(q[m]*l/Z[m])*Z[1]*Z[t]-cos(q[m]*l)*Z[1]+cos(q[m]*l)*Z[t]+I*Z[m]*sin(q[m]*l))/(I*sin(q[m]*l/Z[m])*Z[1]*Z[t]+cos(q[m]*l)*Z[1]+cos(q[m]*l)*Z[t]+I*Z[m]*sin(q[m]*l)) into complex and real parts. Re and Im don't seem to work. In fact if I take an equation like: f:= cos(x) + 2*sin(4*x) and run Re or Im on it, it doesn't seem to work. Any assistance would be much appreciated! Thanks,
Please Wait...