---
title: "Elliptic Curves"
canonical: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/abelian-varieties.html"
source: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/abelian-varieties.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": "Algebraic Relations", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/relations.md"}
next: {"title": "Modular Symbols", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/modular-symbols.md"}
intrinsics:
  - {"name": "ModularForm", "signature": "ModularForm(E): CrvEll -> ModFrmElt"}
  - {"name": "Newform", "signature": "Newform(E): CrvEll -> ModFrmElt"}
  - {"name": "Eigenform", "signature": "Eigenform(E, prec): CrvEll, RngIntElt -> RngSerPowElt"}
  - {"name": "qEigenform", "signature": "qEigenform(E, prec): CrvEll, RngIntElt -> RngSerPowElt"}
  - {"name": "EllipticCurve", "signature": "EllipticCurve(f): ModFrmElt -> CrvEll"}
examples:
  - "ex-b1a407"
---

<a id="abelian-varieties"></a>
<a id="sec-abelian-varieties"></a>
# Elliptic Curves

Little has been implemented so far.

<a id="function-modularform-crvell-2"></a>
## `ModularForm(E): CrvEll -> ModFrmElt`

<a id="function-newform-crvell"></a>
## `Newform(E): CrvEll -> ModFrmElt`

The modular form associated to the elliptic curve $E$ (which must be defined over the rationals).

<a id="function-eigenform-crvell-rngintelt"></a>
## `Eigenform(E, prec): CrvEll, RngIntElt -> RngSerPowElt`

<a id="function-qeigenform-crvell-rngintelt"></a>
## `qEigenform(E, prec): CrvEll, RngIntElt -> RngSerPowElt`

The q-expansion of the newform associated to $E$, to the specified precision.

Note: this is exactly the same as calling `qExpansion(ModularForm(E),prec)`.

<a id="function-ellipticcurve-modfrmelt"></a>
## `EllipticCurve(f): ModFrmElt -> CrvEll`

An elliptic curve $E$ with associated modular form $f$, when $f$ is a weight $2$ newform on $\Gamma_0(N)$ with rational Fourier coefficients.

The Cremona database is used to identify the isogeny class. (A routine to compute the curve from scratch is implemented, and can be called with `EllipticCurve(M : Database:=false)` where $M$ is the relevant space of modular symbols; however this is not optimized for large level.)

<a id="example-ex-b1a407"></a>
## `Example: Elliptic Curve Attached to a Newform (ex-b1a407)`

```magma
> M := ModularForms(Gamma0(389),2);
> f := Newform(M,1);
> Degree(f);
1
> E := EllipticCurve(f);
> E;
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 2*x over Rational
Field
> Conductor(E);
389
> time s := PowerSeries(f,200);  // faster because it knows the elliptic curve
Time: 0.509
```
