[sage-support] Re: getting output of one matrix row in two workbook lines

2009-01-19 Thread Mate Kosor
> Use > >    show(foo) > > to typeset an output line, which won't word wrap. This gives me latex output? > Or, after getting output as you do above, just click to the left of > the output to toggle through: >     word wrap --> no word wrap --> hide This works! Thanks a lot. Mate --~--~---

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Tim Lahey
On Jan 19, 2009, at 11:42 PM, Timothy Clemans wrote: > > Is this similar to making it easy to post @interact demonstrations on > webpages including a blog? Well, there is a new Python blog engine being done by some of the same people who did Sphinx. http://zine.pocoo.org/ It would be nice if

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Timothy Clemans
Is this similar to making it easy to post @interact demonstrations on webpages including a blog? On Mon, Jan 19, 2009 at 11:39 PM, William Stein wrote: > > On Mon, Jan 19, 2009 at 8:32 PM, Skylar wrote: >> >> Well, I am certainly no javascript master. I think maybe the best >> that I can do is

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread William Stein
On Mon, Jan 19, 2009 at 8:32 PM, Skylar wrote: > > Well, I am certainly no javascript master. I think maybe the best > that I can do is to understand the simple server and build from there. > > Maybe I can do it in some number of months half-time. It would be a > useful adaptation to introduce

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Skylar
Well, I am certainly no javascript master. I think maybe the best that I can do is to understand the simple server and build from there. Maybe I can do it in some number of months half-time. It would be a useful adaptation to introduce kids to sage that don't necessarily need to be managing who

[sage-support] Re: getting output of one matrix row in two workbook lines

2009-01-19 Thread William Stein
On Mon, Jan 19, 2009 at 11:02 AM, Mate Kosor wrote: > > I am using Sage workbook 3.2.3. in Mozilla Firefox 3.0.5 I have a > problem with matrix output. > > Line: > matrix([[diff(v_r(r, z), r), 0, diff(v_z(r, z), r)/2], [0, 0, 0],[diff > (v_z(r, z), r,)/2, 0, 0]]) > > produces output where one mat

[sage-support] Re: number field question

2009-01-19 Thread William Stein
On Mon, Jan 19, 2009 at 4:46 PM, Alex Raichev wrote: > > Hi everyone: > > I'm applying for a grant from the New Zealand government to fund some > Sage development in the area of computational algebraic and analytic > geometry. For part of the application i need to report on the 'state > of the f

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread William Stein
On Mon, Jan 19, 2009 at 5:05 PM, Robert Bradshaw wrote: > > On Jan 19, 2009, at 4:39 PM, Skylar wrote: > >> I was rather hoping to keep all of the great js/css and everything >> having to do with the cell like the tab completion and the way that >> the input and output are handled - all are fanta

[sage-support] Notebook_minimal + content management system

2009-01-19 Thread Skylar
I am wondering if anyone on this list has managed to glue a cell of the notebook onto a content-driven web application. If anyone has any ideas on this front I would be interested to hear them. Skylar Saveland --~--~-~--~~~---~--~~ To post to this group, send emai

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Robert Bradshaw
On Jan 19, 2009, at 4:39 PM, Skylar wrote: > I was rather hoping to keep all of the great js/css and everything > having to do with the cell like the tab completion and the way that > the input and output are handled - all are fantastic in the notebook. > I was just hoping that I could send a sin

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Robert Bradshaw
On Jan 19, 2009, at 4:27 PM, Skylar wrote: > Yes, I am starting to understand how I can use that. What are the > sleep(0.5), sleep(1)'s there for? I know that they delay execution. > I don't know exactly what that means and why it would be useful in the > code in that docstring. The sleeps are

[sage-support] Re: number field question

2009-01-19 Thread Alex Raichev
Hi everyone: I'm applying for a grant from the New Zealand government to fund some Sage development in the area of computational algebraic and analytic geometry. For part of the application i need to report on the 'state of the field'. Part of my response to this will be to mention that Sage do

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Skylar
I was rather hoping to keep all of the great js/css and everything having to do with the cell like the tab completion and the way that the input and output are handled - all are fantastic in the notebook. I was just hoping that I could send a single cell the way that it is displayed and functionin

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Skylar
Yes, I am starting to understand how I can use that. What are the sleep(0.5), sleep(1)'s there for? I know that they delay execution. I don't know exactly what that means and why it would be useful in the code in that docstring. On Jan 19, 5:52 pm, Robert Bradshaw wrote: > > Yes, use the simp

[sage-support] Re: Finding a duplicated vector in a list of vectors

