7.5.1.2 ModularFormElement Objects

class ModularFormElement
An element of a space of modular forms.
ModularFormElement( parent, vector)

INPUT:
    parent -- ModularForms (an ambient space of modular forms)
    vector -- a vector on the basis for parent
OUTPUT:
    ModularFormElement -- a modular form

sage: from sage.modular.congroup import Gamma0
sage: M = ModularForms(Gamma0(11),2)
sage: V = M.vector_space()
sage: f = ModularFormElement(M, V.gen(0))
sage: f.parent()
Space of modular forms on Gamma0(11) of weight 2 and dimension
2 over Rational Field

Instances of class ModularFormElement have the following functions (in addition to inherited functions and special functions):

base_field,$  $ character,$  $ coefficients,$  $ compute,$  $ is_zero,$  $ level,$  $ parent,$  $ prec,$  $ qexp,$  $ valuation,$  $ weight

Further documentation:

coefficients( X)

The coefficients a_n of self, for integers n>=0 in the list X.

This function caches the results of the compute function.

compute( X)

Compute the coefficients a_n of self, for integers n>=0 in the list X. The results need not be cached; use the coefficients method instead for cached results.

qexp( [prec=None])

The $ q$ -expansion of the modular form to precision $ O(q^$prec$ )$ . This function takes one argument, which is the integer prec.

Instances of class ModularFormElement also have the following special functions:

__add__,$  $ __cmp__,$  $ __getitem__,$  $ __getslice__,$  $ __neg__,$  $ __pos__,$  $ __radd__,$  $ __rsub__,$  $ __sub__

See About this document... for information on suggesting changes.