Which function is preferable to find the magnitude of a complex number?

Khánh Đoan

New member
Which function is preferable to find the magnitude of a complex number?
A. abs()
B. sqrt()
C. cart2pol()
D. MATLAB does not support complex arguments
 
Answer: a
Explanation: In the function sqrt(), we have to write the polynomial which shows the sum of squares of the real and imaginary part within the parentheses. But in abs(), we only have to enter the variable which we’ve used to define the complex number. So abs() is more preferred.
 

Tìm kiếm

Back
Top