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 =
1.0e+03 *
1.0966 0.0019 0.0008
|
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 =
1.0e+04 *
5.9874 0.0002 0.0001
|
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 =
1.0e+07 *
2.4155 0.0000 0.0000
|
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 =
1.0e+18 *
1.7393 0.0000 0.0000
|
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 =
1.0e+43 *
7.3071 0.0000 0.0000
|
Select every other element of a vector
20340 Solvers
Omit columns averages from a matrix
527 Solvers
338 Solvers
232 Solvers
Rotate a matrix for 180 degree
132 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!