MathGroup Archive 2003

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

Search the Archive

Re: Re: Simplification ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38913] Re: [mg38833] Re: Simplification ?
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sat, 18 Jan 2003 00:39:12 -0500 (EST)
  • References: <as5pn8$ngo$1@smc.vnet.net> <200301150720.CAA23423@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You wouldn't want Mathematica to simplify Sqrt[x^2} to give x. Why not -x?
Unless, of course, you are really sure that x is positive. In this case use
Simplify[Sqrt[x], x>0].

Tomas Garza
Mexico City
----- Original Message -----
From: "James Avery" <avery at diku.dk>
To: mathgroup at smc.vnet.net
Subject: [mg38913] [mg38833] Re: Simplification ?


> On Thu, 28 Nov 2002, Olivier Durussel wrote:
>
> > Hi,
> >
> > Is there a way to force Mathematica to simplify the terms like
> >
> > Sqrt[x^2]
> >
> > to give  x ???
>
> Using for example
>
> sqrt[x_*x_] := x;
> sqrt[x_] :=Sqrt[x];
>
> instead of Sqrt[] will apply the simplification automatically using
> pattern matching.
>
> --
>  Med venlig hilsen,
> James Avery <avery at diku.dk>
>
>
>




  • Prev by Date: RE: multiple plots on same graph
  • Next by Date: Toolbar palette
  • Previous by thread: Re: Simplification ?
  • Next by thread: EPS filenames