Euler's formula e^(ix) = cos x + isin x by separating even and odd terms from the series for e^z