What is the meaning of 'internal sorting rules' in 'sort' in Symbolic Math Toolbox?
1 vue (au cours des 30 derniers jours)
A = [factorial(sym(1001)), exp(sym(1)) + factorial(sym(1000))]
[r,s] = sort(A)
Obviously, A(1) > A(2). However, the output is
[factorial(1001), exp(1) + factorial(1000)]
which is quite confusing.
I notice in sort, it is mentioned that
- If X contains symbolic irrational numbers, expressions, and functions, comparing and sorting the elements can be computationally complex. Therefore, sort uses internal sorting rules to optimize its performance.
What is the meaning of 'internal sorting rules' ?
Thank you very much!