Cody

Solution 1257789

Submitted on 26 Aug 2017 by Mehmet OZC
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 = 27; y_correct = 3; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

y = 3

2   Pass
x = 1; y_correct = 1; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

y = 1

3   Pass
x = 64; y_correct = 4; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

y = 4

4   Pass
x = 125; y_correct = 5; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

y = 5

5   Pass
x = 1000; y_correct = 10; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

y = 10

6   Pass
x = 729; y_correct = 9; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

y = 9

Suggested Problems

More from this Author1