Introduction¶

m%C3%A9t%C3%A9o1-3.png

m%C3%A9t%C3%A9o2.png

m%C3%A9t%C3%A9o3.png

Exemple 1¶

$$f : (x, y) \longmapsto x^2 + y^2$$
In [1]:
x, y, z = var("x y z")
S = plot3d(x^2+y^2, (x, -2, 2), (y, -2, 2))
show(S, aspect_ratio=1)
In [2]:
x, y, z = var("x y z")
S = plot3d(x^2+y^2, (x, -2, 2), (y, -2, 2))
R = parametric_plot3d((1, y, z), (y, -2, 2), (z, -1, 8), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [3]:
x, y, z = var("x y z")
S = plot3d(x^2+y^2, (x, -2, 2), (y, -2, 2))
R = parametric_plot3d((x, y, 2), (x, -2, 2), (y, -2, 2), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [4]:
x, y, z = var("x y z")
S = contour_plot(x^2+y^2, (x, -3, 3), (y, -3, 3), labels=True, fill=False, contours=12)
show(S)
In [5]:
x, y, z = var("x y z")
S = contour_plot(x^2+y^2, (x, -3, 3), (y, -3, 3), labels=True, label_colors='red', colorbar=True, contours=12)
show(S)
In [6]:
x, y, z = var("x y z")
S = contour_plot(x^2+y^2, (x, -3, 3), (y, -3, 3), labels=True, label_colors='green', colorbar=True, contours=12, cmap="hot")
show(S)

Exemple 2¶

$$f : (x, y) \longmapsto \sqrt{x^2 + y^2}$$
In [7]:
x, y, z = var("x y z")
S = plot3d(sqrt(x^2+y^2), (x, -2, 2), (y, -2, 2), plot_points=100)
R = parametric_plot3d((0, y, z), (y, -2, 2), (z, -1, 4), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [8]:
x, y, z = var("x y z")
S = plot3d(sqrt(x^2+y^2), (x, -2, 2), (y, -2, 2), plot_points=100)
R = parametric_plot3d((1, y, z), (y, -2, 2), (z, -1, 4), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [9]:
x, y, z = var("x y z")
S = contour_plot(sqrt(x^2+y^2), (x, -3, 3), (y, -3, 3), labels=True, label_colors='red', colorbar=True, contours=12)
show(S)
In [10]:
x, y, z = var("x y z")
S = contour_plot(sqrt(x^2+y^2), (x, -3, 3), (y, -3, 3), labels=True, label_colors='green', colorbar=True, contours=12, cmap="hot")
show(S)

Exemple 3¶

$$f : (x, y) \longmapsto x + 2y$$
In [11]:
x, y, z = var("x y z")
S = plot3d(x+2*y, (x, -2, 2), (y, -2, 2))
show(S, aspect_ratio=1)
In [12]:
x, y, z = var("x y z")
S = contour_plot(x+2*y, (x, -2, 2), (y, -2, 2), labels=True, fill=False, contours=12)
show(S)
In [13]:
x, y, z = var("x y z")
S = contour_plot(x+2*y, (x, -2, 2), (y, -2, 2), labels=True, label_colors='red', colorbar=True, contours=12)
show(S)
In [14]:
x, y, z = var("x y z")
S = contour_plot(x+2*y, (x, -2, 2), (y, -2, 2), labels=True, label_colors='green', colorbar=True, contours=12, cmap="hot")
show(S)

Exemple 4¶

$$f : (x, y) \longmapsto x^2 - y^2$$
In [15]:
x, y, z = var("x y z")
S = plot3d(x^2-y^2, (x, -2, 2), (y, -2, 2))
show(S, aspect_ratio=1)
In [16]:
x, y, z = var("x y z")
S = plot3d(x^2-y^2, (x, -2, 2), (y, -2, 2))
R = parametric_plot3d((x, y, 0), (x, -3, 3), (y, -3, 3), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [17]:
x, y, z = var("x y z")
S = contour_plot(x^2-y^2, (x, -3, 3), (y, -3, 3), labels=True, fill=False, contours=12)
show(S)
In [18]:
x, y, z = var("x y z")
S = contour_plot(x^2-y^2, (x, -3, 3), (y, -3, 3), labels=True, label_colors='red', colorbar=True, contours=12)
show(S)
In [19]:
x, y, z = var("x y z")
S = contour_plot(x^2-y^2, (x, -3, 3), (y, -3, 3), labels=True, label_colors='yellow', colorbar=True, contours=12, cmap="seismic")
show(S)

Exemple 5¶

$$f: (x, y) \longmapsto \arctan\left(\frac{y}{x}\right)$$
In [20]:
x, y, z = var("x y z")
S = plot3d(arctan(y/x), (x, -3, 3), (y, -3, 3))
show(S, aspect_ratio=1)
In [21]:
x, y, z = var("x y z")
S = plot3d(arctan(y/x), (x, -3, 3), (y, -3, 3), plot_points=200)
show(S, aspect_ratio=1)
In [22]:
r, t = var("r t")
S = parametric_plot3d((min_symbolic(max_symbolic(r*cos(t), -3), 3), min_symbolic(max_symbolic(r*sin(t), -3), 3), t), (r, -3*sqrt(2), 3*sqrt(2)), (t, 0, 3*pi), plot_points=200)
show(S, aspect_ratio=1)
In [23]:
x, y, z = var("x y z")
S = plot3d(arctan(y/x), (x, -3, 3), (y, -3, 3))
R = parametric_plot3d((1, y, z), (y, -3, 3), (z, -2, 2), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [24]:
x, y, z = var("x y z")
S = plot3d(arctan(y/x), (x, -3, 3), (y, -3, 3))
R = parametric_plot3d((x, y, pi/4), (x, -3, 3), (y, -3, 3), color="red", opacity=0.5)
show(S+R, aspect_ratio=1)
In [25]:
x, y, z = var("x y z")
S = contour_plot(arctan(y/x), (x, -3, 3), (y, -3, 3), labels=True, fill=False, contours=12)
show(S)
In [26]:
x, y, z = var("x y z")
S = contour_plot(arctan(y/x), (x, -3, 3), (y, -3, 3), labels=True, label_colors='yellow', colorbar=True, contours=12, cmap="seismic")
show(S)