Question: Write a program that evaluates the following approximation formula for tan(r) 1+tan(r) r-p + 47 +4-57 54 +32r5 15 where T= (x - y)

Write a program that evaluates the following approximation formula for tan(r) 1+tan(r) r-p + 47 +4-57 54 +32r5 15 where T= (x - y) * z To test the accuracy of this formula for various values of 7, compute the percent relative error via the expression: relative error in % = tan(r) 1+tan(r) approximate value - actual value actual value x 100 Your program input/output should look like: Enter x, y, z: 1 0.5 0.9 Approximate value = 0.340022 Actual value = 0.325716 Percent relative error = 4.392179% Type your code in the following textbox:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
