Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you answer this problem in Matlab and show all the step in how to do the problem? Thank you so much! 8:331 II LTE

image text in transcribedCan you answer this problem in Matlab and show all the step in how to do the problem? Thank you so much!

8:331 II LTE Home Re-Login uga.view.usg.edu InClassHandout 08 P1. Derivative of a function(x) at a particular value of x can be approximately dr(r. /(x+h)-f(x) where h is the step size. calculated by dx (a) Write a MATLAB function defined below that calculates the approximate derivative of (x). The function definition is given below: function tappDerv, exDerv,et]-nyDervix,h) %Function file : myDerv.m Purpose: % Calculate approximate derivative using (f(x+h)-f(x)) /h, exact % derivative f"(x) and true percentage relative error of a function % f(x-x"3"exp (-2*x) Record of revisions (Date I Programner Change): Date Name1 Original program % Inputs: % x- {1x1) value of x where derivative needs to be calculated h-{1x1) step size used in approximate derivative formula %Outputs : % appDerv- (1x1) approximate derivative calculated as {f(x+h)-f(x)) /h ex De rv- (1x1) exact derivative % et Ix Lzue percentage relative error (b) Using the above program, determine the approximate derivate and true percentage relative error at x-1 with h0.05 and-0.1. What is the approximate percentage relative error? UGA Home UGA Bus Campus Map UGAMail eLC

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions

Question

How have new banking laws influenced competition?

Answered: 1 week ago

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago