Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
make (P in E) return False when P is defined over an extension field
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyx4 committed Jan 26, 2022
1 parent 4d67190 commit 915b725
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/schemes/elliptic_curves/ell_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,7 @@ def __contains__(self, P):
P = self(P)
except TypeError:
return False
if P.curve() == self:
return True
x, y, a = P[0], P[1], self.ainvs()
return y**2 + a[0]*x*y + a[2]*y == x**3 + a[1]*x**2 + a[3]*x + a[4]
return P.curve() == self

def __call__(self, *args, **kwds):
r"""
Expand Down

0 comments on commit 915b725

Please sign in to comment.