using de-moiver to compute the roots