MCPcopy 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

33tracer = trace.Trace(count=0)
34
35def 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
43def MB(Re, Im, imax):
44 nR = len(Im)

Callers 1

MBFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected