Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Divergence of a vector field (div)

Divergence of a vector field.

How to write it

div(field, variables)

field
The components of the field. Takes a list.
variables
The variables, in brackets. Takes a list of variables.

Examples

  • div⁡([x,y,z],[x,y,z])=3\displaystyle \operatorname{div}(\left[ x, y, z \right], \left[ x, y, z \right]) = 3
    div([x, y, z], [x, y, z])

    In the solver, div([x, y, z], [x, y, z]) gives 3.

    Open in the solver
  • grad

    Gradient of an expression: the list of its partial derivatives.

  • diff

    Derivative of an expression with respect to one or more variables.

  • hessian

    Hessian matrix of an expression: its second partial derivatives.

  • derivative

    The derivative operator: derivative(n) is of order n, derivative(0, 1) is the partial in the second argument.

  • integrate

    Antiderivative of an expression, or its definite integral over a range.

  • curl

    Curl of a vector field in three variables.