# Expansion in series

+1 vote

Consider the following example:

{a, b}::Indices.
test:=\sqrt{-\det{G_{a b}};
substitute(_,$G_{a b}->g_{a b}+\epsilon h_{a b}$);

How to expand a series to a first-order term for $\epsilon$ using the function map_sympy?

I might be mistaken, but I don't think that could be done. To my knowlegde sympy does not manage tensor components. However, I leave you the link to the manual (series expansions).