Академический Документы
Профессиональный Документы
Культура Документы
Python modules
import module name
Vector space K n = K^n e.g. QQ^3 RR^2 CC^4
module_name.htabi and help(module_name)
Integer sequences: sloane find(list), sloane.htabi Subspace: span(vectors, field )
Partitions: P=Partitions(n) P.count() E.g., span([[1,2,3], [2,3,5]], QQ) Profiling and debugging
Combinations: C=Combinations(list) C.list() Kernel: A.right_kernel() (also left) time command : show timing information
Cartesian product: CartesianProduct(P,C) Sum and intersection: V + W and V.intersection(W) timeit("command"): accurately time command
Tableau: Tableau([[1,2,3],[4,5]]) Basis: V.basis() t = cputime(); cputime(t): elapsed CPU time
Words: W=Words("abc"); W("aabca") Basis matrix: V.basis_matrix() t = walltime(); walltime(t): elapsed wall time
Posets: Poset([[1,2],[4],[3],[4],[]]) Restrict matrix to subspace: A.restrict(V) %pdb: turn on interactive debugger (command line only)
Root systems: RootSystem(["A",3]) Vector in terms of basis: V.coordinates(vector) %prun command: profile command (command line only)