Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = -pi/2;
y_correct = sin(x);
assert(abs(my_func(x)-y_correct)<0.0001)
ans =
-1
|
2 | Pass |
x = rand(1)*2*pi;
y_correct = sin(x);
assert(abs(my_func(x)-y_correct)<0.0001)
ans =
-0.8719
|
3 | Pass |
assessFunctionAbsence({'cos', 'sin'}, 'FileName', 'my_func.m');
|
1208 Solvers
Return the first and last character of a string
1650 Solvers
624 Solvers
Number of digits in an integer
271 Solvers
96 Solvers