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

Commit

Permalink
tweak doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Sep 8, 2022
1 parent 9ec90c5 commit e08cd7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/categories/monoids.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,15 @@ def inverse(self):
"""
Return the inverse of ``self``.
This is an alias for inversion, defined in ``__invert__``.
Element classes should implement ``__invert__`` only.
This is an alias for inversion, which can also be invoked
by ``~x`` for an element ``x``.
EXAMPLES::
sage: AA(sqrt(~2)).inverse()
1.414213562373095?
"""
# Nota Bene: Element classes should implement ``__invert__`` only.
return self.__invert__()

class Commutative(CategoryWithAxiom):
Expand Down

0 comments on commit e08cd7a

Please sign in to comment.