exercise law of cosines given the triangle as shown in figure create function where you find using the law of cosines ab cos( ( test the functions to make sure it works properly [end of exerciseexercise plotting trigonometric functions plot sin(thand cos(thfor <th < in the same plot (both in the same plot and in different subplotsmake sure to add labels and legend and use different line styles and colors for the plots [end of exercise polynomials polynomial is expressed asp(xp xn xn- pn pn+ ( where are the coefficients of the polynomial we will use the polynomial module in the numpy package webother resourcespython advanced course topics polynomials