MathGroup Archive 2000

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

Search the Archive

Antwort: Simplifying things

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26078] Antwort: [mg26070] Simplifying things
  • From: Adalbert Hanssen <hanssen at Zeiss.de>
  • Date: Tue, 28 Nov 2000 01:55:26 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi, try this:

expr=(1+Sqrt[(a-1)^2])^5+(1+1/Sqrt[(b-1)^2])^3;


Clear[x];
expr//. {(Sqrt[x_^2])->x, (1/Sqrt[x_^2])->1/x}

it gives

a^5 + (1 + (-1 + b)^(-1))^3

Note: 
1.) Don't forget the parentheses around Sqrt in the
    replacement rules.

2.) Usually, you need two rules, one for the numerator,
    another one for a denominator, due to the different
    internal representation of 1/Sqrt[x].

regards

Adalbert





	djago at my-deja.com
	22.11.00 08:23
		 
		 An: mathgroup at smc.vnet.net@EMAIL
		 Kopie: (Blindkopie: Adalbert Hanssen/Aalen/Zeiss/DE)
		 Thema: [mg26070] Simplifying things

Hi!
I need to simplify looooong equations, but don't know how to get rid of
those terms like:

Sqrt[a^2]

when a is a real positive variable... How can I tell Mathematica 3 to
simplify this?

Thanks!


Sent via Deja.com http://www.deja.com/
Before you buy.




  • Prev by Date: Re: Simplifying things
  • Next by Date: Tridiagonal problem
  • Previous by thread: Re: Symbolic complex conjugation
  • Next by thread: Tridiagonal problem