Cody

Solution 1574238

Submitted on 3 Jul 2018 by David Verrelli
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))

m = 8 1 6 3 5 7 4 9 2 v = 15.0000 4.8990 -4.8990 y = -360.0000

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

m = 35 1 6 26 19 24 3 32 7 21 23 25 31 9 2 22 27 20 8 28 33 17 10 15 30 5 34 12 14 16 4 36 29 13 18 11 v = 111.0000 27.0000 -27.0000 9.7980 -0.0000 -9.7980 y = -2.8428e-08