Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Call to sort() returns "None"

I am using SAGE to calculate the arguments of the eigenvalues of a randomly-generated matrix. Here is my code.

evals = Mat(CDF,10).random_element().eigenvalues()
eval_args = map(arg, evals)
print eval_args.sort()

For some reason, the call to .sort() does not work, and what is printed is "None." Why does this happen?