Cody

Solution 2071134

Submitted on 28 Dec 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
n = 3; y_correct = -360; assert(abs(ProdEigMag(n)-y_correct)<10^(-4))

a = 8 1 6 3 5 7 4 9 2 b = 15.0000 4.8990 -4.8990 y = -360.0000

2   Fail
n = 6; y_correct = -9.0175e-08; assert(abs(ProdEigMag(n)-y_correct)<10^(-4))

a = 8 1 6 3 5 7 4 9 2 b = 15.0000 4.8990 -4.8990 y = -360.0000

Assertion failed.