[sage-devel] Re: MATLAB to Python

2009-03-27 Thread Minh Nguyen
On Fri, Mar 27, 2009 at 8:05 PM, Hazem wrote: > > > Hi everyone, > > I just stumbled upon this: > > http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2644618 > http://ompc.juricap.com/ > > and was wondering if anybody here is working on, or knows somebody > working on a similar project. M

[sage-devel] Re: [sage-edu] Re: sage-moodle integration

2009-03-27 Thread Minh Nguyen
Hi Gustav, On Fri, Mar 27, 2009 at 11:27 AM, Gustav Delius wrote: > > This is indeed a very interesting idea. Luckily something like this > already exists, except that it is not using the whole of Sage but only > Maxima. Take a look at stack.bham.ac.uk. I remember reading about STACK in 2008, b

[sage-devel] Re: Custom inline operators in python

2009-03-27 Thread Hazem
You're welcome to all of you. I guess all those hours spent online didn't go to waste :) Hazem On Mar 27, 9:52 pm, David Joyner wrote: > This is very cool! > > I remember wanting something like this awhile back but right now I > can't remember > what for. Anyway, I think it could be useful. Th

[sage-devel] Re: [sage-edu] Re: sage-moodle integration

2009-03-27 Thread Minh Nguyen
Hi Rob, On Fri, Mar 27, 2009 at 2:42 PM, Rob Beezer wrote: > > Hi Minh, > >> I'll be working on a proof-of-concept integration with Moodle. For >> this, what I have in mind is that, say, one is managing a maths course >> and wants to create a set of self-tests for students to take as the >> cour

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Bill Hart
Thanks, that does answer my questions. I'm not an expert, but I did find the possibility of speeding up python this much was an interesting one. Let's hope they'll succeed, though I guess it may take them years. I hope they are in it for the long run. Bill. On 28 Mar, 01:45, Carl Witty wrote:

[sage-devel] Re: Custom inline operators in python

2009-03-27 Thread David Joyner
This is very cool! I remember wanting something like this awhile back but right now I can't remember what for. Anyway, I think it could be useful. Thanks! On Fri, Mar 27, 2009 at 9:16 PM, Jason Grout wrote: > ... > > One thing that I thought was very interesting was their way of allowing > f

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Carl Witty
On Fri, Mar 27, 2009 at 4:35 PM, Bill Hart wrote: > > Not to press the point, but isn't: > > "Our long-term proposal is to replace CPython's custom virtual machine > with a JIT built on top of LLVM, while leaving the rest of the Python > runtime relatively intact." > > the explanation of how they

[sage-devel] Re: sage environment, autoconf and protocol buffers...

2009-03-27 Thread ghtdak
On Mar 27, 4:17 pm, mabshoff wrote: > On Mar 27, 4:14 pm, ghtdak wrote: > Shooting from the hip: > > ./sage -sh > unset RM > > then build. > I love you man... BTW, with a laser site - shooting from the hip is very effective. HOOAH!! -glenn > > Cheers, > > Michael --~--~-~--~~-

[sage-devel] Custom inline operators in python

2009-03-27 Thread Jason Grout
Hazem wrote: > > Hi everyone, > > I just stumbled upon this: > > http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2644618 I thought this article was very interesting. Thanks for posting it! One thing that I thought was very interesting was their way of allowing for custom inline o

[sage-devel] Re: bug in show method for DiGraphs

2009-03-27 Thread Emily
> > > EXAMPLE: > > sage: G =DiGraph({1:{2: 1}, 2:{1:1}}) > > sage: G.show() > > sage:DiGraph(G.laplacian_matrix()).show() > > > 1. The first call to show draws the graph with an edge missing. > > This seems like a bug. > It is a bug, basically caused by the fact that a digraph can have two separ

[sage-devel] Re: MATLAB to Python

2009-03-27 Thread Minh Nguyen
Hi Hazem, On Fri, Mar 27, 2009 at 10:00 PM, Hazem wrote: > > > We can try it out online: http://ompclib.appspot.com/m2py > > Since I am not familiar with Python all that much, I cannot judge the > quality of the Python code produced. I can only try to run it in Sage > (Python Mode) and see it be

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Bill Hart
Not to press the point, but isn't: "Our long-term proposal is to replace CPython's custom virtual machine with a JIT built on top of LLVM, while leaving the rest of the Python runtime relatively intact." the explanation of how they propose to get some speed out of it. In other words they are usi

