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[create] - create a new tensor_type object
Calling Sequence
create( index_character, components)
Parameters
index_character
-
list of positive ones (1) and negative ones (-1) specifying the contravariant/covariant character of the indices of the new tensor
components
components of the tensor: array for tensors of nonzero rank, an algebraic for zero-rank tensors
Description
The function create([1,-1], compts_array) returns a tensor_type with "index_char" field set to [1,-1] and "compts" field set to compts_array (where compts_array is either an array or the name of an array).
The contravariant indices (represented by 1) are those indices that appear as superscripts, whereas the covariant indices (represented by -1) are those that appear as subscripts.
The function create([], a*b/(c+d)) returns a tensor_type representing a scalar (zero-rank tensor) with fields "index_char" and "compts" set to and respectively.
When called, create checks its arguments for correct type and for the consistency between the index character and the components fields using a call to `type/tensor_type`. Upon passing those checks, the appropriate tensor_type is returned.
Note that this function is not a necessity but is provided as a convenient way of create new tensors.
This function is part of the tensor package, and so can be used in the form create(..) only after performing the command with(tensor), or with(tensor,create). This function can always be accessed in the long form tensor[create](..).
Examples
Create a 2-tensor of mixed character with components stored in the array "cmpts".
Create a zero-rank tensor with "component" arctan(y/x).
Create a 2-tensor of mixed character by directly entering the components.
Create the contravariant Euclidean 3-space metric (2-tensor) in spherical-polar coordinates.
See Also
tensor
Download Help Document