Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ slice
Function
slice
communication/file.py:9–13 ·
view source on GitHub ↗
(mink, maxk)
Source
from the content-addressed store, hash-verified
7
8
9
def
slice(mink, maxk):
10
s = 0.0
11
for
k in range(int(mink), int(maxk)):
12
s += 1.0 / (2 * k + 1) / (2 * k + 1)
13
return
s
14
15
16
def
pi(n):
Callers
1
pi
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected