Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #32135: Implement to_polynomial and from_polynomial methods for …
…ModularFormsRing The goal of this ticket is to implement two methods: one for the class `GradedModularFormElement` and one for the class `ModularFormsRing`. * The first method is `to_polynomial` that will convert a graded form //F// into a polynomial //P(X_1, X_2,... X_n)// where the //X_i// correspond to the generators of the graded ring of modular forms in which //F// lives. Note that the result of this method is not unique in general. {{{ sage: M = ModularFormsRing(1) sage: f = (M.0)^3 + (M.1)^2; 2 - 288*q + 400032*q^2 + 33473664*q^3 + 796491936*q^4 + 9257371200*q^5 + O(q^6) sage: f.to_polynomial(f) X^3 + Y^2 }}} * The second method is `from_polynomial` that will convert a polynomial into a graded form: {{{ sage: M = ModularFormsRing(1) sage: M.from_polynomial(X^3 + Y^2, [M.0, M.1]) 2 - 288*q + 400032*q^2 + 33473664*q^3 + 796491936*q^4 + 9257371200*q^5 + O(q^6) }}} This ticket is part of #31560 URL: https://trac.sagemath.org/32135 Reported by: gh-DavidAyotte Ticket author(s): David Ayotte Reviewer(s): Vincent Delecroix
- Loading branch information
Showing
2 changed files
with
293 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters