Documentation Center

  • Trial Software
  • Product Updates

linalg::grad

Vector gradient

    Note:   linalg::grad will be removed in a future release. Use gradient instead.

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

linalg::grad(f, x)
linalg::grad(f, x, ogCoord, <c>)

Description

linalg::grad(f, x) computes the vector gradient of the scalar function with respect to in Cartesian coordinates. This is the vector .

linalg::grad, linalg::gradient, and gradient are equivalent. See details and examples on the gradient help page.

Parameters

f

An arithmetical expression in the variables given in x

x

A list of (indexed) identifiers

ogCoord

The name of a three-dimensional orthogonal coordinate system predefined in the table linalg::ogCoordTab, or a list of algebraic expressions representing the scale factors of an orthogonal coordinate system.

c

The parameter of the coordinate systems EllipticCylindrical and Torus, respectively: an arithmetical expression. The default value is c = 1.

Return Values

Column vector of the domain Dom::Matrix().

Was this topic helpful?