I have just installed sage and suffer this too. The problem affects more
common things than only solving equations and diff/integrate. For
example, I take a very simple example from sect. 4.2 of Sage Reference
Manual:

sage: a,b,c=var('a,b,c')
sage: qe=(a*x^2+b*x+c==0)
sage: print qe           

and instead of
                                 2
                              a x  + b x + c == 0
I get

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid       
The error message is: ('EOF in multi-line statement', (865, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid       
The error message is: ('EOF in multi-line statement', (387, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid       
The error message is: ('EOF in multi-line statement', (805, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid       
The error message is: ('EOF in multi-line statement', (785, 0))

 and etc.

And similar things occure for many other examples. Interesting that the
following from "Sage constructions" works well:

sage: R = PolynomialRing(QQ, 4, 'abcd', order='lp')
sage: a,b,c,d = R.gens()
sage: I = (a+b+c+d, a*b+a*d+b*c+c*d, a*b*c+a*b*d+a*c*d+b*c*d, a*b*c*d-1)*R; I
Ideal (a + b + c + d, a*b + a*d + b*c + c*d, a*b*c + a*b*d + a*c*d + b*c*d, 
a*b*c*d - 1) of Multivariate Polynomial Ring in a, b, c, d over Rational Field
sage: B = I.groebner_basis(); B
[c^2*d^6 - c^2*d^2 - d^4 + 1, 
 c^3*d^2 + c^2*d^3 - c - d, 
 b*d^4 - b + d^5 - d, 
 b*c - b*d + c^2*d^4 + c*d - 2*d^2, 
 b^2 + 2*b*d + d^2, 
 a + b + c + d]

but when I add some extra variables (which should be treated as
parameters), it crashes:

sage: R = PolynomialRing(QQ, 4, 'abcd', order='lp')
sage: a,b,c,d = R.gens()
sage: p,q = var('p,q')
sage: I = (a*p+b*q+c+d, a*b+a*d+b*c+c*d, a*b*c+a*b*d+a*c*d+b*c*d, a*b*c*d-1)*R

Exception pexpect.EOF: EOF() in 'sage.structure.parent._unregister_pair' ignored
Maxima crashed -- automatically restarting.                                     
Exception pexpect.EOF: EOF() in 'sage.structure.parent._unregister_pair' ignored
Maxima crashed -- automatically restarting.                                     
ERROR: An unexpected error occurred while tokenizing input                      
The following traceback may be corrupted or invalid                             
The error message is: ('EOF in multi-line statement', (805, 0))                 

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid       
The error message is: ('EOF in multi-line statement', (785, 0))

and etc.

Maybe something wrong in the interface with maxima or in the maxima
itself...

-- 
Sage crashes on solve/diff/integrate
https://bugs.launchpad.net/bugs/487088
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to