compose.py 195 B

12345678910111213141516
  1. from pytpsa import *
  2. pol.order=10
  3. p=polmap(x='x+px+y**2',y='y+py+x**2',px='px+y',py='py+x')
  4. n=5
  5. def slow():
  6. a=p
  7. for i in range(n-1):
  8. a=a(p)
  9. # print a
  10. def fast():
  11. a=p**n
  12. # print a