Cody

Problem 1776. Singularity v5 (with apologies to the true hack masters)

Solution 303344

Submitted on 13 Aug 2013 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/; % oops y=2/; % double oops assert(isequal(not_my_function(x),y));

Error: You may not use the command(s) evalin in your code

2   Pass
%% x=1/; % oops y=2/; % double oops assert(isequal(my_function(x),y));

Error: You may not use the command(s) evalin in your code

3   Pass
%% forbidden = '(freepass)'; assert(isempty(regexp(evalc('type my_function'),forbidden)));

Error: You may not use the command(s) evalin in your code