ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 07 Dec 2010 16:10:57 +0100possible bug involving absolute value of sin function and assumehttps://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 16:10:57 +0100https://ask.sagemath.org/question/7793/