[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread GaryMak
Hi @ppurka - thank you very much as I would never have thought of that! - that certainly fixes the crashing problem - but I now have an even more bizarre problem, which is that plot3d does literally nothing! I have re-booted everything but it makes no difference. Here is my code: s = 4 a=1/s

Re: [sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread Gary McConnell
Sorry - at ease ... If I name the plot PP or something then put just 'PP' in a different cell from its definition, it shows up fine. Thanks again for the help Kind regards Gary On Wed, Apr 17, 2013 at 10:39 AM, GaryMak garymako...@googlemail.comwrote: Hi @ppurka - thank you very much as I

Re: [sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread Gary McConnell
OK I have now uncovered another weird sage-python problem. I think I should be the go-to guy to wreck otherwise perfectly healthy code :). If you try to use the function minimize() with the python function @ppurka defined above then you get the error TypeError: g() takes exactly 2 arguments (1

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread P Purkayastha
On 04/17/2013 07:05 PM, Gary McConnell wrote: OK I have now uncovered another weird sage-python problem. I think I should be the go-to guy to wreck otherwise perfectly healthy code :). If you try to use the function minimize() with the python function @ppurka defined above then you get the

Re: [sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread Gary McConnell
Ah I see now that this is implicit in the docs example ... thank you ... should we perhaps point that out explicitly, since the very same function takes two rather different syntaxes? I am happy to write a small amendment to the page. On Wed, Apr 17, 2013 at 1:09 PM, P Purkayastha

[sage-support] Re: Graphs from binary incidence matrices

2013-04-17 Thread Dima Pasechnik
On 2013-04-17, Michael Welsh yom...@yomcat.geek.nz wrote: I have some GF(2) matrices that are incidence matrices of undirected graphs. When I try to construct the graphs in sage, this happens: sage: Graph(matrix(GF(2), [[1,0,1,1],[1,1,0,1],[0,1,1,0]])) it's not even clear what two parallel

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread P Purkayastha
On 04/17/2013 07:16 PM, Gary McConnell wrote: Ah I see now that this is implicit in the docs example ... thank you ... should we perhaps point that out explicitly, since the very same function takes two rather different syntaxes? I am happy to write a small amendment to the page. You are

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread P Purkayastha
On 04/17/2013 09:59 AM, kcrisman wrote: ppurka, can you try the patch at #13355 to see if that helps in this case? No, that doesn't work either. :( -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop

[sage-support] assume doesn't assume the first time (with limit)

2013-04-17 Thread Francois Maltey
Hello everyone, I must declare assume twice. First time, I get an unevalued form. After the second assume, I get the fine result : I use Sage 5.7 sage: forget () ; var('n') n sage: assume ((x1) and (x0)) ; limit (n*x^n*(1-x), n=oo) ; limit (n*x^n*(1-x), n=oo) -(x - 1)*limit(x^n*n, n,

[sage-support] Re: assume doesn't assume the first time (with limit)

2013-04-17 Thread John H Palmieri
On Wednesday, April 17, 2013 8:58:15 AM UTC-7, Francois Maltey wrote: Hello everyone, I must declare assume twice. First time, I get an unevalued form. After the second assume, I get the fine result : I use Sage 5.7 sage: forget () ; var('n') n sage: assume ((x1) and (x0)) Is

[sage-support] Polynomial quotient and reminder

2013-04-17 Thread Andrea Lazzarotto
Hi, I am trying to work with polynomials in Finite Fields. We have to implement the Extended Euclidean Algorithm for using it with Reed Solomon Codes. This is what I am trying to do: pre m = 4 k = 7 n = 2^m-1 f.alpha = FiniteField(2^m); f r(x) =

Re: [sage-support] Re: Graphs from binary incidence matrices

2013-04-17 Thread Tom Boothby
Dima, Rows correspond to vertices and columns correspond to edges. This matrix represents an undirected triangle with a double edge. I don't understand why the graph __init__ requires a +1 and a -1 in each column -- that describes a directed incidence matrix, and has no place in undirected

[sage-support] Re: Polynomial quotient and reminder

2013-04-17 Thread Simon King
Hi Andrea, On 2013-04-17, Andrea Lazzarotto andrea.lazzaro...@gmail.com wrote: Hi, I am trying to work with polynomials in Finite Fields. We have to implement the Extended Euclidean Algorithm for using it with Reed Solomon Codes. ... Now my problem is that I would like to divide a by b and

[sage-support] Re: assume doesn't assume the first time (with limit)

2013-04-17 Thread Maarten Derickx
Le mercredi 17 avril 2013 18:07:04 UTC+2, John H Palmieri a écrit : On Wednesday, April 17, 2013 8:58:15 AM UTC-7, Francois Maltey wrote: Hello everyone, I must declare assume twice. First time, I get an unevalued form. After the second assume, I get the fine result : I use Sage 5.7

[sage-support] genus computation of curves fails

2013-04-17 Thread Peter Mueller
The computation of the genus of curves over the field with 2 elements raises an error message for some small curves. I'm using a selfcompiled Sage 5.8 on a 64 bit linux system: { sage: k.x,y=GF(2)[] sage: f=y^10 + x^7 + x^3 sage: c=Curve(f) sage: print c.genus()

[sage-support] Re: assume doesn't assume the first time (with limit)

2013-04-17 Thread John H Palmieri
On Wednesday, April 17, 2013 11:01:47 AM UTC-7, Maarten Derickx wrote: Le mercredi 17 avril 2013 18:07:04 UTC+2, John H Palmieri a écrit : On Wednesday, April 17, 2013 8:58:15 AM UTC-7, Francois Maltey wrote: Hello everyone, I must declare assume twice. First time, I get an

Re: [sage-support] Re: Segmentation fault in Matrix(QQ).rank()

2013-04-17 Thread Sure
Thanks! Built from source and now it works. So there is a bug in sage binary distributions? I took sage-5.8-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux.tar.lzma, and ubuntu is based on debian. It really may call ATLAS, but what its fault might cause such behaviour? On Friday, April 12, 2013

Re: [sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread Gary McConnell
I am very keen to help - my problem is utter incompetence at following the high-level instructions in the manual for developers. Also I am on the VM and I cannot access the sage directories directly. Is there a way you could send me a manual file that I could modify and send back to you? Sorry :(

Re: [sage-support] Graphs from binary incidence matrices

2013-04-17 Thread Michael Welsh
On 17/04/2013, at 11:46 PM, Dima Pasechnik dimp...@gmail.com wrote: sage: Graph(matrix(GF(2), [[1,0,1,1],[1,1,0,1],[0,1,1,0]])) it's not even clear what two parallel edges should lead to. Should they cancel each other? No, they're just parallel. Maybe I should have said multigraphs. The

Re: [sage-support] Re: Segmentation fault in Matrix(QQ).rank()

2013-04-17 Thread William Stein
On Wed, Apr 17, 2013 at 11:55 AM, Sure a.a.m...@gmail.com wrote: Thanks! Built from source and now it works. So there is a bug in sage binary distributions? I took sage-5.8-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux.tar.lzma, and ubuntu is based on debian. It really may call ATLAS, but what

[sage-support] Re: Polynomial quotient and reminder

2013-04-17 Thread Andrea Lazzarotto
Hi, The problem is that in fact you are *not* considering two polynomials: [...] Note that by saying S(x) = ... you define S as a symbolic function on a symbolic variable x, and if you re-define x later, then the variable of S will still be symbolic, and not belong to a

Re: [sage-support] genus computation of curves fails

2013-04-17 Thread Jeroen Demeyer
On 04/17/2013 08:19 PM, Peter Mueller wrote: sage: k.x,y=GF(2)[] sage: f=y^10 + x^7 + x^3 sage: c=Curve(f) sage: print c.genus() Confirmed. From the error message, looks like a problem in Singular. -- You received this message because you are subscribed to the Google Groups sage-support

[sage-support] Solve Binary Linear System

2013-04-17 Thread Juan Grados
I have the equation Ax=b where all matrix entries and all entrie of vector b are in GF(2). How I will be able to solve this linear system equation over GF(2) in SAGE software? -- - MSc. Juan del Carmen Grados Vásquez Laboratório

Re: [sage-support] Solve Binary Linear System

2013-04-17 Thread Robert Bradshaw
sage: A = random_matrix(GF(2), 1, 1) sage: A.det() 1 sage: b = random_vector(GF(2), 1) sage: %time x = A \ b CPU times: user 1.61 s, sys: 0.06 s, total: 1.67 s Wall time: 1.67 s sage: A * x == b True On Wed, Apr 17, 2013 at 1:45 PM, Juan Grados juan...@gmail.com wrote: I have the

[sage-support] Lost worksheets

2013-04-17 Thread Dan Aldrich
I'm still having problems with worksheets getting lost. My older worksheets seem to be in place. Sometimes it happens the same day, I write a worksheet in the morning and in the evening it doesn't appear when I log in at home. -d -- You received this message because you are subscribed to the

[sage-support] Re: Lost worksheets

2013-04-17 Thread Jason Grout
On 4/17/13 5:11 PM, Dan Aldrich wrote: I'm still having problems with worksheets getting lost. My older worksheets seem to be in place. Sometimes it happens the same day, I write a worksheet in the morning and in the evening it doesn't appear when I log in at home. Are you talking about

Re: [sage-support] Re: Lost worksheets

2013-04-17 Thread Dan Aldrich
I use sagenb.org which redirects me to www.sagenb.org. I use my username/PW, I've been using sage before the google/FB authentication. My username is daldrich. -d On Apr 17, 2013, at 6:19 PM, Jason Grout jason-s...@creativetrax.com wrote: Are you talking about sagenb.org? Which server are

[sage-support] Re: Lost worksheets

2013-04-17 Thread Jason Grout
On 4/17/13 5:26 PM, Dan Aldrich wrote: I use sagenb.org which redirects me to www.sagenb.org. I use my username/PW, I've been using sage before the google/FB authentication. My username is daldrich. Hmmm. 1. sagenb.org shouldn't redirect to www.sagenb.org. Do you mean sagemath.org

Re: [sage-support] Re: Lost worksheets

2013-04-17 Thread Dan Aldrich
OK, I just created a worksheet, foo1: http://www.sagenb.org/home/daldrich/47/ Been using sage for years now, I've never explicitly saved my worksheets. This one I created, ran, then logged off. Logging back on, it was there so don't think that's the problem. There are lost worksheets, sorry

Re: [sage-support] Re: Lost worksheets

2013-04-17 Thread Dan Aldrich
sagenb.org definitely redirects me to http://www.sagenb.org -d On Apr 17, 2013, at 6:19 PM, Jason Grout jason-s...@creativetrax.com wrote: On 4/17/13 5:11 PM, Dan Aldrich wrote: I'm still having problems with worksheets getting lost. My older worksheets seem to be in place. Sometimes it

Re: [sage-support] Re: Lost worksheets

2013-04-17 Thread William Stein
HI, I sent Dan a tarball (off list) of his /home directory from the notebook server, so he can investigate. William On Wed, Apr 17, 2013 at 3:58 PM, Dan Aldrich daldr...@earthlink.net wrote: sagenb.org definitely redirects me to http://www.sagenb.org -d On Apr 17, 2013, at 6:19 PM, Jason

[sage-support] Re: Polynomial quotient and reminder

2013-04-17 Thread Simon King
Hi Andrea, On 2013-04-17, Andrea Lazzarotto andrea.lazzaro...@gmail.com wrote: Note that by saying S(x) = ... you define S as a symbolic function on a symbolic variable x, and if you re-define x later, then the variable of S will still be symbolic, and not belong to a polynomial ring.