Method on @sym: findsym (expr)
Method on @sym: findsym (expr, n)

Find symbols in expression, return them as comma-separated string.

For details, see ‘@sym/symvar’; this just concatenates its output into a string.

Example:

syms y a b
f = a*y + b;
v = findsym (f)
  ⇒ v = a,b,y
v = findsym (f, 1)
  ⇒ v = y

See also: @sym/symvar, symvar, findsymbols.

Package: symbolic