[sage-support] emacs' sage_mode no longer typesets in 6.2 (Linux)

2014-05-12 Thread Emmanuel Charpentier
Dear list, I just installed sage 6.2 from source on Deblan testing/amd64 ; I also installed sage_mode. plot(sin(x), [x, -2*pi, 2*pi], figsize=4) gives me the expected plot. but diff(sin(x),x) gives me cos(x) typed, not typeset. Ouch ! For light work, where my sage's use is incidental, I'm u

[sage-support] Re: question about hg (newbie)

2014-05-12 Thread Dima Pasechnik
On 2014-05-12, J.A. Ketch wrote: > thank you all for the answers > the version of my sage is : Sage Version 6.1.1, Release Date: 2014-02-04, > so I can not use hg. Some sites for the development refers to hg and not to > git. For instance > http://combinat.sagemath.org/doc/thematic_tutorials/tut

[sage-support] Re: Immutable HammingCode?

2014-05-12 Thread P Purkayastha
It may not be such a bad idea to return codevectors which are immutable. I have opened http://trac.sagemath.org/ticket/16338 to discuss this. On Monday, May 12, 2014 11:12:19 PM UTC+8, Gerli Viikmaa wrote: > > Hi, > > Consider the following code (the field is arbitrary in this case) > sage: code

[sage-support] Re: Immutable HammingCode?

2014-05-12 Thread P Purkayastha
The reason why it behaves this way is because the code[0] command regenerates the codeword every time you call it. The reason for doing so is in http://trac.sagemath.org/ticket/13694 So, code[0][0]=1 is indeed changing the vector, but it is not changing the vector that is displayed by the next

[sage-support] Re: reflexive @interact controls (control values update)

2014-05-12 Thread Nils Bruin
On Monday, May 12, 2014 5:27:21 AM UTC-7, Jason Grout wrote: > > Right. I think you're pointing out a problem with the example interact > William posted, which I agree is not very polished. I haven't looked at William's version, only your SageCell translation. I imagine they would suffer from

Re: [sage-support] question about hg (newbie)

2014-05-12 Thread J.A. Ketch
thank you all for the answers the version of my sage is : Sage Version 6.1.1, Release Date: 2014-02-04, so I can not use hg. Some sites for the development refers to hg and not to git. For instance http://combinat.sagemath.org/doc/thematic_tutorials/tutorial-how-to-contribute.html, but is old.

[sage-support] Immutable HammingCode?

2014-05-12 Thread Gerli Viikmaa
Hi, Consider the following code (the field is arbitrary in this case) sage: code = codes.HammingCode(2, GF(4,'a')) The codewords (vectors) cannot be changed (note the absence of an error): sage: code[0] (0, 0, 0, 0, 0) sage: code[0][0] = 1 sage: code[0] (0, 0, 0, 0, 0) yet they are not immutable

[sage-support] embedding a pdf in a notebook

2014-05-12 Thread Fred Gruber
Hi I wanted to embed a pdf in a sage notebook. I noticed that if the browser I'm using is able to open pdfs then I can use the html.iframe function to open any pdf that is online is some server. My question is how can I open a pdf store in the DATA directory? I know I could open the file by us

Re: [sage-support] question about hg (newbie)

2014-05-12 Thread kcrisman
On Monday, May 12, 2014 6:48:24 AM UTC-4, KnS wrote: > > Hi Ketch, > > What version of Sage have you installed? I ask because Sage has since v6.0 > moved to using GIT for version control... > > --Kannappan. > And more importantly, where did you find documentation still using hg? That will wo

[sage-support] Re: reflexive @interact controls (control values update)

2014-05-12 Thread Jason Grout
On 5/9/14, 16:41, Nils Bruin wrote: On Friday, May 9, 2014 1:05:23 PM UTC-7, Jason Grout wrote: Right---the interact always is recreating that control, which defaults to the first entry. With a selector, our thinking was that if the item was already selected, then it didn't need to

[sage-support] Re: Sage home page

2014-05-12 Thread Dima Pasechnik
On 2014-05-09, Irene Hernandez wrote: > I'm not able to see sage like this: > [image: 20_VM_notebook.png] > > I follow the instructions on http://wiki.sagemath.org/SageAppliance and get > this: > >

[sage-support] Re: Sampling elements from a vector space

