-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmathematicalproof.py
More file actions
executable file
·26 lines (23 loc) · 917 Bytes
/
Copy pathmathematicalproof.py
File metadata and controls
executable file
·26 lines (23 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
from mpmath import *
mp.dps = 10000
#@manual{mpmath,
# key = {mpmath},
# author = {The mpmath development team},
# title = {mpmath: a {P}ython library for arbitrary-precision floating-point arithmetic (version 1.3.0)},
# note = {{\tt http://mpmath.org/}},
# year = {2023},
#}
l = 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
print ('l =', l)
n = 9
print ('n =', n)
print ('l / n =', l/n)
print ('mpf(l) / n =', mpf(l)/n)
print ()
n = 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
print ('l =', l)
print ('n =', n)
print ('l / n =', l/n)
print ('mpf(l) / n =', mpf(l)/n)
print (mpf(123348809755013372855351771562296686142137618828897016962516049052308667842740497131311830445)/39263145594024355220320754655847602065090387900339386891430760274478663119563892301334897957)