Re: Replacement rules with I (sqrt(-1)
- To: mathgroup at smc.vnet.net
- Subject: [mg45108] Re: Replacement rules with I (sqrt(-1)
- From: "John Doty" <jpd at w-d.org>
- Date: Wed, 17 Dec 2003 07:54:26 -0500 (EST)
- Organization: Wampler-Doty Family
- References: <brhi2e$jha$1@smc.vnet.net> <brk4oe$sq7$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <brk4oe$sq7$1 at smc.vnet.net>, Jean.Pellegri at wanadoo.fr wrote: > FullForm[x + I*y] donne Plus[x,Times[Complex[0,1],y]] > > FullForm[3 + I] donne Complex[3,1] et non pas > Plus[3,Times[Complex[0,1],1]] > > Pet-être est la raison ? Also, FullForm[ 3 + 5 ] yields 8 Why? Well, Mathematica evaluates as much of an expression as it can using the rules in effect at the time of evaluation. FullForm evalutes its argument before going to work. One standard rule turns sums of numbers into single numbers. Try FullForm[Hold[3+I]] for further amusement... -- | John Doty "You can't confuse me, that's my job." | Home: jpd at w-d.org | Work: jpd at space.mit.edu