Cody

Problem 44664. function to compute root mean square of first nn positive odd integers

Solution 3145061

Submitted on 10 Oct 2020 by ChrisR
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

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

orms_correct = 11.5325

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

orms_correct = 1

Suggested Problems

More from this Author29

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!