Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HI I NEED CODE IN PYTHON LANGUAGE ONLY PYTHON DO NOT WASTE MY QUESTION THANKS I GIVE YOU THUMBS UP (a) (15%) Write and run

HI I NEED CODE IN PYTHON LANGUAGE ONLY PYTHON DO NOT WASTE MY QUESTION THANKS I GIVE YOU THUMBS UP

image text in transcribed

(a) (15\%) Write and run a computer program to approximate the derivative of function f at point x defined by the equation f(x)=limh0hf(x+h)f(x). Try f(x)=sin(x) at x=0.5 and hn=0.5hn1,h0=1,n=1,2,,30. Compute absolute errors of the approximation using the formula error =y f(x), where yn is yn is an output of the program in iteration n. Plot the errors on using a log-scale, i.e., the axes of the plot should be log10 error versus log10h. Analyze the results. Repeat the same experiment for f(x)=x1. (b) (5%) Find a way for to calculate accurate values for f(x)=x21+x21xtan(x)x2sin(x)

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

Excel 2024 In 7 Days

Authors: Alan Dinkins

1st Edition

B0CJ3X98XK, 979-8861224000

More Books

Students also viewed these Databases questions

Question

=+26-1 Define learning, and identify some basic forms of learning.

Answered: 1 week ago

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago

Question

What is meant by planning or define planning?

Answered: 1 week ago