You will write three functions about planes. The first finds the plane through three points, the second tests whether a point lies on a plane, and the third finds the intercepts on the axes. A plane is stored as four numbers for .
The idea. A normal to the plane through , and is . The constant is the dot product of the normal with . The plane meets the -axis at , the -axis at and the -axis at .
Your tasks.
plane_through(P, Q, R). Return .on_plane(plane, point). Return True when the point satisfies the equation.intercepts(plane). Return the three intercepts, and give None for an intercept that does not exist.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…