Cody

Solution 669842

Submitted on 13 May 2015 by bkzcnldw
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
%% assert(all(abs(circ_puzz(1,2,3,4)-[-1 18.25])<100*eps))

ans = -1.0000 18.2500

2   Pass
%% assert(all(abs(circ_puzz(-1/pi,1/2,-3,exp(1))-[0.785398163397448 -5.94105822840435])<100*eps))

ans = 0.7854 -5.9411

3   Pass
%% assert(all(abs(circ_puzz(1/pi,-pi,pi,.01)-[4.93480220054468 -4.59997651648516])<100*eps))

ans = 4.9348 -4.6000

4   Pass
%% assert(all(abs(circ_puzz(-2,-3,-5,7)-[ -0.75 -102])<100*eps))

ans = -0.7500 -102.0000

5   Pass
%% assert(all(abs(circ_puzz(3,4,2,1.5)-[-2/3 7.5])<100*eps))

ans = -0.6667 7.5000

Suggested Problems

More from this Author6