Updates:
Labels: CodeInCategory-Code CodeInDifficulty-Medium
Comment #2 on issue 716 by smi...@gmail.com: either tangent_line or
is_tangent is wrong
http://code.google.com/p/sympy/issues/detail?id=716
Here are some examples of how to get it to 0:
S(' -(36 - 72*cos(1)**2 - 36*sin(1)**4 + 36*cos(1)**4)**(1/2)*sin(1)')
-sqrt(-72*cos(1)**2 - 36*sin(1)**4 + 36*cos(1)**4 + 36)*sin(1)
_.as_content_primitive()
(6, -sqrt(-2*cos(1)**2 - sin(1)**4 + cos(1)**4 + 1)*sin(1))
r=_[1]
factor(r)
-sqrt(-sin(1)**2 - cos(1)**2 + 1)*sqrt(-cos(1)**2 + sin(1)**2 + 1)*sin(1)
trigsimp(_)
0
trigsimp(r)
-sqrt(-2*cos(1)**2 - sin(1)**4 + cos(1)**4 + 1)*sin(1)
trigsimp(r.rewrite(tan))
-2*sqrt(-2*(-1/cos(1/2)**2 + 2)**2*cos(1/2)**4 - 16*cos(1/2)**8*tan(1/2)**4
+ (-
1/cos(1/2)**2 + 2)**4*cos(1/2)**8 + 1)*cos(1/2)**2*tan(1/2)
factor(r.rewrite(tan))
0
--
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.