2014-05-12 Thread Dima Pasechnik
On 2014-05-12, Gerli Viikmaa wrote: > Thank you - this has sped up the dataset creation 2 times. > > This is the resulting function: > > def generate_data(field, length, n): > data = zero_matrix(field, n, length) > for i in range(n): > for j in range(length): > data

Re: [sage-support] question about hg (newbie)

2014-05-12 Thread Kannappan Sampath
Hi Ketch, What version of Sage have you installed? I ask because Sage has since v6.0 moved to using GIT for version control... --Kannappan. On Mon, May 12, 2014 at 1:12 AM, J.A. Ketch wrote: > I install sage in ubuntu using the following commands: > > $apt-add-repository -y ppa:aims/sagemath

[sage-support] Travail en réseau

2014-05-12 Thread ALPHONSE RANAIVOARIMANANA
Travailler en réseau avec 3 ordinateurs dont l'une serveur et deux autres clients, on ne peut pas saisir en même temps? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an

[sage-support] question about hg (newbie)

2014-05-12 Thread J.A. Ketch
I install sage in ubuntu using the following commands: $apt-add-repository -y ppa:aims/sagemath $apt-get update $apt-get install sagemath-upstream-binary I run sage and gave sage: hg_sage.status() NameError Traceback (most recent call last) in () > 1 hg_sage.

[sage-support] Sage home page

2014-05-12 Thread Irene Hernandez
I'm not able to see sage like this: [image: 20_VM_notebook.png] I follow the instructions on http://wiki.sagemath.org/SageAppliance and get this: And when i do "Press *Right-Ctrl* and *F2* to re

Re: [sage-support] Re: Sampling elements from a vector space

2014-05-12 Thread Gerli Viikmaa
Hmm, I didn't know about the random_matrix command. So far it works very good for me: %time sequences = random_matrix(GF(4,'a'), *10^6, 36*) # notice the order CPU times: user 0.79 s, sys: 0.00 s, total: 0.79 s Wall time: 0.77 s %time sequences[0] CPU times: user 0.00 s, sys: 0.00 s, total: 0.00

Re: [sage-support] Re: Sampling elements from a vector space

2014-05-12 Thread Martin Albrecht
Why not: %time A = random_matrix(GF(4,'a'), 36, 10^6) CPU times: user 568 ms, sys: 12 ms, total: 580 ms Wall time: 578 ms However, getting the rows out takes ages. The reason is that vectors over GF(4) are generic, i.e. noone sat down and wrote up a simple class which implements these vectors a

Re: [sage-support] Jacobian in characteristic 3

2014-05-12 Thread Volker Braun
Indeed I was (am) only interested in the case of char != 2,3. Its should be easy to add the missing cases, tough. On Friday, May 9, 2014 5:05:30 PM UTC+2, John Cremona wrote: > > It is quite likely that the implementation of Jacobian for plane cubics > does not work in characteristic 3 (at lea

Re: [sage-support] Re: Sampling elements from a vector space

2014-05-12 Thread John Cremona
On 12 May 2014 09:56, Gerli Viikmaa wrote: > Thank you - this has sped up the dataset creation 2 times. > > This is the resulting function: > > def generate_data(field, length, n): > data = zero_matrix(field, n, length) > for i in range(n): > for j in range(length): >

Re: [sage-support] Re: Sampling elements from a vector space

2014-05-12 Thread Gerli Viikmaa
Thank you - this has sped up the dataset creation 2 times. This is the resulting function: def generate_data(field, length, n): data = zero_matrix(field, n, length) for i in range(n): for j in range(length): data[i,j] = field.random_element() return data Here the

[sage-support] Re: Jacobian in characteristic 3

2014-05-12 Thread Gabriel Furstenheim Milerud
I've read through the code and this is indeed the problem. It calls WeierstrassForm from schemes.toric which only implements the short version. Fernando Rodriguez Villegas has some code available for Pari/GP http://www.ma.utexas.edu/users/villegas/cnt/cnt-frames.html in "jacobians" which works

[sage-support] Re: Jacobian in characteristic 3

2014-05-12 Thread Gabriel Furstenheim Milerud
I've read through the code and this is indeed the problem. It calls WeierstrassForm from schemes.toric which only implements the short version. Fernando Rodriguez Villegas has some code available for Pari/GP http://www.ma.utexas.edu/users/villegas/cnt/cnt-frames.html in "jacobians" which works