Solution 1696796

Submitted on 19 Dec 2018 by James
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 = 1; y_correct = 1; assert(isequal(MyFunc(x),y_correct))

2   Pass
user_solution = fileread('MyFunc.m'); assert(isempty(strfind(user_solution,'sqrt'))); assert(isempty(strfind(user_solution,'num2str'))); assert(isempty(strfind(user_solution,'fprintf'))); assert(isempty(strfind(user_solution,'assert')));

Suggested Problems