Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using MATLAB 1- If the lengths of two sides of a triangle and the angle between them are known, the length of the third side
using MATLAB
1- If the lengths of two sides of a triangle and the angle between them are known, the length of the third side can be calculated. Given the lengths of two sides (b and c) of a triangle, and the angle between them in degrees (x), the third side a is calculated as follows: a = b + c2 - 2 b c cos(x) Write a script that calls a function thirdside which prompts the user, reads in values for b, C, and X (in degrees), then calculates the value of (a) and prints it with three decimal places. (Note: To convert an angle from degrees to radians, multiply the angle by pi/180.) The format of the output from the script should look exactly like this: Command Window Enter the first side: 2.2 Enter the secong side: 4.4 Enter the angle between them: 50 The third side is 3.43 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started