Ask Your Question

yann's profile - activity

2016-01-29 14:18:33 +0200 received badge  Scholar (source)
2016-01-29 14:13:47 +0200 commented answer problem to draw plane equation 4x + 5y - 2z = 18

Thank you so much ndomes. You nailed it!

2016-01-29 07:05:34 +0200 asked a question problem to draw plane equation 4x + 5y - 2z = 18

I try to illustrate the result of a problem which consist of finding the intersect point between a line and a plane. Solution is supposed to be point P(-4,8,3). Line and point seems to be displayed correctly but not the plane which correspond to the equation: 4x + 5y -2z = 18. I tried several options without success. Could anyone pinpoint the error in my code?

t, x, y, z = var('t x y z')
f(t) = 2 + 3*t
g(t) = -4*t
h(t) = 5 + t
line = parametric_plot3d((f(t), g(t), h(t)), (t, -3, 3), color="blue")
plan = implicit_plot3d(4*x + 5*y -2*z - 18, (y,-10,10),(z,-10,10),(x,-10,10), color="blue", opacity=0.5)
X = arrow3d((0, 0, 0), (1,0,0), color="black")
Y = arrow3d((0, 0, 0), (0,1,0), color="black")
Z = arrow3d((0, 0, 0), (0,0,1), color="black")
P = point((-4,8,3), size=5, color="red")
X + Y + Z + P + line + plan
2016-01-29 07:05:33 +0200 asked a question plane in 3D for equation 4x+5y-2z=18

In the code below I try to represent the intersection point between a line and a plane. According to my solution, point P is (-4,8,3). When I try to display the plane does not look correct. I tried several formulas for implicit_plot3d without much success. Could someone pinpoint what is wrong with my code?

t, x, y, z = var('t x y z')
f(t) = 2 + 3*t
g(t) = -4*t
h(t) = 5 + t
line = parametric_plot3d((f(t), g(t), h(t)), (t, -3, 3), color="blue")
plan = implicit_plot3d(4*x + 5*y -2*z - 18, (y,-10,10),(z,-10,10),(x,-10,10), color="blue", opacity=0.5)
X = arrow3d((0, 0, 0), (1,0,0), color="black")
Y = arrow3d((0, 0, 0), (0,1,0), color="black")
Z = arrow3d((0, 0, 0), (0,0,1), color="black")
P = point((-4,8,3), size=5, color="red")
X + Y + Z + P + line + plan