Re: Some Easy (hopefully) Questions
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg2039] Re: Some Easy (hopefully) Questions
- From: Felix Holderied <felix at ira.uka.de>
- Date: Sat, 16 Sep 1995 01:41:52 -0400
- Organization: IRF Uni-Karlsruhe
Rob Carscadden wrote: > possmax = Solve[(x - 1)^2 == 0,x] // N > > I get {{x -> 1.},{x ->1.}} > > possmax[[1]] > > I get {x ->1.} > > but I want the number 1 instead. Try x /.possmax[[1]] Why? In[1]:= ?/. expr /. rules applies a rule or list of rules in an attempt to transform each subpart of an expression expr. Greetings, Felix =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Felix Holderied Institut fuer Rechnerentwurf und Fehlertoleranz Fakultaet fuer Informatik, Universitaet Karlsruhe email: felix at ira.uka.de tel: 0721 / 608 4354 www: http://goethe.ira.uka.de/people/felix/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=