Re: Division by zero, despite strong hint
- To: mathgroup at smc.vnet.net
- Subject: [mg96608] Re: Division by zero, despite strong hint
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Tue, 17 Feb 2009 06:25:25 -0500 (EST)
On 2/16/09 at 6:55 AM, dch888 at googlemail.com (dch888) wrote:
>I'm trying to plot the Sin[1/x] curve with the curve being defined
>as 0 at 0 like this:
>g3[x_] := Piecewise[{{Sin[1/x], x != 0} {0, x == 0}}]
>Invoking Plot produced a flat graph
I have no problems with g3 as defined above. Is it possible you
have previously defined x in the notebook where you tried this?
Try doing this in a fresh session and see if you still have difficulties.