Re: Validating functions input
- To: mathgroup at smc.vnet.net
- Subject: [mg58806] Re: Validating functions input
- From: "dkr" <dkrjeg at adelphia.net>
- Date: Tue, 19 Jul 2005 04:10:16 -0400 (EDT)
- References: <dbflkk$n0p$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In[11]:= f::invalid = "Invalid arguments" ; f[x_,y_]:=Message[f::invalid]/;x>2^y; f[x_,y_]:=HoldForm[f[x,y]]; In[14]:=f[2,3] Out[14]=f[2,3] In[15]:=f[8,2] f::invalid: Invalid arguments