Question: Homework 01-Basics Function Name: cosign Inputs: 1. (double) The length of side 'a' of a triangle 2. (double) The length of side'b' of a triangle

Homework 01-Basics Function Name: cosign Inputs: 1. (double) The length of side 'a' of a triangle 2. (double) The length of side'b' of a triangle 3. (double) The angle C' of a triangle Outputs: 1. (double) The length of side 'c' of a triangle Function Description: In his song 'Till the End', Logic proclaims that he needs no cosigns. He forgot, however, that the law of cosines is very important in mathematics. In case you forgot, the law of cosines is as follows: Where Write a function that takes in the lengths of two sides of a triangle and the size of the angle between them as inputs, and outputs the length of the third side of the triangle, using the law of cosines to calculate it Notes: Round your answer to three decimal places The angle'C is provided in degrees
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
