1 | initial version |
Copy and paste the data from "K3/3d" to a text file. Upload that file to your worksheet (I use Sage Notebook). (I name the file 'k3_d3_data.txt')
Open the file in your worksheet. Now you can iterate through the lines and convert the appropriate lines to matrices.
data_file = file(DATA+'k3_d3_data.txt','r')
matrix_list = []
while True:
try:
data_file.next()
except StopIteration:
break
row1 = [int(z) for z in data_file.next().split()]
row2 = [int(z) for z in data_file.next().split()]
row3 = [int(z) for z in data_file.next().split()]
matrix_list.append(matrix(ZZ,[row1,row2,row3]))
for M in matrix_list:
print M