[sage-devel] Re: Teach a man to fish
I have put some candidate code up on the sage-trac site. I had some funny errors trying to upload a patch for the calculus all.py, so I gave up. It just needs a line like from desolvers import desolve, desolve_laplacian, desolve_system I got somewhat hung up on thinking about how to change these functions so that they give better output - easier to read at least, but I have shelved that for now. I want to focus on rewriting the PHCpack interface, and then I plan on returning to desolvers and the plot_vector_field command. All I did for now was get the tests to pass. The trac ticket is 398: http://www.sagemath.org:9002/sage_trac/ticket/398 -Marshall On May 9, 7:08 am, David Joyner [EMAIL PROTECTED] wrote: Since you asked:-) A small project would be to look at the DE-related code in the *.sage files contained in SAGEHOME/examples/calculus and create a SAGE/Python module from them. They may be fine as is or may need some changes (I wrote them but would very much appreciate another person's perspective and criticism). As far as creating a hg patch, the sectionhttp://www.sagemath.org/doc/html/prog/node68.html says it all. Basic steps: 1) create a clone 2) do your work 3) run doc tests on each file (sage -t fullpath/filename.py ) 4) if you prefer emacs to vi, type export EDITOR=emacs (assuming you use bash) 5) hg_sage.add([filenames]) to add new files to your repository 6) hg_sage.commit() 7) hg_sage.bundle('mybundle') (this creates the patch mybundle.hg in SAGEHOME or SAGEHOME/devel, I forget which) On 5/9/07, Hamptonio [EMAIL PROTECTED] wrote: Hi, Now that my semester is winding down, I would like to learn to contribute more actively to SAGE. I do need a little hand-holding when it comes to hg and submitting patches. I think it would be best if I started with a very small project to learn the mechanics of contributing, and then I will get more ambitious. Perhaps someone can suggest a little project? Currently I am most interested and/or competent in the following areas: 1) Integrating polymake/cddlib. I do a lot of heavy-duty exact convex hull computations. I would like some sort of linear programming capability in SAGE - cddlib supplies that but I am not sure it is a great package for that. 2) Integrating PHCpack. I have already done a crude rewrite of phcparser.py so that it works in blackbox mode (the '-b' option). It would be nice to add some graphical functions as in PHCmaple - http://www.ima.umn.edu/~leykin/PHCmaple/. 3) Integrating/maintaining the biopython package. Probably no one else here cares about that but I'll toss it out just in case. I teach a bioinformatics course and I want to use SAGE for my course next spring. 4) Differential equations. I teach ODEs and linear algebra a lot, and I would like to someday incorporate SAGE into my teaching. Cheers, Marshall Hampton University of Minnesota Duluth --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: [sage-devel] Re: Teach a man to fish
1) I started moving desolvers.py into SAGEHOME/devel/sage-main/build/sage/calculus/. Is this the appropriate place? Seems like a good place to me. 2) You use Integer(i) instead of just i, which seems unnecessary. I changed all of these, but I am wondering why they were as they were. The reason to use Integer(i) in general is that, in .py and .pyx files, if you use just i, Python will use Python ints, which may or may not be what you want (it's somewhat useful as loop variables, but otherwise you'd probably rather be using an Integer). David --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Fwd: [sage-devel] Re: Teach a man to fish
On 5/11/07, David Roe [EMAIL PROTECTED] wrote: 1) I started moving desolvers.py into SAGEHOME/devel/sage-main/build/sage/calculus/. Is this the appropriate place? Seems like a good place to me. 2) You use Integer(i) instead of just i, which seems unnecessary. I changed all of these, but I am wondering why they were as they were. The reason to use Integer(i) in general is that, in .py and .pyx files, if you use just i, Python will use Python ints, which may or may not be what you want (it's somewhat useful as loop variables, but otherwise you'd probably rather be using an Integer). Also it can be very useful for typing checking and flagging errors. E.g., if a user passes in something that isn't an integer, and you write Integer(i), they'll get an appropriate error. If you do int(i), it will take the floor and silently seem to work, but maybe give nonsense. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Fwd: [sage-devel] Re: Teach a man to fish
You're right -- the docs should be changed. We moved everything to www.sagemath.org a while ago On 5/11/07, Hamptonio [EMAIL PROTECTED] wrote: OK, I changed back to using the Integer casts. By the way, in the document devel/sage-main/mercurial-howto.txt, it says to get the latest version by doing sage -hg pull http://sage.math.washington.edu/sage/hg/sage-main which gave me an error. After poking around I used sage -hg pull http://www.sagemath.org/hg/sage-main instead. Should those instructions be changed or am I doing something wrong? Thanks, Marshall On May 11, 1:54 pm, William Stein [EMAIL PROTECTED] wrote: On 5/11/07, David Roe [EMAIL PROTECTED] wrote: 1) I started moving desolvers.py into SAGEHOME/devel/sage-main/build/sage/calculus/. Is this the appropriate place? Seems like a good place to me. 2) You use Integer(i) instead of just i, which seems unnecessary. I changed all of these, but I am wondering why they were as they were. The reason to use Integer(i) in general is that, in .py and .pyx files, if you use just i, Python will use Python ints, which may or may not be what you want (it's somewhat useful as loop variables, but otherwise you'd probably rather be using an Integer). Also it can be very useful for typing checking and flagging errors. E.g., if a user passes in something that isn't an integer, and you write Integer(i), they'll get an appropriate error. If you do int(i), it will take the floor and silently seem to work, but maybe give nonsense. William -- William Stein Associate Professor of Mathematics University of Washington http://www.williamstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---