MathGroup Archive 2003

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

Search the Archive

Re: Problems defining function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40415] Re: [mg40374] Problems defining function
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Fri, 4 Apr 2003 01:29:43 -0500 (EST)
  • References: <200304030642.BAA12615@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I could not reproduce your problem in my machine. It plots h[x] as it
should. Perhaps you can try inserting semicolons after each line?
Tomas Garza
Mexico City
----- Original Message -----
From: "Vadim Nagornyi" <vnagornyi at netscape.net>
To: mathgroup at smc.vnet.net
Subject: [mg40415] [mg40374] Problems defining function


> 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: Re: exporting eps-files with embedded characters in 4.2.1
  • Next by Date: Re: Is there a place where I can get Matematica notebooks that demonstrate 3-D graphics?
  • Previous by thread: Problems defining function
  • Next by thread: Re: Problems defining function