Dividing a matrix by integer one returns a matrix over rational field
24 views
Skip to first unread message
slabbe
unread,
Jun 24, 2016, 8:58:41 AM6/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-support
sage: m = identity_matrix(3) sage: m.parent() Full MatrixSpace of 3 by 3 dense matrices over Integer Ring sage: (m/1).parent() Full MatrixSpace of 3 by 3 dense matrices over Rational Field
I was expecting Integer Ring for the last result. Why not?
Sébastien
John Cremona
unread,
Jun 24, 2016, 9:06:22 AM6/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SAGE support
Presumably for the same reason as
sage: a=3
sage: a.parent()
Integer Ring
sage: (a/1).parent()
Rational Field
The type (and parent) of the result is the same whether or not the
division goes exactly.