Re: [sage-support] Re: factoring in a number field

2012-02-27 Thread William Stein
On Sun, Feb 26, 2012 at 4:59 PM, Joel B. Mohler wrote: > On Feb 26, 7:35 pm, "Joel B. Mohler" wrote: >> After having been a heavy sage user for several years, I now have >> virtually not touched it for several more years.  Returning now on a >> lark, I'm feeling rather confused because I'd think

Re: [sage-support] factoring in a number field

2012-02-27 Thread Justin C. Walker
On Feb 26, 2012, at 17:13 , William Stein wrote: > On Sunday, February 26, 2012, Joel B. Mohler wrote: >> On Feb 26, 7:35 pm, "Joel B. Mohler" wrote: >>> After having been a heavy sage user for several years, I now have >>> virtually not touched it for several more years. Returning now on a >>

[sage-support] Re: CSV file

2012-02-27 Thread Nils Bruin
On Feb 27, 6:26 am, Jason Grout wrote: > How about the matrix constructor reads from an iterator and recognizes > csv?  We could even use the numpy savetxt and loadtxt functions to more > sophisticated parsing. You can already do: sage: import csv sage: M=matrix(RR,list(csv.reader(open("m.csv"))

[sage-support] Re: submatrix

2012-02-27 Thread Jason Grout
On 2/27/12 10:43 AM, P Purkayastha wrote: On Monday, February 27, 2012 10:27:29 PM UTC+8, Jason Grout wrote: See http://www.sagemath.org/doc/reference/sage/matrix/docs.html#indexing That's awesome! I didn't know all of that was possible! We tried to make it accessible by giving it its

[sage-support] Re: submatrix

2012-02-27 Thread P Purkayastha
On Monday, February 27, 2012 10:27:29 PM UTC+8, Jason Grout wrote: > > See http://www.sagemath.org/doc/reference/sage/matrix/docs.html#indexing > > > That's awesome! I didn't know all of that was possible! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: factoring in a number field

2012-02-27 Thread Jason Grout
On 2/26/12 7:13 PM, William Stein wrote: Um, isn't sage 4.3 ancient? From http://sagemath.org/src-old/, it was released on Christmas Eve, 2009. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@g

[sage-support] Re: CSV file

2012-02-27 Thread Jason Grout
On 2/24/12 1:32 PM, Volker Braun wrote: We do get questions about "how to read matrix from csv" quite regularly. Of course its just a few lines of code, but I think it would be nice to have a matrix_from_file('fname.csv') function that imports csv and perhaps others (gnumeric/ooffice/excel). Any

[sage-support] Re: submatrix

2012-02-27 Thread Jason Grout
On 2/26/12 1:37 PM, Albert wrote: Hi Sage-Team, I have an idea, what might be useful for Sage. There is the command submatrix, which gets a starting column and a starting row and the number of columns and rows that you want to have for that submatrix after the starting point. Wouldn't it be more

Re: [sage-support] factoring in a number field

2012-02-27 Thread Jeroen Demeyer
On 2012-02-27 01:58, D. S. McNeil wrote: >> sage: K.=QuadraticField(-1) >> sage: ((I+1)*(I+1)).factor() > > This may have been fixed since the last time you looked at Sage: what > version are you running? It seems to work for me in both 4.8 and 5.0 > beta. > > sage: K.=QuadraticField(-1) > sage: