Cody

Solution 1752751

Submitted on 16 Mar 2019
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 = 50; y_correct = 1.417475 assert(abs(your_fcn_name(x)-y_correct) < 1e-4)

y_correct = 1.4175

Undefined function or variable 'x'. Error in your_fcn_name (line 2) a=x/50 Error in Test1 (line 3) assert(abs(your_fcn_name(x)-y_correct) < 1e-4)

2   Fail
x = 100; y_correct = 2.83495 assert(abs(your_fcn_name(x)-y_correct) < 1e-4)

y_correct = 2.8350

Undefined function or variable 'x'. Error in your_fcn_name (line 2) a=x/50 Error in Test2 (line 3) assert(abs(your_fcn_name(x)-y_correct) < 1e-4)

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

y_correct = 14.1747

Undefined function or variable 'x'. Error in your_fcn_name (line 2) a=x/50 Error in Test3 (line 3) assert(abs(your_fcn_name(x)-y_correct) < 1e-4)

4   Fail
x = 1000; y_correct = 28.3495 assert(abs(your_fcn_name(x)-y_correct) < 1e-4)

y_correct = 28.3495

Undefined function or variable 'x'. Error in your_fcn_name (line 2) a=x/50 Error in Test4 (line 3) assert(abs(your_fcn_name(x)-y_correct) < 1e-4)