On 29 Mai, 08:13, "Matteo Boscolo" <[email protected]>
wrote:
> Hi Michael,>If you mean construct a line tangent to a circle given a point on 
> the line
>
> that is not on the circle, then no>there isn't because that gives multiple 
> solutions
>
> Yes I know.. but intersecting a line with a circle give multiple solution
> too ..
>
> In case of a point out of a circle we get 2 tangent Line and it’s easy to
> calculate ..
> If you get the Polar Line referred at the circle
> p:xX+yY+a(X+x)/2+b(Y+y)/2+c=0
> Where (x,y) are the external point and x^2+y^2+ax+by+c=0 is the circle
> equation.
> Intersect the Polarline with the circle and you get the intersection
> points..
>
> There is any easy way to compute this with sympy?
> Regards,
> Matteo

See

http://docs.sympy.org/modules/geometry.html

for and the docstrings of the functions and classes to see what is
possible.

The docstrings should be included in the html docs BTW.

I guess you would need to improve the algorithm to accept points
outside the circle. (There is also the problem that there are 2
solutions then.)

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to