Re: [sage-support] Re: Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread Hongyi Zhao
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

[sage-support] Re: Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread Hongyi Zhao
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 =

Re: [sage-support] Re: Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread Ray Rogers
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. On 7/1/22 13:38, John H Palmieri wrote: Is this the sort of thing you're looking for? def matrix_rep(z):     """    

[sage-support] Re: Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread John H Palmieri
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]]) On Friday, July 1, 2022 at 3:04:40 AM