This is an old revision of the document!


InvertIndices

Description

  • InvertIndices inverts indices of tensors
  • InvertIndices[type] inverts indices of specified type

Examples


Expand a power of a product:

def t = '(a*b*c)**d'.t
println PowerExpand >> t
   > a**d*b**d*c**d


Expand with respect to a:

def t = '(a*b*c)**d'.t
println PowerExpand['a'] >> t
   > a**d*(b*c)**d


Expand a square root:

def t = '(a*b)**(1/2)'.t
println PowerExpand >> t
   > a**(1/2) * b**(1/2)