Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

STensor

Guides

  • Get Started

Tech Notes

  • Basic Tensor Computation
  • ComputationWithMetric

Symbols

  • ChristoffelSymbol
  • CreateTensor
  • EinsteinTensor
  • Inverse
  • IsMetric
  • LineElement
  • RicciScalar
  • RicciTensor
  • RiemannTensor
  • SCoordinateTransform
  • STensor
  • STensorQ
  • Symmetrize
  • TensorRank
  • TensorSymmetry
  • Tr
  • VolumeElement
  • WeylTensor
BowenPing`STensor`
CreateTensor
​
CreateTensor[sym,rank]
creates a tensor of symbol sym. rank is a two-integer list gives length of sup indices and sub indices.
​
​
CreateTensor[sym,rank,crds]
crds list gives the coordinate system.
​
​
CreateTensor[sym,rank,crds,components]
components gives the components array.
​
​
CreateTensor[sym,rank,crds,components,metric]
metric gives the corresponding metric of this tensor.
​
​
CreateTensor[inf,IsMetricTrue]
inf is the argument sequence as above. IsMetric->True means the tensor is a metric itself.
​
Examples  
(4)
Basic Examples  
(1)
Create a STensor object will be like:
In[1]:=
T=
CreateTensor
["T",{2,1}]
Out[1]=
STensor
Symbol: T
Rank: {2,1}

Indices will be added like this:
In[2]:=
T["ab","c"]
Out[2]=
STensor
Symbol: T
Rank: {2,1}
[ab,c]
Create a tensor with coordinate system and components:
In[3]:=
S=
CreateTensor
["S",{1,2},{x,y},Array[Subscript["s",##]&,{2,2,2}]]
Out[3]=
STensor
Symbol: S
Rank: {1,2}

Options  
(3)

SeeAlso
STensor
 
▪
RiemannTensor
RelatedGuides
▪
Get Started
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com