Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

An Introduction to the Mathematics of Financial Derivatives

Authors: Ali Hirsa, Salih N. Neftci

3rd edition

012384682X, 978-0123846822

More Books

Students also viewed these Programming questions