MathGroup Archive 2007

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

Search the Archive

Is this a bug

f[x_] := x^2 + 1 /; x >= O
f[x_] := -x^2 - 1 /; x < O
Plot[f[x], {x, -2, 2}]

Above f is a piecewise function.But Plot can't plot the function. Why?
MY MATHEMATICA is version 6.
can the piecewise function be defined like this?

  • Prev by Date: Re: Have I found a bug?
  • Next by Date: Integrated Data Sources - can I use my own sources ?
  • Previous by thread: Re: ParametricPlot3d not showing up when I use the manipulate command
  • Next by thread: Re: Is this a bug