Cody

Solution 1023542

Submitted on 19 Oct 2016 by daniel lamont
  • Size: 12
  • This is the leading solution.
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)

ans = -1

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

ans = -0.9785

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