CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 01:46:42 GMT
content-type: text/html; charset=utf-8
cf-ray: 963fbecdf9a1f424-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=5609f2d5-203c-418d-aee5-58e416c6986b; expires=Fri, 24 Jul 2026 01:46:42 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: da319616-9400-4faa-9e2c-8167396486c9
x-worker-origin-response-time: 440000000
x-dns-prefetch-control: off
set-cookie: prov=5609f2d5-203c-418d-aee5-58e416c6986b; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=nC15zohXW747d9xKszW3GvyibiasjQD_ASocopUsAhM-1753321602-1.0.1.1-fwWB1uTenOZucxhD2SmpKJ8jq4OEzLkCKLMq3lxb3KzR6KHbamcZL07MV8OJL6MB7t3AUYUE7fMu3mxDApCoi52ThQqDObePSJc9tx8imGE; path=/; expires=Thu, 24-Jul-25 02:16:42 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=BoW0xJD5zmYiqCYcQ0C6daVQqX63G3cvqFrM0NyK6FQ-1753321602688-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'tensors' Questions - Mathematica Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [tensors]
Use this tag for questions that involve tensors. Tensors are fundamental tools for linear computations, generalizing vectors and matrices to higher ranks. Mathematica 9 introduces powerful methods to algebraically manipulate tensors with any rank and symmetry.
558 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
1
answer
111
views
Combining exterior derivatives with endomorphisms
(I am a Mathematica novice, please be gentle) I am trying to perform an explicit but lengthy tensor computation and from what I can tell the xterior.m package has much of the functionality I need but ...
4
votes
3
answers
184
views
Canonical way to handle alternating tensors? Basis construction
Is there a canonical way to construct alternating tensors in mathematica? I have tried several different ways of constructing a basis for alternating tensors. However, all options seem rather clunky. ...
0
votes
0
answers
43
views
xAct -- Metric perturbation by Ricci tensor
I want to compute the perturbed Ricci scalar $\overline{R}$ to second order in $\epsilon$ when the metric $g_{ab}$ is perturbed by $\epsilon R_{ab}$, where $\epsilon$ is a constant parameter.
I tried ...
1
vote
0
answers
55
views
Transpose function fails to give a correct result [closed]
Mathematica 12.3.1.0
Platform: Linux x86 (64bit)
I have a tensor ten
Dimension[ten]
...
1
vote
0
answers
62
views
How to calculate the perturbation for Ricci scalar squared
Consider a perturbation for this metric:
$$
ds^2= \left(g_{\alpha\beta}+ \delta g_{\alpha\beta} \right) dx^\alpha dx^\beta ,
$$
in the form:
\begin{eqnarray}
\delta g_{00}&=&- a^2(\tau)\left( ...
3
votes
2
answers
145
views
How to make tensor product linear
Is it possible to define certain variable as scalars with respect to the tensor product? Say, I have abstract tensors A, B, C and scalar coefficients a, b, c. When I apply ...
4
votes
0
answers
104
views
Simple MatrixSymbol and Solve example in 14.2
I'm excited about the new symbolic tensor features. I'm trying to just do some simple linear algebra with the least squares regression formula for some 2D data points.
Initializing:
...
1
vote
1
answer
69
views
Using xAct to calculate contractions of the torsion tensor in terms of its irreducible components
I'm fairly new to Mathematica, and especially xAct. Before I state the question, some background:
In Einstein-Cartan theory, the torsion tensor is assumed to be non-vanishing (unlike General ...
0
votes
0
answers
67
views
Using indices to define the metric and Ricci tensor
This question is related to a previous thread
Calculating the covariant derivative of Ricci scalar.
I try to write MA code to define a new modified Einstein tensor:
$$ G'_{\mu\nu} = G_{\mu\nu}- \frac{...
1
vote
0
answers
121
views
Calculating the covariant derivative of Ricci scalar
I use the following code to calculate the Einstein tensor.
Now I'm trying to add new terms to the Einstein tensor:
$ G'_{\mu\nu} = G_{\mu\nu}- \frac{1}{3} \left[ \left( \frac{1}{4} R^2 + \nabla_\...
3
votes
0
answers
100
views
Differentiating an inactive indexed sum returns 0 in Wolfram 14.2
I recently encountered unexpected behavior when computing the derivative of an inactive indexed sum in Wolfram 14.2.0. This example is taken directly from the official documentation of ...
1
vote
0
answers
33
views
double derivative in xTensor package
I am starting with xTensor package (being the subpackage of xAct). I defined simple tensors and tried to evaluate a second covariant derivative on the scalar function as follows
...
1
vote
0
answers
42
views
Symmetric CP and Tucker/HOSVD decompositions of symmetric tensors
When Taylor expanding a multivariable function, we end up with symmetric tensors $A_{1,...,N}$ for the $N$'th order polynomial. Under certain smoothness conditions for the function, the tensor $A$ is ...
8
votes
1
answer
198
views
Simplifying an expression containing NonThreadable + Dot gives unexpected result?
Bug introduced in 14.1
202412
Consider this example
vec//Attributes={NonThreadable};
expr={a,b} . ({c,d}+vec);
expr//Simplify
expr//Distribute//Simplify
...
1
vote
0
answers
57
views
How to Substitute a Metric into a Variation of the Action in Mathematica to Obtain Field Equations?
I have already calculated the variation of an action for a modified gravitational theory, and now I want to substitute a specific metric (e.g., the Schwarzschild metric) into this variation in ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
matrix × 101
list-manipulation × 59
symbolic × 55
xact × 53
linear-algebra × 50
physics × 43
performance-tuning × 30
vector × 22
vector-calculus × 19
packages × 18
summation × 13
products × 11
equation-solving × 9
algebra × 8
assumptions × 8
replacement × 8
series-expansion × 8
field-theory × 7
code-request × 7
more related tags
Hot Network Questions
- OId Movie about an alien city that plays a repeating melody
- Is there a smooth function approximating the minimum of a constant and a variable?
- A word that describes some people
- Did Germany declare the Donetsk People’s Republic to be a terrorist organization, at some point?
- Praesul meorum tattoo
- Is a chemistry-first technological paradigm as plausible as one focused on physics or biology?
- Why is the Schrödinger wave equation totally different from the classical wave equation?
- Issue with OR operator in QGIS Rule-Based Labelling expression
- Why is `&self` allowed in the parameters of `&mut self` methods, but not `&mut self`?
- Are birth control pills classified as a carcinogenic at the same level as asbestos and tobacco?
- Did Webster's Dictionary define Fascism by its relationship to corporations until 1987?
- Distribution of a dot product of multinomial variables
- How to handle missing weather data (predictors) in production time series forecast with Prophet?
- Do the constructible lines and circles (not merely their intersections) cover the plane?
- When you view a historical event with an incorrect modern lens
- A soviet sci-fi novel (novelette?) with frogs?
- Does אֵלִ֣י in psalm 22:1 say god or "my god"
- What does this "lightbulb-ish" symbol mean in figure 1 of the Diffie Hellmann paper?
- Why does contact with the ground make my touch-activated LED brighter?
- Business technical issues lead to unsuccessful payment being considered successful. Do I have any duty to notify?
- tac-command is it a bug or a misinterpretation of the manual?
- How to expand an algebraic function like √R(x) into a continued fraction in Mathematica?
- Guitar Intonation - Flat On Certain Frets
- Is it legal for businesses to give financial incentives for leaving positive reviews on review sites (e.g., Google Maps, Yelp, Facebook, Amazon)?