Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/python-for-matlab-development
/ nIter
Function
nIter
code/matlab_py/trace_MB.py:35–41 ·
view source on GitHub ↗
(c, imax)
Source
from the content-addressed store, hash-verified
33
tracer = trace.Trace(count=0)
34
35
def
nIter(c, imax):
36
z = complex(0, 0)
37
for
i in range(imax):
38
z = z*z + c
39
if
abs(z) > 2:
40
break
41
return
np.uint8(i)
42
43
def
MB(Re, Im, imax):
44
nR = len(Im)
Callers
1
MB
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected