Method on @sym: formula (f)

Return a symbolic expression for this object.

For a @sym, this simply returns the sym itself. Subclasses such as @symfun may do more interesting things.

Example:

syms x
f = 2*x;
formula(f)
  ⇒ ans = (sym) 2⋅x

See also: @symfun/formula, argnames, @sym/argnames.

Package: symbolic