예제 #1
0
파일: test.py 프로젝트: gsidier/bigpoly
#!/usr/bin/env python
from poly import longpoly

P = longpoly([2, 2])
print P ** 100
예제 #2
0
파일: bigpoly.py 프로젝트: gsidier/bigpoly
	def longpoly(self):
		bigcoefs = zip(* list(P.coef for P in self.digits))
		longcoefs = numpy.array(map(
			lambda digits: longeval(digits, self.TYPE), 
			bigcoefs))
		return longpoly(longcoefs)