

scilab doubt
How to write this in Scilab?
e^2.(0.5+0.6i); pl include also answer. thank you.
Ravi kumar
SASTRA Deemed University, Thanjavur
Scilab


%e^2*(0.5+0.6*%i)
ans =
3.694528 + 4.4334337i


Hello,
How do you want to execute the above expression? Is it exp(2*(0.5+0.6i) or exp(2)+(0.5+0.6i)?. I typed it as: exp(2*(0.5+0.6*%i)). I got the answer as 0.9849905 + 2.5335449i. The result depends on how you use the paranthesis.
As previous comment, if you dont use paranthesis for whole term, you will get different answer.
T Srihari
SASTRA Deemed to be University, Thanjavur
04-05-19, 11:35 a.m. ravi2544
Login to add comment