You will write three functions. The first finds the plane that is equally far from two points. The second finds the volume of a tetrahedron. The third decides which bisecting plane of two planes bisects the obtuse angle. A plane is stored as for .
The idea. The plane equidistant from and has normal and passes through the midpoint. The tetrahedron has volume . For two planes with and , the plus bisector bisects the obtuse angle when .
Your tasks.
bisector_of_points(A, B). Return with .tetra_volume(A, B, C, D).obtuse_sign(plane1, plane2). The planes are for . Change the sign of a plane with a negative first. Return "+" when the plus bisector is the obtuse one and "-" otherwise.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…