Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoComp/meep
/ in_bounds
Function
in_bounds
python/geom.py:1718–1719 ·
view source on GitHub ↗
(x, f, df, a, b)
Source
from the content-addressed store, hash-verified
1716
return
_pb
1717
1718
def
in_bounds(x, f, df, a, b):
1719
return
(f - (df * (x - a))) * (f - (df * (x - b))) < 0
1720
1721
def
newton(x, a, b, dx):
1722
if
abs(dx) < abs(tol * x):
Callers
1
newton
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected