Problem 1651. Circumcircle Points
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Strange, as this passes all of the tests on my box. (How did I pass a random test, and fail the hard coded ones?!?) Maybe a bsxfun issue?
Rounding errors of sqrt. Possible fix circle(3)+10*eps(circle(3)) and r+10*eps(r)
Better, but still not quite there. With those fixes, it passes everything but test 2. I'll try a couple more changes, and then just throw in a hard coded hack for case 2. (Or maybe I'll just ask Tim for his solution. :-)
-
1 Comment
Another astounding solution by Tim using complex numbers and for loops that create vectors. Example of for loop vectorization: for i=nchoosek(3:6,2)',i,end. Very nice mthod.
Problem Recent Solvers5
Suggested Problems
-
Return the largest number that is adjacent to a zero
4372 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1199 Solvers
-
MatCAT - Reconstruct X from Its X-rays
75 Solvers
-
How long do each of the stages of the rocket take to burn?
98 Solvers
-
Calculate compression ratio of engine
96 Solvers
More from this Author255
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!