Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
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,
acts on precisely ONE algebraic argument, and
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 :
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.
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
NON-ZERO INDEPENDENT COMPONENTS :"[1, 1] ="
"[2, 2] ="
CHARACTER :
INDEXING FUNCTION :
NON-ZERO SPIN COEFFICIENTS :"rho ="
"nu ="
"kappa ="
"tau ="
"sigma ="
"beta ="
"gamma ="
"epsilon ="
"alpha ="
NON-ZERO CURVATURE COMPONENTS :`Psi[2] =`
`Psi[3] =`
R =
See Also
tensor
Download Help Document