SolveTools
GreaterComplexity
compare the complexities of two expressions
Calling Sequence
Parameters
Description
Examples
GreaterComplexity(expr1, expr2)
expr1, expr2
-
expressions
The GreaterComplexity command returns true if the expression expr1 is more complex than expr2; otherwise, false is returned.
GreaterComplexity uses SolveTools[Complexity] in polynomial mode to compute the relative complexities of the expressions. If the expressions have the same complexity according to the Complexity function, then GreaterComplexity determines that the more complex expression is the one that has the higher lexicographical order of its indeterminates.
This function is part of the SolveTools package, and so it can be used in the form GreaterComplexity(..) only after executing the command with(SolveTools). However, it can always be accessed through the long form of the command by using SolveTools[GreaterComplexity](..).
with⁡SolveTools:
GreaterComplexity⁡x,2⁢x
false
GreaterComplexity⁡sin⁡x,3⁢x
true
GreaterComplexity⁡x,y
GreaterComplexity⁡y,x
See Also
SolveTools[Complexity]
SolveTools[SortByComplexity]
Download Help Document