simple pattern match question
- To: mathgroup at smc.vnet.net
- Subject: [mg91151] simple pattern match question
- From: congruentialuminaire at yahoo.com
- Date: Thu, 7 Aug 2008 04:42:19 -0400 (EDT)
Hello UG: I am trying to understand simple pattern rule evaulation. The following trivial examples baffles me: --------------------------------------------------- In[1]:= f[x_Number] := x ^ 2 In[2]:= f[3] Out[2]= f[3] In[3]:= f[3.3] Out[3]= f[3.3] In[4]:= NumberQ[3.3] Out[4]= True -------------------------------------------------- Why is it that f[3.3] does not evaluate?? TIA. Regards..RogerW
- Follow-Ups:
- Re: simple pattern match question
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: simple pattern match question
- From: "Adriano Pascoletti" <adriano.pascoletti@gmail.com>
- Re: simple pattern match question