Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribedPlease 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 one

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

3. List ways to manage relationship dynamics

Answered: 1 week ago