[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread dahl.joac...@gmail.com
It's a good point that for most work you don't type in matrices by hand. What is more useful is probably various ways of inspecting matrices easily (print submatrices, plot the sparsity pattern, evaluate expressions involving the matrix, etc.) On 20 Aug., 00:21, Simon King wrote: > On 19 Aug., 2

[sage-devel] Re: interacts within interacts

2011-08-19 Thread Rob Beezer
On Aug 19, 9:07 pm, Benjamin Jones wrote: > Woops. That might have been me pasting: > > while True: >     os.fork() > > into the textbox on your homepage, Rob. Sorry.. A couple of nice things about the singlecell *service* are that (a) the computations are done on sagemath.org and (b) when J

[sage-devel] Number fields without generators

2011-08-19 Thread Rob Beezer
I'm trying to compute some eigenspaces for matrices over number fields, mostly because I can, in order to build some doctests. Eigenspace routine uses the root_field() method on an irreducible factor of a characteristic polynomial to create a field containing eigenvalues. Then the routine tries to

[sage-devel] Re: interacts within interacts

2011-08-19 Thread Jason Grout
On 8/19/11 11:07 PM, Benjamin Jones wrote: On Fri, Aug 19, 2011 at 11:00 PM, Rob Beezer wrote: On Aug 19, 7:56 pm, Jason Grout wrote: To whet your appetite, though, I took the example Rob Beezer now has on his front page: http://buzzard.ups.edu/ Thanks, Jason, for slash-dotting my site whe

Re: [sage-devel] Re: interacts within interacts

2011-08-19 Thread Benjamin Jones
On Fri, Aug 19, 2011 at 11:00 PM, Rob Beezer wrote: > On Aug 19, 7:56 pm, Jason Grout wrote: >> To whet your appetite, though, I took the example Rob Beezer >> now has on his front page: >> >> http://buzzard.ups.edu/ > > Thanks, Jason, for slash-dotting my site when my students are all > looking

[sage-devel] Re: interacts within interacts

2011-08-19 Thread Rob Beezer
On Aug 19, 7:56 pm, Jason Grout wrote: > To whet your appetite, though, I took the example Rob Beezer > now has on his front page: > > http://buzzard.ups.edu/ Thanks, Jason, for slash-dotting my site when my students are all looking for their reading assignments on a Friday night, a week before c

Re: [sage-devel] interacts within interacts

2011-08-19 Thread Benjamin Jones
On Fri, Aug 19, 2011 at 9:56 PM, Jason Grout wrote: > As soon as things slow down a bit, Alex Kramer or I will document some of > the new things that Ira, Alex, and I did with interacts over the summer.  To > whet your appetite, though, I took the example Rob Beezer now has on his > front page: >

Re: [sage-devel] Lion

2011-08-19 Thread William Stein
On Fri, Aug 19, 2011 at 4:22 PM, Ivo Hedtke wrote: > Hi, > > What is the current status of sage on Lion? My understanding is that basically nobody knows how to build Maxima (on top of ECL) on Lion yet, but everything else is fine. Incidentally, that's also exactly the current status of Sage on L

[sage-devel] interacts within interacts

2011-08-19 Thread Jason Grout
As soon as things slow down a bit, Alex Kramer or I will document some of the new things that Ira, Alex, and I did with interacts over the summer. To whet your appetite, though, I took the example Rob Beezer now has on his front page: http://buzzard.ups.edu/ and made it work with any of the

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Jason Grout
On 8/19/11 5:21 PM, Simon King wrote: The line break replaces the semicolon, hence, the example that you give corresponds to [1,2,;3,4] (which hopefully is a syntax error in Matlab), while the second version becomes [1,2;3,4] (which seems to be the matlab idea of a matrix). Again, matlab is (s

Re: [sage-devel] Lion

2011-08-19 Thread Ivo Hedtke
Hi, What is the current status of sage on Lion? Ivo. Am 25.07.2011 um 05:10 schrieb Justin C. Walker: > > On Jul 24, 2011, at 15:30 , Dima Pasechnik wrote: > >> well, indeed, it would perhaps make sense to try to add the corresponding >> library regardless of the compiler... > > I kind of s

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Robert Bradshaw
On Fri, Aug 19, 2011 at 3:21 PM, Simon King wrote: > On 19 Aug., 21:26, Jason Grout wrote: >> But then what about: >> >> [1, 2, >> 3, 4] > > Note the small difference: > [1,2, > 3,4] > is a list in Python. But > [1,2 > 3,4] > (if I am not mistaken) is a syntax error in Python, and thus the > prep

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Robert Bradshaw
On Fri, Aug 19, 2011 at 2:25 PM, Nils Bruin wrote: > On Aug 19, 12:26 pm, Jason Grout wrote: >> On 8/19/11 1:45 PM, Robert Bradshaw wrote: >> >> >      [a, b; c, d].change_ring(QQ) > > You'd have to take care that > > [1.0001, 1.0; 2.0, > 3.0].change_ring(RealField(100)) > > d

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Simon King
On 19 Aug., 21:26, Jason Grout wrote: > But then what about: > > [1, 2, > 3, 4] Note the small difference: [1,2, 3,4] is a list in Python. But [1,2 3,4] (if I am not mistaken) is a syntax error in Python, and thus the preparser could preprocess it and turn it into a matrix: The line break replac

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Jason Grout
On 8/19/11 4:25 PM, Nils Bruin wrote: In analogy to (a,) being a singleton, this should probably be [a,b,c,d;] Interesting. In python, this is often stated as "the comma operator makes a tuple, not the parentheses". So we're saying that the semicolon is what makes a matrix. Interesting. S

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Jason Grout
On 8/19/11 3:59 PM, William Stein wrote: On Fri, Aug 19, 2011 at 1:50 PM, Volker Braun wrote: For the 1-row matrix case, how about [1, 2, 3, 4; ] This is similar to the one-element tuple (1,) in Python. I like that. Interestingly, it works in MATLAB, but not in PARI. It makes sense to work

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Nils Bruin
On Aug 19, 12:26 pm, Jason Grout wrote: > On 8/19/11 1:45 PM, Robert Bradshaw wrote: > > >      [a, b; c, d].change_ring(QQ) You'd have to take care that [1.0001, 1.0; 2.0, 3.0].change_ring(RealField(100)) doesn't lose precision on the way, which suggests that "[;]" syntax s

Re: [sage-devel] wiki.sagemath.org

2011-08-19 Thread Ivo Hedtke
Hi, I have problems with it. I click on "Login" and use my username and password from trac. That works. But if I click on a link, say "Settings", I am not logged in anymore: "You must login to use this action: userprefs." Ivo. Am 19.08.2011 um 22:09 schrieb William Stein: > Hi, > > We have

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread William Stein
On Fri, Aug 19, 2011 at 1:50 PM, Volker Braun wrote: > For the 1-row matrix case, how about > [1, 2, 3, 4; ] > This is similar to the one-element tuple (1,) in Python. I like that. Interestingly, it works in MATLAB, but not in PARI. William -- To post to this group, send an email to sage-deve

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Volker Braun
For the 1-row matrix case, how about [1, 2, 3, 4; ] This is similar to the one-element tuple (1,) in Python. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit t

[sage-devel] wiki.sagemath.org

2011-08-19 Thread William Stein
Hi, We have changed how accounts work for http://wiki.sagemath.org. To access the wiki, use your trac account. Your old wiki account *will not work*. See http://trac.sagemath.org/sage_trac/ for how to get a trac account. (Spammers: Please don't waste your time trying to get an account, since yo

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Jason Grout
On 8/19/11 1:45 PM, Robert Bradshaw wrote: [a, b; c, d].change_ring(QQ) What if I want a 1-row matrix. Will this work? [a,b,c,d] Of course, this will be a problem since that is valid list syntax. For that reason, it seems more consistent that the semicolon is a shortcut for doubly-ne

Re: [sage-devel] documenting a new package out of Sage Math tree.

2011-08-19 Thread William Stein
On Fri, Aug 19, 2011 at 6:29 AM, Pedro Cruz wrote: > > I am creating a new package in python separated from Sage tree (following > [1]) but depends entirely on Sage Math library (and also on Sage Notebook), > However >    sage -t somemodule.py > is not working because of imports. ==> But using thi

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread kcrisman
> More on topic, I strongly agree with the sentiments that we are trying > to create a viable alternative, not a clone. Sage does lack a concise > syntax for matrices which are a pretty basic type, and I think this > deficiency is probably worth addressing with the preparser. The [a, b; > c, d] syn

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Volker Braun
For the record, Maple also provides a specialized matrix/vector constructor <1,2,3> = column vector, <1|2|3> = row vector and nested <> brackets created matrices by gluing vectors together, so <<1,2>|<3,4>> = transpose( <<1|3>,<2|4>>) -- To post to this group, send an email to sage-devel@goo

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Robert Bradshaw
On Fri, Aug 19, 2011 at 5:27 AM, leif wrote: > On 19 Aug., 12:12, Harald Schilly wrote: >> On Friday, August 19, 2011 12:02:14 PM UTC+2, leif wrote: >> >> > It shouldn't be that hard to implement functions which at least >> > partially translate MATLAB / Mma / whatever syntax (passed as a >> > st

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread daly
On Fri, 2011-08-19 at 05:27 -0700, leif wrote: > ___ > * I vaguely remember to have once seen some [quite old?] list / table > mapping Mma function names to Sage's, but I'm not aware it is part of > the Sage distribution or prominently advertised. I may be wrong of > course.

[sage-devel] documenting a new package out of Sage Math tree.

2011-08-19 Thread Pedro Cruz
I am creating a new package in python separated from Sage tree (following [1]) but depends entirely on Sage Math library (and also on Sage Notebook), However sage -t somemodule.py is not working because of imports. ==> But using this package normally causes no problems with imports! I'm f

Re: [sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Harald Schilly
On Fri, Aug 19, 2011 at 14:27, leif wrote: > I didn't have a fully-fledged compiler (or clone) in mind … ok, good ;) About your tutorials and documentation ideas, I think what could help at least for the start is to mention the respective function in the documentation. Then, when someone searche

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Jason Grout
On 8/19/11 2:55 AM, Johan S. R. Nielsen wrote: On the other hand, I think it would of course think it would be great if all functionality needed for numerics people would be readily available in Sage. Since we rely so much on numpy/scipy for this stuff, maybe we could continue to invite some o

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Jason Grout
On 8/19/11 4:54 AM, dahl.joac...@gmail.com wrote: Personally I don't mind that the syntax is different. I was about to give some examples of indexing and slicing of Numpy arrays, which I remembered to be odd for matrices, but then I realized that the indexing/slicing works exactly like I expect

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread leif
On 19 Aug., 12:12, Harald Schilly wrote: > On Friday, August 19, 2011 12:02:14 PM UTC+2, leif wrote: > > > It shouldn't be that hard to implement functions which at least > > partially translate MATLAB / Mma / whatever syntax (passed as a > > string, or from a file) to corresponding Sage expressio

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Harald Schilly
On Friday, August 19, 2011 12:02:14 PM UTC+2, leif wrote: > > > It shouldn't be that hard to implement functions which at least > partially translate MATLAB / Mma / whatever syntax (passed as a > string, or from a file) to corresponding Sage expressions and > commands, analoguous to preparse().

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Harald Schilly
Hi, I also studied numerical mathematics and I completely agree on you: On Friday, August 19, 2011 9:55:58 AM UTC+2, Johan S. R. Nielsen wrote: > > that's a very small syntax price to pay for … > I would also say that this is not the point at all. Parsing a string representing a matrix should be

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread leif
On 19 Aug., 09:55, "Johan S. R. Nielsen" wrote: > However, I really don't believe that the current matrix-construction > syntax is what is seriously keeping Matlab people away from Sage -- > and if it is, then that's simply silly! Comparing > > M = [1 2; >      3 4; >      5 6] > > with > > M = ma

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread dahl.joac...@gmail.com
Personally I don't mind that the syntax is different. I was about to give some examples of indexing and slicing of Numpy arrays, which I remembered to be odd for matrices, but then I realized that the indexing/slicing works exactly like I expect it to, e.g., >>> A[:, i] picks out the i'th column

[sage-devel] Re: MATLAB: viable alternative...?

2011-08-19 Thread Johan S. R. Nielsen
> > Seems this thread *has* been hijacked. ;-) Just want to add my opinion, which belongs in some void between the original thread and the hijacked one ;-) I am a ph.d. student in algebra, but have a background in computer science. I don't do much numerics anymore, so I'm not exactly the right p