This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(abs(calculate_PAI-pi)<1e-7);
|
2 | Pass |
filetext = fileread('calculate_PAI.m');
assert(isempty(strfind(filetext, 'pi')),'pi forbidden');
assert(isempty(strfind(filetext, '3.14159')),'3.14159 forbidden');
assert(isempty(strfind(filetext, 'str')),'str function forbidden');
|
8411 Solvers
Find the sum of the elements in the "second" diagonal
879 Solvers
451 Solvers
152 Solvers
07 - Common functions and indexing 2
255 Solvers