       Re: Plotting functions with undefined values

• To: mathgroup at smc.vnet.net
• Subject: [mg43765] Re: Plotting functions with undefined values
• From: "Bo Le" <bole79 at email.si>
• Date: Fri, 3 Oct 2003 02:28:50 -0400 (EDT)
• References: <blgk0b\$jb2\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Hi,

You can define your function with the If clause:

f[x_,y_,m_]:=If[y==1-x,0,(m+x+1)/(x+y-1)];

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

"Ronaldo Prati" <rcprati at bol.com.br> wrote in message
news:blgk0b\$jb2\$1 at smc.vnet.net...
>
> 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