# Trying to plot complex function for varying value of t

1 view (last 30 days)

Show older comments

##### 5 Comments

dpb
on 17 Mar 2024

You're going to have to show us how you did what you did in Desmos; it doesn't look like what you describe to me.

clear all

t=linspace(0,pi); % vary t from 0 to pi

plot(exp(i*t)) % plot the function against t

ylim(xlim) % put on even range

axis square % and the same footing in space

### Answers (1)

Binaya
on 20 Mar 2024

Hi Keaton

By Euler's formula, use of the expression "exp(i*t)" results in the expression "cos(t)+i*sin(t)". From this expression, it can be concluded that the maximum value of the expression can be 1 in either real axis or imaginary axis.

When you try to plot this "exp(i*t)", where t ranges from 0 to pi, you get a half circle as shown below:

t=0:0.01:pi;

y=exp(i*t);

plot(y);axis equal;

The plot generated by desmos does not seem to take into account the "i" or imaginary number when calculating the plot of the exponential which leads to the a plot of exponential function with real inputs.

##### 1 Comment

Walter Roberson
on 20 Mar 2024

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!