Complex multiplication giving incorrect result
I have a vector A of complex numbers but the product of the numbers should result in real value (there complex conjugate values that make sure the product is real). But when I run prod(A) I get an incorrect result.
A = 1.0e+08 *[-1.1051 + 0.0000i -0.4594 + 1.8182i -0.4594 – 1.8182i -0.2933 + 2.8161i -0.2933 – 2.8161i];
prod(A) = -3.1156e+41 – 9.6714e+24i
The correct value should be -3.1156e+41. why is MATLAB giving incorrect result here?I have a vector A of complex numbers but the product of the numbers should result in real value (there complex conjugate values that make sure the product is real). But when I run prod(A) I get an incorrect result.
A = 1.0e+08 *[-1.1051 + 0.0000i -0.4594 + 1.8182i -0.4594 – 1.8182i -0.2933 + 2.8161i -0.2933 – 2.8161i];
prod(A) = -3.1156e+41 – 9.6714e+24i
The correct value should be -3.1156e+41. why is MATLAB giving incorrect result here? I have a vector A of complex numbers but the product of the numbers should result in real value (there complex conjugate values that make sure the product is real). But when I run prod(A) I get an incorrect result.
A = 1.0e+08 *[-1.1051 + 0.0000i -0.4594 + 1.8182i -0.4594 – 1.8182i -0.2933 + 2.8161i -0.2933 – 2.8161i];
prod(A) = -3.1156e+41 – 9.6714e+24i
The correct value should be -3.1156e+41. why is MATLAB giving incorrect result here? matlab, mathematics MATLAB Answers — New Questions