3dplot of modulus of complex function
Even though abs(x+I*y) should always be real... I get the following error:
plot3d(abs(x+I*y),(x,-5,5),(y,-5,5)) ERROR: unable to coerce to a real number
Even though abs(x+I*y) should always be real... I get the following error:
plot3d(abs(x+I*y),(x,-5,5),(y,-5,5)) ERROR: unable to coerce to a real number
This is may not be a good answer explaining why is the Symbolic Ring
not working here, but at least a workaround: forget about symbolic functions and use Python lambda functions instead:
sage: plot3d(lambda x,y: abs(x+I*y), (x,-5,5), (y,-5,5))
or even:
sage: plot3d(lambda x,y: abs(x+I*y), (x,-5,5), (y,-5,5), adaptive=True)
Asked: 11 years ago
Seen: 565 times
Last updated: Sep 04 '13