Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg31978] RE: [mg31967] Bump Function
  • From: "tgarza01 at" <tgarza01 at>
  • Date: Fri, 14 Dec 2001 16:53:08 -0500 (EST)
  • Sender: owner-wri-mathgroup at

You have to slightly modify your conditions, so as not to leave holes in the range of definition. Try

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

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

Tomas Garza
Mexico City
Original Message:
From: Ajitkumar ajitkumar at
To: mathgroup at
Subject: [mg31978] [mg31967] Bump Function


Could  somebody tell me how to plot the graph of bump functions. For
example, if I want to draw the graph of the function say,

f(x,y)	= x^2+y^2 for  x^2+y^2<1 
	= 2  for x^2+y^2 >2

Ajit Kumar      
Dept of Maths             
University of Mumbai
Vidyanagari, Kalina 
Mumbai 400 098 	
Phone No. +91 652 6683
Email- ajitkumar at
       ajit_kumara at   

mail2web - Check your email from the web at .

  • Prev by Date: Re: restrictions on parameter
  • Next by Date: Re: restrictions on parameters
  • Previous by thread: Re: Bump Function
  • Next by thread: Re: Bump Function