(c, imax)
| 31 | |
| 32 | #pythran export nIter(complex, int) |
| 33 | def 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) |
| 42 | def MB(Re, Im, imax): |