Re: Directional derivative using finite differences




Hi,

"A Net User" <matlabber@xxxxxxxxx> writes:
> How can one find a directional derivative using finite differences?

You probably mean 'approximate'.

> For example considering a grid as below with a grid size of 1
>
> a b c
> d e f
> g h i
>
> the derivative along x direction at point 'e' can be found as (f-d)/2
> using central differences and second order derivative would be
> (f+d-2e).
>
> What about the derivative at point 'e' along a diagonal line passing
> through points 'g','e' and 'c'?

Write them in terms of the grid size h. By setting your grid size to
h=1, you have just hidden the fact that you can use the same formula
(with a different h) for that particular derivative :-)

You can also approximate any directional derivative by using the
formula

dF dF dF
-- = ( -- , -- ) v, v in R^2 a unit vector.
dv dx dy

and then compute dF/dx, etc. using finite differences.
.



Relevant Pages

  • Re: Help about High order PDE in Matlab
    ... use finite differences. ... % Solve the viscous Burgers equation using 4th order finite ... % for the spatial discretization and method-of-lines time integration ... % N - number of grid points ...
    (comp.soft-sys.matlab)
  • Directional derivative using finite differences
    ... How can one find a directional derivative using finite differences? ... example considering a grid as below with a grid size of 1 ... dF/will not correspond to this directional derivative, ... Prev by Date: ...
    (sci.math.num-analysis)
  • Custom Paging in asp.net Datgrid Using Sql
    ... I have written A SP in SQL which will be used to Bind the grid. ... prev(<) and next>on grid. ... When User clicks on Nextbutton,Sp_fill builds a querry like ... StartIndex is the Value of Primary key of last record on the current ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Hi Deal or Big Strike?
    ... grid buttons and the "computer" effect created with relays. ... GRY ... Prev by Date: ...
    (rec.games.pinball)
  • Re: Farewell TV Guide
    ... Assuming we're still talking about zap2it, mine flags repeats by ... putting "" after the description in the grid. ... -Dan Damouth ... Prev by Date: ...
    (rec.arts.tv)