compute the (relative) complexity of an expression
(optional) set; variables with respect to which the complexity is computed
The Complexity command computes the complexity of the expression expr with respect to the set of variables vars.
A number that reflects the relative complexity of the expression is returned.
The Complexity command has two modes. If Complexity is called with one argument, the 'Polynomial' mode is used. If it is called with two arguments, the 'Rational' mode is used.
The 'Rational' mode takes into account the variables that are used in the expression, whereas the 'Polynomial' mode treats all the variables equally.
The two modes are independent and the complexity of the expression in one mode gives no indication of the complexity of the same expression in the other mode. The values of the complexities bear no absolute value in either mode; they serve only as the indication of relative complexities of different expressions in the same modes.
This function is part of the SolveTools package, and so it can be used in the form Complexity(..) only after executing the command with(SolveTools). However, it can always be accessed through the long form of the command by using SolveTools[Complexity](..).
The following are some relative polynomial complexities.
The following are some relative rational complexities.
The following examples are equally complicated with respect to x from rational point of view.
However, they are different from polynomial point of view.
Download Help Document