2019-수학-가형-홀수-13¶
문제¶
풀이¶
from sympy import *
x,y,z,t = symbols('x y z t')
sol = solve([Eq(x-1,t), Eq(2-y,t), Eq((z+1)/2,t)],[x, y, z])
sol
{x: t + 1, y: 2 - t, z: 2*t - 1}
A = Point(2,0,5)
l = Point(list(sol.values()))
l
\[\displaystyle Point3D\left(t + 1, 2 - t, 2 t - 1\right)\]
B = Point(l.subs(t,0))
C = Point(l.subs(t,1))
[B,C]
[Point3D(1, 2, -1), Point3D(2, 1, 1)]
p1 = Plane(A,B,C)
p1.equation()
\[\displaystyle - 2 x - 4 y - z + 9\]
x_axis = Line(Point(-1,0,0),Point(1,0,0))
p1.intersection(x_axis)
[Point3D(9/2, 0, 0)]