Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

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] ====


  • Prev by Date: BitMap
  • Next by Date: Question?
  • Previous by thread: Beginner-type question
  • Next by thread: Re: Beginner-type question