Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the octave script and the plots You are to write a program in Octave to evaluate the forward finite difference, backward finite difference,

I need the octave script and the plots
image text in transcribed
image text in transcribed
You are to write a program in Octave to evaluate the forward finite difference, backward finite difference, and central finite difference approximation of the first derivative of the following function: $(x) = 12.5+3.5x cos(2.45x) at the location x = 2.75 using a step size of Ar=0.1,0.01,0.001...10-2. Evaluate the exact derivative and compute the error for each of the three finite difference methods. 1. Generate a table of results for the error for each finite difference at each value of Ar. 2. Generate a plot containing the log of the error for each method vs the log of Ar. 3. Repeat this in single precision. 4. What is machine epsilon in the default Octave real variable precision. 5. What is machine epsilon in the Octave real variable single precision. Complete the project l assignment quiz on webcourses. Report on the Webcourses project 1 assignment Quiz the values of the derivative estimated using each of the three finite differences using as step size of Ax=10, Ax=10%, Ax=10-10, and Ax=10-20

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

Step: 3

blur-text-image

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

LO3 Name the seven categories of HR functions.

Answered: 1 week ago