Updates:
Status: Fixed
Comment #2 on issue 2309 by smi...@gmail.com: Failing test with
Ellipse.random_point()
http://code.google.com/p/sympy/issues/detail?id=2309
This was fixed by checking that the coefficient is small:
def test_ellipse_random_point():
e3 = Ellipse(Point(0, 0), y1, y1)
rx, ry = Symbol('rx'), Symbol('ry')
for ind in xrange(0, 5):
r = e3.random_point()
# substitution should give zero*y1**2
assert e3.equation(rx, ry).subs(zip((rx, ry), r.args)
).n(3).as_coeff_Mul()[0] < 1e-10
Sometimes it is 0*y1**2 (hence 0) and sometimes it isn't so I just modified
the test to look at the coefficient.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.