1
> One := procedure();                         
procedure> P2<x,y,z> := ProjectiveSpace(Rationals(),2);
procedure> for i := 1 to 100 do
procedure|for> C_i := Curve(P2, x^3+y^3-i*z^3);
procedure|for> E_i, C_itoE_i := EllipticCurve(C_i);
procedure|for> G, map := MordellWeilGroup(E_i);
procedure|for> print Generators(E_i);
procedure|for> end for;
procedure> end procedure;


> One;
procedure() ... end procedure

This method is only printing out "procedure() ... end procedure" for some reason. I honestly have no idea why, I tried fixing it but in prev. codes C_i and E_i were valid concepts inside a for loop. You don't have to tell me the exact mistake or even know Magma but if you can help work with me through this problem that'd be great (like teamwork?).

Adam Staples
  • 396
  • 2
  • 7
  • 19

1 Answers1

1

Try calling the procedure:

> One();

(It's been a long time since I've done anything with Magma, but it looks like One; on its own evaluates to the procedure itself.)

Luke Woodward
  • 63,336
  • 16
  • 89
  • 104
  • You're right. Hmm.. it's amazing I spend many many minutes trying to correct a program error and it's really something as simple as this. Thanks very much! Maybe others will find the question useful some day. – Adam Staples Sep 12 '14 at 01:42