[sage-support] Re: Sage editor
On 23/09/2008, at 11:00 AM, Bob Wonderly wrote: I run Sage on my Mac rather than on the web. I often bring up the previous command and edit it then rerun it. The editor is very tedious in that the only way I have figured out how to move the cursor around in the text is one character at a time using the left and right arrow keys and the back-space-delete key. Given a several-line for-loop to edit this can be frustrating. Mmmm... at the command line, ctrl-a and ctrl-e take you to the start and end of the line. In many OS X applications, ctrl-option-b jumps back by a word (roughly standard readline behaviour) but as far as I can tell, nothing like this works in sage's command line (which is a shame.) D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage editor
On 23/09/2008, at 11:19 AM, Jason Grout wrote: David Philp wrote: On 23/09/2008, at 11:00 AM, Bob Wonderly wrote: I run Sage on my Mac rather than on the web. I often bring up the previous command and edit it then rerun it. The editor is very tedious in that the only way I have figured out how to move the cursor around in the text is one character at a time using the left and right arrow keys and the back-space-delete key. Given a several-line for-loop to edit this can be frustrating. Mmmm... at the command line, ctrl-a and ctrl-e take you to the start and end of the line. In many OS X applications, ctrl-option-b jumps back by a word (roughly standard readline behaviour) but as far as I can tell, nothing like this works in sage's command line (which is a shame.) What is the meta key in OS X? For me, pressing escape (my meta key) and then b takes me back a word. Does option-b take you back? Interesting. This looks like a bug at some level. Option-b inserts the integral character (∫), i.e. great S (I think that's what it's meant to be). That's standard OS X behaviour, gets you all sorts of fun characters and accents (π, ß, ∑, µ, ö) Ctrl-option-b takes me back a character, as does ctrl-b. I'm guessing that GNU readline uses ctrl-option as meta on OS X, and that it is not correctly configured in Sage's readline. D == David J Philp Postdoctoral Fellow National Centre for Epidemiology and Population Health Building 62, cnr Mills Rd Eggleston Rd The Australian National University Canberra ACT 0200 Australia T: +61 2 6125 8260 F: +61 2 6125 0740 M: 0423 535 397 W: http://nceph.anu.edu.au/ CRICOS Provider #00120C --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with python within python
On 09/09/2008, at 2:25 AM, Marshall Hampton wrote: I am trying to use the Python Imaging Library which I can only manage to install in my OS X framework verison of python. So as a kludge I am trying to run that system python from within Sage's python. But when I do: import os os.system('/Library/Frameworks/Python.framework/Versions/Current/bin/ python ' + DATA+'im.py') to run my script im.py, it seems that the sage python version is used, not the one in the explicit path I gave. Why is this happening and how do I work around it? When fooling around with system python vs sage python, I've made mileage by manipulating sys.path... when Sage starts up, it sets sys.path to a very different value to what system python uses. Can you give steps to reproduce? (How are you running system python from sage's python?) And... ahem... this may not be the best place to mention it, but if you're up for some pain, you can configure sage such that python is compiled as an OS X framework. You then hopefully wouldn't need the system python from within Sage's python kludge. D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Heavy crashes of SAGE/VM Player on WinXP
The VM Player crashed heavily on my WinXP machine after using SAGE In my experience VMWare is a pretty stable product as is Linux. I would be very surprised if Sage crashed either of them except indirectly, i.e. it exposed an unrelated hardware or software issue with your machine. You could try stress testing your machine in other ways an maybe then try some other VMs. D and wxMaxima simultaneously. This forced me to deinstall and reinstall the VM Player and unzipping the SAGE-zip file - not to mention that there was a decent sequence of rebooting needed. :-( The worksheets seem to be lost as well because I suppose they are somewhere saved in the now corrupted SAGE folder. Does anyone know if this is due some battle between SAGE and wxMaxima in the background? Just asking to understand and to avoid such really time consuming works to set up my machine again. Thanks for your input. Best wishes, J. Using SAGE 3.0.6, VM Player 2.0.5 on WinXP --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: if-statement with infinity or NaN
On 04/09/2008, at 8:22 PM, agi wrote: Hi, I want to check if a number is set to infinity or NaN. So I tried this if-statement: if x!=infinity: print x But this doesn't work when x=a/b with a very small b, so that x becomes infinity. (I'm using SAGE Version 3.0.1) If x = 1.0/0 and y = -1.0/0, then (1) x.is_infinity() and y.is_infinity() are both True (2) x == y is False. (3) x.is_NaN() is False. Have a look at http://sagemath.org/doc/ref/module-sage.rings.real-double.html (search for is_infinity) (There may be a better reference.) D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Inert Integrals and Derivatives?
On 02/09/2008, at 6:22, Robert Dodier [EMAIL PROTECTED] wrote: * sets and matrices not distinguished from lists This is a serious defect in mathematica. It has led to me making mistakes. Most of your other objections were matters of taste. (I agree with most of them but they are mostly things that sage will obviously avoid so they aren't very instructive.) I think the most useful thing for this discussion is to concentrate on the things the 'big four' get right, that sage lacks. * lack of syntax in programming constructs What does this mean? D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Inert Integrals and Derivatives?
On 31/08/2008, at 9:46 AM, Robert Dodier wrote: Robert Bradshaw wrote: On Fri, 29 Aug 2008, Jason Grout wrote: Jason Merrill wrote: The Mathematica syntax is Hold[Integral[x,{x,0,1}]]. This remains unevaluated until it is wrapped with an Evaluate[]. The nice thing about this syntax is that it works for any kind of expression (not just integrals). So maybe we could have something like a FormalExpression class whichdoes the same thing (has an argument that it doesn't evaluate). Not sure how one would do this in Python though... (Maybe via preparsing somehow, it would still be pretty hard...) From the direction this discussion has taken I'm guessing that nobody here is aware that selective evaluation is trivial in Lisp, and Maxima. I'm aware... ;-) And I think that's why we Mathematica fanboys are going on about it. It is also why I've floated ideas about why I think lisp could be important to sage. This kind of stuff yanks my chain in a bad way, unfortunately. I gather it is more interesting to reinvent the wheel than learn how to use existing, unfamiliar wheel technology. Few of the core sage developers particularly know, or want to know, lisp. William is AIUI uninterested in it mostly because he can't have a fast (i.e. shared memory) link between lisp and python. Which is sensible. I've made a few slightly snarly comments about reimplementing lisp, partly and badly, but I was half serious. What I would like to see is (1) a standard way of representing arbitrary information in sage, using expression trees like in lisp (2) that gradually becoming the standard way of passing information around (3) when it gets to actually doing things, doing the work in 'current sage' That's not a very concrete idea because I don't know sage or python particularly well. It might be too late for sage to do that. What makes it worse is that there is talk of copying Maple and Mathematica notation, which both have all sorts of warts. Blechh. Well, I'm going to miss some of the more concise notation of mathematica. There isn't much doubt IMHO that mathematica at least is mostly well thought-out. But I don't think anyone should necessarily copy it as an integral part of sage. D == David J Philp Postdoctoral Fellow National Centre for Epidemiology and Population Health Building 62, cnr Mills Rd Eggleston Rd The Australian National University Canberra ACT 0200 Australia T: +61 2 6125 8260 F: +61 2 6125 0740 M: 0423 535 397 W: http://nceph.anu.edu.au/ CRICOS Provider #00120C --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] compilation problem with sage 3.0.3 on mac
Hi I suppose this is more a bug report than a request for help, but if you have any suggestions please let me know. I can't compile sage 3.0.3 on mac. System is OS X 10.5.3; 64 bit Intel. fink is installed, and therefore non-system versions of some programs are in the path (e.g. possibly python, make). My install log is at: https://alliance.anu.edu.au/access/content/group/hpv/public/install.log (please let me know if you have a problem with the link, the website sucks) make hangs at the last step (it didn't continue when I left it overnight). The problem originally occurred when I ran sage -upgrade. So I downloaded the source and had the same problem. I am going to see if I can compile 3.0.2 now. D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: compilation problem with sage 3.0.3 on mac
On 09/07/2008, at 11:21 AM, William Stein wrote: On Tue, Jul 8, 2008 at 6:17 PM, David Philp [EMAIL PROTECTED] wrote: Hi I suppose this is more a bug report than a request for help, but if you have any suggestions please let me know. I can't compile sage 3.0.3 on mac. System is OS X 10.5.3; 64 bit Intel. fink is installed, and therefore non-system versions of some programs are in the path (e.g. possibly python, make). Try building from scratch without fink. You can temporarily disable fink by moving /sw to /sw.old That worked, thanks. D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---