MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / nIter

Function nIter

pythran/mb/MB_pythran.py:33–39  ·  view source on GitHub ↗
(c, imax)

Source from the content-addressed store, hash-verified

31
32#pythran export nIter(complex, int)
33def nIter(c, imax):
34 z = complex(0, 0)
35 for i in range(imax):
36 z = z*z + c
37 if abs(z) > 2:
38 break
39 return np.uint8(i)
40
41#pythran export MB(float [], float [], int)
42def MB(Re, Im, imax):

Callers 1

MBFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected