Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

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


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