ParentFull threadsidpatil·And that follows from De Moivre's formula, (cos(x)+ i sin(x))^n = cos(nx) + i sin(nx).https://en.wikipedia.org/wiki/De_Moivre%27s_formulaView on HN