Question: You are developing a new library for a computer system. You have developed a very accurate function for computing cos x. Your boss, an MBA

 You are developing a new library for a computer system. You

You are developing a new library for a computer system. You have developed a very accurate function for computing cos x. Your boss, an MBA graduate of the Terry College of Business, has never taken Numerical Analysis and suggests that you don't have to waste time developing an accurate function for sin x since you can use the identity sin x = plusorminus squareroot 1 - cos^2 x to compute sin x. Explain tactfully to your boss why this is not a good idea for certain values of x and suggest an alternate way to use the cos x function to compute sin x which avoids the problem. Your explanation should involve a specific computation of sin x using your boss's method with a high relative error, and an alternate computation of sin x using your method which has a much lower relative error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!