openGPMP
Open Source Mathematics Package
arithmetic.py
Go to the documentation of this file.
1 #!/usr/bin/python3
2 from pygpmp import arithmetic as ar
3 
4 
5 def main():
6  b = ar.Basics()
7 
8  r1 = b.op_gcd(1703210, 20320)
9  r2 = b.op_gcd(2198466, 96096)
10  r3 = b.greatest_power(232, 96)
11  r4 = b.greatest_power(10, 3)
12 
13  print(r1)
14  print(r2)
15  print(r3)
16  print(r4)
17 
18 
19 if __name__ == "__main__":
20  main()