How do I plot a 3D graph on an interval?

Денис shared this question 3 years ago
Answered

I want to plot some function of x and y where 0<x<1. (The function exists everywhere, but this is the only interval I need)

Here's what I've tried:

- if ( 0<x<1, f(x,y) )

- if (0 < x , if (x < 1 , f(x,y) ) )

- a(x, y) = if (0 < x , f(x,y) ) and then b(x, y) = if (x< 1 , a(x,y) )

Result is the same every time: no plot at all. Independent from f(x, y).

Please correct me if I'm doing something wrong or just explain how to do this.

Comments (5)

photo
1

This seems to be working here:

z=If(0<x<1,y+1-2 x^2) 


See the file with further restrictions on y, too

photo
1

Uh, I missed a thing.

If you have already defined a function f(x,y), use just f in the If command:


If(0<x<1,f) 

photo
1

Copypasted your line, same result (meaning no result huh).

photo
1

Really?

I’ve tried before posting and it worked just fine.

Which version of GeoGebra are you using, and which is your OS?

Have you had a look at the file I’ve posted above?

You can use that as a workaround while we understand what is not working.

Please post your file.

photo
1

This is made with the online version.

command Se(...) is the command If( ) in Italian.

As soon as I press Enter, GeoGebra automatically changes f into f(x,y)

31bdbc22ef83961d79f23781a8a12768

photo
© 2023 International GeoGebra Institute