Backward forward and centered differences

In some of the examples above, we estimated gradients from temperatures. If we know temperatures 0i-1, 0i, and 0i+1 and need the gradient Pi there are three possible approaches:

Az

0i+1 -

0i

Az

0i+1 -

dz dz 2Az

These are known as backward, forward, and centered differences, respectively.

0 0

Post a comment