MathGroup Archive 1999

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

Search the Archive

Re: Graphic simple?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18305] Re: Graphic simple?
  • From: Attico Nicola <attico at cibs.sns.it>
  • Date: Fri, 25 Jun 1999 22:24:13 -0400
  • Organization: Universita' di Pisa
  • References: <7ktv1m$97k@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 24 Jun 1999, Jesus Perez Ortega wrote:

> Hi, all
> I don't know why the mathematica don't plot well this sinple graphic
> 
> Plot[t-(t-1) UnitStep[t-1],{t,0,5}]

Maybe because the function UnitStep[] does not exists?
I dont find it with Mathematica v3:

In[1]:=??UnitStep

Information::notfound: Symbol UnitStep not found.

You can try in any case with

In[2]:=UnitStep[x_]:=If[x<0,0,1]

Now your command works fine!

Bye


-----
Nicola Attico
(attico at cibs.sns.it)




  • Prev by Date: Mathematica 4.0 improvements?
  • Next by Date: Re: TOUGH Question
  • Previous by thread: Re: Graphic simple?
  • Next by thread: Re: Graphic simple?