Question: (8) Write a function called vectorVolume (x1, x2, x3) that calculates and returns the volume of a parallelepiped created by three vectors (in 3D).
(8) Write a function called vectorVolume (x1, x2, x3) that calculates and returns the volume of a parallelepiped created by three vectors (in 3D). Use the formula V = |a (bx c)| for three numpy arrays, a, b and c. There is also a hidden, invisible test which covers different input data.
Step by Step Solution
3.43 Rating (150 Votes )
There are 3 Steps involved in it
Import numpy as np def vectorVolumex1 x2 x3 Convert the input vectors to num... View full answer
Get step-by-step solutions from verified subject matter experts
