Database for nth roots of unity

3 replies · 2K views · last reply
dumbQuestion
Messages
124
Reaction score
0
I am typing up a latex document and I need to find roots of unity, lots of them, for numbers like say 42. I was just wondering if anyone knew of a database that had this stuff on hand rather than having to do it all by hand and worrying about having made some stupid algebra error.
 
I'm not aware of any tables or databases. I think your best bet would be a computer algebra system. Maybe try wolfram alpha?
 
You could use octave or sage math to compute them.

J.
 
dumbQuestion said:
I am typing up a latex document and I need to find roots of unity, lots of them, for numbers like say 42. I was just wondering if anyone knew of a database that had this stuff on hand rather than having to do it all by hand and worrying about having made some stupid algebra error.

Using Euler's formula, all you need is a good sine, cosine table.