Navigation

Operators and Keywords

Function List:

C++ API

: [cx, cy, cz, v] = curl (x, y, z, fx, fy, fz)
: [cz, v] = curl (x, y, fx, fy)
: […] = curl (fx, fy, fz)
: […] = curl (fx, fy)
: v = curl (…)

Calculate curl of vector field given by the arrays fx, fy, and fz or fx, fy respectively.

                  / d         d       d         d       d         d     \
curl F(x,y,z)  =  |-- Fz  -  -- Fy,  -- Fx  -  -- Fz,  -- Fy  -  -- Fx |
                  \ dy        dz      dz        dx      dx        dy    /

The coordinates of the vector field can be given by the arguments x, y, z or x, y respectively. v calculates the scalar component of the angular velocity vector in direction of the z-axis for two-dimensional input. For three-dimensional input the scalar rotation is calculated at each grid point in direction of the vector field at that point.

See also: divergence, gradient, del2, cross.

Package: octave