Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write a python Script! 1. f(x)=1f(x)=0 2. f(x)=xf(x)=1 3. f(x)=x2f(x)=2x 4. f(x)=xnf(x)=nxn1, for n=3 5. f(x)=xf(x)=1/(2x) 6. f(x)=exf(x)=ex 7. f(x)=2xf(x)=(loga)ax 8. f(x)=logxf(x)=1/x 9. f(x)=sinxf(x)=cos(x)
Please write a python Script!
1. f(x)=1f(x)=0 2. f(x)=xf(x)=1 3. f(x)=x2f(x)=2x 4. f(x)=xnf(x)=nxn1, for n=3 5. f(x)=xf(x)=1/(2x) 6. f(x)=exf(x)=ex 7. f(x)=2xf(x)=(loga)ax 8. f(x)=logxf(x)=1/x 9. f(x)=sinxf(x)=cos(x) 10. f(x)=cosxf(x)=sin(x) Table 1: A Comparison of Derivatives Problem 5. for each of 10 functions in problem 1, write a script to compute the relative error (as percentage compared to the exact value) of computing derivatives f(x=1 using numerical differentiation with forward, backward and central differences for x=0.2. Summarize your results (rounded to 2 decimal digits) in the second table similar to the first oneStep 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