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 ?
Look up the documentation for RegionFunction and you will see examples.
RegionFunction
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
Plot3D requires x,y,z values. Change 9 to {0,0,9}.
Plot3D
x,y,z
9
{0,0,9}
One way is to use RegionFunction->Function[{x, y, z}, And[0 < x, 0 < y, x^2 + y^2 <= 1]].
RegionFunction->Function[{x, y, z}, And[0 < x, 0 < y, x^2 + y^2 <= 1]]
How is it going to be.