tensor(deprecated)/act - Help

Online Help

All Products    Maple    MapleSim


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

tensor[act] - perform an action on either a tensor_type, a spin coefficient table and curvature component table

Calling Sequence

act( action, args[2..nargs])

Parameters

action

-

name that is recognized by act() to designate the action wanted to be performed on an object.

args[2..nargs]

-

contains the objects to be acted upon and additional parameters depending on the specified action.

Description

Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.

• 

action usually is the name of an admissible procedure, and,

1. 

acts on precisely ONE algebraic argument, and

2. 

the "target" argument it acts on is its FIRST argument. (Most of the standard functions like simplify(), normal() fall into this category.) Note: an admissible procedure may employ extra or optional argument(s), as long as they come after the "target" one in the parameter list, e.g. simplify( .. , trig ).

– 

There are, however, two exceptions :

a. 

action can take the name display, used as a flag.  In which case act displays the nonzero element/component(s) of the parameter immediately after it which is presumably either a tensor_type, spin coefficient table or a curvature component table.

b. 

action can also take subs, which is a maple function. subs is an exception because the "target" object in the function subs() is the last parameter.

– 

To reinforce, any other input to action (which then must be the name of a procedure) must abide by the restrictions (1) and (2) above.

• 

args[2..nargs] - if action was input 'display', then this contains ONE argument which is the object to display.

• 

args[2..nargs] - if action is an "admissible" procedure name, then this is essentially the argument sequence of the procedure "action", including any possible extra arguments needed to specify the operation wanted, except the target argument is now of a more complex structure than just algebraic.

• 

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

Examples

Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.

withtensor:

U_compts:=arraysymmetric,1..2,1..2:

U_compts1,1:=x:U_compts1,2:=1sint2cost2:U_compts2,2:=y:

U:=create1,1,opU_compts

U:=tableindex_char=1,1,compts=x1sint2cost21sint2cost2y

(1)

Z:=actsubs,t=z,x=x+xy,U

Z:=tableindex_char=1,1,compts=xy+x1sinz2cosz21sinz2cosz2y

(2)

actfactor,Z

tableindex_char=1,1,compts=xy+11sinz2cosz21sinz2cosz2y

(3)

V:=actsimplify,Z,trig

V:=tableindex_char=1,1,compts=xy+x00y

(4)

actdisplay,V

  NON-ZERO INDEPENDENT COMPONENTS :"[1, 1] ="

"[2, 2] ="

  CHARACTER :

  INDEXING FUNCTION :

_________________________________________________

xy+x

y

1,1

symmetric

_________________________________________________

(5)

S_tble:=table'κ'=x,'σ'=x,'ρ'=x,'τ'=y,'ε'=y,'α'=y,'β'=z,'γ'=z,'ν'=z,'λ'=0,'μ'=0,'π'=0

S_tble:=tableμ=0,γ=z,λ=0,κ=x,ε=y,τ=y,σ=x,α=y,β=z,ρ=x,π=0,ν=z

(6)

S_tble:=actsubs,y=siny2+cosy2,S_tble

S_tble:=tableμ=0,γ=z,λ=0,κ=x,ε=siny2+cosy2,τ=siny2+cosy2,σ=x,α=siny2+cosy2,β=z,ρ=x,π=0,ν=z

(7)

actsimplify,S_tble

tableμ=0,γ=z,λ=0,κ=x,ε=1,τ=1,σ=x,α=1,β=z,ρ=x,π=0,ν=z

(8)

actdisplay,S_tble:

  NON-ZERO SPIN COEFFICIENTS :"gamma ="

"kappa ="

"epsilon ="

"tau ="

"sigma ="

"alpha ="

"beta ="

"rho ="

"nu ="

_________________________________________________

z

x

siny2+cosy2

siny2+cosy2

x

siny2+cosy2

z

x

z

_________________________________________________

(9)

PHI:=array0..2,0..2:

forifrom0to2doforjfrom0to2doPHIi,j:=cat'PHI',i,jend doend do:PSI:=array0..4,PSI0,PSI1,PSI2,PSI3,PSI4:Curve:=table'Φ'=opPHI,'Ψ'=opPSI,'R'=R

Curve:=tableR=R,Φ=ARRAY0..2,0..2,0,0=PHI00,0,1=PHI01,0,2=PHI02,1,0=PHI10,1,1=PHI11,1,2=PHI12,2,0=PHI20,2,1=PHI21,2,2=PHI22,Ψ=ARRAY0..4,0=PSI0,1=PSI1,2=PSI2,3=PSI3,4=PSI4

(10)

Curve2:=actsubs,PHI00=0,PHI11=sint2,R=tant,PSI2=x2,PSI3=xy3,PSI0=0,PSI1=0,PSI4=0,PHI22=0,PHI11=0,PHI01=x,PHI10=x,PHI02=y,PHI20=y,PHI12=z,PHI21=z,Curve

Curve2:=tableR=tant,Φ=ARRAY0..2,0..2,0,0=0,0,1=x,0,2=y,1,0=x,1,1=sint2,1,2=z,2,0=y,2,1=z,2,2=0,Ψ=ARRAY0..4,0=0,1=0,2=x2,3=xy3,4=0

(11)

actsimplify,Curve2

tableR=tant,Φ=ARRAY0..2,0..2,0,0=0,0,1=x,0,2=y,1,0=x,1,1=sint2,1,2=z,2,0=y,2,1=z,2,2=0,Ψ=ARRAY0..4,0=0,1=0,2=x2,3=xy3,4=0

(12)

actdisplay,Curve2

  NON-ZERO CURVATURE COMPONENTS :`Psi[2] =`

`Psi[3] =`

R =

_________________________________________________

x2

xy3

tant

%a ,Phi[1, 0] =

x

%a ,Phi[2, 1] =

z

%a ,Phi[2, 0] =

y

%a ,Phi[0, 2] =

y

%a ,Phi[1, 1] =

sint2

%a ,Phi[1, 2] =

z

%a ,Phi[0, 1] =

x

_________________________________________________

(13)

See Also

tensor(deprecated)


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam