MathGroup Archive 1998

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

Search the Archive

Re: A simple bug..

  • To:
  • Subject: [mg12074] Re: A simple bug..
  • From: Paul Abbott <>
  • Date: Sat, 25 Apr 1998 01:30:11 -0400
  • Organization: University of Western Australia
  • References: <6h70sd$>

Dr. Jagannatha Rao wrote:

> I seem to have come across this  simple and reproducible bug :

It is not a bug -- this is the way the pattern-matcher works.  You need
to use ReplaceRepeated, i.e.,


	"expr //. rules repeatedly performs replacements until expr no longer

instead of ReplaceAll:


	"expr /. rules applies a rule or list of rules in an attempt to
	 each subpart of an expression expr."


	k1matrix=Table[k1[i,j], {i,4},{j,4}] //. {h->6, e*in ->10^6}


Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia            Nedlands WA  6907  AUSTRALIA                   

            God IS a weakly left-handed dice player

  • Prev by Date: Re: definite integral bug (3.0)
  • Next by Date: Problems connecting to remote kernel
  • Prev by thread: RE: A simple bug..
  • Next by thread: add-on Geometry`Polytopes` : Faces