Problems defining function
- To: mathgroup at smc.vnet.net
- Subject: [mg40374] Problems defining function
- From: vnagornyi at netscape.net (Vadim Nagornyi)
- Date: Thu, 3 Apr 2003 01:42:57 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, I am defining a function: h[x_]:=0/;x<0 h[x_]:=x/;x>=0 When I try to plot the function: Plot[h[x],{x,-1,1}] I see that it's defined as h[x_]:=x on all values, not only positive ones. What am I missing here? Thanks. Vadim.
- Follow-Ups:
- Re: Problems defining function
- From: Tomas Garza <tgarza01@prodigy.net.mx>
- Re: Problems defining function