Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to sage and I am trying to run the gp interface.

In gp I can define an elliptic curve e and then access j by e.j

? e=ellinit([0,-1,1,0,0]);
? e.j
%2 = -4096/11

Trying to do the same in sage I did


What is the syntax to return j for this e. e.j does not work nor do variations like gp.e.j that I tried -- I know that j is stored in


but I would like to use the syntax (or something close to) e.j, or e.disc, etc that I am used to typing when working directly in gp.

I am probably missing something very simple here. Thank you for any help.

share|cite|improve this question
Does this answer your question? – Amzoti Dec 6 '12 at 21:43
No - I want to access the j that is a member of e i.e e.j -- I don't want to calculate an new E in sage access member E.j_invariant(). – sopsku Dec 7 '12 at 0:29
@Amzoti I should added that it is not really j that I am interested in. That was just a reproducible example. I want to learn how to use the gp interface in sage to access the member x (i.e. X.x) for an object X in gp. – sopsku Dec 7 '12 at 0:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.