This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 0;
y_correct = 0;
assert(abs(your_fcn_name(x)-y_correct)<0.01)
|
2 | Pass |
x = pi/4;
y_correct = 1;
assert(abs(your_fcn_name(x)-y_correct)<0.01)
|
3 | Pass |
x = -pi/4;
y_correct = -1;
assert(abs(your_fcn_name(x)-y_correct)<0.01)
|
1398 Solvers
Increment a number, given its digits
562 Solvers
651 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Sum of the Multiplication of Vectors
202 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!