When I paste the following code into a notebook worksheet in magma
mode, I consistently get "Syntax Error". When I paste the same code
directly into magma, it works properly:

{{{
_<x>:=PolynomialRing(Rationals());
repeat
  g:=3*b*x^4+18*c*x^3-6*b^2*x^2-6*b*c*x-b^3-9*c^2 where
b:=Random([-10..10]) where c:=Random([-10..10]);
until Roots(g) ne [];
}}}

[note: the whole definition of g is on one line]

If I replace the line by something shorter, like
{{{
  g:=x^3+b*x+c where b:=Random([-10..10]) where c:=Random([-10..10]);
}}}
there is no error.

When I place a newline before the first "where" I also do not get an
error.

So it seems like notebook+magma interface+long lines+multiple
statements is unstable.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to