Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium

New issue 1960 by smichr: should repr form of geometry entities be the same as str?
http://code.google.com/p/sympy/issues/detail?id=1960

Sorry if this is duplicating an issue (which I'm not able to find) but it was discussed that perhaps the repr and str forms of geometric intities should be the same. This patch tries to do that:

    Now intersections will look nicer:

    >>> l1
    Line(Point(2, 2), Point(0, 10))
    >>> l2
    Line(Point(0, 1), Point(8, 3))
    >>> l1.intersection(l2)
    [Point(36/17, 26/17)]

    Previously it looked like this:

    >>> l1
    Line(Point(Integer(2), Integer(2)), Point(Zero, Integer(10)))
    >>> l2
    Line(Point(Zero, One), Point(Integer(8), Integer(3)))
    >>> l1.intersection(l2)
    [Point(Rational(36, 17), Rational(26, 17))]

--
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.

Reply via email to