MathGroup Archive 2003

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

Search the Archive

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.


  • Prev by Date: exporting eps-files with embedded characters in 4.2.1
  • Next by Date: Newbie: "key combination is not defined"
  • Previous by thread: Re: Re: Re: exporting eps-files with embedded characters in 4.2.1
  • Next by thread: Re: Problems defining function