Complex Roots
GGB Script
#Complex number
Z = 1 + ί
#Modulus of Z
r = abs(Z)
#Angle of Z
theta = arg(Z)
#Number of roots
n = Slider(2, 10, 1, 1, 150)
#Plot n-roots
nRoots = Sequence(r^(1 / n) * exp( ί * ( theta / n + 2 * pi * k / n ) ), k, 0, n-1)