Post Reply 
Difference Quotient Calculation
09-07-2021, 02:33 PM
Post: #3
RE: Difference Quotient Calculation
Slope is more accurate using central difference, CAS has it built-in.

CAS> nDeriv(f(x), x, h)

0.5*(f(h+x)-(f(-h+x)))/h

We can make it 1-sided.

CAS> nDeriv(f(x+h/2), x, h/2)

(-(f(x))+f(h+x))/h
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Difference Quotient Calculation - KeithB - 09-07-2021, 01:02 PM
RE: Difference Quotient Calculation - Albert Chan - 09-07-2021 02:33 PM



User(s) browsing this thread: 1 Guest(s)