File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/sage/modular/quasimodform Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,8 @@ def weight(self):
489
489
r"""
490
490
Return the weight of the given quasimodular form.
491
491
492
- Note that the given form must be homogeneous.
492
+ Note that the given form must be homogeneous. An alias of this method is
493
+ ``degree``.
493
494
494
495
EXAMPLES::
495
496
@@ -500,6 +501,8 @@ def weight(self):
500
501
6
501
502
sage: QM(1/2).weight()
502
503
0
504
+ sage: (QM.0).degree()
505
+ 2
503
506
sage: (QM.0 + QM.1).weight()
504
507
Traceback (most recent call last):
505
508
...
@@ -510,6 +513,8 @@ def weight(self):
510
513
else :
511
514
raise ValueError ("the given graded quasiform is not an homogeneous element" )
512
515
516
+ degree = weight # alias
517
+
513
518
def homogeneous_components (self ):
514
519
r"""
515
520
Return a dictionary where the values are the homogeneous components of
You can’t perform that action at this time.
0 commit comments