On Nov 25, 2008, at 11:08 PM, Tim Lahey wrote:

>
> Hi,
>
> I'm comparing two results in an automated fashion and I've
> run into a snag. One of the results is: asin(x/a) and
> the other is calculated to be asin(x/sqrt(a^2)). If I let
> Sage (well, Maxima) simplify the latter, it will give me,
> asin(x/abs(a)). I'd like it if I could get asin(x/a). Is
> there some way of enforcing sqrt(a^2) = a?
>
> Thanks,
>
> Tim.

Yes, there is.

sage: var('a')
sage: assume(a>=0)
sage: sqrt(a^2)
a

- Robert

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to