Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started