[sage-support] Links between worksheets

2008-09-24 Thread Maike
Hi all, I can have a link on one worksheet to another worksheet (e.g. http://localhost:8000/home/user/12/), but this includes the number that sage internally gives that worksheet (here: 12). Now if I upload these worksheets to another server, they are assigned different numbers and the links don'

[sage-support] Secure Sage Server

2008-09-24 Thread Maike
We'd like to set up a sage server allowing different users to see, copy and edit our published worksheets. However, this allows users to execute arbitrary system calls, e.g. > os.popen("ps auxw").read() The formatting of the output is not perfect, but still, this is a problem! I'd be grateful for

[sage-support] Re: Secure Sage Server

2008-09-24 Thread mabshoff
On Sep 24, 12:22 am, Maike <[EMAIL PROTECTED]> wrote: Hi Maike, > We'd like to set up a sage server allowing different users to see, > copy and edit our published worksheets. However, this allows users to > execute arbitrary system calls, e.g.> os.popen("ps auxw").read() Yes, any account on a N

[sage-support] Numerical evaluate of the Dirichlet character value

2008-09-24 Thread Raouf
Hi, I want to have a numerical value of a Dirichlet character : I have this line code in my notebook: sage: G = DirichletGroup(21) chi = G.1; chi(23) evaluate: zeta6 - 1 And when i want to use this value: zeta6 - 1 i have the error message: G = DirichletGroup(21) chi = G.1; chi(23) B=13*chi(

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread mabshoff
On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: > Hi, > I want to have a numerical value of a  Dirichlet character : > > I have this line code in my notebook: > > sage: > G = DirichletGroup(21) > chi = G.1; > chi(23) > > evaluate: > zeta6 - 1 > > And when i want to use this value: zeta6 - 1

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread John Cremona
This works: sage: emb = B.parent().complex_embeddings()[0] sage: emb(B) -6.5 + 11.2583302492*I B is an element of a number field: sage: B.parent() Cyclotomic Field of order 6 and degree 2 and number fields have several embeddings into CC (in this case, 2): sage: len( B.parent().complex_embeddi

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread John Cremona
2008/9/24 mabshoff <[EMAIL PROTECTED]>: > > > > On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: >> Hi, >> I want to have a numerical value of a Dirichlet character : >> >> I have this line code in my notebook: >> >> sage: >> G = DirichletGroup(21) >> chi = G.1; >> chi(23) >> >> evaluate: >>

[sage-support] Sage runs amok when killing a sub process

2008-09-24 Thread Simon King
Dear Team, on a linux machine with 4 Dual Core AMD Opteron(tm) Processor 270, I had some computations with Sage 3.1.1. One of them had a very long Singular sub process, and eventually I killed the sub process. By consequence, a massive amount (more than 20) of new Python processes popped up (se

[sage-support] Re: Sage runs amok when killing a sub process

2008-09-24 Thread mabshoff
On Sep 24, 5:18 am, Simon King <[EMAIL PROTECTED]> wrote: > Dear Team, Hi Simon, > on a linux machine with 4 Dual Core AMD Opteron(tm) Processor 270, I > had some computations with Sage 3.1.1. > > One of them had a very long Singular sub process, and eventually I > killed the sub process. > >

[sage-support] Re: operations with matrices

2008-09-24 Thread aniura
Hi, well, I have now two different alternatives to be tested: a list of matrices or a numpy array. since I am programming with scripts, I should verify which of them works better in that case. thanks for your suggestions!! Aniura On Sep 23, 12:29 pm, "John Cremona" <[EMAIL PROTECTED]> wrote:

[sage-support] Re: Sage runs amok when killing a sub process

2008-09-24 Thread Simon King
Dear Michael, On Sep 24, 2:25 pm, mabshoff <[EMAIL PROTECTED] dortmund.de> wrote: > I don't see why 20 of those python jobs would pop up. Can you > reproduce it? I used nohup, and stdout was written into some file. And I just found one detail in the log file that may help to track it down. It s

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-24 Thread vpv
Thanks for the useful links, Martin. I downloaded and compiled the source for Sage (3.1.2). I'll have a look at crypto/mq/sr.py and i'll try to figure how to add my code there. If i have questions i'll ask. Cheers, vpv On Sep 19, 6:48 pm, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > >  * I'd b

[sage-support] how to calculate the derivative of a boolean polynomial?

2008-09-24 Thread vpv
Is it possible to calculate the derivative of a boolean polynomial in Sage using PolyBoRi? I can do this for polynomials over GF(2): sage: R. = PolynomialRing(GF(2),3) sage: f = 3*x^2*y + 2*x*y + y + 9*x^2 + 5*x - 3 sage: f x^2*y + x^2 + x + y + 1 sage: f.derivative(x) 1 sage: f.derivative(y) x^

[sage-support] Re: Secure Sage Server

2008-09-24 Thread Jason Grout
mabshoff wrote: > On Sep 24, 12:22 am, Maike <[EMAIL PROTECTED]> wrote: > > Hi Maike, > >> We'd like to set up a sage server allowing different users to see, >> copy and edit our published worksheets. However, this allows users to >> execute arbitrary system calls, e.g.> os.popen("ps auxw").read

[sage-support] libsvm unser Sage

2008-09-24 Thread [EMAIL PROTECTED]
Hi, I have a question about libsvm using under Sage. I have downloaded libsvm (a Support Vector Machine classification library) which comes with a python interface. I did build the sources as follows : [EMAIL PROTECTED]:~/actuel/recherche/libs/libsvm-2.86/python$ ll total 208 -rw-r--r-- 1 jland

[sage-support] Re: Using Fourier transform in sage.

2008-09-24 Thread Sand Wraith
Thank you! :-) > sage: v = vector(CDF,[1..10]); v > (1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0) > sage: w = v.fft(); w > (55.0, -5.0 + 15.3884176859*I, -5.0 + 6.88190960236*I, -5.0 + > 3.63271264003*I, -5.0 + 1.62459848116*I, -5.0, -5.0 - 1.62459848116*I, > -5.0 - 3.63271264003*I, -5.0 -

[sage-support] Re: question about SAGE eigenvalues

2008-09-24 Thread Carl Witty
On Sep 23, 1:26 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > To me, it looks like it may be a bug: > > sage: A=matrix([[1,1],[2,3]]) > sage: e1,e2=A.eigenvalues() > sage: e1.interval(ComplexIntervalField(53)) > 0.2679491924311228? > sage: b=e1.interval(ComplexIntervalField(53)) > sage: b > 0.26794

[sage-support] Re: question about SAGE eigenvalues

2008-09-24 Thread Carl Witty
On Sep 23, 1:31 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > > OK, it is a feature.  To quote from > >http://wiki.sagemath.org/sage-3.1.2(Release notes for 3.1.2): > > > The question marks at the end of the numbers in the previous example > > mean that Sage is printing out an approximation of an e

[sage-support] Re: Can not delete worksheet.

2008-09-24 Thread Sand Wraith
Thank you )) now its OK On Sep 21, 5:25 pm, "Timothy Clemans" <[EMAIL PROTECTED]> wrote: > Hi, > > This and other bugs have been fixed in the latest release, 3.1.2. > > Timothy > > On Sun, Sep 21, 2008 at 7:23 AM, Sand Wraith <[EMAIL PROTECTED]> wrote: > > > Hi! > > > Using sage: > > SAGE Version

[sage-support] Re: Links between worksheets

2008-09-24 Thread William Stein
On Wed, Sep 24, 2008 at 12:09 AM, Maike <[EMAIL PROTECTED]> wrote: > > Hi all, > > I can have a link on one worksheet to another worksheet (e.g. > http://localhost:8000/home/user/12/), but this includes the number > that sage internally gives that worksheet (here: 12). Now if I upload > these work

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread Robert Bradshaw
On Sep 24, 2008, at 4:42 AM, John Cremona wrote: > > 2008/9/24 mabshoff <[EMAIL PROTECTED]>: >> >> >> >> On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: >>> Hi, >>> I want to have a numerical value of a Dirichlet character : >>> >>> I have this line code in my notebook: >>> >>> sage: >>> G

[sage-support] Re: how to calculate the derivative of a boolean polynomial?

2008-09-24 Thread Robert Bradshaw
On Sep 24, 2008, at 7:09 AM, vpv wrote: > > Is it possible to calculate the derivative of a boolean polynomial in > Sage using PolyBoRi? > > I can do this for polynomials over GF(2): > > sage: R. = PolynomialRing(GF(2),3) > sage: f = 3*x^2*y + 2*x*y + y + 9*x^2 + 5*x - 3 > sage: f > x^2*y + x^2 +

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread William Stein
` On Wed, Sep 24, 2008 at 4:42 AM, John Cremona <[EMAIL PROTECTED]> wrote: > > 2008/9/24 mabshoff <[EMAIL PROTECTED]>: >> >> >> >> On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: >>> Hi, >>> I want to have a numerical value of a Dirichlet character : >>> >>> I have this line code in my note

[sage-support] Re: libsvm unser Sage

2008-09-24 Thread William Stein
On Wed, Sep 24, 2008 at 8:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a question about libsvm using under Sage. I have downloaded > libsvm (a Support Vector Machine classification library) which comes > with a python interface. > > I did build the sources as follows : >

[sage-support] Generating all subgroups of a group

2008-09-24 Thread Rob Beezer
A homework exercise for my students asks them to find all subgroups of S_4, which should be a very instructive exercise, even if a bit unreasonable. In SAGE, the conjugacy_classes_subgroups() method gets you started, and the quick-and-dirty brute-force code below creates all possible subgroups

[sage-support] Re: Generating all subgroups of a group

2008-09-24 Thread Carlo Hamalainen
On Wed, Sep 24, 2008 at 7:29 PM, Rob Beezer <[EMAIL PROTECTED]> wrote: > > A homework exercise for my students asks them to find all subgroups of > S_4, which should be a very instructive exercise, even if a bit > unreasonable. In SAGE, the conjugacy_classes_subgroups() method > gets you starte

[sage-support] Re: Generating all subgroups of a group

2008-09-24 Thread David Joyner
On Wed, Sep 24, 2008 at 2:05 PM, Carlo Hamalainen <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 24, 2008 at 7:29 PM, Rob Beezer <[EMAIL PROTECTED]> wrote: >> >> A homework exercise for my students asks them to find all subgroups of >> S_4, which should be a very instructive exercise, even if a bit >>

[sage-support] Re: Generating all subgroups of a group

2008-09-24 Thread John Cremona
In Rob's example it would be nice (and good for the students to see) if instead of looping over all g in G to construct conjugate subgroups he could loop over coset representatives of H in G (where H is his representative_subgroup), or (optimal) coset reps of the normalizer of H in G. Now we can

[sage-support] Windows: Where are worksheets stored?

2008-09-24 Thread Jannick Asmus
Hi, switching to the latest release 3.1.2 on windows machines I would like to save my workbooks. but where are they stored? Sorry for my ignorance since my question seems to be a FAQ. As always, thanks for your help. Best wishes, J. --~--~-~--~~~---~--~~ To

[sage-support] Re: libsvm unser Sage

2008-09-24 Thread [EMAIL PROTECTED]
Hi, When I start Sage in the directory where python libsvm was built, It seems to work but I have another problem to run the test_script : -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook

[sage-support] Re: maple from sage on mac os

2008-09-24 Thread Alex Raichev
Hi William: The same thing happens to me on Mac OS X. How do i fix this? Alex -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.| ---

[sage-support] Re: a problem starting the notebook

2008-09-24 Thread cesarnda
so? On 23 sep, 01:35, cesarnda <[EMAIL PROTECTED]> wrote: > I start sage and I type notebook and firefox is open to the following > address: > > http://localhost:8000/?startup_token=1af26f2b14cac678ab97c121c9cca7c5 > > which is not found, so I have to cut it just tohttp://localhost:8000, > is the

[sage-support] Re: a problem starting the notebook

2008-09-24 Thread mabshoff
On Sep 24, 5:25 pm, cesarnda <[EMAIL PROTECTED]> wrote: > so? What version of Sage are you using? What operating system are you on? Could you provide the complete log, i.e. the output from when you start Sage and then invoke the notebook? Cheers, Michael > On 23 sep, 01:35, cesarnda <[EMAIL

[sage-support] Re: maple from sage on mac os

2008-09-24 Thread mabshoff
On Sep 24, 3:20 pm, Alex Raichev <[EMAIL PROTECTED]> wrote: > Hi William: > > The same thing happens to me on Mac OS X.  How do i fix this? > > Alex Hi Alex, I don't know how handy you are with patches and so on, but applying the patch from #4180 followed by a "sage -b" would enable us to easi

[sage-support] Re: Generating all subgroups of a group

2008-09-24 Thread Rob Beezer
Carlo and John, Thanks for the replies - those are both very helpful, and exactly the sort of thing I was hoping to learn about. It appears to me that H.normalizer() expects just a single element as an argument (rather than a whole subgroup), and returns a Group (rather than a PermutationGrou

[sage-support] Re: Links between worksheets

2008-09-24 Thread Rob Beezer
William, I'm able to convert my open-source linear algebra textbook from LaTeX to jsMath in an automated way, and you have seen my experiments in converting snippets of the jsMath versions into SAGE worksheets. When I attempt to convert the entire book this way, I'd expect each of the 40 or so s

[sage-support] Re: maple from sage on mac os

2008-09-24 Thread Alex Raichev
Hi Michael: I followed your instructions, did the following Sage commands, and got the following pexpect log. -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license()

[sage-support] Re: Secure Sage Server

2008-09-24 Thread Dan Drake
On Wed, 24 Sep 2008 at 09:24AM -0500, Jason Grout wrote: > In case virtualbox is your preference, I have almost finished a > virtualbox image which tries to mirror the current vmware image too, but > is based on ubuntu jeos and is a little more locked down (e.g., no > default ssh server is runni