Does Euler's formula remain valid if we use any real number other than the constant $e$? For example replacing $e$ with 5 would make the formula look like this: $5^{it}$.
I tried this idea in Matlab and replaced $e$ with few other real numbers (eg 1.5, 10, 2.1) and each time the plot was still showing what seemed like cosine and sine waves. The frequency of the cos and sin was changing depending on the base.
Here's roughly my approach:
w = freq * 2 * pi;
t = 0:0.001:1000 ;
a = real( number ^ (i*wt) ) ; % cos in Euler's formula
b = imag( number ^ (i*wt) ) ; % sin in Euler's formula