Vector Calculus Functions ========================== .. py:function:: curl(F(x, y, z), x, y, z) Curl of a vector F of 3 components at the values of the variables, in Cartesian coordinates, the variables in a right-handed order :param function F: An function that returns an array in vector format :param string x: A variable :param string y: A variable :param string z: A variable :rtype: array in vector form .. topic:: example .. math:: \text{center} := \begin{bmatrix} 0.4 \\ 0.8 \\ 0.1 \end{bmatrix} \quad \text{axis} := \begin{bmatrix} 0.12 & -0.53 & 1.2 \end{bmatrix} .. math:: F_r(x,y,z) := \left( center - \begin{bmatrix} x \\ y \\ z \end{bmatrix} \right) \times axis .. math:: \text{curl}(F_r(x,y,z),x,y,z) \to \begin{bmatrix} 0.24 \\ -1.06 \\ 2.4 \end{bmatrix} .. py:function:: div(F(x,y,z),x,y,z) the divergence of a vector F at the values of the variables, Σ ∂Fᵢ/∂xᵢ, in Cartesian coordinates; F has as many components as variables, the i-th one along the i-th variable :param function F: An function that returns an array in vector format :param string x: A variable :param string y: A variable :param string z: A variable :rtype: array in vector form .. topic:: example .. math:: \text{center} := \begin{bmatrix} 0.4 \\ 0.8 \\ 0.1 \end{bmatrix} \quad \text{axis} := \begin{bmatrix} 0.12 & -0.53 & 1.2 \end{bmatrix} .. math:: F_r(x,y,z) := \left( center - \begin{bmatrix} x \\ y \\ z \end{bmatrix} \right) \times axis + \begin{bmatrix} sin(4x) \\ cos(4y) \\ sin(x)+sin(y) \end{bmatrix} .. math:: \text{div}(F_r(x,y,z),x,y,z) \to 4 \cdot cos(4x) - 4 \cdot sin(4y) .. py:function:: grad(F(x,y),x,y) The gradient of f at the values of the variables, the column of its derivatives ∂f/∂x, ∂f/∂y; the variables have the same units :param function F: An fynction that returns an array in vector format :param float x: A number :param float y: A number :rtype: array .. py:function:: hessian(F(x, y), x, y) The Hessian of f at the values of the variables, the symmetric matrix of its second derivatives ∂²f/∂xᵢ∂xⱼ :param function F: An fynction that returns an array in vector format :param float x: A number :param float y: A number :rtype: array .. py:function:: jacob(F(x, y), x, y) The Jacobian of a vector F at the values of the variables, the matrix of the derivatives ∂Fᵢ/∂xⱼ, a row for a scalar :param function F: An fynction that returns an array in vector format :param float x: A number :param float y: A number :rtype: array .. py:function:: lap(F(x, y, z), x, y, z) The Laplacian of F at the values of the variables, Σ ∂²f/∂xᵢ², in Cartesian coordinates :param array F: An fynction that returns an array in vector format :param float x: A number :param float y: A number :param float z: A number :rtype: array