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: [mg94106] Re: A plot of Sign[x]
  • From: ucervan at gmail.com
  • Date: Fri, 5 Dec 2008 05:29:29 -0500 (EST)
  • References: <gh8hjr$r0h$1@smc.vnet.net>

On Dec 4, 6:14 am, "Bert Aerts (rm X)" <bert.aer... at advalvas.beX>
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


Try:

Plot[Sign[x], {x, -5, 5}, Mesh -> 51, PlotRange -> All,
 Exclusions -> {x == 0}, MeshStyle -> Red, AxesOrigin -> {-5, 0}]


Ulises Cervantes
WRI



  • Prev by Date: Re: InverseLaplaceTransform different solution in Mathematica 6 and
  • Next by Date: Newbie question: Which is more versatile, Table[] or Array[]?
  • Previous by thread: A plot of Sign[x]
  • Next by thread: Re: Re: A plot of Sign[x]