Cody

Solution 1005613

Submitted on 10 Oct 2016 by Mario Rossi
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
L = 1; D_correct = 1.414213562373095; assert( abs(square_diag(L)-D_correct) < 1e-09 )

2   Pass
L = 9; D_correct = 12.72792206135785; assert( abs(square_diag(L)-D_correct) < 1e-09 )