[code removed - moderator]

Your calculation of angles is incorrect. The denominator term should be 10000^{\frac{2i}{d}}

angles