Method on @symfun: uminus (f)
Operator on @symfun: -f

Return the negation of a symbolic function.

Example:

syms x
f(x) = 2*x;
h = -f
  ⇒ h(x) = (symfun) -2⋅x

See also: @symfun/minus.

Package: symbolic