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: "Inappropriate ioctl for device" when displaying number in Jupyter notebook

2022-07-01 Thread Alex J Best
Indeed that should fix it, in the meantime you can run something like sage: from sage.typeset.ascii_art import AsciiArt sage: AsciiArt._terminal_width = lambda x: 80 Before running other commands to fix the problem in a given notebook On Friday, July 1, 2022 at 3:40:58 AM UTC+2 John H Palmieri

[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

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

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