MathGroup Archive 2008

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

Search the Archive

Re: A plot of Sign[x]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94146] Re: A plot of Sign[x]
  • From: "Bert Aerts (rm X)" <bert.aertsX at advalvas.beX>
  • Date: Fri, 5 Dec 2008 07:05:03 -0500 (EST)
  • References: <gh8hjr$r0h$1@smc.vnet.net>

Thanks for the replies.

But do I really have to conclude that Mathematica is unable to make a decent
automatic Plot of a function as simple as Sign[x]?

Following does the trick:
a := Table[{x, Sign[x]}, {x, -5, 5, .01}]
ListPlot[a]


Bert Aerts (rm X) wrote:

> I tried to plot the Sign function, making clear that Sign[0]=0 by typing
> Plot[Sign[x], {x, -5, 5}, Mesh -> 51, PlotRange -> All]
> Making Mesh an odd value shows x=0.
> 
> But the point at x=0 is being plot as 0.5 in stead of zero.
> 
> What am I doing wrong?
> 
> Mathematica 6.0.3 Linux x86_64



  • Prev by Date: Re: FactorInteger bug ???
  • Next by Date: Re: Position of Last Element in List
  • Previous by thread: RE: A plot of Sign[x]
  • Next by thread: Re: Re: A plot of Sign[x]