MathGroup Archive 1999

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

Search the Archive

Re: Graphic simple?


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?