How can I convert log(-1) to complex number

6 次查看(过去 30 天)
Hey there,
i want to calcuate log(-1), however i always get an error notification that it is not locial. Is there any way to convert it, so I get a imaginary number if it tries to solve it. Its known that log(-1) = 1.36437635 i

采纳的回答

Stephen23
Stephen23 2023-2-27
log10(-1)
ans = 0.0000 + 1.3644i

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by