Cody

Problem 47003. Combine complex conjugates first when computing the product of vector

Solution 3318793

Submitted on 21 Oct 2020 by Richard Allred
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
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]; p_correct = -1.371038915265445082201028823e+67; assert(isequal(cprod(v),p_correct))

2   Pass
v = [ -58018582009.6862 + 0i 11881642421.73 - 18022157170.9685i 11881642421.73 + 18022157170.9685i 18374324855.4044 + 0i -226405216.604407 + 0i -1337454510.20606 + 0i]; p_correct = -1.50419234807407836028190728e+59; assert(isequal(cprod(v),p_correct))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!