Cody

Solution 1252416

Submitted on 17 Aug 2017 by Chris Cleveland
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
x = 100; r=12.683; n=1; y_correct = 1; assert(isequal(your_fcn_name(r,x,n),y_correct))

2   Pass
x = 100; r=12.683; n=12; y_correct = 12.683; assert(isequal(your_fcn_name(r,x,n),y_correct))

3   Pass
x = 100; r=12.683; n=24; y_correct = 26.975; assert(isequal(your_fcn_name(r,x,n),y_correct))

4   Pass
x = 100; r=12.683; n=30; y_correct = 34.786; assert(isequal(your_fcn_name(r,x,n),y_correct))

5   Pass
x = 100; r=7; n=5; y_correct = 2.859; assert(isequal(your_fcn_name(r,x,n),y_correct)) x = 1000; r=12.683; n=1; y_correct = 10; assert(isequal(your_fcn_name(r,x,n),y_correct))