ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 07 Dec 2010 09:10:57 -0600possible bug involving absolute value of sin function and assumehttp://ask.sagemath.org/question/7793/possible-bug-involving-absolute-value-of-sin-function-and-assume/ sage: a=var('a')
sage: assume(a>0)
sage: view(sqrt(a*a).simplify_full())
sage: theta=var('theta')
sage: assume(theta>0)
sage: assume(theta<pi)
sage: view(sqrt(sin(theta)*sin(theta)).simplify_full())
The answer for the first one is $a$ as it should be. However, for the second one I get $|\sin(\theta)|$. Considering that I have already assumed $0<\theta<\pi$, I should not have got the absolute sign. Is this a bug? And is there a way to get around it?ShashankTue, 07 Dec 2010 09:10:57 -0600http://ask.sagemath.org/question/7793/