Re: UpSetDelayed and N
- To: mathgroup at smc.vnet.net
- Subject: [mg57159] Re: [mg57128] UpSetDelayed and N
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 19 May 2005 03:08:41 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
P[N[x]]^:=0 UpValues[x] {HoldPattern[P[x]] :> 0} Bob Hanlon > > From: "François Wirion" <muthaluva at gmail.com> To: mathgroup at smc.vnet.net > Date: 2005/05/16 Mon PM 09:35:26 EDT > Subject: [mg57159] [mg57128] UpSetDelayed and N > > Hello, > > I have done the following in Mathematica: > P[N[x]] ^:= 0 > If I put in > P[N[x]] > it returns > 0 > as expected. > > However, I haven't been able to find where this definition is stored. > Calling the following for P > > OwnValues[P] > DownValues[P] > UpValues[P] > SubValues[P] > NValues[P] > DefaultValues[P] > FormatValues[P] > Messages[P] > > and N > > OwnValues[N] > DownValues[N] > UpValues[N] > SubValues[N] > NValues[N] > DefaultValues[N] > FormatValues[N] > Messages[N] > > returns mostly empty lists, but no definition that says that P[N[x]] is > 0. Where then would this be stored? > > Thank you for any help or advice, > > François Wirion > >