simplify
Algebraic simplification
Description
performs algebraic simplification of S
= simplify(expr
)expr
. If
expr
is a symbolic vector or matrix, this function
simplifies each element of expr
.
performs algebraic simplification of S
= simplify(expr
,Name,Value
)expr
using additional
options specified by one or more Name,Value
pair
arguments.
Examples
Input Arguments
Tips
Simplification of mathematical expression is not a clearly defined subject. There is no universal idea as to which form of an expression is simplest. The form of a mathematical expression that is simplest for one problem might be complicated or even unsuitable for another problem.
Algorithms
When you use IgnoreAnalyticConstraints
, then
simplify
follows some of these rules:
log(a) + log(b) = log(a·b) for all values of a and b. In particular, the following equality is valid for all values of a, b, and c:
(a·b)c = ac·bc.
log(ab) = b·log(a) for all values of a and b. In particular, the following equality is valid for all values of a, b, and c:
(ab)c = ab·c.
If f and g are standard mathematical functions and f(g(x)) = x for all small positive numbers, f(g(x)) = x is assumed to be valid for all complex values of x. In particular:
log(ex) = x
asin(sin(x)) = x, acos(cos(x)) = x, atan(tan(x)) = x
asinh(sinh(x)) = x, acosh(cosh(x)) = x, atanh(tanh(x)) = x
Wk(x·ex) = x for all branch indices k of the Lambert W function.
References
[1] Zee, A. Einstein Gravity in a Nutshell. Princeton: Princeton University Press, 2013.
Version History
Introduced before R2006a