Untitled

918 days ago by bigdata2016

A=matrix(QQ,[[1,2,3,4,5,6],[1,1,2,2,3,3],[2,1,1,2,1,1]]) show(A) 
       
B=A.transpose()*A show(B) r=B.rank() print r 
       

3
3
x=B.eigenvalues() x=matrix(x) n=x.ncols() for i in range(n-r, n): html('$\lambda_%s=%s$,' %( n-i,latex(x[0,i].n(digits=5) ), ) ) 
       
,

,

,
,

,

,
b1=matrix(RDF,B.nrows(),1) k=identity_matrix(RDF,B.nrows()) print (B-x[0,3]*k) (B-x[0,3]*k).solve_right(b1) 
       
Traceback (click to the left of this block for traceback)
...
TypeError: _numerical_approx() got an unexpected keyword argument
'digit'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_193.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YjE9bWF0cml4KFJERixCLm5yb3dzKCksMSkKaz1pZGVudGl0eV9tYXRyaXgoUkRGLEIubnJvd3MoKSkKcHJpbnQgKEIteFswLDNdKmspLm4oZGlnaXQ9MykKKEIteFswLDNdKmspLnNvbHZlX3JpZ2h0KGIxKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpopPPAG/___code___.py", line 5, in <module>
    print (B-x[_sage_const_0 ,_sage_const_3 ]*k).n(digit=_sage_const_3 )
  File "matrix2.pyx", line 11364, in sage.matrix.matrix2.Matrix._numerical_approx (sage/matrix/matrix2.c:55007)
TypeError: _numerical_approx() got an unexpected keyword argument 'digit'
n=5 m=6 L=list(graphs(n)) R=[] for g in L: if g.size()==m: R.append(g) graphs_list.show_graphs(R) 
       
n=11 L=list(graphs(n)) print len(L)