Graph for the imaginary part of complex logarithmic exponential function

3 views (last 30 days)
When writing the following in Mathlab:
t = 0:pi/100:pi/2;
r = 0.5:0.1:1;
x = r' * cos(t);
y = r' * sin(t);
z = x + i*y;
w = log(z.^12);
surfc(x, y, imag(w))
We get a graph that shows three "leaps". How can I find out what is the value of t at each "leap"?
  2 Comments
John D'Errico
John D'Errico on 8 Feb 2014
Edited: John D'Errico on 8 Feb 2014
That is funny. I just tried your code. No "leaps" that I saw. Are you SURE there are leaps in that graph? This is not even a leap year. Test your code.
Zed
Zed on 8 Feb 2014
The graph will show a quarter of a circle ring with three leaps, one that looks to be at pi/4. Try again.

Sign in to comment.

Answers (1)

Roger Stafford
Roger Stafford on 8 Feb 2014
For any combination of elements of t and r your w can be expressed as
w(r,t) = r^12*exp(12*t*i)
so its logarithm is
log(w(r,t)) = 12*log(r) + 12*t*i
However matlab's 'log' function constrains its imaginary part to the interval from -pi to +pi. Therefore you can expect discontinuities to occur at t = 1/12*pi, 3/12*pi, and 5/12*pi.
  2 Comments
Zed
Zed on 9 Feb 2014
Thanks! I understand the first discontinuity is at t=1/12*pi, but why isn't the second at t=2/12*pi and the third at t=3/12*pi? I thought the discontinuity would be at every 1/12 of pi.
Roger Stafford
Roger Stafford on 9 Feb 2014
When t increases to 1/12*pi, then 12*t reaches pi. A bit beyond that point it has 2*pi subtracted from it, dropping down to -pi, so then its formula becomes 12*t-2*pi. Next t has to get up to 3/12*pi before this reaches pi again: 12*t-2*pi = 12*(3/12*pi)-2*pi = pi, so then it has 2*pi subtracted again with the formula becoming 12*t-4*pi. That remains valid until t reaches 5/12*pi whereupon we get 12*(5/12*pi)-4*pi = pi once again, so beyond that another 2*pi is subtracted giving 12*t-6*pi. That last is still valid when t reaches 1/2*pi, so that gives you four distinct pieces as t ranges from 0 to 1/2*pi separated by three discontinuities at t = 1/12*pi, 3/12*pi, and 5/12*pi.

Sign in to comment.

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!