Question: The starting code shows how to: ( a ) Read float values x _ degrees and y _ degrees, each representing an angle in degrees;
The starting code shows how to:
a Read float values xdegrees and ydegrees, each representing an angle in degrees;
b Convert each to radians as xradians and yradians, then print out the values;
c Print out the trig formula string: sinxy sinxcosy cosxsiny
d Print out the result of evaluating the left side of the identity formula, using the sum of the specific values of sinx and
siny where x and y are in radians,
e Print out the result of evaluating the right side of the formula, substituting your converted input values into the appropriate math
functions
The above example is for the sinxy formula. Repeat for the following two additional identities:
cosxy cosxcosy sinxsiny
tanxytanx tany tanxtany
Use the trig functions from the math module: math.sin math.cos and math.tan Note these all take arguments in
radians, not degrees. math.radiansdeg will convert and return the degrees deg as an equivalent radian value.
You can use the inputs for xdegrees and ydegrees for your additional identities.
Your output should look like the following for the first of the three remaining identities. Actual numeric values are missing and
marked as ; you will fill these in on output:
Enter xdegrees degrees:
Enter ydegrees degrees:
xdegrees in radians xradians is:
ydegrees in radians yradians is:
The formula is: sinxy sinxcosycosxsiny
The left side is:
The right side is:
This is a python programming question on trig its probably Java too
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
