Question: please solve with Matlab programming Problem 2) Once again, consider the Taylor's series expansion for sin x: sin x =X x3 x5 + 3! 5!

please solve with Matlab programming

please solve with Matlab programming Problem 2) Once again, consider the Taylor's

Problem 2) Once again, consider the Taylor's series expansion for sin x: sin x =X x3 x5 + 3! 5! x? (-1)" + ... = 7! (2n + 1)! n=0 7+(2n+1) where x is in radians. a) Write a user-defined function that determines sin x using Taylor's series expansion. For function name and arguments use y=sinTaylor (x), where the input argument x is the angle in degrees and the output argument y is the approximate value for sin x obtained using Taylor's series expansion. Inside the user-defined function, create a loop for adding the terms of the Taylor's series. Use 50 terms from the series in your function. 1 b) Use your function sinTaylor to calculate sin 70 and sin 190. Include your sinTaylor function and the commands that call your function in your submission. c) Compare the values calculated in part (b) using sinTaylor with the values obtained by using MATLAB's built-in function sind

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!