formula

Mathematical expression defining symbolic function

Syntax

formula(f)

Description

formula(f) returns the mathematical expression that defines f.

Input Arguments

f

Symbolic function.

Examples

Create this symbolic function:

syms x y
f(x, y) = x + y;

Use formula to find the mathematical expression that defines f:

formula(f)
ans =
x + y

Create this symbolic function:

syms f(x, y)

If you do not specify a mathematical expression for the symbolic function, formula returns the symbolic function definition as follows:

formula(f)
ans =
f(x, y)

See Also

| | |

Was this topic helpful?