sort expressions by their complexity - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Factorization and Solving Equations : SolveTools : SolveTools/SortByComplexity

SolveTools[SortByComplexity] - sort expressions by their complexity

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,ⅇx

ⅇx,3xy,x,y

(1)

SortByComplexityabRootOfx2+1,sinlogⅇx,x3+x2+5x1

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

(2)

See Also

SolveTools, SolveTools[Complexity], SolveTools[GreaterComplexity]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam