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

Commit

Permalink
add a doctest for scalar multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Aug 28, 2015
1 parent 57cd39f commit 1e625e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/rings/asymptotic/asymptotic_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,9 @@ def __invert__(self):
sage: A.<a> = AsymptoticRing(growth_group='a^ZZ', coefficient_ring=ZZ)
sage: (1 / a).parent()
Asymptotic Ring <a^ZZ> over Integer Ring
sage: (a / 2).parent()
Asymptotic Ring <a^ZZ> over Rational Field
"""
if len(self.summands) == 0:
raise ZeroDivisionError('Division by zero in %s.' % (self,))
Expand Down

0 comments on commit 1e625e3

Please sign in to comment.