Sort By Complexity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SolveTools

  

SortByComplexity

  

sort expressions by their complexity

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SortByComplexity(exprs)

Parameters

exprs

-

list or set of expressions

Description

• 

The SortByComplexity command sorts the list (or set) of expressions exprs in descending order of their complexity. The result is returned as a sorted list of expressions.

  

The complexity of the expressions are compared by using SolveTools[GreaterComplexity].

• 

This function is part of the SolveTools package, and so it can be used in the form SortByComplexity(..) only after executing the command with(SolveTools). However, it can always be accessed through the long form of the command by using SolveTools[SortByComplexity](..).

Examples

withSolveTools:

SortByComplexityx,y,x3y,expx

ⅇx,3xy,x,y

(1)

SortByComplexityabRootOfx2+1,sinlogexpx,x3+x2+5x1

sinlnⅇx,abRootOf_Z2+1,x3+x2+5x1

(2)

See Also

SolveTools

SolveTools[Complexity]

SolveTools[GreaterComplexity]