[sage-support] Re: Heavy crashes of SAGE/VM Player on WinXP
Dave, thanks. That sounds pretty reasonable. I will give it a try. Best wishes, J. On 08.09.2008 04:13, davedo2 wrote: > A different approach that might actually teach you more would be to > download the current version of vmware server from here: > > http://www.vmware.com/download/server/ > > Then install a minimal version of Linux (I would suggest Ubuntu 8.04) > and install the SAGE source code under it. No more need to rely on > large SAGE VM modules, just upgrade SAGE when new releases come out. > You can easily download worksheets to Linux (and/or move/copy them to > windoze via Samba.) > > Just a thought, I've been operating that way for several years with > ZERO problems...Dave > > On Sep 7, 4:41 am, Jannick Asmus <[EMAIL PROTECTED]> wrote: >> ... just for the record >> >> On 07.09.2008 12:29, Jannick Asmus wrote: >> >>> Could you name any other VMs - I thought that it was obligatory >>> to use VM Player. >> http://en.wikipedia.org/wiki/List_of_VMware_software > > > --~--~-~--~~~---~--~~ 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] How to change PATH from Sage?
Dear team, in some Sage/Cython program i am also using some executables. More precisely, it is a Gap sub-process that needs to run these executables. Now i wonder whether it is possible to change my PATH from within a Sage session. I know that i can get the PATH with sage: os.environ['PATH'] and so i tried to change os.environ. But it didn't help, apparently Sage did not tell the operating system where it should look for the executables that the Gap process needs. What can i do? Yours Simon --~--~-~--~~~---~--~~ 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: How to change PATH from Sage?
Dear David, On Sep 8, 2:09 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: > I haven't tried this but I would imagine you could run a bash script > which sets the environment variables like this: > ... It did not work. I wrote a shell script SetMyPath that changes the PATH, and i tested that from the shell . SetMyPath and source SetMyPath both work (simply doing ./SetMyPath would not change PATH because it would live in a different subshell) But when i am in Sage, neither sage: !. SetMyPath nor sage: !source SetMyPath nor sage: !./SetMyPath work. Still, os.environ['PATH'] has the same content as before. Yours Simon --~--~-~--~~~---~--~~ 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: Erratic behaviour with "Evaluate All" in a notebook
Indeed, I believe that I have experienced the same. On Aug 27, 6:02 am, Stan Schymanski <[EMAIL PROTECTED]> wrote: > Dear all, > > When I click on Action... -> Evaluate All in my notebooks (sage 3.1.1 > on Mac OS 10.4.11), the cells do not seem to be evaluated in the > chronological order, leading to error messages about undefined > variables etc. The errors happen in different cells every time I do > Action... -> Restart Worksheet, Action... -> Evaluate All. > > Has anyone else observed such behaviour? > > Cheers > Stan --~--~-~--~~~---~--~~ 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
davedo2 wrote: > A different approach that might actually teach you more would be to > download the current version of vmware server from here: > > http://www.vmware.com/download/server/ > > Then install a minimal version of Linux (I would suggest Ubuntu 8.04) > and install the SAGE source code under it. No more need to rely on > large SAGE VM modules, just upgrade SAGE when new releases come out. > You can easily download worksheets to Linux (and/or move/copy them to > windoze via Samba.) > > Just a thought, I've been operating that way for several years with > ZERO problems...Dave Also, over the weekend I built a VirtualBox image of Sage (VirtualBox is a free piece of software similar to VMWare). Assuming it finished building (at the office), I'll be posting it soon. Just as mentioned above, I just downloaded VirtualBox, created an empty image, installed Ubuntu JeOS 8.04 on it, then installed Sage on it. I'm not sure of the relative benefits of VirtualBox versus VMWare, but it seems like VirtualBox is a more streamlined, lighter-weight application. It's also free (as in there is an open-source edition and also another edition that is more featured, but free for academic/personal use). Thanks, Jason --~--~-~--~~~---~--~~ 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: converting between lists and vectors?
This is related to http://trac.sagemath.org/sage_trac/ticket/3847 I have just put up a patch that fixes this issue. Best, Alex On Aug 28, 8:35 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > There are two separate things going on here. > > I think this is a bug: > > sage: vector(range(3)) > TypeError: unable to find a common ring for all elements --~--~-~--~~~---~--~~ 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: How to change PATH from Sage?
On Mon, Sep 8, 2008 at 7:57 AM, Simon King <[EMAIL PROTECTED]> wrote: > > Dear team, > > in some Sage/Cython program i am also using some executables. More > precisely, it is a Gap sub-process that needs to run these > executables. > > Now i wonder whether it is possible to change my PATH from within a > Sage session. > > I know that i can get the PATH with > sage: os.environ['PATH'] > and so i tried to change os.environ. But it didn't help, apparently > Sage did not tell the operating system where it should look for the > executables that the Gap process needs. > > What can i do? > I haven't tried this but I would imagine you could run a bash script which sets the environment variables like this: sage: !/path/to/myscript Any system command can be run like this: sage: !date Mon Sep 8 08:09:12 EDT 2008 > Yours > Simon > > > > --~--~-~--~~~---~--~~ 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: Tutorial examples for 3d plots don't work on OS X 10.5 or 10.4
a few days ago i was banging my head against the wall with the tutorial after installing sage, then just now decided to search the support group here. i have the same sort of behavior as gary, with the jmol site working fine, as well as the sagenb site: http://groups.google.com/group/sage-support/browse_thread/thread/2c1f6a7790c4fdc5/9402f3d635b0374f?lnk=gst&q=jmol# then i read walter's account: http://groups.google.com/group/sage-support/browse_thread/thread/1cbc1c2c54d09805/a17b9b34965b25e8?lnk=gst&q=jmol#a17b9b34965b25e8 cutting and pasting the examples from the tutorial into my own local notebook (http://localhost:8000/home/admin/0/) work fine, but running the tutorial in its own window (http://localhost:8000/doc/live/tut/ node19.html) fails. On Sep 6, 11:20 am, "Timothy Clemans" <[EMAIL PROTECTED]> wrote: > This is a known problem. Unfortunately there is several new bugs in > the current Notebook, and this is one of them. We are working on a > testing protocol for the Notebook so future releases don't have new > bugs in the Notebook. > > On Sat, Sep 6, 2008 at 11:59 AM, seb <[EMAIL PROTECTED]> wrote: > > > I just get a black (blank) jmol applet. Is this a known problem? --~--~-~--~~~---~--~~ 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: Erratic behaviour with "Evaluate All" in a notebook
Dear Mike, Thanks a lot for the patch. Unfortunately, I am travelling until 23 Sept and unable to hook up my laptop to the internet, so I can only test it when I come back. Cheers Stan On Mon, Sep 8, 2008 at 11:32 AM, Mike Hansen <[EMAIL PROTECTED]> wrote: > > Hi Stan, > > I've posted a patch at http://trac.sagemath.org/sage_trac/ticket/3075 > which should fix this issue. Could you please apply the patch and let > me know if it works for you? > > Thanks > --Mike > > > > --~--~-~--~~~---~--~~ 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: How to change PATH from Sage?
On Sep 8, 2008, at 05:41 , Simon King wrote: > > Dear David, > > On Sep 8, 2:09 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: >> I haven't tried this but I would imagine you could run a bash script >> which sets the environment variables like this: >> ... > > It did not work. I wrote a shell script SetMyPath that changes the > PATH, and i tested that from the shell > . SetMyPath > and > source SetMyPath > both work (simply doing ./SetMyPath would not change PATH because it > would live in a different subshell) > > But when i am in Sage, neither > sage: !. SetMyPath > nor > sage: !source SetMyPath > nor > sage: !./SetMyPath > work. Still, os.environ['PATH'] has the same content as before. When you execute a command with "!", that command can't affect the 'sage' process that is already running (for much the same reason you mention for using "./SetMyPath" from the shell). You can do something like this sage: XXX=os.environ['PATH']## Save in case you want to restore later during this run sage: os.environ['PATH']=XXX + ":/tmp" Now, when you type "!boink", the shell that gets invoked with get set up with a PATH that includes "/tmp", so that the command "/tmp/boink" will be executed (if it exists). The effects of this change will be seen in any subsequent shell that is invoked from 'sage', until you change that variable again. Hope that is clear, and helps L-} Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds Men are from Earth. Women are from Earth. Deal with it. --~--~-~--~~~---~--~~ 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: How to change PATH from Sage?
Dear Justin, On Sep 8, 4:19 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote: > You can do something like this > > sage: XXX=os.environ['PATH']## Save in case you want to restore > later during this run > sage: os.environ['PATH']=XXX + ":/tmp" This is pretty much what i tried in the first place. Strange. If it was no misprint: I did the change of PATH in a module that i imported, and i was using the new PATH in a *different* module. Can this be the reason why it didn't work (different name space)? Thank you very much! Simon --~--~-~--~~~---~--~~ 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: How to change PATH from Sage?
Dear Justin, On Sep 8, 4:45 pm, Simon King <[EMAIL PROTECTED]> wrote: > If it was no misprint: > I did the change of PATH in a module that i imported, and i was using > the new PATH in a *different* module. Can this be the reason why it > didn't work (different name space)? Apparently it was a misprint: It works now, even when i do it in a module. Good that it finally works! Cheers Simon --~--~-~--~~~---~--~~ 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: How to change PATH from Sage?
On Sep 8, 2008, at 07:58 , Simon King wrote: > > Dear Justin, > > On Sep 8, 4:45 pm, Simon King <[EMAIL PROTECTED]> wrote: >> If it was no misprint: >> I did the change of PATH in a module that i imported, and i was using >> the new PATH in a *different* module. Can this be the reason why it >> didn't work (different name space)? > > Apparently it was a misprint: It works now, even when i do it in a > module. That's good. I would be hard-pressed to explain why 'os' (which should be global) would have different content per-module. Happy that worked... Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- --~--~-~--~~~---~--~~ 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] problem with python within python
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? Thanks, Marshall Hampton --~--~-~--~~~---~--~~ 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
On Sep 7, 2008, at 2:11 AM, Jannick Asmus wrote: > > Hi, > > as newbie I am encountering some IT problems with SAGE causing heavy > crashes. I am not sure if this is the right place to ask. But > answers on > this are highly appreciated. > > The VM Player crashed heavily on my WinXP machine after using SAGE 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. I've never heard of such an incompatibility, but if you install Sage in its own VM Player image (like the .zip file you download) than there should be no interaction with anything else on your computer. Personally, it sounds more like a VMWare Player bug than a Sage bug, but let us know if it happens again. - Robert --~--~-~--~~~---~--~~ 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: Difference between a vector and a 1 by n matrix
On Sep 7, 2008, at 6:56 AM, Jason Merrill wrote: > > On Sep 7, 6:30 am, "John Cremona" <[EMAIL PROTECTED]> wrote: >> It should be lightly easier than it is to convert a vector of >> length n >> to either an nx1 matrix or a 1xn matrix: >> >> sage: v = vector(srange(5)) >> sage: v >> (0, 1, 2, 3, 4) >> sage: matrix(QQ,1,5,[v]) >> [0 1 2 3 4] >> sage: matrix(QQ,5,1,list(v)) >> >> [0] >> [1] >> [2] >> [3] >> [4] >> >> I got neither of those right the first time! I know that v*v is >> short >> for the dot product, which is also (row v)*(col v), but sometimes one >> wants (col v)*(row v) as a rank 1 nxn matrix: >> >> sage: matrix(QQ,5,1,list(v)) * matrix(QQ,1,5,[v]) >> >> [ 0 0 0 0 0] >> [ 0 1 2 3 4] >> [ 0 2 4 6 8] >> [ 0 3 6 9 12] >> [ 0 4 8 12 16] >> >> I suggest that vector methods row_matrix() and col_matrix() would >> be useful. > > It might be nice to have row_matrix() and col_matrix(), as you > suggest, but you can do the conversions right now like this: > > sage: matrix(v) > [0 1 2 3 4] > > sage: transpose(v) > > [0] > [1] > [2] > [3] > [4] > > sage: parent(transpose(v)) > Full MatrixSpace of 5 by 1 dense matrices over Integer Ring I'm not sure I like this... I think it makes more sense to do transpose(matrix(v)). > > # This is a bug, I guess > sage: matrix(transpose(v)) > Traceback (most recent call last) > ... > TypeError: _matrix_() takes exactly one argument (0 given) Yep, I'd say that's a bug. - Robert --~--~-~--~~~---~--~~ 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] Wrong plotting!
Hi all! I do not know - it is an bug, or my mistake. I am trying to plot sum of a few same functions: This is my function: B=10*sqrt( pi)/7; b=pi/7; c(f)=B*exp(-(b*f)^2); plot(c(f),(f,-5,5)); in the output i see correct graphic. Then i have define a function to calculate sum: def specsum(x,Fdesc): result=0; for i in range(-2,3): xi=i*Fdesc; result+=c(x-xi); return result; then plotting... p1=plot(specsum(x,5),(x,-2.5,2.5)); show(p1) i see graphic, and i think its wrong, because then x -3..-1 it cross the X-Axis. then i thought that it is wrong axis, so trying to plot my own zero-line: p2=line([[-10,0],[10,0]]); show(p2) and then trying to plot both graphics: show(p1+p2) only now i see correct graphic. so... is it bug or my mistake (and what can i do to avoid it in future?) Sage worksheet: http://75.75.6.176/home/pub/2/ --~--~-~--~~~---~--~~ 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: Wrong plotting!
On Sep 8, 4:12 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > Hi all! > > I do not know - it is an bug, or my mistake. I am trying to plot sum > of a few same functions: > > This is my function: > B=10*sqrt( pi)/7; > b=pi/7; > c(f)=B*exp(-(b*f)^2); > plot(c(f),(f,-5,5)); > > in the output i see correct graphic. > > Then i have define a function to calculate sum: > > def specsum(x,Fdesc): > result=0; > for i in range(-2,3): > xi=i*Fdesc; > result+=c(x-xi); > return result; > > then plotting... > > p1=plot(specsum(x,5),(x,-2.5,2.5)); > > show(p1) > > i see graphic, and i think its wrong, because then x -3..-1 it cross > the X-Axis. then i thought that it is wrong axis, ... This graphic is fine. It's just that the horizontal axis is not at y==0, which you can see by reading the values off of the y axis. You can do sage: show(p1,ymin=0) if you want the horizontal axis drawn at y==0. There may be a way to set the position of the axes origin more directly. If not, maybe there should be. Regards, JM --~--~-~--~~~---~--~~ 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: efficient determinant of matrix over polynomial ring
On Sep 5, 10:14 am, Martin Albrecht <[EMAIL PROTECTED]> wrote: > On Friday 05 September 2008, phil wrote: > > > R. = QQ[] > > C = random_matrix(R,10,10) > > Cdet = C.determinant() > > Here's a workaround: > sage: %time d2 = R(C._singular_().det()) Thanks for the tip. After making that change, Sage no longer crashes with an out of memory error on 64 bit Debian. However, I may need to make additional changes. The computation is still going after 3 days. Memory usage is slowly increasing and is now at 6.4 GB. The entries of the matrix are composed of coefficients extracted from some matrix operations on 4 3x3 matrices so there are 38 variables in the polynomial ring. Specifically, if anyone is wondering, I am trying to compute left hand side of equation 7 in "Five point motion estimation made easy" by Li and Hartley (http://users.rsise.anu.edu.au/ ~hongdong/new5pt_cameraREady_ver_1.pdf). The solver given on Li's webpage using Maple within Matlab to compute the determinant at runtime after the coefficients are given as numbers in the problem. I want to pre-compute the determinant with the coefficients specified by constants. That way at run time all you need to do is evaluate the expression replacing the constants with the numerical values. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---