2009-01-19 Thread David Joyner
You're right. This is what I meant: sage: L = [vector([1,0,0]), vector([1,2,0]), vector([1,0,3]), vector([1,0,0])] sage: LL = [tuple(v.list()) for v in L] sage: Set(LL) {(1, 0, 0), (1, 0, 3), (1, 2, 0)} But that is probably what you said in the first place. Here's another idea: sage: L = [vect

[sage-support] Re: Jordan Normal Form Problem

2009-01-19 Thread Jason Grout
c mullan wrote: > Hi all, > > by general theory I know that an invertible transformation matrix P > exists such that A = ~P*J*P where J is the Jordan Normal Form of a > square matrix A. When I try to calculate P, some strange things > happen.. > > M=MatrixSpace(GF(2),7) > A=M.random_element() >

[sage-support] Re: Finding a duplicated vector in a list of vectors

2009-01-19 Thread slabbe
> I don't know if this is the best idea or not but I definitely have > run into this problem before and what I think I did was > to store the list of vectors as a *Set* of *lists*. Are you sure? Because as vectors, lists are unhashable : ... TypeError: list objects are unhashable --~--~-

[sage-support] Jordan Normal Form Problem

2009-01-19 Thread c mullan
Hi all, by general theory I know that an invertible transformation matrix P exists such that A = ~P*J*P where J is the Jordan Normal Form of a square matrix A. When I try to calculate P, some strange things happen.. M=MatrixSpace(GF(2),7) A=M.random_element() f=A.charpoly() d = lcm([p.degree() f

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Robert Bradshaw
On Jan 19, 2009, at 1:34 PM, Skylar wrote: > > Hello, > > I have been annoying the good folks of #sage-devel hoping to hack > together a way to make notebook() run but be able to retrieve just 1 > cell of a worksheet for insertion into another webpage. Does anyone > have a quick hack that I can

[sage-support] Re: Finding a duplicated vector in a list of vectors

2009-01-19 Thread David Joyner
I don't know if this is the best idea or not but I definitely have run into this problem before and what I think I did was to store the list of vectors as a *Set* of *lists*. On Mon, Jan 19, 2009 at 4:43 PM, slabbe wrote: > > PROBLEM : > In a list of vectors, I want to know if there is a pair of

[sage-support] Finding a duplicated vector in a list of vectors

2009-01-19 Thread slabbe
PROBLEM : In a list of vectors, I want to know if there is a pair of equal vectors. I have two solutions. The first to create an empty list L and append the vectors one per one. If a vector is already in L before adding it, then I found a pair of equal vectors. But looking if a vector belongs to

[sage-support] Minimal notebook - just 1 cell

2009-01-19 Thread Skylar
Hello, I have been annoying the good folks of #sage-devel hoping to hack together a way to make notebook() run but be able to retrieve just 1 cell of a worksheet for insertion into another webpage. Does anyone have a quick hack that I can use here? Thank you, Skylar Saveland --~--~-~--~

[sage-support] getting output of one matrix row in two workbook lines

2009-01-19 Thread Mate Kosor
I am using Sage workbook 3.2.3. in Mozilla Firefox 3.0.5 I have a problem with matrix output. Line: matrix([[diff(v_r(r, z), r), 0, diff(v_z(r, z), r)/2], [0, 0, 0],[diff (v_z(r, z), r,)/2, 0, 0]]) produces output where one matrix row spans 2 rows on web browser worksheet, like this [ diff(v_r(

[sage-support] Re: lost connection to maxima

2009-01-19 Thread mabshoff
On Jan 19, 10:07 am, "ma...@mendelu.cz" wrote: > On 14 Led, 08:50, mabshoff Hi Robert, > To finish this thread: I had another lecture in computer lab today. We > had 2GB RAM, very  very big swap and 15 rather slow students with > allmost no experiences with computer algebra systems ( = short

[sage-support] Re: lost connection to maxima

2009-01-19 Thread ma...@mendelu.cz
On 14 Led, 08:50, mabshoff wrote: > > Your server calls Maxima and without taking a closer look it is > unclear to me if you start a Maxima process per user or not. Overall > Maxima is lighter than Sage primarily because it is all common lisp > and does not use any external libraries per defaul

[sage-support] Re: graph.automorphism_group(translation=True) gives error in 3.2.3

2009-01-19 Thread Robert Miller
Nikos, > It seems that when the vertices are labelled 0,..., n-1 then the > translation is simply 0 <-> n, and the rest is fixed.  At least > this is the case with all examples I've seen.  Can I assume that > this will allways be the case? This is what happens. At first, the graph calls its rela

[sage-support] Re: unstable modules + creating a small library

2009-01-19 Thread John H Palmieri
On Jan 19, 6:28 am, Pierre wrote: > hi all > > I've just realized that SAGE knows about the Steenrod algebra now. > Does it know about unstable modules, too ? No, it doesn't, unfortunately. (Sage doesn't know about tensor products, which has delayed me from implementing various things, like the

[sage-support] Operator for Function Composition

2009-01-19 Thread kcrisman
> > With an operator (say @@) for iterated composition, > I could write simply instead: > > sage: f = lambda e: integrate(e,x) > sage: (f @@ 4)(_) I will ask the stupid question: Can SymbolicComposition etc. in the calculus module be used for this after making something symbolic? (My guess is

[sage-support] unstable modules + creating a small library

2009-01-19 Thread Pierre
hi all I've just realized that SAGE knows about the Steenrod algebra now. Does it know about unstable modules, too ? I have another, related question. I have computed the unstable module structure on the mod 2 cohomology rings of quite a bunch of finite groups, see http://www-irma.u-strasbg.fr/