Question: Please complete in python 4. Given a triangle with vertices at the coordinates A(2, 4), B(1, -2), C(3,7): (a) Find the lengths of the sides.
Please complete in python

4. Given a triangle with vertices at the coordinates A(2, 4), B(1, -2), C(3,7): (a) Find the lengths of the sides. (b) Use the Law of Cosines formula to find cos(ZBAC). NOTE the formula can be rewritten as 62 +2 - a cos(ZBAC) 2bc where a, b, c are BC, AC, AB respectively. (c) Confirm your answer by finding cos(ZBAC) by using the dot product for- mula to find the angle between a = AB=(-1, -6) and b= AC = (1, 3). NOTE that you found the magnitudes in part (a), and you can compute the dot product by just using arithmetic operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
