Cody

Solution 1148225

Submitted on 29 Mar 2017 by H M Dipu Kabir
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = -pi/2; y_correct = sin(x); assert(abs(my_func(x)-y_correct)<0.0001)

x = 1.5708 y = -1.0000

2   Pass
x = rand(1)*2*pi; y_correct = sin(x); assert(abs(my_func(x)-y_correct)<0.0001)

x = 0.5456 y = 0.5189

3   Pass
assessFunctionAbsence({'cos', 'sin'}, 'FileName', 'my_func.m');