I thought why not start random math problem solution thread, that might work nicely with google search and, who knows, actually help someone. I am not limiting this to myself, feel free to post your stuff, but please do not post disscussion/off-topic. So, the thread rule is: one working math-related code per post

Here goes mine, to start things going: intersection of ellipse and line, ellipse tangent line