Symbolic Math Toolbox | Search  Help Desk | |
simple | See Also |
Search for a symbolic expression's simplest form.
r = simple(S) [r,how] = simple(S)
simple(S)
tries several different algebraic simplifications of the symbolic expression S
, displays any that shorten the length of S
's representation, and returns the shortest. S
is a sym
. If S
is a matrix, the result represents the shortest representation of the entire matrix, which is not necessarily the shortest representation of each individual element. If no return output is given, simple(S)
displays all possible representations and returns the shortest.
[r,how] = simple(S)
does not display intermediate simplifications, but returns the shortest found, as well as a string describing the particular simplification. r
is a sym
. how
is a string.
collect
, expand
, factor
, horner
, simplify