MathGroup Archive 2003

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

Search the Archive

Replace Function & Application!!!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38774] Replace Function & Application!!!
  • From: "Ashraf El Ansary" <Elansary at btopenworld.com>
  • Date: Fri, 10 Jan 2003 04:33:37 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear all thanks for your previous repoonse. Since I'm very new to
Mathematica, I was wondering what Replace[] function means in the following
case!!

Soln=Solve[MS==P*(K*Y+S*r),r]
Z=ReplaceAll[r,Soln[[1]]]

I know that first expression yields to

r->-(-MS+K P Y)/PS
while the second gives

-(-MS+K P Y)/PS . But what does Z actually means (i.e replacing r with first
part of itself) because if my input is Soln[[1]],  I will get r->-(-MS+K P
Y)/PS

so why when I input Z=ReplaceAll[r,Soln[[1]]] , r-> is eliminated from the
output



Thanx!!





  • Prev by Date: Style sheet dilemna solved
  • Next by Date: FileNameDialog
  • Previous by thread: Style sheet dilemna solved
  • Next by thread: RE: Replace Function & Application!!!