[sage-support] Sage Live CD (Alternativ based on Puppy Linux)
Hello, I created a Live CD (or USB install) for Sage based on the small Puppy Linux distribution. Compared to the ubuntu based sage42lwlcd.iso there are more applications, Sage Doc and Tutorial. Also there is more bling i.e. nicer desktop appearance. Download: http://www.filehosting.org/file/details/113543/SageLivePupv02.iso 685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f Since puppy linux is designed to be small and run well on low spec computers i figured it should be a good base platform for a big package like sage. I tested it on 1 GB, 1.6Ghz and it is quite responsive and workflow seems to be ok. I am no professional in the field and this is just a labor of love, but I think for some this alternative might be useful. It would be great if anybody could test it. A quick and easy method i.e is UNetbootin (no CD required). thanks in advance emil PS: I posted also on the PLinux Forum (screenshot there) http://www.murga-linux.com/puppy/viewtopic.php?t=52582 and in the sage-edu list. -- 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 URL: http://www.sagemath.org
Re: [sage-support] error building sage 4.3.2
leonard.jeloa...@free.fr wrote: Hello, I am trying to build sage 4.3.2 from source on my desktop OpenSuSE 11.2 x64, Intel Core2 Duo, but the installation stops at this point : -- cc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) bash: symbol lookup error: /home/jeloaica/sage-4.3.2/local/lib/libreadline.so.6: undefined symbol: PC real0m0.001s user0m0.000s sys 0m0.001s sage: An error occurred while installing sqlite-3.6.19.p0 .. make[1]: *** [installed/sqlite-3.6.19.p0] Error 1 make[1]: Leaving directory `/home/jeloaica/sage-4.3.2/spkg' real0m48.920s user0m14.657s sys 0m4.640s Error building Sage Any ideas? Is this version of gcc ok? Thank you in advance for any help. Leonard Looking in the Sage package for readline, there is some specific things that are executed on SUSE 11.1. The particular bit of code is: --- # First we check for OpenSUSE 11.1 since bash is linked dynamically with a # readline that breaks when we build Sage's readline, so we work around this # for now. if [ -f /etc/SuSE-release ]; then if [ `grep 11.1 /etc/SuSE-release /dev/null; echo $?` -eq 0 ]; then echo OpenSUSE 11.1 detected if [ -d /usr/include/readline/ ]; then echo The development version of libreadline is installed - copying if [ `uname -p` = x86_64 ]; then cp /lib64/libreadline.so.* $SAGE_LOCAL/lib else cp /lib/libreadline.so.* $SAGE_LOCAL/lib fi cp -r /usr/include/readline $SAGE_LOCAL/include exit 0 else echo No headers found, building library. # # This variable is only set to true on openSUSE 11.1. # OVERWRITE_READLINE=true; export OVERWRITE_READLINE fi fi fi - It might be worth your while running $ uname -p seeing if it prints x86_64 or not (which I assume it will in your case), then running $ cp /lib64/libreadline.so.* /home/jeloaica/sage-4.3.2/local/lib/ *AFTER* first backing up the readline files in that directory. It is possible that code which is executed automatically on SUSE 11.1 needs to be executed on 11.2 too. But I do not know this for sure. I'm not a SUSE user. 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 URL: http://www.sagemath.org
Re: [sage-support] Sage Live CD (Alternativ based on Puppy Linux)
On Wednesday 17 February 2010 03:24, emil wrote: Download: http://www.filehosting.org/file/details/113543/SageLivePupv02.iso 685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f If possible, please do not post your file on a system that requires a valid email address from the user in order to download. Many object to exposing themselves to possible spammers. Jeff -- 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 URL: http://www.sagemath.org
[sage-support] sage-mode completion not quite working with sage 4.3.2
hi, i've upgraded to sage 4.3.2, and it seems to have disturbed the emacs- mode. When i go sage: n=1 sage: n.[TAB] emacs says 'no completions of n.'. It used to give me all the possibilities in a buffer, which i got addicted to ! It still works when there isn't a dot, so Ma[TAB] does list MatrixSpace etc. i've tried to re-install sage-mode of course, to no effect. is anyone else affected by this ? pierre -- 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 URL: http://www.sagemath.org
[sage-support] animations of raytraces of 3d plots.
Greetings! I've been trying to make animations of Tachyon raytraced 3d plots, so that people can see a plot from multiple angles without java. (It could also be used to visualise a forth dimension...) None of my attempts have worked The best strategy I've had was: sage: b = parametric_plot3d((u^2, v, u*v), [u, -1, 1], [v, -1, 1], viewer='tachyon') sage: animate([b.rotateY( 2*pi*(j/6) ) for j in range(6)]) But that didn't work either... I seem to be over my head in the internal magic of sage. Can someone help me? Thanks, Christopher -- 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 URL: http://www.sagemath.org
Re: [sage-support] animations of raytraces of 3d plots.
On Feb 17, 2010, at 10:28 AM, Christopher Olah wrote: Greetings! I've been trying to make animations of Tachyon raytraced 3d plots, so that people can see a plot from multiple angles without java. (It could also be used to visualise a forth dimension...) None of my attempts have worked The best strategy I've had was: sage: b = parametric_plot3d((u^2, v, u*v), [u, -1, 1], [v, -1, 1], viewer='tachyon') sage: animate([b.rotateY( 2*pi*(j/6) ) for j in range(6)]) But that didn't work either... I seem to be over my head in the internal magic of sage. Can someone help me? Animate doesn't understand 3d graphics objects. This shouldn't be too hard to fix, is anyone working on that? - Robert -- 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 URL: http://www.sagemath.org
[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)
Hi Jeff, sorry I wanted to post this on sage-devel originally and removed it, but then had no time to repost at sage devel (had to get membership first). Also sorry about any inconvenience with this download server. H. Schilly contacted me and maybe it will be available on the sage mirror soon. I append the original post, but I think this thread should be in sage- devel. I could need someone willing to try/test it and give feedback. regards emil ORIGINAL POST: Hello, I created a Live CD (or USB install) for Sage based on the small Puppy Linux distribution. Compared to the ubuntu based sage42lwlcd.iso there are more applications, Sage Doc and Tutorial. Also there is more bling i.e. nicer desktop appearance. Download: http://www.filehosting.org/file/details/113543/SageLivePupv02.iso 685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f Since puppy linux is designed to be small and run well on low spec computers i figured it should be a good base platform for a big package like sage. I tested it on 1 GB, 1.6Ghz and it is quite responsive and workflow seems to be ok. I am no professional in the field and this is just a labor of love, but I think for some this alternative might be useful. It would be great if anybody could test it. A quick and easy method i.e is UNetbootin (no CD required). thanks in advance emil PS: I posted also on the PLinux Forum (screenshot there) http://www.murga-linux.com/puppy/viewtopic.php?t=52582 and in the sage-edu list. On Feb 17, 2:43 pm, Jeff Post j_p...@pacbell.net wrote: On Wednesday 17 February 2010 03:24, emil wrote: Download: http://www.filehosting.org/file/details/113543/SageLivePupv02.iso 685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f If possible, please do not post your file on a system that requires a valid email address from the user in order to download. Many object to exposing themselves to possible spammers. Jeff -- 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 URL: http://www.sagemath.org
Re: [sage-support] animations of raytraces of 3d plots.
I think you misunderstand. I'm not passing a 3d object to animate (or at least, I'm not trying to...). I'm passing a list of images of a 3d object. The problem is that I'm having trouble geting that list. I'm trying to use Tachyon to render images, but... It's not working very well. On Wed, Feb 17, 2010 at 1:52 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Feb 17, 2010, at 10:28 AM, Christopher Olah wrote: Greetings! I've been trying to make animations of Tachyon raytraced 3d plots, so that people can see a plot from multiple angles without java. (It could also be used to visualise a forth dimension...) None of my attempts have worked The best strategy I've had was: sage: b = parametric_plot3d((u^2, v, u*v), [u, -1, 1], [v, -1, 1], viewer='tachyon') sage: animate([b.rotateY( 2*pi*(j/6) ) for j in range(6)]) But that didn't work either... I seem to be over my head in the internal magic of sage. Can someone help me? Animate doesn't understand 3d graphics objects. This shouldn't be too hard to fix, is anyone working on that? - Robert -- 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 URL: http://www.sagemath.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 URL: http://www.sagemath.org
[sage-support] include another worksheet
hi all! I have a simple question, sorry if I could have found the answer somewhere else What should I do if I want to include another notebook worksheet at the beginning of a new worksheet? For example, if I have some other functions or values or variables there I want to reuse. Something like load or import, what can I do? thanks Maurizio -- 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 URL: http://www.sagemath.org
[sage-support] A command which causes Sage to crash
-- | Sage Version 4.3.1, Release Date: 2010-01-20 | | Type notebook() for the GUI, and license() for information.| -- sage: M=matrix(Zmod(26),[[22,11,19],[15,20,24],[25,21,16]]) sage: M.inverse() [14 25 6] [ 2 3 11] [21 9 25] sage: M=matrix(Zmod(2),[[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,1]]) sage: M.inverse() /usr/local/share/sage-4.3.1-linux-openSUSE_11.1_i586-i686-Linux/local/ bin/sage-sage: line 206: 26441 Illegal instruction sage-ipython $@ -i Admittedly this isn't the most recent version of Sage - but why does Sage crash rather than just give an error? And is there some way I can invert matrices mod 2? The command det(M) also causes a crash. Thanks, Alasdair -- 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 URL: http://www.sagemath.org
Re: [sage-support] A command which causes Sage to crash
On Wed, Feb 17, 2010 at 3:12 PM, Alasdair amc...@gmail.com wrote: Admittedly this isn't the most recent version of Sage - but why does Sage crash rather than just give an error? And is there some way I can invert matrices mod 2? The command det(M) also causes a crash. That doesn't happen on my copy of 4.3.1. How did you install Sage? Judging from the Illegal instruction, my guess is from a binary that's incompatible with your processor --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 URL: http://www.sagemath.org
Re: [sage-support] A command which causes Sage to crash
On Wed, 17 Feb 2010 at 03:12PM -0800, Alasdair wrote: -- | Sage Version 4.3.1, Release Date: 2010-01-20 | | Type notebook() for the GUI, and license() for information.| -- sage: M=matrix(Zmod(26),[[22,11,19],[15,20,24],[25,21,16]]) sage: M.inverse() [14 25 6] [ 2 3 11] [21 9 25] sage: M=matrix(Zmod(2),[[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,1]]) sage: M.inverse() /usr/local/share/sage-4.3.1-linux-openSUSE_11.1_i586-i686-Linux/local/ bin/sage-sage: line 206: 26441 Illegal instruction sage-ipython $@ -i Admittedly this isn't the most recent version of Sage - but why does Sage crash rather than just give an error? And is there some way I can invert matrices mod 2? The command det(M) also causes a crash. It doesn't crash for me. Given that you are doing some kind of linear algebra, my guesss is that the binary you are using was compiled with a CPU that has instructions that your CPU does not. Did you delete SAGE_ROOT/local/lib/sage-flags.txt or anything like that? If not, what do you get from cat /proc/cpuinfo? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature
[sage-support] Re: A command which causes Sage to crash
I can't remember whether I downloaded a binary, or built from source (I'm running openSUSE 11.1). I think I might just download the source of 4.3.2 and build the lot - seems less hassle in the long run. cheers, Alasdair On Feb 18, 10:14 am, Mike Hansen mhan...@gmail.com wrote: On Wed, Feb 17, 2010 at 3:12 PM, Alasdair amc...@gmail.com wrote: Admittedly this isn't the most recent version of Sage - but why does Sage crash rather than just give an error? And is there some way I can invert matrices mod 2? The command det(M) also causes a crash. That doesn't happen on my copy of 4.3.1. How did you install Sage? Judging from the Illegal instruction, my guess is from a binary that's incompatible with your processor --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 URL: http://www.sagemath.org
Re: [sage-support] include another worksheet
On Wed, Feb 17, 2010 at 12:46 PM, Maurizio maurizio.gran...@gmail.com wrote: hi all! I have a simple question, sorry if I could have found the answer somewhere else What should I do if I want to include another notebook worksheet at the beginning of a new worksheet? For example, if I have some other functions or values or variables there I want to reuse. Something like load or import, what can I do? Unfortunately, this feature doesn't currently exist. William thanks Maurizio -- 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 URL: http://www.sagemath.org -- 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 URL: http://www.sagemath.org
[sage-support] Integer solutions to an equations system
A friend of mine proposed me the following problem: A reporter asks a military officer how many soldiers are at a certain military base. The officer, not wanting to reveal such sensitive information, but also not wanting to seem overly secretive, gives an indirect answer: When my soldiers form 2 collumns there is 1 soldier left. When my soldiers form 3 collumns there are 2 soldier left. When my soldiers form 4 collumns there are 3 soldier left. When my soldiers form 5 collumns there are 4 soldier left. When my soldiers form 6 collumns there are 5 soldier left. When my soldiers form 7 collumns there are 0 soldier left. How many soldiers are there? I formed the following equations system and put it on a notebook cell: var('x1 x2 x3 x4 x5 x6 n') eq1=7*x1==n eq2=6*x2 +5 ==n eq3=5*x3 +4 ==n eq4=4*x4 +3 ==n eq5=3*x5 +2 ==n eq6=2*x6 +1 ==n equations=(eq1,eq2,eq3,eq4,eq5,eq6) solve(equations,x2,x3,x4,x5,x6,n) And got: [[ x2 == 7/6*x1 - 5/6, x3 == 7/5*x1 - 4/5, x4 == 7/4*x1 - 3/4, x5 ==7/3*x1 - 2/3, x6 == 7/2*x1 - 1/2, n == 7*x1]] Which is correct as far as I can see, but it only produces a valid n when all of x1,x2,x3,x4,x5,x6 are integer. I know I could find the answer by examining succesive values of x1 untill all the x are integer, but is there some way to tell sage that we are dealing with integer variables? I have the feeling that this is a more profound problem than it appears (finding integer solutions). thanks! Oscar -- 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 URL: http://www.sagemath.org
Re: [sage-support] Integer solutions to an equations system
You would also want an additional constraint: n = 0. Such problems form the class of so called Integer Programming problems. These problems are NP-hard in general, but there are good software (including open-source) available to solve such problems. e.g. https://projects.coin-or.org/Cbc The above solver, Cbc, is available as an optional package for sage. See: http://www.sagemath.org/packages/optional/ I haven't used it myself though. Hope this helps. -- regards Ashutosh Mahajan http://coral.ie.lehigh.edu/~asm4 On Wed, Feb 17, 2010 at 07:21:01PM -0600, Oscar Gerardo Lazo Arjona wrote: A friend of mine proposed me the following problem: A reporter asks a military officer how many soldiers are at a certain military base. The officer, not wanting to reveal such sensitive information, but also not wanting to seem overly secretive, gives an indirect answer: When my soldiers form 2 collumns there is 1 soldier left. When my soldiers form 3 collumns there are 2 soldier left. When my soldiers form 4 collumns there are 3 soldier left. When my soldiers form 5 collumns there are 4 soldier left. When my soldiers form 6 collumns there are 5 soldier left. When my soldiers form 7 collumns there are 0 soldier left. How many soldiers are there? I formed the following equations system and put it on a notebook cell: var('x1 x2 x3 x4 x5 x6 n') eq1=7*x1==n eq2=6*x2 +5 ==n eq3=5*x3 +4 ==n eq4=4*x4 +3 ==n eq5=3*x5 +2 ==n eq6=2*x6 +1 ==n equations=(eq1,eq2,eq3,eq4,eq5,eq6) solve(equations,x2,x3,x4,x5,x6,n) And got: [[ x2 == 7/6*x1 - 5/6, x3 == 7/5*x1 - 4/5, x4 == 7/4*x1 - 3/4, x5 ==7/3*x1 - 2/3, x6 == 7/2*x1 - 1/2, n == 7*x1]] Which is correct as far as I can see, but it only produces a valid n when all of x1,x2,x3,x4,x5,x6 are integer. I know I could find the answer by examining succesive values of x1 untill all the x are integer, but is there some way to tell sage that we are dealing with integer variables? I have the feeling that this is a more profound problem than it appears (finding integer solutions). thanks! Oscar -- 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 URL: http://www.sagemath.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 URL: http://www.sagemath.org
[sage-support] Re: animations of raytraces of 3d plots.
On 02/17/2010 12:28 PM, Christopher Olah wrote: Greetings! I've been trying to make animations of Tachyon raytraced 3d plots, so that people can see a plot from multiple angles without java. (It could also be used to visualise a forth dimension...) None of my attempts have worked The best strategy I've had was: sage: b = parametric_plot3d((u^2, v, u*v), [u, -1, 1], [v, -1, 1], viewer='tachyon') sage: animate([b.rotateY( 2*pi*(j/6) ) for j in range(6)]) But that didn't work either... I seem to be over my head in the internal magic of sage. Can someone help me? My guess is that since http://trac.sagemath.org/sage_trac/ticket/2872 has been merged, the above code will work in sage 4.3.3. Does anyone have an alpha they can try it in? You might have to fiddle with the viewer='tachyon' bit, though. 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 URL: http://www.sagemath.org
[sage-support] Re: WTF
First, thanks to everyone for their help and support. I appear to have a well-behaved worksheet. I took Jason's advice: I copied the source under the edit tab, pasted it into a new worksheet, and edited the source. I've saved it, opened it, downloaded it, uploaded it, etc. multiple times and everything seems to be working as expected. If anyone is interested, they are welcome to see (and use) the finished product which is linked to from here: http://ma4140.wikidot.com/sage:sage-lab-1 The lab is meant to be an introduction to Sage for my abstract algebra students. If you take a look and notice an error or if you have any suggestions, please let me know. Thanks again. Dana -- 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 URL: http://www.sagemath.org
Re: [sage-support] Re: WTF
On Wed, 17 Feb 2010 19:44:52 -0800 (PST), D.C. Ernst ernst.tr...@gmail.com wrote: If anyone is interested, they are welcome to see (and use) the finished product which is linked to from here: http://ma4140.wikidot.com/sage:sage-lab-1 The lab is meant to be an introduction to Sage for my abstract algebra students. If you take a look and notice an error or if you have any suggestions, please let me know. Dear Dana, Thanks for posting this, and I'm happy to hear that your worksheets are safe. I had a quick look at the intro, which is quite nice. Here are a few random comments: * Under What is Sage: take should be taken * one should also avoid using i and I as variables for the same obvious reason as for e * just a comment: I never used del(); in fact, I didn't know it existed before reading your intro (thanks!); I normally just define f to be the next thing I'm interested in. Actually, I don't know how to get information about del() in Sage; trying del? is not successful. * when I get to plot(1/t, ...) I get a NameError because t has not yet been defined; did you do this on purpose to get them to fix it? * for Divisibility of integers, you can also do something like q, r = 4357.quo_rem(3754) and get the quotient and the remainder in one go. * in Extended gcd, I think saying *the* values of r and s might mislead people into thinking that these values are uniquely determined; I would drop the the. Best, Alex -- 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 URL: http://www.sagemath.org
Re: [sage-support] Re: WTF
I had a quick look at the intro, which is quite nice. Thanks. * Under What is Sage: take should be taken Ah, good catch * one should also avoid using i and I as variables for the same obvious reason as for e Yes, very good point. I add that, too. * just a comment: I never used del(); in fact, I didn't know it existed before reading your intro (thanks!); I normally just define f to be the next thing I'm interested in. Actually, I don't know how to get information about del() in Sage; trying del? is not successful. I borrowed this idea from one of the people that I credit at the bottom. * when I get to plot(1/t, ...) I get a NameError because t has not yet been defined; did you do this on purpose to get them to fix it? No, that wasn't on purpose. Thanks. * for Divisibility of integers, you can also do something like q, r = 4357.quo_rem(3754) and get the quotient and the remainder in one go. This is news to me and useful to know. * in Extended gcd, I think saying *the* values of r and s might mislead people into thinking that these values are uniquely determined; I would drop the the. Good suggestion. Thanks for taking the time to look it over. I'll make these changes now. Dana -- 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 URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)
On Wednesday 17 February 2010 11:40, emil wrote: Hi Jeff, sorry I wanted to post this on sage-devel originally and removed it, but then had no time to repost at sage devel (had to get membership first). Also sorry about any inconvenience with this download server. H. Schilly contacted me and maybe it will be available on the sage mirror soon. I append the original post, but I think this thread should be in sage- devel. I could need someone willing to try/test it and give feedback. regards emil I'd love to test it. Please let us know when and from where the iso file can be downloaded anonymously. Thanks, Jeff -- 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 URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)
On Wed, 17 Feb 2010 21:06:51 -0800, Jeff Post j_p...@pacbell.net wrote: I'd love to test it. Please let us know when and from where the iso file can be downloaded anonymously. Yes, that's pretty annoying. I've gone through it, downloaded it and posted it at http://aghitza.org/misc/SageLivePupv02.iso Here is the md5sum to check if the download is ok: 359f63129d4f3993bd890e4029b4d98f I'll leave this up until a copy makes it onto the official Sage pages. Best, Alex -- 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 URL: http://www.sagemath.org
[sage-support] Behavior of a PARI function when called within SAGE
I have a program that includes the command to evaluate the K-Bessel function using Pari: it will sometimes be called with arguments like the following: bessel_K(5*i,320,pari,100) which evaluates the Bessel function at index (first variable) 5i, value (second variable) 320, with 100 precision. This exhibits some unexpected behavior when called from within SAGE, as follows. The bessel_K fucntion, with fixed index, and growing second variable exhibits exhibits exponential decay, as shown by these (correct) calculations performed in Pari itself: ? besselk(5*I,10) %21 = 0.05278121765149121993302205040728036 + 0.E-63*I ? besselk(5*I,20) %22 = 0.031100590842180056295117848690804514567 + 1.0123223351797578055 E-56*I ? besselk(5*I,50) %23 = 2.6618248851542254648076325142970767971 E-23 + 0.E-99*I ? besselk(5*I,100) %24 = 4.1118977682833709016799697590620762478 E-45 + 0.E-102*I ? besselk(5*I,200) %25 = 1.1515969255360280546036312473791321981 E-88 + 1.7485172637427202649 E-133*I (the imaginary parts in the answer are really 0 and can easily be removed). however, the same calculations performed with the SAGE interface to PARI yield: sage: bessel_K(5*i,10,pari,100) 5.2781217651491219933022050407e-6 sage: bessel_K(5*i,20,pari,100) 3.1100590842180056295117848685e-10 sage: bessel_K(5*i,50,pari,100) 2.6281390403939624075513589787e-23 sage: bessel_K(5*i,100,pari,100) -0.029088364960963220354623866640 - 0.040723710945348508499861545085*I sage: bessel_K(5*i,200,pari,100) -4.3246147682420463563103557554e40 + 4.3246147682420463567825924037e40*I So they agree until the second variable reaches at least 50, but then SAGE starts reporting wrong answers. Apparently, SAGE is interpreting very small floating point numbers as very large ones, wrapping around the exponents. What I would like to do is (obviously) have SAGE report the real answer, or failing that, have it instead judge a very small floating point number to be 0 and return 0 as the answer instead of a very large floating point. Thanks, Eliot -- 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 URL: http://www.sagemath.org
[sage-support] Re: A command which causes Sage to crash
I think I was working with a downloaded binary. I downloaded and compiled the source of 4.3.2 today and so far all seems to be working well. - Alasdair On Feb 18, 10:12 am, Alasdair amc...@gmail.com wrote: -- | Sage Version 4.3.1, Release Date: 2010-01-20 | | Type notebook() for the GUI, and license() for information. | -- sage: M=matrix(Zmod(26),[[22,11,19],[15,20,24],[25,21,16]]) sage: M.inverse() [14 25 6] [ 2 3 11] [21 9 25] sage: M=matrix(Zmod(2),[[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,1]]) sage: M.inverse() /usr/local/share/sage-4.3.1-linux-openSUSE_11.1_i586-i686-Linux/local/ bin/sage-sage: line 206: 26441 Illegal instruction sage-ipython $@ -i Admittedly this isn't the most recent version of Sage - but why does Sage crash rather than just give an error? And is there some way I can invert matrices mod 2? The command det(M) also causes a crash. Thanks, Alasdair -- 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 URL: http://www.sagemath.org
[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)
On Feb 18, 6:56 am, Alex Ghitza aghi...@gmail.com wrote: On Wed, 17 Feb 2010 21:06:51 -0800, Jeff Post j_p...@pacbell.net wrote: I'd love to test it. Please let us know when and from where the iso file can be downloaded anonymously. Yes, that's pretty annoying. I've gone through it, downloaded it and posted it at http://aghitza.org/misc/SageLivePupv02.iso Here is the md5sum to check if the download is ok: 359f63129d4f3993bd890e4029b4d98f I'll leave this up until a copy makes it onto the official Sage pages. Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia --http://www.ms.unimelb.edu.au/~aghitza/ Thank you Alex for your help, Tt should be on the sage mirrors now! Feedback would be appreciated. emil -- 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 URL: http://www.sagemath.org