Cody

Solution 573982

Submitted on 4 Feb 2015 by Juan Moreta
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 = 5; y_correct = 79; assert(isequal(your_fcn_name(x),y_correct))

area = 78.5398 y = 79

2   Pass
%% x = [2 2 2 2]; y_correct = 4; assert(isequal(your_fcn_name(x),y_correct))

area = 4 y = 4

3   Pass
%% x = [5 12 13]; y_correct = 30; assert(isequal(your_fcn_name(x),y_correct))

area = 30 y = 30

4   Pass
%% x = [2 6 2 6]; y_correct = 12; assert(isequal(your_fcn_name(x),y_correct))

area = 12 y = 12

Suggested Problems

More from this Author8