Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.9K Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Creating a surface over a certain area

Posted 4 years ago

f[x, y] := 9 /; 0 < x [And] 0 < y [And] x^2 + y^2 <= 1

Plot3D[f[x, y], {x, -5, 5}, {y, -5, 5}, AxesLabel -> Automatic, 
 Filling -> Bottom]

How can I create the surface f(x,y)=9,-5<x<5 and -5<y<5 on the x>0,y>0 and x^2 + y^2 <= 1 region ?

POSTED BY: micheal yousri
5 Replies

Look up the documentation for RegionFunction and you will see examples.

POSTED BY: Gianluca Gorni
Posted 4 years ago
Plot3D[9, {x, -5, 5}, {y, -5, 5}, 
 RegionFunction -> 
  Function[{x, y, z}, x^2 + y^2 <= 1 \[And] x > 0 \[And] y > 0], 
 Filling -> Bottom, AxesLabel -> Automatic]

I write like this but it doesn't create a visual from this code

POSTED BY: micheal yousri
Posted 4 years ago

Plot3D requires x,y,z values. Change 9 to {0,0,9}.

POSTED BY: Rohit Namjoshi

One way is to use RegionFunction->Function[{x, y, z}, And[0 < x, 0 < y, x^2 + y^2 <= 1]].

POSTED BY: Gianluca Gorni
Posted 4 years ago

How is it going to be.

POSTED BY: micheal yousri
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard