Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Geometry
New issue 3617 by [email protected]: Impossible to work with floating
point numbers in the geometry module
http://code.google.com/p/sympy/issues/detail?id=3617
In [25]: r = Ray(Point(-2.1, 3.1), Point(3.1, 1.1))
In [26]: >>> e2 = Ellipse(Point(3.1, 1.1), hradius=3.1, eccentricity=0.8)
In [27]: e2.intersection(r)
Out[27]:
[Point(-260000000*sqrt(1102760755899847)/3308282267699541 + 31/10,
100000000*sqrt(1102760755899847)/3308282267699541 + 11/10),
Point(260000000*sqrt(1102760
755899847)/3308282267699541 + 31/10,
-100000000*sqrt(1102760755899847)/3308282267699541 + 11/10)]
Notice how all the floating point numbers were converted to rational
somewhere, leading to very big numbers.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.