Cody

Solution 2068737

Submitted on 25 Dec 2019 by Asif Newaz
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
nn = 3; orms_correct = 3.4156 assert((odd_rms(nn)-orms_correct)<0.5)

orms_correct = 3.4156 a = 1 3 5 b = 1 9 25 c = 35 d = 11.6667 e = 3.4157

2   Pass
nn = 10; orms_correct = 11.5325 assert((odd_rms(nn)-orms_correct)<0.5)

orms_correct = 11.5325 a = 1 3 5 7 9 11 13 15 17 19 b = 1 9 25 49 81 121 169 225 289 361 c = 1330 d = 133 e = 11.5326

3   Pass
nn = 1; orms_correct = 1 assert((odd_rms(nn)-orms_correct)<0.5)

orms_correct = 1 a = 1 b = 1 c = 1 d = 1 e = 1