Cody

Solution 1899895

Submitted on 14 Aug 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 = 7; y_correct = [exp(x) log(x) log10(x)]; [y_e,y_ln,y_log] = your_fcn_name(x); y = [y_e,y_ln,y_log]; assert(sum(abs(y-y_correct))<1e-3)

Error using your_fcn_name Too many output arguments. Error in Test1 (line 3) [y_e,y_ln,y_log] = your_fcn_name(x);

2   Fail
x = 11; y_correct = [exp(x) log(x) log10(x)]; [y_e,y_ln,y_log] = your_fcn_name(x); y = [y_e,y_ln,y_log]; assert(sum(abs(y-y_correct))<1e-3)

Error using your_fcn_name Too many output arguments. Error in Test2 (line 3) [y_e,y_ln,y_log] = your_fcn_name(x);

3   Fail
x = 17; y_correct = [exp(x) log(x) log10(x)]; [y_e,y_ln,y_log] = your_fcn_name(x); y = [y_e,y_ln,y_log]; assert(sum(abs(y-y_correct))<1e-3)

Error using your_fcn_name Too many output arguments. Error in Test3 (line 3) [y_e,y_ln,y_log] = your_fcn_name(x);

4   Fail
x = 42; y_correct = [exp(x) log(x) log10(x)]; [y_e,y_ln,y_log] = your_fcn_name(x); y = [y_e,y_ln,y_log]; assert(sum(abs(y-y_correct))<1e-3)

Error using your_fcn_name Too many output arguments. Error in Test4 (line 3) [y_e,y_ln,y_log] = your_fcn_name(x);

5   Fail
x = 101; y_correct = [exp(x) log(x) log10(x)]; [y_e,y_ln,y_log] = your_fcn_name(x); y = [y_e,y_ln,y_log]; assert(sum(abs(y-y_correct))<1e-3)

Error using your_fcn_name Too many output arguments. Error in Test5 (line 3) [y_e,y_ln,y_log] = your_fcn_name(x);

Suggested Problems

More from this Author27