Cody

Solution 225198

Submitted on 29 Mar 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

Test Suite

Test Status Code Input and Output
1   Fail
%% assert(isequal(circle_points(1),4))
Error: Undefined function or variable "y".
2   Fail
%% assert(isequal(circle_points(3),4))
Error: Undefined function or variable "y".
3   Fail
%% assert(isequal(circle_points(5),12))
Error: Undefined function or variable "y".
4   Fail
%% assert(isequal(circle_points(65),36))
Error: Undefined function or variable "y".
5   Fail
%% assert(isequal(circle_points(64090),324))
Error: Undefined function or variable "y".
6   Fail
%% assert(isequal(circle_points(2417899275),20))
Error: Undefined function or variable "y".
7   Fail
%% assert(isequal(circle_points(31432690549),8748))
Error: Undefined function or variable "y".
8   Fail
%% assert(isequal(circle_points(1021090952484265),236196))
Error: Undefined function or variable "y".
9   Fail
%% assert(isequal(circle_points(6095127531752228),78732))
Error: Undefined function or variable "y".
10   Fail
%% assert(isequal(circle_points(5*circle_points(630209)),12))
Error: Undefined function or variable "y".
11   Fail
%% assert(isequal(circle_points(65*circle_points(236009)),36))
Error: Undefined function or variable "y".
12   Pass
%% filetext = fileread('circle_points.m'); assert(isempty(strfind(filetext, 'switch'))) assert(isempty(strfind(filetext, 'case')))