Analytically, the product of complex conjugates yields a real result. When numerically computing the product of a vector containing large valued complex conjugates, care must be taken to ensure that the terms are first multiplied with their conjugate to ensure that the result is real.
For example:
v = [ -376565273.869706 + 0i
-3419197614.44981 + 1946408802.27484i
-3419197614.44981 - 1946408802.27484i
-3789372834.14304 + 4660481826.64665i
-3789372834.14304 - 4660481826.64665i
-4853975182.33591 + 6452212202.13479i
-4853975182.33591 - 6452212202.13479i];
prod(v) = -1.37103891526544e+67 + 2.24486651494027e+51i
Combine the vector's terms together in such a way that the product is real.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers9
Suggested Problems
-
Find the peak 3n+1 sequence value
2567 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1305 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
513 Solvers
-
Calculate the height of an object dropped from the sky
284 Solvers
-
Find out sum of all elements of given Matrix
534 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!