Re: Bump Function
- To: mathgroup at smc.vnet.net
- Subject: [mg31975] Re: Bump Function
- From: Albert Retey <albert.retey at visualanalysis.com>
- Date: Fri, 14 Dec 2001 16:53:04 -0500 (EST)
- Organization: Visual Analysis AG
- References: <9vchll$3mm$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
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...
Albert