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
|
3309 Solvers
Back to basics 20 - singleton dimensions
225 Solvers
Calculate square and cube of number
169 Solvers
361 Solvers
Calculate the sum of elements of n*n Hilbert matrix.
30 Solvers