Cody

# Problem 44166. raise 1/3

Solution 2285968

Submitted on 16 May 2020
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   Fail
x = 27; y_correct = 3; assert(abs(your_fcn_name(x)-y_correct)<1e-7)

Undefined function 'cbrt' for input arguments of type 'double'. Error in your_fcn_name (line 2) y = cbrt(x); Error in Test1 (line 3) assert(abs(your_fcn_name(x)-y_correct)<1e-7)

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

Undefined function 'cbrt' for input arguments of type 'double'. Error in your_fcn_name (line 2) y = cbrt(x); Error in Test2 (line 3) assert(abs(your_fcn_name(x)-y_correct)<1e-7)

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

Undefined function 'cbrt' for input arguments of type 'double'. Error in your_fcn_name (line 2) y = cbrt(x); Error in Test3 (line 3) assert(abs(your_fcn_name(x)-y_correct)<1e-7)

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

Undefined function 'cbrt' for input arguments of type 'double'. Error in your_fcn_name (line 2) y = cbrt(x); Error in Test4 (line 3) assert(abs(your_fcn_name(x)-y_correct)<1e-7)

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

Undefined function 'cbrt' for input arguments of type 'double'. Error in your_fcn_name (line 2) y = cbrt(x); Error in Test5 (line 3) assert(abs(your_fcn_name(x)-y_correct)<1e-7)

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

Undefined function 'cbrt' for input arguments of type 'double'. Error in your_fcn_name (line 2) y = cbrt(x); Error in Test6 (line 3) assert(abs(your_fcn_name(x)-y_correct)<1e-7)