Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. In[1]: M = Manifold('m004')
  2.  
  3. In[2]: G = M.fundamental_group?
  4. Docstring:
  5. Manifold.fundamental_group(self, simplify_presentation=True, fillings_may_affect_generators=True, minimize_number_of_generators=True, try_hard_to_shorten_relators=True)
  6.  
  7. In[3]: G = M.fundamental_group()
  8.  
  9. In[4]: G
  10. Out[4]:
  11. Generators:
  12. a,b
  13. Relators:
  14. aaabABBAb
  15.  
  16. In[5]: m=G.meridian(); G.meridian()
  17. Out[5]: 'ab'
  18.  
  19. In[6]: l=G.longitude(); G.longitude()
  20. Out[6]: 'aBAbABab'
  21.  
  22. In[7]: M.dehn_fill((5,1),0)
  23.  
  24. In[8]: H = M.fundamental_group(fillings_may_affect_generators=False)
  25.  
  26. In[9]: H
  27. Out[9]:
  28. Generators:
  29. a,b
  30. Relators:
  31. aaabABBAb
  32. ababababababaBAbAB
  33.  
  34. def egcd(r, s):
  35. if r == 0:
  36. return (s, 0, 1)
  37. else:
  38. g, x, y = egcd(s % r, r)
  39. return (g, y - (b // a) * x, x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement