MathGroup Archive 2005

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

Search the Archive

Re: Validating functions input


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


  • Prev by Date: Re: Validating functions input
  • Next by Date: Re: Directed Graph from Adjacency Matrix
  • Previous by thread: Re: Validating functions input
  • Next by thread: Re: Validating functions input