Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# /**************************************************
|
||||
# Subject: Computation of Euler's constant 0.5772...
|
||||
# with Euler's Zeta Series.
|
||||
# tested : Python 3.11
|
||||
# -------------------------------------------------*/
|
||||
|
||||
from scipy import special as s
|
||||
|
||||
def eulers_constant(n):
|
||||
k = 2
|
||||
euler = 0
|
||||
while k <= n:
|
||||
euler += (s.zeta(k) - 1)/k
|
||||
k += 1
|
||||
return 1 - euler
|
||||
|
||||
print(eulers_constant(47))
|
||||
Loading…
Add table
Add a link
Reference in a new issue