Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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
> 
> 


  • Prev by Date: Re: New Mathematica menu: New Package
  • Next by Date: Re: Beginner : how to convert .bmp or .jpeg for digital processing
  • Previous by thread: Re: UpSetDelayed and N
  • Next by thread: Modifying displayed form of an expression?