Comment #42 on issue 93 by [email protected]: Square root denesting
http://code.google.com/p/sympy/issues/detail?id=93

Here's how that expression arose:

RegularPolygon((1,0),1,5)
RegularPolygon(Point(1, 0), 1, 5, 0)
s=_.sides[0];s
Segment(Point(sqrt(5)/4 + 3/4, sqrt(sqrt(5)/8 + 5/8)), Point(2, 0))
Line((2,3),slope=s.slope).slope, s.slope
(-sqrt(5)*sqrt(2*sqrt(5) + 5)/5, -sqrt(2*sqrt(5) + 10)/4 - sqrt(5)*sqrt(2*sqrt(5) + 10)/20)


I'm not sure why the slopes are not the same, especially since the slope was given during instantiation of the line. But without nsimplify or a numerical test, those two slopes don't simplify to the same thing (and a, b, c in the previous post are not affected by simplify). But nsimplify can show the slopes are the same:

[nsimplify(i) for i in _]
[-sqrt(2*sqrt(5)/5 + 1), -sqrt(2*sqrt(5)/5 + 1)]



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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


Reply via email to