I think I probably miss something. Can you tell me what it is?
In my assumption, that any given 'x' value, $$e^{ix}=\cos x+i\sin x$$
But, why don't I get the same value in the equation when I calculate it in matlab?
x=pi/3;
exp(x) = 2.8497
cos(x)+sin(x) = 1.3660
I know I miss out 'i' in the equation. Honestly, I don't know that what the 'i' serves to get the actual value. Can anybody help?
$i$ is an imaginary number that satisfies $i^2=-1$. You can't just remove it from Euler's formula and expect things to work out.