Westminster College- Math 203 demos
var('x, y')
%md $z = y^{2} - x^{2}$
z=y2−x2z = y^{2} - x^{2}z=y2−x2
plot3d(y^2 - x^2, (x, -1, 1), (y, -1, 1), adaptive = True)
z=x2+y2z = x^{2} + y^{2}z=x2+y2
plot3d(x^2 + y^2, (x, -1, 1), (y, -1, 1), adaptive = True)
z=x2+y2z = \sqrt{x^{2} + y^{2}}z=x2+y2
z=1−yz = 1 - yz=1−y
plot3d(sqrt(x^2 + y^2), (x, -3, 3), (y, -3, 3), adaptive = True, opacity = 0.5) + plot3d(1 - y, (x, -3, 3), (y, -3, 3), adaptive = True, opacity = 0.5)
%md $z = \sqrt{9 - x^{2}}$
z=9−x2z = \sqrt{9 - x^{2}}z=9−x2
plot3d(sqrt(9 - x^2), (x, -3, 3), (y, -3, 3))
z=9−x2−y2z = \sqrt{9 - x^{2} - y^{2}}z=9−x2−y2
plot3d(sqrt(9 - x^2 - y^2), (x, -3, 3), (y, -3, 3))