On 24 June 2016 at 13:58, slabbe <[email protected]> wrote:
> 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?

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.

John

>
> Sébastien
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to