tensor(deprecated)/invert - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : tensor(deprecated)/invert

tensor

  

invert

  

form the inverse of any second rank tensor_type

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

invert(T, detT)

Parameters

T

-

second rank tensor the determinant of which is nonzero

detT

-

unassigned name as an output parameter (for holding the determinant of T, which is a by-product of this routine)

Description

Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[Tensor][InverseMetric] and Physics[Inverse] instead.

• 

This procedure computes the determinant of the second rank tensor T, and whenever the T determinant does not vanish, it constructs the inverse tensor of T.

• 

In the case of a purely covariant or contravariant tensor T, the inverse T~ of T is defined in the usual way, corresponding to matrix algebra

TijTjk=δki

TijTjk=δik

  

where delta is the Kronecker delta.

• 

In the case of a mixed tensor T, the inverse T~ of T is defined so that it satisfies

TjiTkj=δki

TijTjk=δik

  

Thus, for the mixed case, T~ is the transpose of the matrix inverse of T.  Define the inverse for the mixed case this way so that tensor[invert] can be used to compute inverses of the components of tetrads and frames.  In the case of the natural basis, tensor[invert] is well suited for determining the contravariant metric tensor components from the covariant ones (and vice versa).

• 

Indexing function:  The invert routine preserves the use of the symmetric indexing function.  That is, if the input tensor_type uses the symmetric indexing function for its component arrays, then the result also uses the symmetric indexing function.

• 

Simplification:  This routine uses the `tensor/invert/simp` routine for simplification purposes.  The simplification routine is applied to each component of result after it is computed.  By default, `tensor/invert/simp` is initialized to the `tensor/simp` routine.  It is recommended that the `tensor/invert/simp` routine be customized to suit the needs of the particular problem.

• 

This function is part of the tensor package, and so can be used in the form invert(..) only after performing the command with(tensor) or with(tensor, invert).  The function can always be accessed in the long form tensor[invert](..).

Examples

Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[Tensor][InverseMetric] and Physics[Inverse] instead.

withtensor:

tarray1..3,1..3,x,y,y,y,0,0,0,0,x:

Tcreate1,1,opt

Ttablecompts=xyyy0000x,index_char=−1,1

(1)

Compute the inverse of the mixed tensor_type T.  Note that the result is the transpose of the matrix inverse:

invTinvertT,detT

invTtablecompts=01y01yxy2001x1x,index_char=1,−1

(2)

Define the covariant Kerr-Newman metric tensor:

gcreate1,1,arraysymmetric,1..4,1..4,3,4=e22mrasinθ2r2+a2cosθ2,3,3=sinθ2r2+a2+a2sinθ2r2+a2cosθ22mre2,1,1=r2+a2cosθ2r2+a2+e22mr,2,2=r2+a2cosθ2,2,3=0,2,4=0,4,4=2mre2r2+a2cosθ21,1,2=0,1,3=0,1,4=0

gtablecompts=r2+a2cosθ2a2+e22mr+r20000r2+a2cosθ20000sinθ2r2+a2+a2sinθ2e2+2mrr2+a2cosθ2e22mrasinθ2r2+a2cosθ200e22mrasinθ2r2+a2cosθ2e2+2mrr2+a2cosθ21,index_char=−1,−1

(3)

ginvinvertg,detg

ginvtablecompts=a2+e22mr+r2r2+a2cosθ200001r2+a2cosθ20000a2cosθ2+e22mr+r2cscθ2a2+e22mr+r2r2+a2cosθ2e22mrar2+a2cosθ2a2+e22mr+r200e22mrar2+a2cosθ2a2+e22mr+r2sinθ2a2e22sinθ2a2mra4cosθ2a2cosθ2r2a2r2r4a2+e22mr+r2r2+a2cosθ2,index_char=1,1

(4)

See Also

DifferentialGeometry[Tensor][InverseMetric]

Physics[Inverse]

tensor(deprecated)

tensor(deprecated)[simp]