dimanche 27 septembre 2020

Python 3 recursion [closed]

I’m trying to express the recursion z_n= z_(n-1)^2 + c. Where z0 and c are complex numbers. So far I have:

for n in range(1,N):
     z=n**2+c

I know n does not represent z_(n-1) but I can’t figure out what does to make this work.

Aucun commentaire:

Enregistrer un commentaire