MathGroup Archive 1996

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

Search the Archive

Re: Abs and variables

>        How can I have the Abs function treat real variables properly?
>I seem to recall a way of declaring a variable real, but I don't
>remember how.  If there is such a way, would this work with Abs; i.e.
>fix the variable a so that "Abs[a]" will give a result of "a"?

How about this?

In[114]:=  Needs["Algebra`ReIm`"]

In[115]:= Im[a]^=0;

In[116]:= Re[a + I]
Out[116]= a



 Victoria Steblina                      Email: vvs124 at
 Optical Sciences Centre                Tel:   61 6 249 5129
 Australian National University         Fax:   61 6 249 5184


  • Prev by Date: Re: Wireframes
  • Next by Date: Re: Help: Column/Row Vector
  • Previous by thread: Re: Abs and variables
  • Next by thread: Integration problem