Hi folks, consider the following
tt=abs(-cos(w)^2 + 2Icos(w)sin(w) + sin(w)^2 + 2.8cos(w) - 2.8Isin(w) - 1.8)
tt.taylor(w,0.1,1) this doesn't work
ttt=-cos(w)^2 + 2Icos(w)sin(w) + sin(w)^2 + 2.8cos(w) - 2.8Isin(w) - 1.8 lttt=sqrt(ttt.real()2+ttt.imag()2) lttt.taylor(w,0.1,3). #this works!
So as you can see I have two mathematically equivalent expressions, tt and lttt, but sage is not able to directly find the Taylor series of the first. Is there a way to convince sage to do this correctly?