[sage-support] Re: Cannot copy on OSX
On Mar 15, 5:04 pm, Jim Clark wrote: > On Mar 14, 2009, at 4:52 PM, mabshoff wrote: Hi Jim, > I have downloaded both Michael's .dmg and the one from http:// > sage.math.washington.edu/sage/osx/powerpc/index.html > > In both cases, after I start sage, it fails as follows: > (My computer is a 300 MHz G3 running OSX 10.4.) Hmm, I am not 100% sure the binary will run on a G3. IIRC some people have reported working binaries on G3 CPUs, but that might have been a while. Can you check if the md5sum of the dmg matches? mabsh...@sage:/scratch/mabshoff/sage-3.4$ md5sum ~/sage-3.4-OSX-10.4- PowerMacintosh-Darwin.dmg 3285260d94023d27a86faeb05bd0dcef /home/mabshoff/sage-3.4-OSX-10.4- PowerMacintosh-Darwin.dmg I do not think that this is the problem though - see below. > -- > | 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. > ImportError: dlopen(/Applications/sage/local/lib/python2.5/site- > packages/sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/ > sage-3.4/local/lib/libgmp.3.dylib >Referenced from: /Applications/sage/local/lib//libcsage.dylib >Reason: no suitable image found. Did find: > /Applications/sage/local/lib//libgmp.3.dylib: incompatible > cpu-subtype This seems to be the trouble, i.e. the MPIR we build on OSX 10.4/PPC is on a G4 and now seems to produce a library that does not run on a G3. That might be caused by newer XCode releases, but I am not 100% sure. I do not think that we changed anything inside MPIR that would cause this. 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 SuSE Enterprise Server
On Mar 15, 10:55 pm, Miron wrote: > Hello, Hi Miron, > I have tried to build Sage 3.4 on SuSE Enterprise Server 10.2 but got > an error: > > checking whether gcc is new enough... configure: error: please > upgrade to gcc 3.x or 4.x > ERROR: You do not have all of the prerequisites needed > to build SAGE from source. See the errors above. > make[1]: *** [installed/prereq-0.3] Error 1 > make[1]: Leaving directory `/disk1/download/new/sage-3.4/spkg' > > My gcc version is 4.1.2. Any advice greatly appreciated. We regularly test on mabsh...@iras:~> cat /etc/SuSE-release SUSE Linux Enterprise Server 10 (ia64) VERSION = 10 PATCHLEVEL = 1 mabsh...@iras:~> gcc -v Using built-in specs. Target: ia64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr -- with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/ share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable- languages=c,c++,objc,fortran,obj-c++,java,ada --enable- checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 -- enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib -- with-system-zlib --enable-shared --enable-__cxa_atexit --enable- libstdcxx-allocator=new --program-suffix= --enable-version-specific- runtime-libs --with-system-libunwind --host=ia64-suse-linux Thread model: posix gcc version 4.1.2 20070115 (prerelease) (SUSE Linux) Could you provide the output from gcc -v so we can figure out what is going on? > miron. > > (sorry for accidental posting of incomplete message) :) 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 on SuSE Enterprise Server
Hello, I have tried to build Sage 3.4 on SuSE Enterprise Server 10.2 but got an error: checking whether gcc is new enough... configure: error: please upgrade to gcc 3.x or 4.x ERROR: You do not have all of the prerequisites needed to build SAGE from source. See the errors above. make[1]: *** [installed/prereq-0.3] Error 1 make[1]: Leaving directory `/disk1/download/new/sage-3.4/spkg' My gcc version is 4.1.2. Any advice greatly appreciated. miron. (sorry for accidental posting of incomplete message) --~--~-~--~~~---~--~~ 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 SuSE Enterprise Server
Hello, I have tried to build Sage 3.4 on SuSE Enterprise Server 10.2 --~--~-~--~~~---~--~~ 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: unable to install v3.4 - missing file libintl.3.dylib
Jamie wrote: Hi Jamie, > libintl.3.dylib not loaded - No such file ...sage/dsage/cacert.pem' > > I have located instances of a similar (?) problem with older versions > directing users to locate libintl.3.dylib with link provided, but link > [ http://sagemath.org/SAGEbin/apple_osx/intel/10.4-extra_files/ ] is > broken. > > I have tried inotebook() and get a similar error... image not found > for libintl.3.dylib Yep, no surprises there. > I have tried > rm -rf $HOME/.sage > > and get: 'HOME' is not defined You don't need to delete .sage - it is not the problem. > Do I need libintl.3.dylib and if so where can I get it? > > If not, how can I continue my install? > > running core 2 duo and OSX 10.4.9. > > I downloaded the binary from > http://www.sagemath.org/bin/apple_osx/intel/index.html > > File: sage-3.4-OSX10.4-32bit-Intel-i386-Darwin.dmg > > Thank you, > Jamie We did not build the binary on "official" Sage hardware, but the binary was build by another Sage developer with a machine that included some libraries in /usr/local that are causing the problem. The download directories no longer contain a version of libintl. 3.dylib and I am not sure where to get one that works aside from waiting for the Sage developer to provide an updated binary. 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] unable to install v3.4 - missing file libintl.3.dylib
libintl.3.dylib not loaded - No such file ...sage/dsage/cacert.pem' I have located instances of a similar (?) problem with older versions directing users to locate libintl.3.dylib with link provided, but link [ http://sagemath.org/SAGEbin/apple_osx/intel/10.4-extra_files/ ] is broken. I have tried inotebook() and get a similar error... image not found for libintl.3.dylib I have tried rm -rf $HOME/.sage and get: 'HOME' is not defined Do I need libintl.3.dylib and if so where can I get it? If not, how can I continue my install? running core 2 duo and OSX 10.4.9. I downloaded the binary from http://www.sagemath.org/bin/apple_osx/intel/index.html File: sage-3.4-OSX10.4-32bit-Intel-i386-Darwin.dmg Thank you, Jamie Domain name [localhost]: Using default localhost == Generating SSL certificate for server... Using certtool to generate key certtool --generate-privkey --outfile /Users/Jamie/.sage/dsage/ cacert.pem dyld: Library not loaded: /usr/local/lib/libintl.3.dylib Referenced from: /Applications/sage/local/bin/certtool Reason: image not found dyld: Library not loaded: /usr/local/lib/libintl.3.dylib Referenced from: /Applications/sage/local/bin/certtool Reason: image not found == --- OSError Traceback (most recent call last) /Users/Jamie/.sage/ in () /Applications/sage/local/lib/python2.5/site-packages/sage/server/ notebook/run_notebook.pyc in notebook_setup(self) 37 dsage = os.path.join(DOT_SAGE, 'dsage') 38 import sage.dsage.all ---> 39 sage.dsage.all.dsage.setup() 40 shutil.copyfile(dsage + '/cacert.pem', private_pem) 41 shutil.copyfile(dsage + '/pubcert.pem', public_pem) /Applications/sage/local/lib/python2.5/site-packages/sage/dsage/ dsage.pyc in setup(self, template) 320 321 from sage.dsage.scripts.dsage_setup import setup --> 322 setup(template=template) 323 324 /Applications/sage/local/lib/python2.5/site-packages/sage/dsage/ scripts/dsage_setup.py in setup(template) 209 setup_client() 210 setup_worker() --> 211 setup_server(template=template) 212 print "Configuration finished.." 213 /Applications/sage/local/lib/python2.5/site-packages/sage/dsage/ scripts/dsage_setup.py in setup_server(template) 195 196 # Set read only permissions on cert --> 197 os.chmod(os.path.join(DSAGE_DIR, 'cacert.pem'), 0600) 198 199 # create database schemas OSError: [Errno 2] No such file or directory: '/Users/Jamie/.sage/ dsage/cacert.pem' sage: version() 'Sage Version 3.4, Release Date: 2009-03-11' --~--~-~--~~~---~--~~ 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 14, 2009, at 4:52 PM, mabshoff wrote: > > 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? > > Cheers, > > Michael > I have downloaded both Michael's .dmg and the one from http:// sage.math.washington.edu/sage/osx/powerpc/index.html In both cases, after I start sage, it fails as follows: (My computer is a 300 MHz G3 running OSX 10.4.) -- | 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. --- ImportError Traceback (most recent call last) /Applications/sage/local/bin/ in () /Applications/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/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/sage/local/lib/python2.5/site-packages/sage/misc/log.py in () 63 64 import interpreter ---> 65 import latex 66 import misc 67 /Applications/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/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/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/sage/local/lib/python2.5/site- packages/sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/ sage-3.4/local/lib/libgmp.3.dylib Referenced from: /Applications/sage/local/lib//libcsage.dylib Reason: no suitable image found. Did find: /Applications/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/sage/local/lib/python2.5/site-packages/IPython/ ipmaker.py in force_import(modname) 64 reload(sys.modules[modname]) 65 else: ---> 66 __import__(modname) 67 68 /Applications/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/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/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/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_s
[sage-support] Re: using sage libraries in python script: QQ and rational_field.py
On Sun, Mar 15, 2009 at 4:00 PM, bjrnfrdnnd wrote: > > Hi, > I have installed sage 3.4 from source. > I want to use sage in my python scripts, particularly the linear > algebra part. > I therefore want to write little python scripts with something like > > m=matrix([[1,2],[3,4]]) > e=m.eigenvalues() > > My only problem is: what should I import in order to make this kind of > thing work? > > I figured out that you seemingly can import > import sage.all > > This seems to reproduce the sage command-line functionality, i.e. I > can do > > import sage.all > m=sage.all.matrix([[1,2],[3,4]]) > e=m.eigenvalues() > > However, I am not sure about that, and I did not find out where in > what manual this is explained. > And, I am importing a huge piece of software with this command. To use any part of Sage you absolutely *MUST* import sage.all. Sage is highly interdependent, and one can't just import little bits and pieces. > Therefore, I want to try something else. Looking up "eigenvalues" in > the reference manual, I find that it resides in > sage.matrix.matrix2.Matrix This will segfault and fail horribly, so you shouldn't do it. Doing "import sage.all" causes Sage to properly and in the right order initialize itself - importing random things out doesn't. -- William > > So, what I would like to do, is > import sage.matrix.matrix2 > and then use Matrix. > > However, this does not work: when trying to do this import, > python reports an error. > > Here is the way to reproduce this error: > > cd $SAGE_ROOT/loca/bin > source sage-env > ./python import sage.matrix.matrix2 > Traceback (most recent call last): > File "", line 1, in > File "matrix2.pyx", line 1, in sage.matrix.matrix2 (sage/matrix/ > matrix2.c:32616) > File "matrix1.pyx", line 1, in sage.matrix.matrix1 (sage/matrix/ > matrix1.c:9974) > File "matrix0.pyx", line 32, in sage.matrix.matrix0 (sage/matrix/ > matrix0.c:19609) > File "/home/bn/sage-3.4/local/lib/python2.5/site-packages/sage/ > modules/free_module.py", line 163, in > import free_module_element > File "free_module_element.pyx", line 111, in > sage.modules.free_module_element (sage/modules/free_module_element.c: > 19756) > File "/home/bn/sage-3.4/local/lib/python2.5/site-packages/sage/rings/ > arith.py", line 18, in > import sage.rings.rational_field > File "/home/bn/sage-3.4/local/lib/python2.5/site-packages/sage/rings/ > rational_field.py", line 52, in > import rational > File "rational.pyx", line 63, in sage.rings.rational (sage/rings/ > rational.c:17816) > File "real_mpfr.pyx", line 143, in sage.rings.real_mpfr (sage/rings/ > real_mpfr.c:25879) > AttributeError: 'module' object has no attribute 'QQ' > > > > What is going wrong? And how should I, in general, use sage in a > python script? Remember that there was no > way to find out from the eigenvalues entry in the reference manual > that you could actually import sage.all and use sage.all.matrix... > So I do actually not know how to figure out that kind of problems in > the future. If the > import sage.matrix.matrix2 > would work, > I could use sage quite straightforwardly in my scripts, as I would > then be able to use the info in the reference manual. > > Thank you for your help! > > > > -- 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] using sage libraries in python script: QQ and rational_field.py
Hi, I have installed sage 3.4 from source. I want to use sage in my python scripts, particularly the linear algebra part. I therefore want to write little python scripts with something like m=matrix([[1,2],[3,4]]) e=m.eigenvalues() My only problem is: what should I import in order to make this kind of thing work? I figured out that you seemingly can import import sage.all This seems to reproduce the sage command-line functionality, i.e. I can do import sage.all m=sage.all.matrix([[1,2],[3,4]]) e=m.eigenvalues() However, I am not sure about that, and I did not find out where in what manual this is explained. And, I am importing a huge piece of software with this command. Therefore, I want to try something else. Looking up "eigenvalues" in the reference manual, I find that it resides in sage.matrix.matrix2.Matrix So, what I would like to do, is import sage.matrix.matrix2 and then use Matrix. However, this does not work: when trying to do this import, python reports an error. Here is the way to reproduce this error: cd $SAGE_ROOT/loca/bin source sage-env ./python >>>import sage.matrix.matrix2 Traceback (most recent call last): File "", line 1, in File "matrix2.pyx", line 1, in sage.matrix.matrix2 (sage/matrix/ matrix2.c:32616) File "matrix1.pyx", line 1, in sage.matrix.matrix1 (sage/matrix/ matrix1.c:9974) File "matrix0.pyx", line 32, in sage.matrix.matrix0 (sage/matrix/ matrix0.c:19609) File "/home/bn/sage-3.4/local/lib/python2.5/site-packages/sage/ modules/free_module.py", line 163, in import free_module_element File "free_module_element.pyx", line 111, in sage.modules.free_module_element (sage/modules/free_module_element.c: 19756) File "/home/bn/sage-3.4/local/lib/python2.5/site-packages/sage/rings/ arith.py", line 18, in import sage.rings.rational_field File "/home/bn/sage-3.4/local/lib/python2.5/site-packages/sage/rings/ rational_field.py", line 52, in import rational File "rational.pyx", line 63, in sage.rings.rational (sage/rings/ rational.c:17816) File "real_mpfr.pyx", line 143, in sage.rings.real_mpfr (sage/rings/ real_mpfr.c:25879) AttributeError: 'module' object has no attribute 'QQ' What is going wrong? And how should I, in general, use sage in a python script? Remember that there was no way to find out from the eigenvalues entry in the reference manual that you could actually import sage.all and use sage.all.matrix... So I do actually not know how to figure out that kind of problems in the future. If the import sage.matrix.matrix2 would work, I could use sage quite straightforwardly in my scripts, as I would then be able to use the info in the reference manual. Thank you for your help! --~--~-~--~~~---~--~~ 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: Special linear group on finite field
thanks! I thought it was related to the fact that the size is not a prime I didn't get that sort of troubles with a similar code for prime sizes On Sun, Mar 15, 2009 at 2:34 PM, Alex Ghitza wrote: > Judging from the error message "unable to coerce from a finite field other > than the prime subfield", it seems that in Martin's examples a coercion is > attempted from GF(p^a) to GF(p^b) where a>1. In David's example, the larger > field is GF(3^2) so any coercion would be coming from GF(3), hence not > covered by the error message. > > So I don't think it has to do with trac #5491. It is either a problem with > Sage finite fields, or with translating between Gap finite fields and Sage > finite fields. I'll have a closer look later today and open a ticket. > > Best, > Alex > > > On Mon, Mar 16, 2009 at 8:19 AM, David Joyner wrote: >> >> This doesn't seem to happen for smaller values, >> >> sage: n = 2; q = 3 >> sage: H = PSL(n,q^2) >> sage: H.center() >> Permutation Group with generators [()] >> sage: n = 2; q = 2 >> sage: H = PSL(n,q^2) >> sage: H.center() >> Permutation Group with generators [()] >> >> so maybe the problem is related to >> http://trac.sagemath.org/sage_trac/ticket/5491? >> >> >> >> On Sun, Mar 15, 2009 at 3:07 PM, Martin Mereb wrote: >> > >> > and >> > also got this problem >> > >> > n=3;q=4; >> > >> > H = SL(n,q^2); >> > H.center() >> > >> > Traceback (most recent call last): >> > File "", line 1, in >> > File "/home/sage/sagenb/sage_notebook/worksheets/Tincho/3/code/3.py", >> > line 10, in >> > H.center() >> > File >> > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/", >> > line 1, in >> > >> > File >> > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/groups/matrix_gps/matrix_group.py", >> > line 678, in center >> > self.__center = MatrixGroup([g._matrix_(F) for g in G]) >> > File >> > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", >> > line 1131, in _matrix_ >> > entries = [[R(self[r,c]) for c in range(1,m+1)] for r in >> > range(1,n+1)] >> > File "finite_field_givaro.pyx", line 586, in >> > sage.rings.finite_field_givaro.FiniteField_givaro.__call__ >> > (sage/rings/finite_field_givaro.cpp:4680) >> > File >> > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", >> > line 1248, in gfq_gap_to_sage >> > return F(K(g**e)) >> > File "finite_field_givaro.pyx", line 530, in >> > sage.rings.finite_field_givaro.FiniteField_givaro.__call__ >> > (sage/rings/finite_field_givaro.cpp:4005) >> > TypeError: unable to coerce from a finite field other than the prime >> > subfield >> > >> > > >> > >> >> > > > > -- > Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- > Australia -- http://www.ms.unimelb.edu.au/~aghitza/ > > > > --~--~-~--~~~---~--~~ 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: Special linear group on finite field
> So I don't think it has to do with trac #5491. It is either a problem with > Sage finite fields, or with translating between Gap finite fields and Sage > finite fields. I'll have a closer look later today and open a ticket. > Indeed, we just don't have the ability to coerce between GF(p^a) and GF(p^(ab)) when a and b are both larger than one. For instance: sage: K. = GF(9) sage: L. = GF(81) sage: L(a) --- TypeError Traceback (most recent call last) /Users/craigcitro/.sage/temp/sharma.local/52679/_Users_craigcitro__sage_init_sage_0.py in () > 1 2 3 4 5 /sage/local/lib/python2.5/site-packages/sage/rings/finite_field_givaro.so in sage.rings.finite_field_givaro.FiniteField_givaro.__call__ (sage/rings/finite_field_givaro.cpp:4003)() 528 529 --> 530 531 532 TypeError: unable to coerce from a finite field other than the prime subfield This is hitting the exact same line that Martin did above -- see http://trac.sagemath.org/sage_trac/ticket/2916 for details. Someone needs to just sit down and implement this ... I think the relevant ticket is http://trac.sagemath.org/sage_trac/ticket/5426. Code for this exists in the coercion branch, so I think it's mostly a question of getting that code moved over ... -cc --~--~-~--~~~---~--~~ 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: Operator precedence.
hello Mike thank you very much for your information, I've looking for a solution the whole evening, I did not notice that the ^ is of course the XOR operator Mike Hansen wrote: > Hello, > > On Sun, Mar 15, 2009 at 2:48 PM, Jose Guzman wrote: > >> something strange happened to me today, if I try >> >> In [1]: 6*21/18-2^3 >> Out[1]: 6 >> >> However, if I try the following >> >> In [2]: 6*21/18-2**3 >> Out[2]: -1 >> >> then the normal operator precedence (parenthesis, exponential, >> multilplication-division-remainder, addition-subtraction) occurs. Does >> anybody have a comment on that? >> > > In Python, "^" represents the XOR operator where as "**" is exponentiation. > > In [3]: 2**3 > Out[3]: 8 > > In [4]: 2^3 > Out[4]: 1 > > At the Sage command-line, the "^" are changed into "**" so that you'd > get the behavior you'd expect: > > sage: preparse('2^3') > 'Integer(2)**Integer(3)' > sage: 2^3 > 8 > > --MIke > > > > --~--~-~--~~~---~--~~ 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: Operator precedence.
Hello, On Sun, Mar 15, 2009 at 2:48 PM, Jose Guzman wrote: > > something strange happened to me today, if I try > > In [1]: 6*21/18-2^3 > Out[1]: 6 > > However, if I try the following > > In [2]: 6*21/18-2**3 > Out[2]: -1 > > then the normal operator precedence (parenthesis, exponential, > multilplication-division-remainder, addition-subtraction) occurs. Does > anybody have a comment on that? In Python, "^" represents the XOR operator where as "**" is exponentiation. In [3]: 2**3 Out[3]: 8 In [4]: 2^3 Out[4]: 1 At the Sage command-line, the "^" are changed into "**" so that you'd get the behavior you'd expect: sage: preparse('2^3') 'Integer(2)**Integer(3)' sage: 2^3 8 --MIke --~--~-~--~~~---~--~~ 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: Small problem with limit()
Dear Willian, thank you very much for your assitance with the worksheet. Now my worksheets look much nicer! all the best Jose William Stein wrote: > On Thu, Mar 12, 2009 at 1:36 PM, Jose Guzman wrote: > >> Dear colleagues, >> >> I've just discovered this wonderful thing called Sage (I am a completely >> newbie, my apologizes in advance...), and I have to admit that I am >> impressed with Sage!!!. I started yesterday, and came along the tutorial >> already. I still miss some more documentation...specially related with >> worksheet use/configuration (I did not find any other way to combine >> LaTeX, html and sage to create nice worksheets like the ones I saw >> today. I simply start a cell with %htmlo %latex or %sage). >> > > Click on the big "Edit" button and put arbitrary html between the {{{ > }}} compute > blocks, e.g., > > anything in html > > {{{ > 2+2 > /// > 4 > }}} > > more html. > > You can also put math in $$'s in the html. > > In sage >= 3.3 you can also do "shift click" to insert a cell and you > get a GUI editor for entering nice text between cells. > > William > > > >> Anyway, I was playing around with the limits, and after checking the >> short tutorial >> (http://sage.math.washington.edu/home/elliottd/calctut/limits.html) I >> wanted to try something by myself. I found the following inconvenience. >> >> >> sage: g=9.81 >> sage: t=var('t') >> sage: limit(2*g*(t^2-1)/(t-1),t=1) >> >>> gives me 39 >> >> However, if I simplify the equation and calculate the limit... >> sage: limit(2*g*(t+1),t=1) >> >> gives me the good value 39.276 >> >> Did I do something wrong? >> >> Thank you very much in advance! >> >> >> > > > > --~--~-~--~~~---~--~~ 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] Operator precedence.
something strange happened to me today, if I try In [1]: 6*21/18-2^3 Out[1]: 6 However, if I try the following In [2]: 6*21/18-2**3 Out[2]: -1 then the normal operator precedence (parenthesis, exponential, multilplication-division-remainder, addition-subtraction) occurs. Does anybody have a comment on that? 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: Special linear group on finite field
Judging from the error message "unable to coerce from a finite field other than the prime subfield", it seems that in Martin's examples a coercion is attempted from GF(p^a) to GF(p^b) where a>1. In David's example, the larger field is GF(3^2) so any coercion would be coming from GF(3), hence not covered by the error message. So I don't think it has to do with trac #5491. It is either a problem with Sage finite fields, or with translating between Gap finite fields and Sage finite fields. I'll have a closer look later today and open a ticket. Best, Alex On Mon, Mar 16, 2009 at 8:19 AM, David Joyner wrote: > > This doesn't seem to happen for smaller values, > > sage: n = 2; q = 3 > sage: H = PSL(n,q^2) > sage: H.center() > Permutation Group with generators [()] > sage: n = 2; q = 2 > sage: H = PSL(n,q^2) > sage: H.center() > Permutation Group with generators [()] > > so maybe the problem is related to > http://trac.sagemath.org/sage_trac/ticket/5491? > > > > On Sun, Mar 15, 2009 at 3:07 PM, Martin Mereb wrote: > > > > and > > also got this problem > > > > n=3;q=4; > > > > H = SL(n,q^2); > > H.center() > > > > Traceback (most recent call last): > > File "", line 1, in > > File "/home/sage/sagenb/sage_notebook/worksheets/Tincho/3/code/3.py", > > line 10, in > >H.center() > > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/", > > line 1, in > > > > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/groups/matrix_gps/matrix_group.py", > > line 678, in center > >self.__center = MatrixGroup([g._matrix_(F) for g in G]) > > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", > > line 1131, in _matrix_ > >entries = [[R(self[r,c]) for c in range(1,m+1)] for r in range(1,n+1)] > > File "finite_field_givaro.pyx", line 586, in > > sage.rings.finite_field_givaro.FiniteField_givaro.__call__ > > (sage/rings/finite_field_givaro.cpp:4680) > > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", > > line 1248, in gfq_gap_to_sage > >return F(K(g**e)) > > File "finite_field_givaro.pyx", line 530, in > > sage.rings.finite_field_givaro.FiniteField_givaro.__call__ > > (sage/rings/finite_field_givaro.cpp:4005) > > TypeError: unable to coerce from a finite field other than the prime > subfield > > > > > > > > > > > -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~-~--~~~---~--~~ 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: Special linear group on finite field
This doesn't seem to happen for smaller values, sage: n = 2; q = 3 sage: H = PSL(n,q^2) sage: H.center() Permutation Group with generators [()] sage: n = 2; q = 2 sage: H = PSL(n,q^2) sage: H.center() Permutation Group with generators [()] so maybe the problem is related to http://trac.sagemath.org/sage_trac/ticket/5491? On Sun, Mar 15, 2009 at 3:07 PM, Martin Mereb wrote: > > and > also got this problem > > n=3;q=4; > > H = SL(n,q^2); > H.center() > > Traceback (most recent call last): > File "", line 1, in > File "/home/sage/sagenb/sage_notebook/worksheets/Tincho/3/code/3.py", > line 10, in > H.center() > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/", > line 1, in > > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/groups/matrix_gps/matrix_group.py", > line 678, in center > self.__center = MatrixGroup([g._matrix_(F) for g in G]) > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", > line 1131, in _matrix_ > entries = [[R(self[r,c]) for c in range(1,m+1)] for r in range(1,n+1)] > File "finite_field_givaro.pyx", line 586, in > sage.rings.finite_field_givaro.FiniteField_givaro.__call__ > (sage/rings/finite_field_givaro.cpp:4680) > File > "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", > line 1248, in gfq_gap_to_sage > return F(K(g**e)) > File "finite_field_givaro.pyx", line 530, in > sage.rings.finite_field_givaro.FiniteField_givaro.__call__ > (sage/rings/finite_field_givaro.cpp:4005) > TypeError: unable to coerce from a finite field other than the prime subfield > > > > --~--~-~--~~~---~--~~ 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] ANN: OpenOpt 0.23 - free numerical optimization framework
Hi all, OpenOpt 0.23, a free Python-written numerical optimization framework (license: BSD) with some own solvers and connections to tens of 3rd party ones, has been released. Our new homepage: http://openopt.org Introduction to the framework: http://openopt.org/Foreword All release details here: http://openopt.org/Changelog or http://forum.openopt.org/viewtopic.php?id=58 Special thanks to Stepan Hlushak for writing GLP (global) solver "de" ("differential evolution"). Regards, OpenOpt developers. --~--~-~--~~~---~--~~ 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] Special linear group on finite field
and also got this problem n=3;q=4; H = SL(n,q^2); H.center() Traceback (most recent call last): File "", line 1, in File "/home/sage/sagenb/sage_notebook/worksheets/Tincho/3/code/3.py", line 10, in H.center() File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/groups/matrix_gps/matrix_group.py", line 678, in center self.__center = MatrixGroup([g._matrix_(F) for g in G]) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", line 1131, in _matrix_ entries = [[R(self[r,c]) for c in range(1,m+1)] for r in range(1,n+1)] File "finite_field_givaro.pyx", line 586, in sage.rings.finite_field_givaro.FiniteField_givaro.__call__ (sage/rings/finite_field_givaro.cpp:4680) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py", line 1248, in gfq_gap_to_sage return F(K(g**e)) File "finite_field_givaro.pyx", line 530, in sage.rings.finite_field_givaro.FiniteField_givaro.__call__ (sage/rings/finite_field_givaro.cpp:4005) TypeError: unable to coerce from a finite field other than the prime subfield --~--~-~--~~~---~--~~ 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] Unitary groups on finite fields
in the notebook of sagenb.org I have just typed n=2;q=9; G = GU(n,q); H = SL(n,q^2); Z=H.center(); z=Z.gen(0) z in G True G(z) Traceback (most recent call last): File "", line 1, in File "/home/sage/sagenb/sage_notebook/worksheets/Tincho/3/code/45.py", line 6, in G(z) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/groups/matrix_gps/matrix_group.py", line 223, in __call__ M = self.matrix_space()(x) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/matrix/matrix_space.py", line 379, in __call__ return self(entries.matrix(), copy=False) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/matrix/matrix_space.py", line 381, in __call__ return self.matrix(entries, copy=copy, coerce=coerce, rows=rows) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/matrix/matrix_space.py", line 1053, in matrix return self.__matrix_class(self, entries=x, copy=copy, coerce=coerce) File "matrix_generic_dense.pyx", line 94, in sage.matrix.matrix_generic_dense.Matrix_generic_dense.__init__ (sage/matrix/matrix_generic_dense.c:2052) File "finite_field_givaro.pyx", line 530, in sage.rings.finite_field_givaro.FiniteField_givaro.__call__ (sage/rings/finite_field_givaro.cpp:4005) TypeError: unable to coerce from a finite field other than the prime subfield I didn't have that problem with Z(z) nor H(z) --~--~-~--~~~---~--~~ 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 binaries doesn't work on a Debian Lenny 64bit server with Intel Xeon Dual core and Xen hypervisor
On Thu, Feb 26, 2009 at 4:08 PM, mabshoff wrote: > > Some more update: "-p" is at fault here, but that startup option isn't > documented in the GAP help, so I have started looking at the source > code what it is exactly supposed to do. > > Either way, if you look at interfaces/gap.py in > > def _execute_line(self, line, wait_for_prompt=True, > expect_eof=False): > > you will see that the info created by "-p" is used and given the > interface to GAP was written by Steve Linton (who is one of the > current GAP maintainers) I am sure that it is done so for a good > reason. > > So, what is the fix then? Likely an adjustment to the pexepct > interface for GAP, but so far I have little lead what to do here. > Other people will hopefully have a shorter learning cure for that > code. Just to mention I also tried sage-3.4 binary for Debian Lenny and got exactly the same error (but I have to remove a file that warns about the absence of sse4_1 flag before). So, it confirms this GAP bug is still present in sage-3.4. -- Johan --~--~-~--~~~---~--~~ 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: Making pylab.plot() and pylab.show() in Sage
Thanks to all of you for responding. This thread brings up another interesting question: How can I actually tell sage to save the graphics image to a separate file, in addition to displaying it? TIA for your response. Gus --~--~-~--~~~---~--~~ 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_root reports zeroes of denominator as roots
f(x)=1/x r1=find_root(f,-1,1);r1 -1.8189894035440371e-12 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---