[sage-support] Re: installation under snow leopard

2010-10-20 Thread Ferren
Good point. However, I copied the version number from the README file, which says 10.4, because copying from the DMG is messier. The DMG claims to be 10.6. I also have installed XCode 3.2, with GCC 4.2.1 build 5646, which may help. For obscure reasons the XCode installation complained about a coup

[sage-support] Re: installation under snow leopard

2010-10-20 Thread Marshall Hampton
Yes, as David points out, you definitely want the 10.6 binary: sage-4.5.3-OSX-64bit-10.6-i386-Darwin.dmg -M. Hampton On Oct 20, 12:44 pm, David Joyner wrote: > But 10.4 is not snow leopard. I think 10.4 is tiger. > Did you also try downloading and installing the 10.6 version? > > On Wed, Oct 20

[sage-support] Re: Can't compute modular degree for elliptic curves in 4.5.2

2010-10-20 Thread gagan
Really sorry, I didn't give details. It was a 64 bit Mac running sage version 4.5.2. But now I am running 4.5.3 and it seems to be working fine. Gagan On Oct 20, 6:02 pm, William Stein wrote: > On Sun, Oct 17, 2010 at 5:50 PM, gagan wrote: > > sage: E=EllipticCurve('11a1'); > > sage: E.modular_d

Re: [sage-support] Can't compute modular degree for elliptic curves in 4.5.2

2010-10-20 Thread William Stein
On Sun, Oct 17, 2010 at 5:50 PM, gagan wrote: > sage: E=EllipticCurve('11a1'); > sage: E.modular_degree(); > /Applications/sage/local/bin/sympow: line 3:  9922 Segmentation > fault      ./sympow $* EXACTLY what binary are you running, and on exactly which computer? Do you have this problem if you

Re: [sage-support] Can't compute modular degree for elliptic curves in 4.5.2

2010-10-20 Thread William Stein
On Tue, Oct 19, 2010 at 5:33 PM, Dr. David Kirkby wrote: > On 10/20/10 12:07 AM, Justin C. Walker wrote: >> >> On Oct 17, 2010, at 17:50 , gagan wrote: >> >>> sage: E=EllipticCurve('11a1'); >>> sage: E.modular_degree(); >>> /Applications/sage/local/bin/sympow: line 3:  9922 Segmentation >>> fault

[sage-support] Re: Can't compute modular degree for elliptic curves in 4.5.2

2010-10-20 Thread John Cremona
Quite apart from any problems there may be with the sympow implementation, there is another bug here: for curves in the database, the modular degree is known from the database, as you can see here: sage: E = EllipticCurve('11a1') sage: E._EllipticCurve_rational_field__modular_degree 1 But for so

Re: [sage-support] installation under snow leopard

2010-10-20 Thread David Joyner
But 10.4 is not snow leopard. I think 10.4 is tiger. Did you also try downloading and installing the 10.6 version? On Wed, Oct 20, 2010 at 1:04 PM, Ferren MacIntyre wrote: > I just downloaded Sage 4.5.3-OSX10.4-intel-i386-Darwin and set out to > > install it on: > > Hardware: MacBook Pro 5.1, Co

[sage-support] installation under snow leopard

2010-10-20 Thread Ferren MacIntyre
I just downloaded Sage 4.5.3-OSX10.4-intel-i386-Darwin and set out to install it on: Hardware: MacBook Pro 5.1, Core2 Duo, 2.4 GHz, 4 GB. Software: OS X 10.6.4 64-bit Following instructions in the file sage-README-osx.txt , items 1), 2), and 3) proceed faultlessly. But Item 4) is

[sage-support] Re: Substituting variables from two different structures

2010-10-20 Thread Simon King
Hi Alasdair! What about this: sage: F.=GF(2^8,name='x') sage: R.=PolynomialRing(GF(2)) sage: p = F.random_element() sage: p x^7 + x^5 + x^4 + x sage: pp = p.polynomial() sage: pp(x=y) y^7 + y^5 + y^4 + y The only difference to your approach is that R is defined over the field GF(2) rather than t

Re: [sage-support] Substituting variables from two different structures

2010-10-20 Thread Francois Maltey
Hi Alasdair, F.=GF(2^8,name='x') R.=PolynomialRing(Zmod(2)) p = F.random_element() p.subs(x=y) Basically, I have an object which is created as an element of a finite field, which I then need to treat as an element of a ring. If I try: pp = p.polynomial() pp.subs(x=y) And what do you think

[sage-support] Substituting variables from two different structures

2010-10-20 Thread Alasdair
The following shows what I'd like to do: F.=GF(2^8,name='x') R.=PolynomialRing(Zmod(2)) p = F.random_element() p.subs(x=y) Basically, I have an object which is created as an element of a finite field, which I then need to treat as an element of a ring. If I try: pp = p.polynomial() pp.subs(x=y)

[sage-support] Re: how to change numpy datatype

2010-10-20 Thread Marshall Hampton
You could also make a sage matrix from a: A = matrix(a) and then perhaps its methods would do what you want. For example, you could do A.change_ring(QQ) to convert to rational numbers. -M. Hampton On Oct 19, 8:57 pm, 李季 wrote: > Dear group, > I have a question as follow: > > import numpy as np

[sage-support] Re: Lot of segfaults...

2010-10-20 Thread luisfe
On Oct 16, 1:59 pm, Thierry Dumont wrote: > Hello, > > On our Sage server, we have a lot a students doing simple computer algebra. > Our version of Sage is 4.5.3 on Debian Lenny. > > We have a lot of segfaults in maxima: Could you post more information of the problem? Did you install sage from