[sage-support] Re: Request for help
sage-3.4-OSX10.4-PowerMacintosh-Darwin.dmg and it was 354Mb. David Galant On Mar 14, 5:18 pm, William Stein wrote: > On Sat, Mar 14, 2009 at 5:29 AM, davidgal...@gmail.com > > wrote: > > > When I tried to open sage 3.4 on an iBookG4 (MacOS 10.4.11) I got: > > Precisely which .dmg did you download? What size was it? > > William > > > > > > > Last login: Sat Mar 14 13:34:34 on ttyp1 > > Welcome to Darwin! > > iBookG4:~ davidgalant$ /Applications/Analysis/sage/sage > > -- > > | Sage Version 3.4, Release Date: 2009-03-11 | > > | Type notebook() for the GUI, and license() for information. | > > -- > > --- > > ImportError Traceback (most recent call > > last) > > > /Applications/Analysis/sage/local/bin/ in () > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/preparser_ipython.py in () > > 6 > > ### > > 7 > > > 8 import sage.misc.interpreter > > 9 > > 10 import preparser > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/interpreter.py in () > > 100 > > 101 import os > > --> 102 import log > > 103 > > 104 import remote_file > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/log.py in () > > 63 > > 64 import interpreter > > ---> 65 import latex > > 66 import misc > > 67 > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/latex.py in () > > 41 import random > > 42 > > ---> 43 from misc import tmp_dir > > 44 import sage_eval > > 45 from sage.misc.misc import SAGE_DOC > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/misc.py in () > > 26 > > 27 import operator, os, stat, socket, sys, signal, time, weakref, > > resource, math > > ---> 28 import sage.misc.prandom as random > > 29 > > 30 from banner import version, banner > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/prandom.py in () > > 54 # setting seeds should only be done through > > sage.misc.randstate . > > 55 > > ---> 56 from sage.misc.randstate import current_randstate > > 57 > > 58 def _pyrand(): > > > ImportError: dlopen(/Applications/Analysis/sage/local/lib/python2.5/ > > site-packages/sage/misc/randstate.so, 2): Library not loaded: /home/ > > wstein/varro/build/sage-3.4/local/lib/libgmp.3.dylib > > Referenced from: /Applications/Analysis/sage/local/lib// > > libcsage.dylib > > Reason: no suitable image found. Did find: > > /Applications/Analysis/sage/local/lib//libgmp.3.dylib: > > incompatible cpu-subtype > > WARNING: Failure executing code: 'import sage.misc.preparser_ipython; > > sage.misc.preparser_ipython.magma_colon_equals=True' > > --- > > ImportError Traceback (most recent call > > last) > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/IPython/ > > ipmaker.pyc in force_import(modname) > > 64 reload(sys.modules[modname]) > > 65 else: > > ---> 66 __import__(modname) > > 67 > > 68 > > > /Applications/Analysis/sage/local/bin/ipy_profile_sage.py in > > () > > 1 import os > > 2 if 'SAGE_CLEAN' not in os.environ: > > > 3 import sage.misc.misc > > 4 from sage.misc.interpreter import preparser, _ip > > 5 preparser(True) > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/misc.py in () > > 26 > > 27 import operator, os, stat, socket, sys, signal, time, weakref, > > resource, math > > ---> 28 import sage.misc.prandom as random > > 29 > > 30 from banner import version, banner > > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > > misc/prandom.py in () > > 54 # setting seeds should only be done through > > sage.misc.randstate . > > 55 > > ---> 56 from sage.misc.randstate import current_randstate > > 57 > > 58 def _pyrand(): > > > ImportError: dlopen(/Applications/Analysis/sage/local/lib/python2.5/ > > site-packages/sage/misc/randstate.so, 2): corrupt binary, library > > ordinal too big > > Error importing ipy_profile_sage - perhaps you should run %upgrade? > > WARNING: Loading of ipy_profile_sage failed. > > > quit > > > What do I need to do. > > > Thanks, > > > David Galant > > dgal...@zahav.net.il > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this gro
[sage-support] Plots inside interact not working
Hi, In the following code, nothing seems to show up when I put plot inside interact, but it works when it's outside it. def delta_l_hs(l, k, a): return atan(spherical_bessel_J(l, k*a)/spherical_bessel_Y(l, k*a)) k = var('k') #show(plot(delta_l_hs(5, k, 1), (k, -20, 20) ) ) @interact def _(a=(1.0), k_min=(-20.0), k_max=(20.0), l=(0..50) ): show(plot(delta_l_hs(l, k, a), (k, k_min, k_max) ) ) Help appreciated. Mani chandra --~--~-~--~~~---~--~~ 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: Cannot copy on OSX
On Mar 13, 11:30 am, Carl Witty wrote: > On Mar 13, 11:02 am, mabshoff > dortmund.de> wrote: > > On Mar 13, 10:55 am, kcrisman wrote: > > > Any ideas? > > > The build box where that binary is being build had some changes to the > > file system layout, i.e. William might have build on an NFS mount > > instead of a local file system. I did a build on a local file system, > > so once I find some time I will get that binary uploaded to test if it > > makes a difference. > > It looks like the build was done on a case-sensitive filesystem, > probably? Yep. I have a build from a HFS partition - see http://sage.math.washington.edu/home/mabshoff/sage-3.4-OSX-10.4-PowerMacintosh-Darwin.dmg can someone confirm that it works so I can upload it to the website? > Carl Cheers, Michael --~--~-~--~~~---~--~~ 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 3.4 on Fedora: cannot execute binary file
Thanks! On Mar 14, 11:19 am, mabshoff wrote: > Ok, there is now a 32 bit FC9 binary - I had it on sage.math all along > and it did get lost in the shuffle when putting things in the various > directories. > > Cheers, > > Michael --~--~-~--~~~---~--~~ 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 3.4 and Ubuntu 8.04
On Mar 14, 11:27 am, mabshoff wrote: > If there is no binary you need to build from sources. Giovanni, My experience is that you should have little difficulty building Sage from the source on 8.04 (other than having to wait several hours for the build to finish before you can use it). Download sage-3.4.tar. I place my installations under /opt. As root do the following: 1. cd /opt 2. tar -xvf sage-3.4.tar 3. cd sage-3.4 4. make Wait patiently. ;-) Then ./sage or ./sage -notebook to run. Rob --~--~-~--~~~---~--~~ 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 3.4 and Ubuntu 8.04
On Mar 14, 11:17 am, "giovanni.marche...@ds.unifi.it" wrote: Hi, > I have Linux Ubuntu 8.04. 32 bit > I downloaded Sage 3.4 > sage-3.4-linux-Ubuntu_8.10-i686-Linux.tar.gz Well, you downloaded a binary not build for your distribution, i.e. the changes from 8.4 to 8.10 are significant enough for binaries to plainly not work due to a newer GLIBC. > Sage starts correctly but > after notebook() > I get an error as follows. > > Any suggestion ? If there is no binary you need to build from sources. > Thank you > > Giovanni Cheers, Michael --~--~-~--~~~---~--~~ 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 3.4 on Fedora: cannot execute binary file
Ok, there is now a 32 bit FC9 binary - I had it on sage.math all along and it did get lost in the shuffle when putting things in the various directories. Cheers, Michael --~--~-~--~~~---~--~~ 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] Sage 3.4 and Ubuntu 8.04
I have Linux Ubuntu 8.04. 32 bit I downloaded Sage 3.4 sage-3.4-linux-Ubuntu_8.10-i686-Linux.tar.gz Sage starts correctly but after notebook() I get an error as follows. Any suggestion ? Thank you Giovanni . exceptions.ImportError: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.8' not found (required by /home/gmm/sage-3.4/local/lib/ libgnutls.so.26) Failed to load application: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.8' not found (required by /home/gmm/sage-3.4/local/lib/ libgnutls.so.26) --- error Traceback (most recent call last) /home/gmm/.sage/ in () /home/gmm/sage-3.4/local/lib/python2.5/site-packages/sage/server/ notebook/notebook_object.pyc in __call__(self, *args, **kwds) 163 """ 164 def __call__(self, *args, **kwds): --> 165 return self.notebook(*args, **kwds) 166 167 notebook = run_notebook.notebook_twisted . --~--~-~--~~~---~--~~ 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 3.4 on Fedora: cannot execute binary file
On Mar 14, 10:24 am, William Stein wrote: > On Sat, Mar 14, 2009 at 10:16 AM, davidp wrote: > > > Is it strange, then, to list this binary under 32bit: > > >http://sagemath.org/bin/linux/32bit/index.html > > > Also, I don't see a release for i686. Perhaps that will come later. > > That's a mistake. Michael can you fix it? Yeah, I am non it. I moved the 64 bit build to the 64 bit folder and I am a little confused it ended up there in the first place. Oh well, sorry for the screwup. > William Cheers, Michael --~--~-~--~~~---~--~~ 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 3.4 on Fedora: cannot execute binary file
On Sat, Mar 14, 2009 at 10:16 AM, davidp wrote: > > Is it strange, then, to list this binary under 32bit: > > http://sagemath.org/bin/linux/32bit/index.html > > Also, I don't see a release for i686. Perhaps that will come later. > > Thanks, > Dave I *can't* make a 32-bit fedora binary right now since my virtual machine for this crashed, and I can't reset it due to a firewall at UofA where I'm at right now. 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: Sage 3.4 on Fedora: cannot execute binary file
On Sat, Mar 14, 2009 at 10:16 AM, davidp wrote: > > Is it strange, then, to list this binary under 32bit: > > http://sagemath.org/bin/linux/32bit/index.html > > Also, I don't see a release for i686. Perhaps that will come later. That's a mistake. Michael can you fix it? 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: Sage 3.4 on Fedora: cannot execute binary file
Is it strange, then, to list this binary under 32bit: http://sagemath.org/bin/linux/32bit/index.html Also, I don't see a release for i686. Perhaps that will come later. Thanks, Dave On Mar 14, 8:37 am, Jaap Spies wrote: > davidp wrote: > > I am having trouble starting Sage 3.4 on two machines running Fedora: > > > 1. > > poly> cd sage-3.4-Fedora_release_9-x86_64-Linux/ > > poly> ./sage > > -- > > | Sage Version 3.4, Release Date: 2009-03-11 | > > | Type notebook() for the GUI, and license() for information. | > > -- > > /home/davidp/download/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/ > > sage.bin: /home/davidp/download/sage-3.4-Fedora_release_9-x86_64-Linux/ > > local/bin/sage.bin: cannot execute binary file > > poly> uname -a > > Linux poly 2.6.27.19-78.2.30.fc9.i686 #1 SMP Tue Feb 24 20:09:23 EST > > 2009 i686 i686 i386 GNU/Linux > > > 2. > > xyzzy> cd sage-3.4-Fedora_release_9-x86_64-Linux/ > > xyzzy> ./sage > > -- > > | Sage Version 3.4, Release Date: 2009-03-11 | > > | Type notebook() for the GUI, and license() for information. | > > -- > > /usr/local/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/sage.bin: / > > usr/local/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/sage.bin: > > cannot execute binary file > > xyzzy> uname -a > > Linux xyzzy 2.6.27.19-170.2.35.fc10.i686.PAE #1 SMP Mon Feb 23 > > 13:09:26 EST 2009 i686 i686 i386 GNU/Linux > > > Thanks for any help, > > Seems you downloaded the 64 bit version and try to run it on 33 bit. > > Jaap --~--~-~--~~~---~--~~ 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 3.4 on Fedora: cannot execute binary file
davidp wrote: > I am having trouble starting Sage 3.4 on two machines running Fedora: > > 1. > poly> cd sage-3.4-Fedora_release_9-x86_64-Linux/ > poly> ./sage > -- > | Sage Version 3.4, Release Date: 2009-03-11 | > | Type notebook() for the GUI, and license() for information.| > -- > /home/davidp/download/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/ > sage.bin: /home/davidp/download/sage-3.4-Fedora_release_9-x86_64-Linux/ > local/bin/sage.bin: cannot execute binary file > poly> uname -a > Linux poly 2.6.27.19-78.2.30.fc9.i686 #1 SMP Tue Feb 24 20:09:23 EST > 2009 i686 i686 i386 GNU/Linux > > 2. > xyzzy> cd sage-3.4-Fedora_release_9-x86_64-Linux/ > xyzzy> ./sage > -- > | Sage Version 3.4, Release Date: 2009-03-11 | > | Type notebook() for the GUI, and license() for information.| > -- > /usr/local/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/sage.bin: / > usr/local/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/sage.bin: > cannot execute binary file > xyzzy> uname -a > Linux xyzzy 2.6.27.19-170.2.35.fc10.i686.PAE #1 SMP Mon Feb 23 > 13:09:26 EST 2009 i686 i686 i386 GNU/Linux > > Thanks for any help, Seems you downloaded the 64 bit version and try to run it on 33 bit. Jaap --~--~-~--~~~---~--~~ 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] Find maximum on interval for result of diff() function.
f(x)=exp(-x^2) g=diff(f) then I'd like to find maximum of g function on interval: find_maximum_on_interval(g,0,1) (-1.30156325204e-08, 6.5078162602101728e-09) but for: find_maximum_on_interval(g,0,3) I've got error: Traceback (click to the left for traceback) ... TypeError: cannot coerce type '' into a SymbolicExpression. what is wrong? --~--~-~--~~~---~--~~ 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] Sage 3.4 on Fedora: cannot execute binary file
I am having trouble starting Sage 3.4 on two machines running Fedora: 1. poly> cd sage-3.4-Fedora_release_9-x86_64-Linux/ poly> ./sage -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| -- /home/davidp/download/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/ sage.bin: /home/davidp/download/sage-3.4-Fedora_release_9-x86_64-Linux/ local/bin/sage.bin: cannot execute binary file poly> uname -a Linux poly 2.6.27.19-78.2.30.fc9.i686 #1 SMP Tue Feb 24 20:09:23 EST 2009 i686 i686 i386 GNU/Linux 2. xyzzy> cd sage-3.4-Fedora_release_9-x86_64-Linux/ xyzzy> ./sage -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| -- /usr/local/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/sage.bin: / usr/local/sage-3.4-Fedora_release_9-x86_64-Linux/local/bin/sage.bin: cannot execute binary file xyzzy> uname -a Linux xyzzy 2.6.27.19-170.2.35.fc10.i686.PAE #1 SMP Mon Feb 23 13:09:26 EST 2009 i686 i686 i386 GNU/Linux Thanks for any help, Dave --~--~-~--~~~---~--~~ 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: Request for help
On Sat, Mar 14, 2009 at 5:29 AM, davidgal...@gmail.com wrote: > > When I tried to open sage 3.4 on an iBookG4 (MacOS 10.4.11) I got: Precisely which .dmg did you download? What size was it? William > > Last login: Sat Mar 14 13:34:34 on ttyp1 > Welcome to Darwin! > iBookG4:~ davidgalant$ /Applications/Analysis/sage/sage > -- > | Sage Version 3.4, Release Date: 2009-03-11 | > | Type notebook() for the GUI, and license() for information. | > -- > --- > ImportError Traceback (most recent call > last) > > /Applications/Analysis/sage/local/bin/ in () > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/preparser_ipython.py in () > 6 > ### > 7 > > 8 import sage.misc.interpreter > 9 > 10 import preparser > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/interpreter.py in () > 100 > 101 import os > --> 102 import log > 103 > 104 import remote_file > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/log.py in () > 63 > 64 import interpreter > ---> 65 import latex > 66 import misc > 67 > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/latex.py in () > 41 import random > 42 > ---> 43 from misc import tmp_dir > 44 import sage_eval > 45 from sage.misc.misc import SAGE_DOC > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/misc.py in () > 26 > 27 import operator, os, stat, socket, sys, signal, time, weakref, > resource, math > ---> 28 import sage.misc.prandom as random > 29 > 30 from banner import version, banner > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/prandom.py in () > 54 # setting seeds should only be done through > sage.misc.randstate . > 55 > ---> 56 from sage.misc.randstate import current_randstate > 57 > 58 def _pyrand(): > > ImportError: dlopen(/Applications/Analysis/sage/local/lib/python2.5/ > site-packages/sage/misc/randstate.so, 2): Library not loaded: /home/ > wstein/varro/build/sage-3.4/local/lib/libgmp.3.dylib > Referenced from: /Applications/Analysis/sage/local/lib// > libcsage.dylib > Reason: no suitable image found. Did find: > /Applications/Analysis/sage/local/lib//libgmp.3.dylib: > incompatible cpu-subtype > WARNING: Failure executing code: 'import sage.misc.preparser_ipython; > sage.misc.preparser_ipython.magma_colon_equals=True' > --- > ImportError Traceback (most recent call > last) > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/IPython/ > ipmaker.pyc in force_import(modname) > 64 reload(sys.modules[modname]) > 65 else: > ---> 66 __import__(modname) > 67 > 68 > > /Applications/Analysis/sage/local/bin/ipy_profile_sage.py in > () > 1 import os > 2 if 'SAGE_CLEAN' not in os.environ: > > 3 import sage.misc.misc > 4 from sage.misc.interpreter import preparser, _ip > 5 preparser(True) > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/misc.py in () > 26 > 27 import operator, os, stat, socket, sys, signal, time, weakref, > resource, math > ---> 28 import sage.misc.prandom as random > 29 > 30 from banner import version, banner > > /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ > misc/prandom.py in () > 54 # setting seeds should only be done through > sage.misc.randstate . > 55 > ---> 56 from sage.misc.randstate import current_randstate > 57 > 58 def _pyrand(): > > ImportError: dlopen(/Applications/Analysis/sage/local/lib/python2.5/ > site-packages/sage/misc/randstate.so, 2): corrupt binary, library > ordinal too big > Error importing ipy_profile_sage - perhaps you should run %upgrade? > WARNING: Loading of ipy_profile_sage failed. > > quit > > What do I need to do. > > Thanks, > > David Galant > dgal...@zahav.net.il > > > -- 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] Re: Exiting Gap process?
On Sat, Mar 14, 2009 at 6:01 AM, kcrisman wrote: > > >> >> This is not a bug, is not odd, and is not an inefficiency. GAP get >> started to recreate it's startup cache whenever GAP is upgraded. > > Okay, fair enough, but then why did it also do this later the same day > when I used a copy of Sage I had kept around but not used in several > months? It wasn't the first time I'd used that copy (something like > 3.2.1) but it was the first time in a while; certainly I hadn't > upgraded GAP. Does it just happen every time a different revision of > GAP is used, up or down? Yes. > Incidentally, I think that if it's not odd, it is at the very least > mysterious to anyone not intimately familiar with startup code :) > > - kcrisman > > > -- 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] Re: Exiting Gap process?
> > This is not a bug, is not odd, and is not an inefficiency. GAP get > started to recreate it's startup cache whenever GAP is upgraded. Okay, fair enough, but then why did it also do this later the same day when I used a copy of Sage I had kept around but not used in several months? It wasn't the first time I'd used that copy (something like 3.2.1) but it was the first time in a while; certainly I hadn't upgraded GAP. Does it just happen every time a different revision of GAP is used, up or down? Incidentally, I think that if it's not odd, it is at the very least mysterious to anyone not intimately familiar with startup code :) - kcrisman --~--~-~--~~~---~--~~ 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] Request for help
When I tried to open sage 3.4 on an iBookG4 (MacOS 10.4.11) I got: Last login: Sat Mar 14 13:34:34 on ttyp1 Welcome to Darwin! iBookG4:~ davidgalant$ /Applications/Analysis/sage/sage -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| -- --- ImportError Traceback (most recent call last) /Applications/Analysis/sage/local/bin/ in () /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/preparser_ipython.py in () 6 ### 7 > 8 import sage.misc.interpreter 9 10 import preparser /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/interpreter.py in () 100 101 import os --> 102 import log 103 104 import remote_file /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/log.py in () 63 64 import interpreter ---> 65 import latex 66 import misc 67 /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/latex.py in () 41 import random 42 ---> 43 from misc import tmp_dir 44 import sage_eval 45 from sage.misc.misc import SAGE_DOC /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/misc.py in () 26 27 import operator, os, stat, socket, sys, signal, time, weakref, resource, math ---> 28 import sage.misc.prandom as random 29 30 from banner import version, banner /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/prandom.py in () 54 # setting seeds should only be done through sage.misc.randstate . 55 ---> 56 from sage.misc.randstate import current_randstate 57 58 def _pyrand(): ImportError: dlopen(/Applications/Analysis/sage/local/lib/python2.5/ site-packages/sage/misc/randstate.so, 2): Library not loaded: /home/ wstein/varro/build/sage-3.4/local/lib/libgmp.3.dylib Referenced from: /Applications/Analysis/sage/local/lib// libcsage.dylib Reason: no suitable image found. Did find: /Applications/Analysis/sage/local/lib//libgmp.3.dylib: incompatible cpu-subtype WARNING: Failure executing code: 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True' --- ImportError Traceback (most recent call last) /Applications/Analysis/sage/local/lib/python2.5/site-packages/IPython/ ipmaker.pyc in force_import(modname) 64 reload(sys.modules[modname]) 65 else: ---> 66 __import__(modname) 67 68 /Applications/Analysis/sage/local/bin/ipy_profile_sage.py in () 1 import os 2 if 'SAGE_CLEAN' not in os.environ: > 3 import sage.misc.misc 4 from sage.misc.interpreter import preparser, _ip 5 preparser(True) /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/misc.py in () 26 27 import operator, os, stat, socket, sys, signal, time, weakref, resource, math ---> 28 import sage.misc.prandom as random 29 30 from banner import version, banner /Applications/Analysis/sage/local/lib/python2.5/site-packages/sage/ misc/prandom.py in () 54 # setting seeds should only be done through sage.misc.randstate . 55 ---> 56 from sage.misc.randstate import current_randstate 57 58 def _pyrand(): ImportError: dlopen(/Applications/Analysis/sage/local/lib/python2.5/ site-packages/sage/misc/randstate.so, 2): corrupt binary, library ordinal too big Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. quit What do I need to do. Thanks, David Galant dgal...@zahav.net.il --~--~-~--~~~---~--~~ 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: Exiting Gap process?
On Fri, Mar 13, 2009 at 8:16 AM, kcrisman wrote: > > Dear Support, > > Usually, when I exit Sage after doing something symbolic, I get > something like this: > > -- > | Sage Version 3.4, Release Date: 2009-03-11 | > | Type notebook() for the GUI, and license() for information. | > -- > sage: 2+2 > 4 > sage: f(x)=x^2 > sage: f(3) > 9 > sage: > Exiting SAGE (CPU time 0m0.29s, Wall time 2m56.59s). > Exiting spawned Maxima process. > > However, sometimes I get something like this: > > -- > | Sage Version 3.4, Release Date: 2009-03-11 | > | Type notebook() for the GUI, and license() for information. | > -- > The SAGE install tree may have moved. > Regenerating Python.pyo and .pyc files that hardcode the install PATH > (please wait at > most a few minutes)... > Do not interrupt this. > sage: 2+2 > 4 > sage: f(x)=x^2 > sage: f(3) > 9 > sage: > Exiting SAGE (CPU time 0m0.32s, Wall time 18m51.32s). > Exiting spawned Gap process. > Exiting spawned Maxima process. > > What Gap process? Could this have something to do with the install > PATH business? I can't remember under what conditions this has > happened before, but this time it only happened immediately after > upgrade and renaming the folder it was in from sage-3.4.rc0 to > sage-3.4, so maybe it happens after you do a move of that nature. > > I don't know if this is a bug per se, but it does seem odd, so I > wanted to point it out in case it's an inefficiency someone can track > down. This is not a bug, is not odd, and is not an inefficiency. GAP get started to recreate it's startup cache whenever GAP is upgraded. 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: public worksheet, and methods for exporting
On Fri, Mar 13, 2009 at 1:32 PM, Carl Witty wrote: > > On Mar 13, 11:58 am, Pierre wrote: >> > Note that sagenb.org is not >> > designed to support classes as a class sage server; rather, it's >> > designed to give a person a way to try out Sage. >> >> Is there anything wrong with many people (that is, about 30) checking >> a public worksheet at the same time ? should we refrain from letting >> the students do that ? > > Do you mean just looking at http://.../pub/nnn/, without doing "edit a > copy"? I'm pretty sure that's fine. The expensive part of editing a > worksheet is starting up a separate copy of Sage on the server; public > worksheets don't do that (which is why @interact doesn't work), so > viewing a public worksheet causes vastly less server load than editing > a worksheet. > > (I hope this is correct... I'm not an expert on the notebook > internals.) > This is correct -- it shouldn't be a problem. Nonetheless, the notebook server could certainly benefit a lot by further optimization! -- 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: interact not working with 3D plots
Mani chandra wrote: > Hi, > > The following code is not plotting for some reason. The silder comes > up and when I move it nothing happens. > > def exp_ikz_expansion(r, theta, l_max): > s = 0 > for l in range(l_max): > s = s + (2*l + 1)*I**l*spherical_bessel_J(l, r)*legendre_P(l, > cos(theta) ) > return s > > r_, theta = var('r_, theta') > x = r_*cos(theta) > y = r_*sin(theta) > z = exp_ikz_expansion(r_, theta, 10).real() > > @interact > def _(r=(10.0), l_max=(0..20)): > parametric_plot3d( [x, y, z], (r_, 0, r), (theta, 0, 2*pi) ) Use "show": @interact def _(r=(10.0), l_max=(0..20)): show(parametric_plot3d( [x, y, z], (r_, 0, r), (theta, 0, 2*pi) )) Jason --~--~-~--~~~---~--~~ 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: Error in solving system of non-linear equations
Jason Grout wrote: > R (Chandra) Chandrasekhar wrote: >> Would you recommend that I compile from the source tarball instead? > > > Personally, that's what I recommend. Sage development moves at a nice > pace, and you're already missing out on a lot of very nice features and > a lot of bugfixes because the debian package hasn't kept up. The Sage > that you download is self-contained in one directory, which you can > delete or move around, so it is trivial to have multiple versions of > Sage installed in parallel in your home directory, for example. Thank you. I have downloaded, compiled and installed sage-3.4 from the source tarball on my Kubuntu Intrepid PC. It has been packaged really well because there were no hiccups. I only did two things after that. 1. On the first invocation of sage after installation, with sudo sage I ran install_scripts('/usr/local/bin') at the sage: prompt. 2. I also symlinked the sage script so: sudo ln -sf /path-to-untarred-sage/sage-3.4/sage /usr/local/bin/sage After that, things have been running smoothly and the problem with solving non-linear equations that originally prompted this thread has gone. >>> Does running "sage -maxima" >>> run maxima? Can you solve simpler equations? This time, on running sage -maxima I get: --- Maxima 5.16.3 http://maxima.sourceforge.net Using Lisp CLISP 2.46 (2008-07-02) Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. --- For the benefit of the debian-sage team, the result for the Debian package was --- > Maxima 5.13.0 http://maxima.sourceforge.net > Using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (aka GCL) > Distributed under the GNU Public License. See the file COPYING. > Dedicated to the memory of William Schelter. > This is a development version of Maxima. The function bug_report() > provides bug reporting information. --- Perhaps the differences between these two versions, including the type of Lisp, (plus other possible differences) contributed to the error I originally saw with the Debian package. Cheers! Chandra --~--~-~--~~~---~--~~ 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] interact not working with 3D plots
Hi, The following code is not plotting for some reason. The silder comes up and when I move it nothing happens. def exp_ikz_expansion(r, theta, l_max): s = 0 for l in range(l_max): s = s + (2*l + 1)*I**l*spherical_bessel_J(l, r)*legendre_P(l, cos(theta) ) return s r_, theta = var('r_, theta') x = r_*cos(theta) y = r_*sin(theta) z = exp_ikz_expansion(r_, theta, 10).real() @interact def _(r=(10.0), l_max=(0..20)): parametric_plot3d( [x, y, z], (r_, 0, r), (theta, 0, 2*pi) ) Help appreciated. Mani chandra --~--~-~--~~~---~--~~ 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: Getting a numerical value
Maurizio wrote: > I'd like to jump in the conversation, to describe my own experience. > > I don't know what about real numbers, but I found out that in that > same situation you were talking about (symbolic expression where all > the symbols are substituted by numbers eventually), and the expected > result is a complex number, using the ComplexField() makes the > substitution many orders of magnitude faster than doing .n() > > Example: > > CF = ComplexField() > evaluated_number = CF(numerical_expression) > > In this way, I get the result in the fastest way (I'm not that much > experienced, though). > > Any suggestion is appreciated > As a shortcut, you could just use CC, which is the same as ComplexField() (i.e., CC is ComplexField with the default 53 bits of precision) This would be analogous to the RR example below (except using complex numbers instead of real numbers. sage: CC is ComplexField() True sage: CC(sqrt(-1)) 1.00*I I'm surprised that this is orders of magnitude faster than using n(), since I thought they were essentially doing the same thing. My timing tests seem to indicate that the opposite is true: sage: a=sqrt(2) sage: timeit('CC(a)') 625 loops, best of 3: 33 µs per loop sage: timeit('a.n()') 625 loops, best of 3: 19.2 µs per loop sage: timeit('RR(a)') 625 loops, best of 3: 20.7 µs per loop ah, but if the number is complex: sage: a=sqrt(2)*I sage: timeit('CC(a)') 625 loops, best of 3: 83.5 µs per loop sage: timeit('a.n()') 625 loops, best of 3: 213 µs per loop The code for n() first tries to convert to a real number, and if an exception is raised, then it tries to convert to a complex number. Maybe that try/except block is way, way too slow? Comments? Thanks, Jason --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---