>  Docs Center  >  Libraries  >  Beaumont  >  DIV
Libraries

DIV

DIV

Purpose


  This function calculates the divergence of a 1, 2, or 3-dimensional
  vector function sampled on a uniform grid.

Inputs


  x: The x component of the vector field.
  y: The y component of the vector field. Optional
  z: The z component of the vector field. Optional

Keyword Parameters


  order: The order of the lagrange interpolation polynomial to use
  when calculating derivatives. See pdiv.pro for details. Defaults to 1.

Outputs


  An array of the same shape as data, giving the divergence at each
  point.

Modification History


  2010-08-03: Written by Chris Beaumont



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
My Account    |    Contact Us