필터 지우기
필터 지우기

mathematical symbol in the result

조회 수: 1 (최근 30일)
Fadzli
Fadzli 2017년 3월 3일
댓글: Walter Roberson 2017년 3월 3일
Hi all,
I just run a program in Matlab and it gives a result of "5.6490e-006 +9.7844e-006i". I know what does it means by "5.6490e-006" but I'm not sure about "+9.7844e-006i", why there is "i" symbol at the back. Maybe this is more to mathematical definition but anyone can help? Thanks

채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 3일
The i represents sqrt(-1), so your result was 5.6490e-006 + sqrt(-1) * 9.7844e-006

추가 답변 (1개)

Fadzli
Fadzli 2017년 3월 3일
Thanks Walter Roberson... I just used a simple mathematical equation; y=2*((3*x)/(4*1847*pi))^(1/3) with x is given, so any reason why the answer was in the "sqrt(-1)" form?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 3월 3일
You have negative x values, leading to a negative value to the 1/3 power.
You might perhaps be expecting the real root, but when you use ^ the operation is defined in terms of log and exp, which leads to complex values for most roots of negative values. You can use nthroot
https://www.mathworks.com/help/matlab/ref/nthroot.html

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by