---
title: "Modular Symbols"
canonical: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/modular-symbols.html"
source: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/modular-symbols.md"
part: "Modular Arithmetic Geometry"
chapter: "Modular Forms"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Modular Arithmetic Geometry", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/index-modular-arithmetic-geometry.md"}
  - {"title": "Modular Forms", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/index-modular-forms.md"}
prev: {"title": "Elliptic Curves", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/abelian-varieties.md"}
next: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/bibliography.md"}
intrinsics:
  - {"name": "ModularSymbols", "signature": "ModularSymbols(M): ModFrm -> SeqEnum"}
  - {"name": "ModularSymbols", "signature": "ModularSymbols(M, sign): ModFrm, RngIntElt -> ModSym"}
examples:
  - "ex-33a446"
---

<a id="sec-modular-symbols"></a>
<a id="id1"></a>
# Modular Symbols

<a id="function-modularsymbols-modfrm"></a>
## `ModularSymbols(M): ModFrm -> SeqEnum`

The sequence of characteristic $0$ spaces of modular symbols with given sign associated to the space of modular forms $M$, when this makes sense.

<a id="function-modularsymbols-modfrm-rngintelt"></a>
## `ModularSymbols(M, sign): ModFrm, RngIntElt -> ModSym`

The sequence of characteristic $0$ spaces of modular symbols with given sign associated to the space of modular forms $M$, when this makes sense.

<a id="example-ex-33a446"></a>
## `Example: Modular Symbols Attached to Modular Forms (ex-33a446)`

```magma
> M := ModularForms(Gamma0(389),2);
> ModularSymbols(M,+1);
[
    Full Modular symbols space of level 389, weight 2, and dimension
    33
]
> ModularSymbols(M,-1);
[
    Full Modular symbols space of level 389, weight 2, and dimension
    32
]
> M := ModularForms(Gamma1(13),2);
> ModularSymbols(M);
[
    Full Modular symbols space of level 13, weight 2, and dimension 1,
    Full Modular symbols space of level 13, weight 2, character $.1,
    and dimension 0,
    Full Modular symbols space of level 13, weight 2, character $.1,
    and dimension 4,
    Full Modular symbols space of level 13, weight 2, character $.1,
    and dimension 0,
    Full Modular symbols space of level 13, weight 2, character $.1^2,
    and dimension 2,
    Full Modular symbols space of level 13, weight 2, character $.1,
    and dimension 2
]
> Basis($1)[1];
-1/6*{-7/15, -6/13} + -1/6*{-7/18, -5/13} + -1/6*{-5/16, -4/13} +
-1/6*{-4/17, -3/13} + -1/6*{-3/19, -2/13} + -1/6*{0, oo}
```
