Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168733
Image: ubuntu2004

The Graph of a Function of Two Variables

f(x,y)=sin(x2y)f(x, y) = sin(x^2 - y).

x, y = var('x,y') plot3d(sin(x^2 - y), (x, -5, 5), (y, -6, 6), color='brown')

The Graphs of Two Functions of Two Variables

The graph of f(x,y)=x2+y2f(x, y) = x^2 + y^2 is in blue.

The graph of g(x,y)=2x+3yg(x, y) = 2x + 3y is in green.

x, y = var('x,y') P = plot3d(2*x + 3*y, (x,-2,2), (y,-2,2), color='green') Q = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2)) P + Q

The Graph of a Function of Two Variables, with Aspect Ratio 11

f(x,y)=x2y2f(x, y) = x^2 - y^2.

x, y = var('x,y') plot3d(x^2 - y^2, (x, -2, 2), (y, -2, 2), aspect_ratio=1)