Cody

Solution 1184901

Submitted on 9 May 2017 by Peng Liu
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; n=1; r=12.683; y_correct = 101; assert(isequal(your_fcn_name(r,x,n),y_correct))

ans = 101

2   Pass
x=200; n=1; r=12.683; y_correct = 202; assert(isequal(your_fcn_name(r,x,n),y_correct))

ans = 202

3   Pass
x=100; r=1; n=12; y_correct = 1206; assert(isequal(your_fcn_name(r,x,n),y_correct))

ans = 1206

4   Pass
x=50; r=10; n=60; y_correct = 3859; assert(isequal(your_fcn_name(r,x,n),y_correct))

ans = 3859

5   Pass
x=5; r=10; n=60; y_correct = 386; assert(isequal(your_fcn_name(r,x,n),y_correct))

ans = 386

6   Pass
x=100; r=14; n=360; y_correct = 459962; assert(isequal(your_fcn_name(r,x,n),y_correct))

ans = 459962

Suggested Problems

More from this Author5