Method on @sym: uminus (x)
Operator on @sym: -x

Return the negation of a symbolic expression.

Example:

syms x
-x
  ⇒ (sym) -x
-(3 - 2*x)
  ⇒ (sym) 2⋅x - 3

Package: symbolic