home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   sci.math.symbolic      Symbolic algebra discussion      10,432 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,602 of 10,432   
   asetofsymbols@gmail.com to All   
   [Axiom] matrix element access   
   13 Aug 17 02:28:15   
   
   a:=matrix[[i+j for i in 1..4] for j in 1..4]   
      
   One can access the element i,j with   
      
   a(i,j)   
      
   But if i want a matrix of lists as   
   a:=matrix[[[i,j] for i in 1..4] for j in 1..4]   
      
   a(i,j) result to me can not return [i,j]   
      
   Where is the error? What does it mean "SUB"?   
      
   What about use as nxn matrix, list of list?   
      
   Here   
   b:=[[[i,j] for i in 1..4] for j in 1..4]   
      
   here b.i.j return [i,j]   
      
   But if with list of list one can have matrix types, why define a new type   
   Matrix?   
      
   Then i have the doubt it is better array start from 0 and not from 1   
   (but this can be always easy to solve)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca