Method on @symfun: formula (f)

Return a symbolic expression for this symfun.

This returns the expression that defines the function given by the symfun f. Typically this is the RHS of the symfun:

syms x
f(x) = sin(x);
formula(f)
  ⇒ ans = (sym) sin(x)

The command ‘@symfun/argname’ gives the independent variables of the @symfun. Basically, argname for the independent variables and formula for the dependent expression.

If the symfun f is abstract, this returns f as a sym:

syms f(x)
formula(f)   % but note it's a sym
  ⇒ ans = (sym) f(x)

See also: @symfun/argnames.

Package: symbolic