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

Commit

Permalink
minor changes for clearer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAyotte committed Jan 4, 2022
1 parent 6797e1d commit 0071130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/modular/modform/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ def coefficient(self, n):
sage: f.coefficient(4)
-1472
"""
return self.q_expansion(n+1)[Integer(n)]
n = ZZ(n)
return self.q_expansion(n+1)[n]

def padded_list(self, n):
"""
Expand Down

0 comments on commit 0071130

Please sign in to comment.