Question: Problem 3.4 Computers, which can add/subtract, divide/multiply, and do powers, use techniques such as series or products to calculate special functions. Here we will calculate

 Problem 3.4 Computers, which can add/subtract, divide/multiply, and do powers, use

Problem 3.4 Computers, which can add/subtract, divide/multiply, and do powers, use techniques such as series or products to calculate special functions. Here we will calculate the sine function via the series 00 sin(z) (-1)*_211 2 + (2k + 1)! ko 3! 5! and the products sin(2) = - IT - )*1 ==[-(**][1-3)*]*[+- (53)*] *... a) Write a program that accepts a value = from the user (using the input command) and asks the user how many terms ne in the series and products the user wants (another input). Then, have the program display the sin(2) calculated via the series, and the sin() calculated via the products. Repeat this for the same z but another larger value of n (another input). b) Compare your sine values from a) to a value using Matlab's sine function, displayed to 5 digits after the decithal points. c) Continue to add more terms to the series, and multiply more terms to the products until sin(a) from these methods is accurate to 5 digits after the decimal point (compare to the Matlab result of b)). Approximately how many terms are needed for 5 digits accuracy after

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!