Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

| | |

Introduced in R2012a

Was this topic helpful?