Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = -pi/2;
y_correct = sin(x);
assert(abs(my_func(x)-y_correct)<0.0001)
y =
-1.0000
|
2 | Pass |
x = rand(1)*2*pi;
y_correct = sin(x);
assert(abs(my_func(x)-y_correct)<0.0001)
y =
-0.8557
|
3 | Pass |
assessFunctionAbsence({'cos', 'sin'}, 'FileName', 'my_func.m');
|
Program an exclusive OR operation with logical operators
639 Solvers
Make a run-length companion vector
512 Solvers
340 Solvers
5468 Solvers
242 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!