Do logarithm to complex number get strange result.

5 views (last 30 days)
vv=1-80i;
a=exp(vv);
b=log(a);
in my research, I need to do log to some complex number, but it seems that the result are not invertable.
This is really strange, anyone knows what's happened?
20190701210829.png

Accepted Answer

Matt J
Matt J on 1 Jul 2019
Edited: Matt J on 1 Jul 2019
Because for any integer, k,
and so clearly log() cannot uniquely determine what the imaginary part of the original number was.

More Answers (0)

Categories

Find more on MATLAB 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!