(self, inlist)
This is the constructor for the Vector class.  You shouldn't be
        calling this, it should only be used by other functions. You should be
        treating Vectors like you would with if you were doing the math by
        hand, and getting the first 3 from the standard basis vectors from a
        ReferenceFrame.

        The only exception is to create a zero vector:
        zv = Vector(0)
This is the constructor for the Vector class.  You shouldn't be
        calling this, it should only be used by other functions. You should be
        treating Vectors like you would with if you were doing the math by
        hand, and getting the first 3 from the standard basis vectors from a
        ReferenceFrame.
This is the constructor for the Vector class . You shouldn t be calling this it should only be used by other functions . You should be treating Vectors like you would with if you were doing the math by hand and getting the first 3 from the standard basis vectors from a ReferenceFrame .
def __init__(self, inlist):
        """This is the constructor for the Vector class.  You shouldn't be
        calling this, it should only be used by other functions. You should be
        treating Vectors like you would with if you were doing the math by
        hand, and getting the first 3 from the standard basis vectors from a
        ReferenceFrame.

        The only exception is to create a zero vector:
        zv = Vector(0)

        """

        self.args = []
        if inlist == 0:
            inlist = []
        while len(inlist) != 0:
            added = 0
            for i, v in enumerate(self.args):
                if inlist[0][1] == self.args[i][1]:
                    self.args[i] = (self.args[i][0] + inlist[0][0],
                                    inlist[0][1])
                    inlist.remove(inlist[0])
                    added = 1
                    break
            if added != 1:
                self.args.append(inlist[0])
                inlist.remove(inlist[0])
        i = 0
        # This code is to remove empty frames from the list
        while i < len(self.args):
            if self.args[i][0] == Matrix([0, 0, 0]):
                self.args.remove(self.args[i])
                i -= 1
            i += 1
def __init__ ( self , inlist ) : self . args = [ ] if inlist == 0 : inlist = [ ] while len ( inlist ) != 0 : added = 0 for i , v in enumerate ( self . args ) : if inlist [ 0 ] [ 1 ] == self . args [ i ] [ 1 ] : self . args [ i ] = ( self . args [ i ] [ 0 ] + inlist [ 0 ] [ 0 ] , inlist [ 0 ] [ 1 ] ) inlist . remove ( inlist [ 0 ] ) added = 1 break if added != 1 : self . args . append ( inlist [ 0 ] ) inlist . remove ( inlist [ 0 ] ) i = 0 # This code is to remove empty frames from the list while i < len ( self . args ) : if self . args [ i ] [ 0 ] == Matrix ( [ 0 , 0 , 0 ] ) : self . args . remove ( self . args [ i ] ) i -= 1 i += 1