Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Is this a bug

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84243] Is this a bug
  • From: "huxiaopengstat at gmail.com" <huxiaopengstat at gmail.com>
  • Date: Sat, 15 Dec 2007 15:36:54 -0500 (EST)

Clear[f]
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