0 Members and 1 Guest are viewing this topic.
item=0for i in xlist: xtotal.append(arrayit.arrayit(xlist[item],len(xlist))) item=item+1print xtotalxinverted=numpy.linalg.matrix_power(xtotal,-1)coeff=numpy.dot(xinverted,ylist)
def arrayit(number, length): newarray=[] import decimal i=0 while i!=(length): newarray.insert(0,decimal.Decimal(number**i)) i=i+1 return newarray;