Re: Beginner-type question
- To: mathgroup at smc.vnet.net
- Subject: [mg4061] Re: [mg4028] Beginner-type question
- From: Ralheid at aol.com
- Date: Thu, 30 May 1996 02:49:38 -0400
- Sender: owner-wri-mathgroup at wolfram.com
lopez....asks >I often encounter output of the form > Out[1]= Sqrt[a^2] , >where I know a is real and positive, and therefore would like to see > Out[1]= a . >How do I get Mathematica to assume that all quantities are real? Real >and positive? Can this be done globally, for an entire session? Thr following seems to supply your desire In[1]:= eqn = ans - Sqrt[a^2]==0 Out[1]= -Sqrt[ a^2 ] + ans == 0 In[2]:= Solve[%,a] Out[2]= {{a -> -ans}, {a -> ans}} Regards: ==== [MESSAGE SEPARATOR] ====