FCGVToSymbol[exp]
converts objects of type FCGV["sth"]
in exp
to symbols using ToExpression["sth"]
.
The option StringReplace
can be used to specify string replacement rules that will take care of special characters (e.g. ^
or _
) that cannot appear in valid Mathematica expressions. SMPToSymbol
is useful when exporting FeynCalc expressions to other tools, e.g. FORM.
["a"] // FCGVToSymbol
FCGV
% // InputForm
a
a
["$MU"] // FCGVToSymbol
FCGV
% // InputForm
\text{\$MU}
$MU