Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Has anybody used tensors in Mathematica? How to properly work with them? I find Mathematica not very friendly in this field, as I am defining my own functions for lowering & raising indices, multiplication and stuff like that. I was wondering if there is some good package or a secret way to use tensors more properly in Mathematica. For example, I need tensor analysis for general relativity kind of calculations.

share|improve this question
    
Have a look at guide/SymbolicTensors in the help. –  b.gatessucks Feb 21 '13 at 13:34
1  
Related mathematica.stackexchange.com/questions/8895/…. For Maththematica 9 you might try to look at newer capabiliteis –  Artes Feb 21 '13 at 13:41
    
@Vladimir, What exactly is it that you find difficult to use? –  user21 Feb 21 '13 at 18:42
    
@b.gatessucks: I am aware there is a package in Mathematica called Tensors, but I do not agree that is able to do any computation in physics. It is more like N-dim matrix operations. This is why extra packages for Mathematica were made, as I was starting, and like some others have already developed in depth. The list of available packages with some description on them would be a great start (like you can see bellow). –  Vladimir Feb 21 '13 at 20:37
    
I agree, @Artes, there is a related question. However, this one is more general, while first one was for one-time problem. I would suggest you to have a look at some free packages (knowing that you were also working on these functions). –  Vladimir Feb 21 '13 at 20:42

1 Answer 1

up vote 12 down vote accepted

Mathematica 9 contains some functionality for working with symbolic tensors.

Here's a list of packages in no particular order, that may have some functionality for working with symbolic tensors.

  • TensoriaCalc - intended for basic calculations in general relativity, but not finished (calculates only Christoffel symbols, Riemann and Ricci tensor). Parallel working with many metrics is possible. Symbolic calculations are not supported.

  • FeynCalc

  • grt - intended for basic calculations in general relativity, but full of bugs (only Christoffel symbols fully function). Symbolic calculations are not supported.

  • NCAlgebra, for manipulating non-commuting algebraic expressions and computing non-commutative Gröbner bases. It allows working with symbolic matrices and symbolic block matrices (e.g. symbolic block matrix inversion).

  • xAct

  • GRQUICK

  • MathTensor (non-free)

  • Tensorial (non-free)

  • Ricci (last updated Sep 2011)

share|improve this answer
    
I marked this as community wiki so everyone can edit. If you have used any of these, please edit this post and add a short description. This question could be repurposed to be a list of tensor-related packages, explaining what each one can or cannot do, so people who are looking for this functionality can more easily decide which one to try. Symbolic tensors or matrices are a common question, so this will be useful to have. –  Szabolcs Feb 21 '13 at 14:49
    
Also feel free to remove packages from the list if you have tried them and found them significantly wanting. A list of the best, with short descriptions of what they're meant for, is much more useful than an exhaustive list. –  Szabolcs Feb 21 '13 at 21:08
    
Very nice idea! –  belisarius Feb 22 '13 at 2:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.