![MATLAB: An Introduction with Applications, 6th Edition: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781119385134/9781119385134_smallCoverImage.jpg)
Concept explainers
The first derivative
where h is a small number relative to x0. Write a user-defined function (see Section 7.9) that calculates the derivative of a math function f(x) by using the four-point central difference formula. For the user-defined function name, use dfdx=FoPtder (Fun, x0), were Fun is a name for the function that is passed into FoPtder, and x0is the point where the derivative is calculated. Use h=x0/100 in the four-point central difference formula. Use the user-defined function FoPtder to calculate the following:
(a) The derivative of f(x) = x3e2x at x0= 0.6.
(b) The derivative of
In both cases compare the answer obtained from FoPtder with the analytical solution (use format long).
![Check Mark](/static/check-mark.png)
Trending nowThis is a popular solution!
![Blurred answer](/static/blurred-answer.jpg)
Chapter 7 Solutions
MATLAB: An Introduction with Applications, 6th Edition: An Introduction with Applications
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageCalculus For The Life SciencesCalculusISBN:9780321964038Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.Publisher:Pearson Addison Wesley,Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin Harcourt
- College AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9780321964038/9780321964038_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305115545/9781305115545_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337282291/9781337282291_smallCoverImage.gif)