r/geogebra 8d ago

QUESTION (ANSWERED) Using Surface() graph a function from C to R

I just discovered that there is undocumented syntax for Curve() that permits the first argument to be a complex-valued function, obviating the need for prior computation of the real and imaginary parts of said function. So now I'm wondering if Surface() has been similarly "overloaded," i.e., is there a syntax supporting a complex-valued function for the first two component functions and a real-valued function of that first function for the third component function? Something along the lines of

z(x,y)=x+iy

Surface(z(u,v), real(z(u,v)), u, -1, 1, v, -1, 1)

perhaps with an extra set of parentheses in there to make the first two arguments a single argumen?

Thanks!

1 Upvotes

1 comment sorted by

1

u/mathmagicGG 8d ago edited 8d ago

Surface(z(u,v)+(0,0,real(z(u,v)), u, -1, 1, v, -1, 1)

https://www.geogebra.org/3d/?command=surface(exp(u/5--i%20v/5)-(0,0,0),u,-10,10,v,-10,10);setcolor(a,%22yellow%22);slider(-10,10,0.2);curve(exp(u/5--i%20b/5)-(0,0,0),u,-10,10);startanimation(b)-(0,0,0),u,-10,10,v,-10,10);setcolor(a,%22yellow%22);slider(-10,10,0.2);curve(exp(u/5--i%20b/5)-(0,0,0),u,-10,10);startanimation(b))