Problem 282. Circle and Quadratic

Solution 669836

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))

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

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

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

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

Suggested Problems

More from this Author6

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!