ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 23 Dec 2015 07:27:45 -0600Naming variables in a loophttp://ask.sagemath.org/question/31794/naming-variables-in-a-loop/ I have this problem:
Lets say i have an matrix A and use A.gram_schmidt() on it. then i get a matrix B whose rows are orthogonal. So what do i do now if i want use the vectors of the rows. How can i make them to variables practical? I tried this:
O, t = A.gram_schmidt()
for i in range(n):
wi = O.row(i)
But clearly this doesnt work, because sage doesnt identiy the "i" in "wi"... bruno171092Wed, 23 Dec 2015 07:27:45 -0600http://ask.sagemath.org/question/31794/