일반수학및실습2-11.4절

2055 days 전, jhlee2chn 작성

예.

var('x, y, z') p1=vector([5, -2, 3]);p2=vector([2, 1, -2]) p3=vector([-2, -3, 7]);p=vector([x, y, z]) u=p1-p2;v=p3-p2 n=u.cross_product(v) # 법선벡터 print "n=", n plane_eq=n.inner_product(p-p2)==0 # 평면의 방정식 print "plane_equation", plane_eq implicit_plot3d(plane_eq, (x, -3, 4), (y, -4, 2), (z, -2, 8)) 
       
n= (-7, -47, -24)
plane_equation -7*x - 47*y - 24*z + 13 == 0
n= (-7, -47, -24)
plane_equation -7*x - 47*y - 24*z + 13 == 0
Sleeping...
If no image appears re-execute the cell. 3-D viewer has been updated.
var('t') f(t)=cos(t);g(t)=cos(t);h(t)=sqrt(2)*sin(t) parametric_plot3d((f(t), g(t), h(t)), (t, 0, 2*pi), aspect_ratio=1) 
       
Sleeping...
If no image appears re-execute the cell. 3-D viewer has been updated.