Comment #10 on issue 2233 by [email protected]: Triangle errors
http://code.google.com/p/sympy/issues/detail?id=2233
Cloned your repository, checked-out branch geometry. But it is still
possible to create a Triangle from three collinear points.
gdk@JOBBY ~/My Documents/computing/__git__/sympy_smichr (geometry)
$ python bin/isympy
IPython console for SymPy 0.6.7-git (Python 2.7.1)
These commands were executed:
...[edited out]
In [1]: p1, p2, p3 = Point(0, 0), Point(1, 1), Point(2, 2)
In [2]: t = Triangle(p1, p2, p3)
In [4]: print t
------> print(t)
Triangle(Point(0, 0), Point(1, 1), Point(2, 2))
In [5]: t.circumcenter
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
c:\Documents and Settings\gdk\My
Documents\computing\__git__\sympy_smichr\<ipyth
on console> in <module>()
c:\Documents and Settings\gdk\My
Documents\computing\__git__\sympy_smichr\sympy\
geometry\polygon.pyc in circumcenter(self)
963 """
964 a,b,c = [x.perpendicular_bisector() for x in self.sides]
--> 965 return GeometryEntity.do_intersection(a, b)[0]
966
967 @property
IndexError: list index out of range
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.