Complex roots

Topic:
Geometry, Root

GGB script

#Complex number Z = 1 + ί #Modulus of Z r = abs(Z) #Angle of Z theta = atan2(y(Z), x(Z)) #Number of roots n = Slider(2, 10, 1, 1, 150, false, true, false, false) #Plot n-roots nRoots = Sequence(r^(1 / n) * exp( ί * ( theta / n + 2 * pi * k / n ) ), k, 0, n-1)