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,484 of 10,432   
   Rosario19 to All   
   [Axiom] Bug in Axiom?   
   25 Jun 17 13:54:10   
   
   From: Ros@invalid.invalid   
      
   f():List List INT==   
     idx:List INT:=[0,1]; c:List INT; c1:List INT   
     c:=c1:=[0,0]   
     for i in 1..2 repeat(c.i:=c.i+idx.i; c1.i:=c1.i-idx.i)   
     [c,c1,idx]   
      
      Function declaration f : () -> List List Integer has been added to   
         workspace.   
      
   Type: Void   
   (2) -> f()   
      Compiling function f with type () -> List List Integer   
      
      (2)  [[0,0],[0,0],[0,1]]   
                                                         Type: List List   
   Integer   
   why not result [[0,1],[0,-1],[0,1]]?   
   or i forgeth something...   
      
   In code as above, happened it is possible idx change too, so i   
   expected the result   
      
   [[0,1],[0,-1],[0,0]]   
      
   --- 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