forward, backward, and centered difference method

I am new to MatLab. How can I solve below:
x 1 2 3 4 5 6
f(x) 2 3 1 5 4 1
Estimate f 0 (4) using the forward, backward, and centered difference method with h = 1.

5 comentarios

James Tursa
James Tursa el 14 de En. de 2022
What have you done so far? What specific problems are you having with your code?
I am new to matlab, I am confused if i declare x and f(x) declare as an array. then to find forward diff method the equation also contains x as input.
Torsten
Torsten el 14 de En. de 2022
What is f 0 (4) ?
need to find f'(4), x=4, h=1 . I have already done through manually. But how to program it ?
James Tursa
James Tursa el 14 de En. de 2022
Please show us what you did manually. Not just the result ... show us the computations you did.

Respuestas (0)

La pregunta está cerrada.

Preguntada:

el 14 de En. de 2022

Cerrada:

el 15 de En. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by