Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
ZZ is not onto QQ
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Jun 10, 2017
1 parent d9e145d commit 79fd62a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sage/rings/rational.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3979,6 +3979,18 @@ cdef class Z_to_Q(Morphism):
from sage.categories.sets_with_partial_maps import SetsWithPartialMaps
return Q_to_Z(self._codomain.Hom(self.domain(), category=SetsWithPartialMaps()))

def is_surjective(self):
r"""
Return whether this morphism is surjective.
EXAMPLES::
sage: QQ.coerce_map_from(ZZ).is_surjective()
False
"""
return False

cdef class Q_to_Z(Map):
r"""
A morphism from `\QQ` to `\ZZ`.
Expand Down

0 comments on commit 79fd62a

Please sign in to comment.