MathGroup Archive 2003

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

Search the Archive

Re: Plotting functions with undefined values

  • To: mathgroup at
  • Subject: [mg43765] Re: Plotting functions with undefined values
  • From: "Bo Le" <bole79 at>
  • Date: Fri, 3 Oct 2003 02:28:50 -0400 (EDT)
  • References: <blgk0b$jb2$>
  • Sender: owner-wri-mathgroup at


You can define your function with the If clause:


Plot3D[ f[x,y,1],{x,0,1},{y,0,1} ]

"Ronaldo Prati" <rcprati at> wrote in message
news:blgk0b$jb2$1 at
> Hello everybody
> I'm a new student using mathematica and I couldn't solve my problem by
> myself.
> I need to plot the function pos[m_] = (m + x -1)/(x+y-1), where
> 0<=pos<1, x and y are between 0 and 1 but x+y-1!=0. My problem is
> that I could not input this constrain. When plot the function using
> Plot3D, at the region where x+y = 1 several erros of infinith
> expression 1/0 encountred are given. I'm not interested in plotting the
> region where x+1 occurs, but the region where the function has a true
> value (the graphic appers, but with a straigh region where it is undef).
> How can i solve it?

  • Prev by Date: Re: negative pattern matching anyone?
  • Next by Date: Re: Terras inverse
  • Previous by thread: RE: Plotting functions with undefined values
  • Next by thread: Re: Plotting functions with undefined values