# LA+CH3+EX6+SOLVED+BY+주영은

## 2294 days ago by math2013

#elementary_matrix=matrix([[1,0,0], [0,1,0],[0,0,1]]) E1=elementary_matrix(3, row1=1, row2=2) E2=elementary_matrix(3, row1=1, scale=2) E3=elementary_matrix(3, row1=2, row2=0, scale=-2) print "E1 =" print E1 print print "E2 =" print E2 print print "E3 =" print E3
 E1 = [1 0 0] [0 0 1] [0 1 0] E2 = [1 0 0] [0 2 0] [0 0 1] E3 = [ 1 0 0] [ 0 1 0] [-2 0 1] E1 = [1 0 0] [0 0 1] [0 1 0] E2 = [1 0 0] [0 2 0] [0 0 1] E3 = [ 1 0 0] [ 0 1 0] [-2 0 1]

 Traceback (click to the left of this block for traceback) ... NameError: name 'row1' is not defined Traceback (most recent call last): File "", line 1, in File "_sage_input_7.py", line 10, in exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cm93MQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in File "/tmp/tmpp4eFPB/___code___.py", line 2, in exec compile(u'row1 File "", line 1, in NameError: name 'row1' is not defined