Find the matrix representations corresponding to complex numbers and quaternions.

34 views
Skip to first unread message

Hongyi Zhao

unread,
Jul 1, 2022, 6:04:40 AM7/1/22
to sage-support
How can I find the matrix representations corresponding to complex numbers and quaternions with the help of SageMath, i.e., the ring isomorphism from the field of complex numbers and quaternions to the rings of corresponding matrices, respectively, as described here and here?

Regards,
HZ

John H Palmieri

unread,
Jul 1, 2022, 1:38:59 PM7/1/22
to sage-support
Is this the sort of thing you're looking for?

def matrix_rep(z):
    """
    INPUT: complex number z = a + bi
    OUTPUT: the matrix
       [a -b]
       [b  a]
    """
    a = z.real_part()
    b = z.imag_part()
    return matrix(RR, [[a, -b], [b, a]])

Ray Rogers

unread,
Jul 1, 2022, 2:49:25 PM7/1/22
to sage-s...@googlegroups.com

You (hongy) might be interested in
Matrix Groups (Universitext) 2nd Edition
by M. L. Curtis (Author)
Which is a pretty good introduction; although the price is a little high. 

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/143f4daf-9e77-4b1b-92f4-ab8cde91a1bbn%40googlegroups.com.

Hongyi Zhao

unread,
Jul 1, 2022, 9:01:47 PM7/1/22
to sage-support
On Saturday, July 2, 2022 at 1:38:59 AM UTC+8 John H Palmieri wrote:
Is this the sort of thing you're looking for?

def matrix_rep(z):
    """
    INPUT: complex number z = a + bi
    OUTPUT: the matrix
       [a -b]
       [b  a]
    """
    a = z.real_part()
    b = z.imag_part()
    return matrix(RR, [[a, -b], [b, a]])

I want to identify the ring isomorphism between them programmatically, instead of defining a function based on this ring isomorphism.

Best,
HZ

Hongyi Zhao

unread,
Jul 1, 2022, 9:29:04 PM7/1/22
to sage-support
On Saturday, July 2, 2022 at 2:49:25 AM UTC+8 raymond....@gmail.com wrote:

You (hongy) might be interested in
Matrix Groups (Universitext) 2nd Edition
by M. L. Curtis (Author)
Which is a pretty good introduction; although the price is a little high. 

Thank you for letting know this book [1]. The first chapter of the book talks about the problem discussed here.


Best,
HZ
Reply all
Reply to author
Forward
0 new messages