[sage-devel] Re: sage environment, autoconf and protocol buffers...

2009-03-27 Thread mabshoff
On Mar 27, 4:14 pm, ghtdak wrote: > I've been wrestling with this a few days and can't quite figure out > whats wrong. > > I'm trying to install Google Protocol Buffers in sage-3.4 which used > to go without a hitch in previous versions.  I've successfully > installed qt-45, vtk, the enthought

[sage-devel] sage environment, autoconf and protocol buffers...

2009-03-27 Thread ghtdak
I've been wrestling with this a few days and can't quite figure out whats wrong. I'm trying to install Google Protocol Buffers in sage-3.4 which used to go without a hitch in previous versions. I've successfully installed qt-45, vtk, the enthought Mayavi2 suite etc., all of which are larger and

[sage-devel] Re: MATLAB to Python

2009-03-27 Thread Hazem
We can try it out online: http://ompclib.appspot.com/m2py Since I am not familiar with Python all that much, I cannot judge the quality of the Python code produced. I can only try to run it in Sage (Python Mode) and see it behaves like the original m-code. I will be trying this out over the next

[sage-devel] Re: MATLAB to Python

2009-03-27 Thread Harald Schilly
On Mar 27, 9:05 pm, Hazem wrote: > http://ompc.juricap.com/ looks very interesting to me. It's also a new project, fresh ideas and well, i think it would be very useful to include it in sage. if you look at the timeline, http://ompc.juricap.com/timeline things like plotting and structures stil

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Joel B. Mohler
On Friday 27 March 2009 02:37:44 pm Bill Hart wrote: > Could you be more specific about what you think these guys don't > understand? Not to answer your question. I'm curious about William's reasoning as well. However, I think they don't give a lot of evidence about why they believe their radi

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread William Stein
(In reference to http://arstechnica.com/open-source/news/2009/03/google-launches-project-to-boost-python-performance-by-5x.ars) On Fri, Mar 27, 2009 at 11:37 AM, Bill Hart wrote: > > Could you be more specific about what you think these guys don't > understand? > > To a non-python expert type th

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Craig Citro
> Could you be more specific about what you think these guys don't > understand? > Were you asking me or William? My impression from reading through the wiki is that these guys *do* know what they're doing, contrary to what William seemed to think, though I suspect neither of us has actually rea

[sage-devel] Re: MATLAB to Python

2009-03-27 Thread William Stein
On Fri, Mar 27, 2009 at 1:05 PM, Hazem wrote: > > > Hi everyone, > > I just stumbled upon this: > > http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2644618 > http://ompc.juricap.com/ > > and was wondering if anybody here is working on, or knows somebody > working on a similar project. M

[sage-devel] MATLAB to Python

2009-03-27 Thread Hazem
Hi everyone, I just stumbled upon this: http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2644618 http://ompc.juricap.com/ and was wondering if anybody here is working on, or knows somebody working on a similar project. MATLAB-Python links are not new (see the (defunct?) MatPy and PyMa

[sage-devel] Re: rich comparision for elements

2009-03-27 Thread Robert Bradshaw
On Mar 27, 2009, at 5:22 AM, Martin Raum wrote: > Hi, > > There seems to be a quite strange behaviour of _richcmp in > structure.element.pyx. If the parents need to be coerced, afterwards > left._richcmp_ is called. But if they don't, left.__cmp__ is called, > hence > assuming a totally ordered p

[sage-devel] Re: Sage derived distributions

2009-03-27 Thread Ondrej Certik
On Sat, Mar 21, 2009 at 10:46 PM, Ondrej Certik wrote: >>> >>> Ondrej >>> >> >> Cool.  Please post here when you setup all the project infrastructure, >> so I can join the mailing list, etc. > > Ok, here is a preliminary stuff: > > http://code.google.com/p/qsnake/wiki/SPD > > and it rocks, it ins

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Bill Hart
Could you be more specific about what you think these guys don't understand? To a non-python expert type there isn't much difference between the article and the wiki information. I was very impressed at the goals as spelled out on the wiki and they seem to have a decent roadmap up. Is it the go

[sage-devel] Re: solving x*exp(-x)

2009-03-27 Thread Ondrej Certik
On Fri, Mar 27, 2009 at 10:07 AM, Robert Dodier wrote: > > On Mar 26, 10:58 pm, Ondrej Certik wrote: > >> So it seems Maxima can't do it. > > There has been recent work on the Lambert W function > which is part of the solution. I don't know if any solve > function can take advantage of that yet.

[sage-devel] Re: API and deprecation warnings

2009-03-27 Thread William Stein
On Fri, Mar 27, 2009 at 4:15 AM, Martin Albrecht wrote: > > Hi there, > > the patch at > >  http://trac.sagemath.org/sage_trac/ticket/5576 > > changes the behaviour of the subs() function for mq.MPolynomialSystem. Instead > of modifying self it now returns a new mq.MPolynomialSystem. This matches

[sage-devel] Re: solving x*exp(-x)

2009-03-27 Thread Robert Dodier
On Mar 26, 10:58 pm, Ondrej Certik wrote: > So it seems Maxima can't do it. There has been recent work on the Lambert W function which is part of the solution. I don't know if any solve function can take advantage of that yet. If you are interested feel free to take it up on the Maxima mailing

[sage-devel] Re: Lazy Infinite Power Series

2009-03-27 Thread Nicolas M. Thiery
On Thu, Mar 26, 2009 at 05:58:17AM -0700, Henryk Trappmann wrote: > > On Mar 26, 5:07 am, mabshoff wrote: > > Well, I will not merge a second implementation as long as there is no > > clear roadmap for resolving the problem. > > The basic functionality of Mike's powerseries class is also contai

[sage-devel] Re: LaTex representation for SymbolicFunctionEvaluation

2009-03-27 Thread Stan Schymanski
Hi Golam, Thanks a lot for looking into this. It would be great if you could fix this along the way when you solve your original problem. Cheers, Stan Golam Mortuza Hossain wrote: > Hi Stan, > > On Fri, Mar 27, 2009 at 5:58 AM, Stan Schymanski wrote: > >> I was thinking of custom defined l

[sage-devel] Re: LaTex representation for SymbolicFunctionEvaluation

2009-03-27 Thread Golam Mortuza Hossain
Hi Stan, On Fri, Mar 27, 2009 at 5:58 AM, Stan Schymanski wrote: > > I was thinking of custom defined latex representations of different > variables or functions, similar to the example I showed in my first > email in this thread. Basically, I would like to be able to give > working names to var

[sage-devel] rich comparision for elements

2009-03-27 Thread Martin Raum
Hi, There seems to be a quite strange behaviour of _richcmp in structure.element.pyx. If the parents need to be coerced, afterwards left._richcmp_ is called. But if they don't, left.__cmp__ is called, hence assuming a totally ordered parent. I don't see any reason for such a behaviour and it rend

[sage-devel] Re: [sage-edu] Re: sage-moodle integration

2009-03-27 Thread Gustav Delius
This is indeed a very interesting idea. Luckily something like this already exists, except that it is not using the whole of Sage but only Maxima. Take a look at stack.bham.ac.uk. Gustav Dr Gustav W Delius, Department of Mathematics University of York, York YO

[sage-devel] API and deprecation warnings

2009-03-27 Thread Martin Albrecht
Hi there, the patch at http://trac.sagemath.org/sage_trac/ticket/5576 changes the behaviour of the subs() function for mq.MPolynomialSystem. Instead of modifying self it now returns a new mq.MPolynomialSystem. This matches the behaviour of other subs() functions and not doing it was a stup

[sage-devel] Re: [sage-edu] Re: sage-moodle integration

2009-03-27 Thread Minh Nguyen
Hi folks, On Tue, Feb 24, 2009 at 5:54 PM, Marshall Hampton wrote: > > I am interested in this too, although the way my university sets up > its moodle server I can't really hack it at all. I would be interested > on working on a concrete project - what is a simple goal to get > started? I'll b

[sage-devel] Re: LaTex representation for SymbolicFunctionEvaluation

2009-03-27 Thread Stan Schymanski
I was thinking of custom defined latex representations of different variables or functions, similar to the example I showed in my first email in this thread. Basically, I would like to be able to give working names to variables (e.g. sui), but display them as I would in a paper if I use the show c

Re: [sympy] Re: [sage-devel] solving x*exp(-x)

2009-03-27 Thread Ondrej Certik
On Thu, Mar 26, 2009 at 11:31 PM, William Stein wrote: > > On Thu, Mar 26, 2009 at 9:58 PM, Ondrej Certik wrote: >> >> Hi, >> >> today I had to solve some function for my chemical kinetics class, so >> I tried it in sympy first and I was surprised it just worked: > > Do you have a nicely documen