MathGroup Archive 2003

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

Search the Archive

Re: Simplification ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38833] Re: Simplification ?
  • From: James Avery <avery at diku.dk>
  • Date: Wed, 15 Jan 2003 02:20:01 -0500 (EST)
  • Organization: Department of Computer Science, University of Copenhagen
  • References: <as5pn8$ngo$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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: 4 Straight segments !!
  • Next by Date: Re: 4 Straight segments !!
  • Previous by thread: RE: Asymptote mystery...
  • Next by thread: Re: Re: Simplification ?