Post Reply 
(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!)


Attached File(s)
.docx  HPM_post_1.docx (Size: 59.01 KB / Downloads: 8)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(complex) root of unity - salvomic - 01-16-2021, 02:47 PM
RE: (complex) root of unity - rprosperi - 01-16-2021, 02:57 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 03:53 PM
RE: (complex) root of unity - robmio - 01-16-2021, 03:24 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 03:56 PM
RE: (complex) root of unity - Albert Chan - 01-16-2021, 03:40 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 03:58 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 05:27 PM
RE: (complex) root of unity - robmio - 01-16-2021, 05:42 PM
RE: (complex) root of unity - robmio - 01-16-2021, 05:47 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 06:02 PM
RE: (complex) root of unity - robmio - 01-16-2021, 06:12 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 06:17 PM
RE: (complex) root of unity - robmio - 01-16-2021, 06:28 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 06:37 PM
RE: (complex) root of unity - robmio - 01-16-2021, 06:40 PM
RE: (complex) root of unity - salvomic - 01-16-2021, 06:48 PM
RE: (complex) root of unity - Jon Higgins - 12-26-2021 11:45 AM



User(s) browsing this thread: 1 Guest(s)