MathGroup Archive 2001

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

Search the Archive

Re: Bump Function


The following plot is not really nice, but this should about do what I
guess you want:

f[x_, y_] /; (x^2 + y^2 < 1) := x^2 + y^2;
f[x_, y_] /; (x^2 + y^2 > 1) := 2

Plot3D[f[x, y], {x, -1.2, 1.2}, {y, -1.2, 1.2}, PlotPoints -> 50]

See Options of Plot3D, or the documentation on ContourPlot and other
routines to get a plot that looks better than this...


  • Prev by Date: Functions with Options
  • Next by Date: Re: Bump Function
  • Previous by thread: Re: Bump Function
  • Next by thread: Re: Bump Function