TensorInnerProduct - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Tensor[TensorInnerProduct] - compute the inner product of two vectors, forms or tensors with respect to a given metric tensor

Calling Sequences

     TensorInnerProduct(g, T, S, keywords)

Parameters

   g        - a covariant metric tensor on a manifold

   T, S     - two vector fields, forms or tensors (with the same index type) on , or lists of such

   keywords   -  (optional) inversemetric = h, where h is the inverse metric to g; tensorindices = indx, where indx is a list of positive integers.

 

Description

Examples

Description

• 

Let P = TensorInnerProduct(g, T, S). Let  and  be the inverse metric. If and  are vectors, then . If and are 1-forms, then . Ifand  are 2-forms, then . If  and , then and so on.

• 

When repeated calls are to be made to TensorInnerProduct, the keyword argument inversemetric be be used to avoid repeated computations of the metric inverse.

• 

With the keyword argument tensorindices = [n1, n2, ... ], the contraction of indices used to construct the tensor inner product is restricted to the indices n1, n2, ... .

• 

This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form TensorInnerProduct(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order.  It can always be used in the long form DifferentialGeometry:-Tensor:-TensorInnerProduct.

Examples

 

First define a manifold M with local coordinates  and define a (covariant) metric on

M > 

(2.1)

 

Example 1.

Compute the inner product of two vectors.

M > 

(2.2)
M > 

(2.3)
M > 

(2.4)

 

Example 2.

Compute the inner product of two 1-forms.

M > 

(2.5)
M > 

(2.6)
M > 

(2.7)

 

Example 3.

Compute the inner product of two 2-forms.

M > 

(2.8)
M > 

(2.9)
M > 

(2.10)

 

Example 4.

Compute the inner product of two rank-3 tensors.

M > 

(2.11)
M > 

(2.12)
M > 

(2.13)

 

Partial contractions of T and S can be computed.

M > 

(2.14)
M > 

(2.15)

 

Example 5.

Compute the inner product of two lists of rank-1 tensors (1-forms). In this case the efficiency of the command is improved if the keyword argument inversemetric is given.

M > 

(2.16)
M > 

(2.17)
M > 

(2.18)
M > 

See Also

DifferentialGeometry

Tensor

ContractIndices

InverseMetric

RaiseLowerIndices

SpinorInnerProduct

 


Download Help Document