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`
EinsteinTensor
​
EinsteinTensor
[metric]
returns Einstein Tensor of metric.
​
Details and Options

Examples  
(3)
Basic Examples  
(1)
Calculate the Einstein Tensor in Schwarzschild space-time:
In[1]:=
g=
CreateTensor
"g",{0,2},{t,r,θ,ϕ},DiagonalMatrix-1-
2M
r
,
-1
1-
2M
r
,
2
r
,
2
r
2
Sin[θ]
,
IsMetric
True;​​G=
EinsteinTensor
[g]
Out[1]=
STensor
Symbol: G(g)
Rank: {0,2}

As a solution metric, the Einstein Tensor is zero.
In[2]:=
G["Components"]//MatrixForm
Out[2]//MatrixForm=
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Properties & Relations  
(1)

Neat Examples  
(1)

SeeAlso
RicciTensor
 
▪
RicciScalar
RelatedGuides
▪
Get Started
""

© 2025 Wolfram. All rights reserved.

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