Hi,

sympy.geometry.intersection doesn't work for me if the two lines are
based on float values. For example,

>>> l1
Line(Point(Real('491.47699999999998', prec=15), Real
('591.02760000000001', prec=15)), Point(Real('656.726', prec=15), Real
('-2.4604000000000501', prec=15)))

>>> l2
Line(Point(Real('509.33123499999999', prec=15), Real
('526.81484999999998', prec=15)), Point(Real('836.664535', prec=15),
Real('11.6581799999999', prec=15)))

yields

>>> l1.intersection(l2)
[]

Since the slope of the two lines is different (l1.slope =
-3.59147710424874; l2.slope = -1.57379854112001), they do intersect in
a point ,but SymPy doesn't seem to compute this point.

What am I doing wrong?

Thanks,
Sebastian

--

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


Reply via email to