next up previous
: toVectors2 : Macro Operators : toTokensBySpace

toVectors

obj toVectors vec
Convert the internal expression of vector into the array <<vec>>.
obj can be  [n [g1 ... gm]] where n is the length of the vector.
cf. [(toe_) array_of_poly] gbext 
Example 1: [(x) ring_of_polynomials 0] define_ring  
           (e_ + 2).  toVectors :: 
        --->  [2  , 1] 
Example 2: [3 (e_ +2).] toVectors ::
        ---> [2 , 1 , 0 ]
Example 3: [(e_+2). (e_^2+1).] toVectors ::
        ---> [[2 , 1] [1 , 0 , 1]] 
Example 4: [2 [(e x + 1). (x+1).]] toVectors 
           ===> [ [1 , x] [x+1 , 0] ]



Nobuki Takayama 平成20年1月30日