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
|
|
•
|
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
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
NON-ZERO INDEPENDENT COMPONENTS :"[1, 1] ="
| |
| (5) |
>
|
|
| (6) |
>
|
|
![S_tble := TABLE([mu = 0, rho = x, nu = z, pi = 0, kappa = x, tau = sin(y)^2+cos(y)^2, lambda = 0, sigma = x, beta = z, gamma = z, epsilon = sin(y)^2+cos(y)^2, alpha = sin(y)^2+cos(y)^2])](/support/helpjp/helpview.aspx?si=5499/file04513/math194.png)
| (7) |
>
|
|
| (8) |
>
|
|
NON-ZERO SPIN COEFFICIENTS :"rho ="
| |
| (9) |
>
|
|
![Curve := TABLE([Phi = ARRAY([0 .. 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]), R = R, Psi = ARRAY([0 .. 4], [0 = PSI0, 1 = PSI1, 2 = PSI2, 3 = PSI3, 4 = PSI4])])](/support/helpjp/helpview.aspx?si=5499/file04513/math278.png)
| (10) |
>
|
![Curve2 := act(subs, [PHI00 = 0, PHI11 = sin(t)^2, R = tan(t), PSI2 = x^2, PSI3 = x*y^3, PSI0 = 0, PSI1 = 0, PSI4 = 0, PHI22 = 0, PHI11 = 0, PHI01 = x, PHI10 = x, PHI02 = y, PHI20 = y, PHI12 = z, PHI21 = z], Curve)](/support/helpjp/helpview.aspx?si=5499/file04513/math282.png)
|
![Curve2 := TABLE([Phi = ARRAY([0 .. 2, 0 .. 2], [(0, 0) = 0, (0, 1) = x, (0, 2) = y, (1, 0) = x, (1, 1) = sin(t)^2, (1, 2) = z, (2, 0) = y, (2, 1) = z, (2, 2) = 0]), R = tan(t), Psi = ARRAY([0 .. 4], [0 = 0, 1 = 0, 2 = x^2, 3 = x*y^3, 4 = 0])])](/support/helpjp/helpview.aspx?si=5499/file04513/math285.png)
| (11) |
>
|
|
![TABLE([Phi = ARRAY([0 .. 2, 0 .. 2], [(0, 0) = 0, (0, 1) = x, (0, 2) = y, (1, 0) = x, (1, 1) = sin(t)^2, (1, 2) = z, (2, 0) = y, (2, 1) = z, (2, 2) = 0]), R = tan(t), Psi = ARRAY([0 .. 4], [0 = 0, 1 = 0, 2 = x^2, 3 = x*y^3, 4 = 0])])](/support/helpjp/helpview.aspx?si=5499/file04513/math292.png)
| (12) |
>
|
|
NON-ZERO CURVATURE COMPONENTS :`Psi[2] =`
| |
| (13) |
|
|
Download Help Document
Was this information helpful?