Physics[Vectors][Curl] - compute the curl by using the nabla differential operator
Physics[Vectors][Divergence] - compute the divergence by using the nabla differential operator
Physics[Vectors][Gradient] - compute the gradient by using the nabla differential operator
Physics[Vectors][Laplacian] - compute the Laplacian by using the nabla differential operator
Remark: these calling sequences are also valid with the inert %Curl, %Divergence, %Gradient, %Laplacian commands
any algebraic (vector or scalar) expression
Curl, Divergence, Gradient and Laplacian, respectively return the curl, the divergence, the gradient and the Laplacian of a given vectorial or scalar function. When the command's name is prefixed by %, an unevaluated representation for these operations is returned.
The %Curl, %Divergence, %Gradient and %Laplacian are the inert forms of Curl, Divergence, Gradient and Laplacian, that is: they represent the same mathematical operations while holding the operations unperformed. To activate the operations use value.
Curl, Divergence and Gradient check their arguments (for consistency) before sending the task to Nabla. So, if A_ is a vector, then Gradient(A_) will interrupt the computation with an error message, as well as Divergence(A) and Curl(A) when A is a scalar (not a vector). All these differential operations are realized just w.r.t the geometrical coordinates φ,r,ρ,θ,x,y,z. Therefore, if A does not depend on these global geometrical coordinates, these commands (as well as Nabla) return 0.
For the conventions about the geometrical coordinates and vectors see ?conventions
The Gradient of a function
The Divergence of a Gradient is equal to the Laplacian
The Laplacian of a vector function in spherical coordinates
The Curl of a Gradient is identically zero
eq ≔ ∇A⁡r,θ,φ
Depending on the context the inert representations of these commands, obtained by prefixing the command's name with %, serve better the purpose of representing the mathematical objects
The Curl of non-projected vector function (note the underscore in 'V_' to represent vectors)
eq ≔ ∇×V_⁡r,θ,φ
The Divergence of a Curl is identically zero
The Divergence and Curl of a projected vector function (projected vectors don't need an "arrow" - the underscore "_" mentioned in the previous example to be represented)
V ≔ _r+f1⁡θ,φ⁢_θ+f2⁡θ,φ⁢_φ
operations, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Physics/Vectors, Setup
Download Help Document
What kind of issue would you like to report? (Optional)