[sage-support] line 199: 4876 Illegal instruction
g...@gang-laptop:~$ ./sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/sage -- | Sage Version 4.1.1, Release Date: 2009-08-14 | | Type notebook() for the GUI, and license() for information.| -- /home/gang/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 199: 4876 Illegal instruction sage-ipython $@ -i my computer: ubuntu 9.04 kernel 2.6.28-15 thinkpad T42 2.1GHz 2G memory gcc 4.3.3 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: line 199: 4876 Illegal instruction
Hi, On Sun, Aug 23, 2009 at 1:23 PM, 臧运港zangyung...@gmail.com wrote: g...@gang-laptop:~$ ./sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/sage -- | Sage Version 4.1.1, Release Date: 2009-08-14 | | Type notebook() for the GUI, and license() for information.| -- /home/gang/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 199: 4876 Illegal instruction sage-ipython $@ -i The binary you downloaded was built on a machine with a more recent CPU than what your computer has. This can result in the above illegal instruction message and hence Sage would fail to load. An easy way to fix this is to compile Sage from source for your specific hardware. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Attach
Hi I can't attach file in vmware sage under windows, help me. thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Attach
This was asked and discussed in a thread called [sage-support] Using Sage on Windows back in October 2008. You can search the archives for it. Hope that helps. On Sun, Aug 23, 2009 at 5:47 AM, EHFhesamif...@gmail.com wrote: Hi I can't attach file in vmware sage under windows, help me. thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage notebook worksheets lost content
Thanks for the suggestion. Unfortunately, it looks like all my workbooks were somehow trashed some time between the 25th and 29th of May this year. I might take a look through this newsgroup to see if it's a known issue. I guess I might have to accept that I lost all my work. On 18 Aug, 15:47, Marshall Hampton hampto...@gmail.com wrote: There might be a better way to do this, but here is one way: In a cell of your worksheet, do: %sh ls -t ../../snapshots |head which will give you a list of the most recent snapshots of your worksheets. For my worksheet, the most recent one was called: 1250606636.bz2. So then you can do: %sh cp ../../snapshots/1250606636.bz2 . and you will get a link to that compressed worksheet snapshot. You could then unpack it, and then paste it in after clicking Edit in the notebook. That's a little tedious if you have lots of worksheets lost in this way - it might be possible to restore all of them with a script, but I'm not sure exactly how to do that on sagenb.org. -Marshall Hampton On Aug 18, 9:26 am, bsdz blai...@googlemail.com wrote: Hi I just checked back at my workbooks onwww.sagenb.organdfound most of my workbooks have had their content replaced with a single e character. Does anyone know how I can recover my workbooks? Blair --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] using minimize_constrained
Hi, how do I go about substituting the results from functions such as minimize_constrained back into the function that was trying to minimize? For example, if I have x,y = var('x y') f = x*y (admittedly a trivial example) and I want to minimize the function over the range x in [1,10] and y in [1,10], I would use a = sage.numerical.optimize.minimize_constrained(f,[(1,10),(1,10)], (5,5)) and get back a = (1.0,1.0) If I try the command f((1.0,1.0)) I get an error and any similar attempt also gives me an error. If I had a dictionary of values for the result of minimize_constrained, I would use .substitute(). Functions like optimize.linear_program by default return a dictionary of values and functions like find_fit offer the option of returning a dictionary of values (through the solution_dict argument) but minimize_constrained doesn't seem to offer anything similar. I am dealing with functions with a nonconstant number of variables, so I can't do anything like .substitute(x=a[0]) Suggestions would be greatly appreciated, Greg --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: using minimize_constrained
Hi Greg! On 24 Aug., 01:04, Greg ggdhi...@gmail.com wrote: Hi, how do I go about substituting the results from functions such as minimize_constrained back into the function that was trying to minimize? For example, if I have x,y = var('x y') f = x*y [...] a = (1.0,1.0) If I try the command f((1.0,1.0)) I get an error[...] Something quite useful in python: If a function expects some arguments, and you have a list/tuple of things that you want to use as the function's arguments, then you can do so by prepending * to the function. Similarly, you can pass in a dictionary by prepending **. In this case, you get an answer, but also a deprecation warning: sage: f(*a) /usr/local/sage/local/lib/python2.6/site-packages/IPython/iplib.py: 2073: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...) exec code_obj in self.user_global_ns, self.user_ns 1.0 This is because you defined f not as a function, I guess. Defining sage: f(x,y) = x*y allows to do sage: f(*a) 1.0 without a deprecation warning. But, alas, sage.numerical.optimize.minimize_constrained fails to work if f is defined like this. Possible, but not nice, seems sage: f = x*y sage: a = sage.numerical.optimize.minimize_constrained(f,[(1,10), (1,10)],(5,5)) sage: f.function(x,y)(*a) 1.0 Hopefully someone knows a more natural solution. Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: using minimize_constrained
On Sun, Aug 23, 2009 at 7:23 PM, Simon Kingsimon.k...@nuigalway.ie wrote: ... But, alas, sage.numerical.optimize.minimize_constrained fails to work if f is defined like this. Possible, but not nice, seems sage: f = x*y sage: a = sage.numerical.optimize.minimize_constrained(f,[(1,10), (1,10)],(5,5)) sage: f.function(x,y)(*a) 1.0 Or this: sage: x,y = var('x y') sage: f(x,y) = x*y sage: a = sage.numerical.optimize.minimize_constrained(f(x,y),[(1,10),(1,10)],(5,5)) sage: a (1.0, 1.0) sage: f(*a) 1.0 I'd forgotten about the *a stuff - thanks Simon! Hopefully someone knows a more natural solution. Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: using minimize_constrained
Hi David! On 24 Aug., 01:32, David Joyner wdjoy...@gmail.com wrote: [...] Or this: sage: x,y = var('x y') sage: f(x,y) = x*y sage: a = sage.numerical.optimize.minimize_constrained(f(x,y),[(1,10),(1,10)],(5,5)) sage: a (1.0, 1.0) sage: f(*a) 1.0 Yes, this is what I meant by more natural solution. Sorry, I didn't know the exact syntax of minimize_constrained, so I thought the argument f (as a function in two variables) would be fine. Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] access from remote host
Dear Sr: Now I can use sage form localhost:8000, but I want to get results and images from remote computer, just like http://sagenb.org/ , how ? No SSH. Thanks! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: access from remote host
On Sun, Aug 23, 2009 at 7:01 PM, Zang Yun-gangzangyung...@gmail.com wrote: Dear Sr: Now I can use sage form localhost:8000, but I want to get results and images from remote computer, just like http://sagenb.org/ , how ? No SSH. Thanks! Have you tried typing notebook? and reading the output? William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Please comment this code on simplicial complexes
Since no one has answered this, you might want to email John Palmieri (palmaieri at math dot washington dot edu) directly, since he is the author of the simplicial complex module in sage. -Marshall Hampton On Aug 10, 10:41 pm, Rafael Villarroel rvf0...@gmail.com wrote: Hello all, Under friendly advice by Fidel Barrera, I have been trying to use Sage for my research since about two monts ago. I work with graphs and posets and simplicial complexes coming from them, and I had used GAP + GRAPE + SimplicialHomology for that. With Sage, I like mostly the fact that one can get pretty drawings of posets and graps out of the box, and that there seems to be active work on simplicial complexes. Since before using Sage I knew no Python, I have been put off by all the different types of objects when using simplicial complexes in Sage. I have defined the following functions that seem to work, and I would appreciate any comments you may have that would help me improve when working with Sage. Best regards, Rafael # a free face is one that is contained properly in exactly one maximal face def is_free_face (S,s): def f(x): return set(s)=set(x) return not (Simplex(s) in S.facets()) and len(filter(f,S.facets()))==1 # we find (if it exists) a free face of the smallest dimension, and remove it def free_face_removed ( S ): i = -1 S1 = deepcopy( S ) found = false dim = S1.dimension() faces = S1.faces() while i dim and not found: j = 0 ifaces = list(faces[i]) while j len(ifaces) and not found: if is_free_face( S1 , ifaces[j] ): found = True print removing ,ifaces[j] S1.remove_face( ifaces[j] ) else: j = j+1 i = i+1 return S1 # remove all free faces def collapsed_complex ( S ): S1 = S S2 = free_face_removed( S ) while S1 S2: S1 = S2 S2 = free_face_removed( S1 ) return S2 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem running sage appliance on VMware Player 2.5.2
On Sun, Aug 23, 2009 at 10:09 PM, lkjlin...@gmail.com wrote: I installed VMware Player 2.5.2 on my windows xp machine and then run the VMware sage appliance. However, I was unable to log in using either notebook or sage as the sage login name. I then logged in using manage. The following are the interactions and message I got from the appliance. What was wrong? Because of ATLAS and MPIR, all current Sage binaries have to be run on a computer that has ssse3 instructions, which means fairly new, i.e., last couple years. Yours isn't. It is possible to fix this, but nobody is working on it. It requires changing the ATLAS and MPIR spkg's so that the build in a mode so that they are fatter so that they will work on any operating system. In the meantime, you can rebuild ATLAS and MPIR and Sage will work. To do that, do sage -f atlas-3.8.3.p7 sage -f mpir-1.2.p4 This will work fine in the vmware machine, which has GCC installed. If nobody fixes this by October, I will make it my first priority. William At prompt of: sage login: Entered: manage At prompt of: man...@sage:~$ Entered: sudo su At prompt of: r...@sage:/home/manage# Entered: Sage Message from the appliance: | Sage Version 4.1 ... | Type notebook() ... /usr/local/sage/local/bin/sage-sage: line 199: 3462 Illegal instruction sage-ipython $@ -i At prompt of: r...@sage:/home/manage# Enter: Sage -notebook Message from the appliance: | Sage Version 4.1 ... | Type notebook() ... Please wait while the Sage Notebook server starts... /usr/local/sage/local/bin/sage-sage: line 519: 3493 Illegal instruction sage-notebook $@ -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] problem running sage appliance on VMware Player 2.5.2
I installed VMware Player 2.5.2 on my windows xp machine and then run the VMware sage appliance. However, I was unable to log in using either notebook or sage as the sage login name. I then logged in using manage. The following are the interactions and message I got from the appliance. What was wrong? At prompt of: sage login: Entered: manage At prompt of: man...@sage:~$ Entered: sudo su At prompt of: r...@sage:/home/manage# Entered: Sage Message from the appliance: | Sage Version 4.1 ... | Type notebook() ... /usr/local/sage/local/bin/sage-sage: line 199: 3462 Illegal instruction sage-ipython $@ -i At prompt of: r...@sage:/home/manage# Enter: Sage -notebook Message from the appliance: | Sage Version 4.1 ... | Type notebook() ... Please wait while the Sage Notebook server starts... /usr/local/sage/local/bin/sage-sage: line 519: 3493 Illegal instruction sage-notebook $@ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---