![MATLAB: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781118629864/9781118629864_largeCoverImage.gif)
The Taylor series expansion for cos(x) is:
wherex is in radians. Write a MATLAB program that determines cos(x) using the Taylor series expansion. The program asks the user to type a value for an angle in degrees. Then the program uses a loop for adding the terms of the Taylor series. If anis the nth term in the series, then the sum Snof the n terms is
- Cos(35°)
- sin(125°)
Compare the values with those obtained by using a calculator.
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 6 Solutions
MATLAB: An Introduction with Applications
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageAlgebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781285195780/9781285195780_smallCoverImage.gif)