Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 0;
y_correct = 1;
assert(abs(my_func(x)-y_correct)<0.0001)
ans =
1
|
2 | Pass |
x = pi/2;
y_correct = 0;
assert(abs(my_func(x)-y_correct)<0.0001)
ans =
6.1232e-17
|
3 | Pass |
x = rand(1)*2*pi;
y_correct = cos(x);
assert(abs(my_func(x)-y_correct)<0.0001)
ans =
-0.5203
|
4 | Pass |
assessFunctionAbsence({'sin','cos'}, 'FileName', 'my_func.m')
|
2934 Solvers
Try 1.5.4: Celsius to Fahrenheit
486 Solvers
181 Solvers
167 Solvers
Slope of the line passing through two points
35 Solvers