Friday, July 5, 2013

project euler problem 246

Tangents to an ellipse

This problem involves quite a bit math. It took me an hour or so to get the correct formula. The rest of the thing is easy.  Code is very simple and runs in no time. 

I am surprised to find that this problem can be solved in an algorithmic way(xsd in the first page).   It involves less math and still quite efficient.

No comments:

Post a Comment