(complex) root of unity
|
12-26-2021, 11:45 AM
Post: #18
|
|||
|
|||
RE: (complex) root of unity
Hello salvomic,
Re, your post: "I need a program or routine to calculate all real and complex roots of any real or complex number, returned in a list or matrix..." You might be interested in this solution for your problem that I stumbled across: In CAS, For the fourth root of unity, use POLYROOT like this and enter unity as the complex number 1+0*i: POLYROOT(X^4-(1+0*i))sto L1 .......(1) Press “Enter”: The results are in L1: (-1, -i, i, 1); scroll up and down to see them on the "contents" line. In fact POLYROOT(X^n-1)sto L1 works for the case of n.th roots of unity. For n.th roots of any complex number stored in a List, use the format above in (1). Please see the attachment. Note that I did try and implement this in a program, but I couldn't get it to work. (I am new here and this is my first post!) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)