maskOp

◼ maskOp[op, args] calls function op[args] while all constants declared to sneg are masked.

◼ maskOp prevents some interferences between sneg and certain Mathematica functions.

◼ See also: snegrealconstants, snegcomplexconstants, snegintegerconstants, snegfreeindexes.

Further examples

Load sneg and declare some quantities

<< sneg`sneg`;
snegrealconstants[t, U];

Some of the problematic functions are  Series, Integrate and Eigensystem.

Series[Sqrt[1 + t^2], {t, 0, 2}]
maskOp[Series, Sqrt[1 + t^2], {t, 0, 2}]

Integrate[t^2, t]
maskOp[Integrate, t^2, t]

(* 
      The following line would crash Mathematica kernel! *) 
 (* 
      Eigensystem[{{U, -t}, {-t, 
            0}}] *) 
maskOp[
      Eigensystem, {{U, -t}, {-t, 0}}]