Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2-Writing a function that determines the interior angles of a triangle, given the length of the sides. This problem will assume that the side

image text in transcribed

Problem 2-Writing a function that determines the interior angles of a triangle, given the length of the sides. This problem will assume that the side lengths are valid and entered from shortest to longest. You will make use of the following equations: sin sin sin The first equation is the Law of Sines and the second equation is the Law of Cosines. These equations give the relationship between the length of the sides of a triangle, (i.e., A, B, and C) to the interior angles, (i.e. alpha, beta, and gamma) as shown in the following figure. Use the following instructions to help create your function . Open the editor window, and use the information discussed in class as a template to write your function. Name your function as described at the beginning of the lab instructions. *Include a comment block describing the function. . Have inputs of triangle side lengths of A, B, and C . Use the Law of Sines and Cosines to determine the angles, alpha, beta, and gamma in degrees. . Return the three angles as output. * Test your function in the command window to make sure it works as required. Include comments to document your function and your results. Include commented results at the conclusion of your function m-file for the case where A 2, B 3, and C 4, for the case where A-5, B-8, and C-15, and for the case where A = 0.25x10^ 3, B-0.4x10^ 3, and C-0.6x10^3 .To check your solution, does alpha +beta +gamma- 180

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions