Write a python program to calculate cross product, dot product, perpendicular vector and angle between two vectors.

Questions & AnswersCategory: PythonWrite a python program to calculate cross product, dot product, perpendicular vector and angle between two vectors.
nikhil asked 2 years ago

1) Draw three lines with points
L1 = P1(0,0,0), P2(10, 0, 0)
L2 = P3(0,0,0), P4(0, 10, 0)
L3 = P5(0,0,0), P6(10, 10, 0)
2) Take vectors of these three points let’s call them as A, B, C.
3) Get the cross product of Vector A and Vector B. (Draw the result R)
4) Get the dot product of Vector A and Vector C. (what is the significance of the result)
5) Calculate perpendicular vector for vector C. (Draw the result)
6) Calculate the angle between Vector A and Vector C.
7) Find if the Vector A and Vector C are coplanar.
8) If the Vector A and Vector C are coplanar, draw the plane with a square with side length = 20.