Re: Condition for pure functions
- To: mathgroup at smc.vnet.net
- Subject: [mg59802] Re: Condition for pure functions
- From: "dkr" <dkrjeg at adelphia.net>
- Date: Mon, 22 Aug 2005 02:48:19 -0400 (EDT)
- References: <de9dbs$qa3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In[12]:=
g=Function[h[x_/;x>0]:=Sin[x];h[x_]:=Tan[x];h[#]];
{g[Pi/2],g[-Pi/2]}
Out[13]=
{1,ComplexInfinity}