Re: [sage-support] Re: converting an R vector to a list

2010-04-14 Thread Olivier Picard
I am using the fuction r.scan() because i need to read big data file,since read_table() or read_csv() is not recommended for those kind of data, witch function would be the best one, sageobj() or x.sage(), or would both do the job well, thanks in advance for you answer On Tue, Apr 13, 2010 at 10:2

[sage-support] Re: Degree 120 splitting field

2010-04-14 Thread Rob Beezer
Alec, Perfect, that's just what I needed. Much better. Since the NumberField constructor should complain if the next polynomial (the quotient of the division) is not irreducible, the students can just proceed on faith that the result of the division is the remaining portion of a factorization an

[sage-support] Re: Yamanouchi words

2010-04-14 Thread Alec Mihailovs
On Apr 14, 12:47 am, Drini wrote: > I'm confused > abouthttp://www.sagemath.org/doc/reference/sage/combinat/yamanouchi.html > it's documentation for 4.3.5 but it's been the same since 4.3.1 > > Is there a class? > functions? > or is it just a random note about those words? The file devel/sage/sa

[sage-support] Re: Degree 120 splitting field

2010-04-14 Thread Alec Mihailovs
On Apr 14, 2:08 pm, Rob Beezer wrote: > Rinse, repeat.  First iteration is below.  By the time I get to degree > 3 the factorizations are taking about 8 hours.  My question: is there > a more efficient way to do this? Divisions are faster than the factorization - divide by (x-a), then by (x-b),

[sage-support] Re: Strassen matrix multiplication

2010-04-14 Thread William Stein
On Fri, Apr 9, 2010 at 1:19 AM, Anders Kabell Kristensen wrote: > Hello William, > I am currently looking for an implementation of Strassens algorithm for > matrix multiplication for use in Python. I'm interested in using the > implementation as a black box, so an interface to a C/C++ implementati

Re: [sage-support] Permutations with itertools.chain

2010-04-14 Thread William Laffin
Thank you Mike and Jason! I completely forgot about the * notation. You have both been very helpful. On Wed, Apr 14, 2010 at 9:41 PM, Mike Hansen wrote: > On Wed, Apr 14, 2010 at 11:39 AM, William Laffin > wrote: >> Hello helpful sage-support list! >> >> Is this the following normal behavior?

Re: [sage-support] Permutations with itertools.chain

2010-04-14 Thread Mike Hansen
On Wed, Apr 14, 2010 at 11:39 AM, William Laffin wrote: > Hello helpful sage-support list! > > Is this the following normal behavior? > ... > sage: for x in itertools.chain(itertools.imap(Permutations,range(4))): >    print x > : > Standard permutations of 0 > Standard permutations of 1 > Stan

[sage-support] Re: Permutations with itertools.chain

2010-04-14 Thread Jason Bandlow
Hello, I think this is normal. Perhaps you meant the following (note the * which expands the single argument into its components): sage: for x in itertools.chain(*itertools.imap(Permutations,range(4))): print x [] [1] [1, 2] [2, 1] [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1]

[sage-support] Permutations with itertools.chain

2010-04-14 Thread William Laffin
Hello helpful sage-support list! Is this the following normal behavior? sage: import itertools sage: for x in itertools.imap(Permutations,range(4)): : for y in x: : print y : [] [1] [1, 2] [2, 1] [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1] sage: for x in it

[sage-support] Degree 120 splitting field

2010-04-14 Thread Rob Beezer
I'm designing a set of exercises for my students that are studying Galois theory for the first time. I thought it would be "fun" for them to create a tower of field extensions that creates a splitting field with a Galois group that is not solvable (S_5 in this case). So starting with the polynomi

[sage-support] Re: sage-mode bug?

2010-04-14 Thread Luis Finotti
On Apr 14, 3:17 am, Dan Drake wrote: > Hello sage-support (but mostly Nick Alexander), > > I'm starting to use Sage mode, and overall it seems quite nice but today > it locked up my emacs session. I was using a "run-sage" > (...) > so, when point was at the "u" > in "exhau", I hit tab -- and the

[sage-support] sage-mode bug?

2010-04-14 Thread Dan Drake
Hello sage-support (but mostly Nick Alexander), I'm starting to use Sage mode, and overall it seems quite nice but today it locked up my emacs session. I was using a "run-sage" window with the following: sage: load /path/to/my/file.sage sage: n = 0 sage: while True: : print 2*