Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ f
Function
f
recipes/Python/577262_AreCurve_using_Monte_Carlo/recipe-577262.py:8–9 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
6
7
# define any function here!
8
def
f(x):
9
return
math.sqrt(1.0 - x * x)
10
11
# define any xmin-xmax interval here! (xmin < xmax)
12
xmin = -1.0
Callers
4
recipe-577262.py
File · 0.70
func
Function · 0.50
memf
Function · 0.50
xfuncreplace
Function · 0.50
Calls
1
sqrt
Method · 0.45
Tested by
no test coverage detected