Cody

Problem 42606. UICBioE240 problem 1.12

Solution 1201636

Submitted on 31 May 2017 by Karen Yee
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 = 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)

y_e = 1.0966e+03 y_ln = 1.9459 y_log = 0.8451

2   Pass
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)

y_e = 5.9874e+04 y_ln = 2.3979 y_log = 1.0414

3   Pass
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)

y_e = 2.4155e+07 y_ln = 2.8332 y_log = 1.2304

4   Pass
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)

y_e = 1.7393e+18 y_ln = 3.7377 y_log = 1.6232

5   Pass
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)

y_e = 7.3071e+43 y_ln = 4.6151 y_log = 2.0043

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!