Re: Re: Re: Bug Report - Two numerical values for a same variable
- To: mathgroup at smc.vnet.net
- Subject: [mg54324] Re: [mg54300] Re: [mg54271] Re: Bug Report - Two numerical values for a same variable
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Thu, 17 Feb 2005 10:30:43 -0500 (EST)
- References: <00ed01c512b0$2f242850$6400a8c0@Main> <curpbn$r28$1@smc.vnet.net> <200502150438.XAA29728@smc.vnet.net> <200502161936.OAA19223@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On Feb 16, 2005, at 2:36 PM, Murray Eisenberg wrote: > The manipulations below are precisely what's so confusing about > Rational > objects (and Complex objects) being atoms. If > > 1/2 /. Rational[x_, 2] -> Rational[x, 7] > > works, then why not the following? > > Part[Rational[1, 2], 2] Because by definition you cannot use Part on an atom, actually the Help Browser says you specifically can't use Map, but I assume Part is treated like Map with respect to Atoms. On the other hand /. apparently doesn't have the same restriction. I know it sounds pat, I don't have a good reason for asserting Replace works differently from Part with respect to atoms except for the fact that it does. Regards, Ssezi
- Follow-Ups:
- Re: Re: Re: Re: Bug Report - Two numerical values for a same variable
- From: DrBob <drbob@bigfoot.com>
- Re: Re: Re: Re: Bug Report - Two numerical values for a same variable
- References:
- Re: Bug Report - Two numerical values for a same variable
- From: Scott Hemphill <hemphill@hemphills.net>
- Re: Re: Bug Report - Two numerical values for a same variable
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Bug Report - Two numerical values for a same variable