[sage-support] trying to run Dean Moore's Hypotrochoid program

2009-05-05 Thread Bruce Cohen
I am new to Sage (and think it is great). This experiment (using Sage 3.4.1) did not work: -- I downloaded this: http://deanlm.com/python/index_files/hypo.txt and saved it as hypo.sage and at a shell prompt ran this: 19% sage hypo.sage Traceback (most recent call last): File

[sage-support] Re: how to use floats properly in cython?

2009-05-05 Thread Robert Bradshaw
On May 5, 2009, at 7:03 AM, William Stein wrote: > On Tue, May 5, 2009 at 7:00 AM, Christophe Oosterlynck > wrote: >> >> Hi, >> >> I'm writin a Cython module for Sage and at some point I want to >> construct a random matrix with a certain density. But supplying the >> density as a float to the

[sage-support] Re: quick question about the sage dvd and vmware

2009-05-05 Thread Robert Bradshaw
On May 5, 2009, at 10:43 AM, Chris Chiasson wrote: > Does the Sage DVD (not the live cd) require admin privileges to run it > on Windows? I suppose this boils down to whether or not the VMWare > binary mentioned in the description is the installer for VMWare or if > it is actually the executable

[sage-support] quick question about the sage dvd and vmware

2009-05-05 Thread Chris Chiasson
Does the Sage DVD (not the live cd) require admin privileges to run it on Windows? I suppose this boils down to whether or not the VMWare binary mentioned in the description is the installer for VMWare or if it is actually the executable needed to launch Sage. If it does run off of the DVD withou

[sage-support] Re: matrices, vectors and Sage

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 9:28 AM, Jason Grout wrote: > > Paul Zimmermann wrote: >>        Hi, >> >> I got the following error in a Sage program I wrote: >> >> TypeError: unsupported operand parent(s) for '*': 'Full MatrixSpace of 2 by >> 1 dense matrices over Integer Ring' and 'Full MatrixSpace of

[sage-support] Re: matrices, vectors and Sage

2009-05-05 Thread Jason Grout
Paul Zimmermann wrote: >Hi, > > I got the following error in a Sage program I wrote: > > TypeError: unsupported operand parent(s) for '*': 'Full MatrixSpace of 2 by 1 > dense matrices over Integer Ring' and 'Full MatrixSpace of 2 by 2 dense > matrices over Rational Field' > > for the

[sage-support] Re: Blank Error | Sage Notebook page after server restart

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:21 AM, Kevin Horton wrote: > > If the sage notebook server is restarted while a logged in user is > viewing a notebook page, a user attempt to refresh the page results in > a completely blank page titled "Error | Sage Notebook".  The user must > manually edit the URL to g

[sage-support] Blank Error | Sage Notebook page after server restart

2009-05-05 Thread Kevin Horton
If the sage notebook server is restarted while a logged in user is viewing a notebook page, a user attempt to refresh the page results in a completely blank page titled "Error | Sage Notebook". The user must manually edit the URL to go back to the main server page and login again, presuma

[sage-support] Re: how to use floats properly in cython?

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:00 AM, Christophe Oosterlynck wrote: > > Hi, > > I'm writin a Cython module for Sage and at some point I want to > construct a random matrix with a certain density. But supplying the > density as a float to the random_matrix function will always become > 0... > > for exam

[sage-support] how to use floats properly in cython?

2009-05-05 Thread Christophe Oosterlynck
Hi, I'm writin a Cython module for Sage and at some point I want to construct a random matrix with a certain density. But supplying the density as a float to the random_matrix function will always become 0... for example %cython from sage.all import random_matrix,GF cdef float d d = 1/562 print

[sage-support] Re: How to work properly with sage

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 12:56 AM, Ton Biegstraaten wrote: > > Hi, > I like to have some advice on how to develop my own code and have a > proper documentation for it. > In python all is clear, you write a .py file and supply the docstring > with proper reST text and code for epydoc, doctest and/or

[sage-support] Re: matrices, vectors and Sage

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 6:23 AM, Paul Zimmermann wrote: > >       Hi, > > I got the following error in a Sage program I wrote: > > TypeError: unsupported operand parent(s) for '*': 'Full MatrixSpace of 2 by 1 > dense matrices over Integer Ring' and 'Full MatrixSpace of 2 by 2 dense > matrices ov

[sage-support] matrices, vectors and Sage

2009-05-05 Thread Paul Zimmermann
Hi, I got the following error in a Sage program I wrote: TypeError: unsupported operand parent(s) for '*': 'Full MatrixSpace of 2 by 1 dense matrices over Integer Ring' and 'Full MatrixSpace of 2 by 2 dense matrices over Rational Field' for the following instruction: --> 152 vA =

[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-05-05 Thread Iwan Lappo-Danilewski
> > Is there a chance that there will be executables that run on my work > > machine with the next release? > > No, 3.4.2 won't have the fix, but 4.0 will in roughly two weeks. Looking forward to it. > > Or should I start compiling right now > > and maybe move to some SVN kind of thing? > > I don

[sage-support] Re: problem with sage-vmware 3.4.1 on windows xp

2009-05-05 Thread Alessandro Torre
Hi. disassemble.txt does contain the output from "disassemble $pc +32,$pc-32" Instead "disassemble $pc+32 $pc-32" produces no output: Dump of assembler code from 0xb76ce853 to 0xb76ce813: End of assembler dump. And the output of "disassemble $pc-32 $pc+32": Dump of assembler code from 0xb76ce

[sage-support] How to work properly with sage

2009-05-05 Thread Ton Biegstraaten
Hi, I like to have some advice on how to develop my own code and have a proper documentation for it. In python all is clear, you write a .py file and supply the docstring with proper reST text and code for epydoc, doctest and/or Sphinx. With nzmath you can do a lot of math things (and it works

[sage-support] Re: How do I show a permutation group is the alternating group?

2009-05-05 Thread jimfar
thank you very much On May 4, 11:57 pm, Michael Welsh wrote: > sage: B=PermutationGroup(['(1,2,4,5,3)','(2,3,1,4,5)']) > sage: B == AlternatingGroup(5) > True > sage: B == AlternatingGroup(7) > False > > On 5/05/2009, at 6:47 PM, jimfar wrote: > > > I have generated a group using, > > sage: B=Pe