Ask Your Question

Revision history [back]

You should give more details on how is your function defined, the answer depends on this. Let me assume that you have a symbolic function like:

f(x,y) = cos(x+I*y)

You can see its norm as follows:

plot3d(lambda x,y: abs(f(x,y)),[-5,5],[-1,1])

You can see its argument as follows (note that you will have a discontinuity at -pi=pi):

plot3d(lambda x,y: arg(f(x,y)),[-5,5],[-1,1])