[sage-devel] Re: Why does sage not use Qemu?
Hi there, I have used QEMU extensively in the past and I agree it is a wonderful piece of software. Also, you can basically use QEMU as KVM to get better performance under linux. We use VMWare mainly to deploy Sage for Windows. For this situation we don't care too much if the virtualisation/emulation is open-source or not. The users running Windows don't run an open-source stack anyway so it makes no difference to add another non-free (as in free speech) tool to the mix. VMWare Player has the advantage of being very easy to use (easy to configure, mouse trapping, copy'n'paste) and is free as in free beer. Also VMWare is cross platform (OSX, Windows, Linux) such that it is a good choice. That said, there is no reason to exclusively stick to that option. Someone on IRC wanted to spend some time to provide a kick-ass VMWare/VirtualBox/Whatever image for Sage which certainly could be provided for several virtualisation solutions. However, this requires someone to maintain it and/or make it very easy to generate these images for each new release (once a week!). The current VMWare images were created by William Stein just to quickly get the job done, so there is certainly room for improvements. Would you be interested in helping out? Martin PS: Note that it is quite easy to convert a VMWare image to a QEMU and or VirtualBox image, it just takes time. -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Why does sage not use Qemu?
If I recall correctly, you can use a disk image utility included with QEMU to convert a vmware image to one usable by QEMU, or even an image that can be written directly to disk (e.g. via the dd command). On Dec 26, 8:52 am, Martin Albrecht <[EMAIL PROTECTED]> wrote: > Hi there, > > I have used QEMU extensively in the past and I agree it is a wonderful piece > of software. Also, you can basically use QEMU as KVM to get better > performance under linux. > > We use VMWare mainly to deploy Sage for Windows. For this situation we don't > care too much if the virtualisation/emulation is open-source or not. The > users running Windows don't run an open-source stack anyway so it makes no > difference to add another non-free (as in free speech) tool to the mix. > VMWare Player has the advantage of being very easy to use (easy to configure, > mouse trapping, copy'n'paste) and is free as in free beer. Also VMWare is > cross platform (OSX, Windows, Linux) such that it is a good choice. > > That said, there is no reason to exclusively stick to that option. Someone on > IRC wanted to spend some time to provide a kick-ass > VMWare/VirtualBox/Whatever image for Sage which certainly could be provided > for several virtualisation solutions. However, this requires someone to > maintain it and/or make it very easy to generate these images for each new > release (once a week!). > > The current VMWare images were created by William Stein just to quickly get > the job done, so there is certainly room for improvements. > > Would you be interested in helping out? > > Martin > > PS: Note that it is quite easy to convert a VMWare image to a QEMU and or > VirtualBox image, it just takes time. > > -- > name: Martin Albrecht > _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 > _www:http://www.informatik.uni-bremen.de/~malb > _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: vmware
On Dec 25, 2007 9:35 PM, Ted Kosan <[EMAIL PROTECTED]> wrote: > I am visiting at a relative's house. I tried uploading the tested > vmware image twice, but the DSL connection dropped the upload both > times. > > Unfortunately, it looks like someone else will need to test the image :-( OK. I just posted the new version to sagemath.org: http://sagemath.org/SAGEbin/microsoft_windows/ but I didn't stop the machine first. It will work for people, but may be slightly larger than otherwise, and they might (?) get funny error messages I don't know. William William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] ATLAS build failure
Hi Michael, I just attempted to build Sage on some fancy new 16-core 32GB RAM opteron box running Ubuntu at Harvard, and it fails in building Sage. The machine is completely unloaded, but ATLAS fails to build every time with tolerance errors. I put the log file here: http://sage.math.washington.edu/home/was/build/install-atlas_fail.log Thoughts? [EMAIL PROTECTED]:~/sage$ uname -a Linux newserver 2.6.22-14-server #1 SMP Sun Oct 14 22:09:15 GMT 2007 x86_64 GNU/Linux [EMAIL PROTECTED]:~/sage$ cat /etc/issue Ubuntu 7.10 \n \l [EMAIL PROTECTED]:~/sage$ free total used free sharedbuffers cached Mem: 325061441719772 30786372 0 226088 921984 -/+ buffers/cache: 571700 3193 Swap: 7815612 07815612 $ cat /proc/cpuinfo ... processor : 15 vendor_id : AuthenticAMD cpu family : 15 model : 65 model name : Dual-Core AMD Opteron(tm) Processor 8218 stepping: 2 cpu MHz : 1000.000 cache size : 1024 KB physical id : 7 siblings: 2 core id : 1 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy bogomips: 1999.92 TLB size: 1024 4K pages clflush size: 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] "sage" google pagerank
Hi, Right now in the US if you search for "sage" in Google then sagemath.org comes up first.Finally! -- William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: ATLAS build failure
On Dec 26, 4:39 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > Hi Michael, Hi, > I just attempted to build Sage on some fancy new 16-core 32GB RAM > opteron box running Ubuntu at Harvard, > and it fails in building Sage. The machine is completely unloaded, > but ATLAS fails to build every time with > tolerance errors. I put the log file here: > > http://sage.math.washington.edu/home/was/build/install-atlas_fail.log > > Thoughts? To summarize some IRC and off-list email exchanges. It is in all likelihood a power management issue, see the low frequency and bogomips below. The FAQ answers how to fix that :) Otherwise the kernel might be misconfigured for such a large box. Cheers, Michael > [EMAIL PROTECTED]:~/sage$ uname -a > Linux newserver 2.6.22-14-server #1 SMP Sun Oct 14 22:09:15 GMT 2007 > x86_64 GNU/Linux > [EMAIL PROTECTED]:~/sage$ cat /etc/issue > Ubuntu 7.10 \n \l > > [EMAIL PROTECTED]:~/sage$ free > total used free sharedbuffers cached > Mem: 325061441719772 30786372 0 226088 921984 > -/+ buffers/cache: 571700 3193 > Swap: 7815612 07815612 > > $ cat /proc/cpuinfo > ... > processor : 15 > vendor_id : AuthenticAMD > cpu family : 15 > model : 65 > model name : Dual-Core AMD Opteron(tm) Processor 8218 > stepping: 2 > cpu MHz : 1000.000 > cache size : 1024 KB > physical id : 7 > siblings: 2 > core id : 1 > cpu cores : 2 > fpu : yes > fpu_exception : yes > cpuid level : 1 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext > fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm > extapic cr8_legacy > bogomips: 1999.92 > TLB size: 1024 4K pages > clflush size: 64 > cache_alignment : 64 > address sizes : 40 bits physical, 48 bits virtual > power management: ts fid vid ttp tm stc > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: ATLAS build failure
On Dec 26, 5:03 pm, Ismail Dönmez <[EMAIL PROTECTED]> wrote: > Wednesday 26 December 2007 17:39:41 tarihinde William Stein şunları yazmıştı: > > > Hi Michael, > > > I just attempted to build Sage on some fancy new 16-core 32GB RAM > > opteron box running Ubuntu at Harvard, > > and it fails in building Sage. The machine is completely unloaded, > > but ATLAS fails to build every time with > > tolerance errors. I put the log file here: > > >http://sage.math.washington.edu/home/was/build/install-atlas_fail.log > > > Thoughts? > Hi Ismail, or do you prefer cartman? > Any power management module is loaded? Ubuntu loads them per default. I guess they do so to keep the amount of energy that is wasted by unloaded servers to a minimum. Using cpufrequtils to use performance governors for all CPUs fixes the issue. Cheers, Michael > Regards, > ismail > > -- > Never learn by your mistakes, if you do you may never dare to try again. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: ATLAS build failure
Hi Michael, > Hi Ismail, > > or do you prefer cartman? Ismail is better for email :-) > > Any power management module is loaded? > > Ubuntu loads them per default. I guess they do so to keep the amount > of energy that is wasted by unloaded servers to a minimum. I guessed so too, and it makes ATLAS unhappy. > Using cpufrequtils to use performance governors for all CPUs fixes the > issue. Good to know. Regards, ismail -- Never learn by your mistakes, if you do you may never dare to try again. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: ATLAS build failure
Wednesday 26 December 2007 17:39:41 tarihinde William Stein şunları yazmıştı: > Hi Michael, > > I just attempted to build Sage on some fancy new 16-core 32GB RAM > opteron box running Ubuntu at Harvard, > and it fails in building Sage. The machine is completely unloaded, > but ATLAS fails to build every time with > tolerance errors. I put the log file here: > > > http://sage.math.washington.edu/home/was/build/install-atlas_fail.log > > Thoughts? Any power management module is loaded? Regards, ismail -- Never learn by your mistakes, if you do you may never dare to try again. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: writing an interpeter for mathematica language
On Dec 25, 2007 3:32 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > What are your thoughts - especially from the social point of view - is > it a bad or good idea? Duh. Of course it would be a very valuable thing to have. This thread shouldn't be about whether to do this but _how_. At a bare minimum such a translator is a clear gap in Sage functionality, i.e., Sage can't do the following in total generality yet (see below for more discussion): sage: z = mathematica('code') sage: z.sage() # -- convert mathematica expression back to Sage Writing a "mathematica language" --> "Python language" translator is the key step in implementing the above command in general. > On Dec 25, 2007 12:04 AM, David <[EMAIL PROTECTED]> wrote: > > From a social point of view, I think this would be a great idea. > > However, Mathematica contains many functions that have no equivalent > > in Sage. You might find yourself re-implementing Mathematica from > > scratch. > > You mean like the language, or Mathematical functions, that should be in Sage, > but are not yet implemented? > > If the latter, then that's exactly the reason why I think it's useful > to write it - +1 > you would just take any user contributed opensource Mathematica program, > run it through it and it will tell you - hey, Sage still cannot do this. And > then you'd say - let's get this fixed in Sage. +1 > If the former, well, it needs to be written be someone more familiar with > writing interpreters. There is going to be a summer of code soon, > let's write it as an idea for a project. SymPy will take part and Sage > hopefully too, so someone may pick this idea up. I hope this will happen. I noticed here: http://www.tangentspace.net/cz/archives/category/computer-algebra/ that somebody names Alex claims to have tried exactly this last summer. What happened?Amusingly Alex's motivation for doing this is his dislike of Sage :-): "Part of the reason I'm taking this on is because I'd not like to see SymPy turn into a melange like Sage– the idea of tying together disparate CASes and mathematical libraries with a glue language is aesthetically unappealing to me..." Maybe Alex much prefers to reinvent the wheel instead of building the car :-). > > Such a language interpreter exists already, called MockMMA, I believe. > > Check with Richard Fateman. > > Thanks for the tip, yes, we checked that (see the link from my first email), > we were thinking of using this. I don't like that it's in LISP, because > it's difficult to call Python (=Sage functions) from LISP. But maybe > there is some way how to reuse the code easily (I fear it's more difficult > to reuse it, instead of just writing it from scratch). I think one of the design constraints for such a parser is that it should be written in Python or Cython, for ease of maintanence by Sage/Sympy developers, etc. Also, should we imagine it converting Mathematics expressions into Python expressions, that are then evaluated using Python. Could somebody hack up a quick demo that parses just a little of Mathematica to Python? By the way, we will need almost *EXACTLY* this in order to implement the following in general: sage: z = mathematica('code') sage: SR(z)# or z.sage() -- convert mathematica expression back to Sage We have something fairly sophisticated for doing exactly the above for arbitrary Maxima expressions (it is in calculus.py). For functions that have no Sage equivalent, we basically construct a lazy Python object that uses Maxima to do the actual work -- the same could be done for Mathematica until everything is implemented in Sage. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: your kernel on newserver is seriously misconfigured
On Dec 26, 2007 9:07 AM, Cameron Freer <[EMAIL PROTECTED]> wrote: > On Wed, 26 Dec 2007, Michael Abshoff wrote: > > > Use cpufreq-set to set the governor to performance for *all* CPUs. Setting > > it only for a subset will make the ATLAS build fail with high probability. > > > > see http://www.thinkwiki.org/wiki/How_to_use_cpufrequtils for documentation. > > Thanks. I've installed cpufrequtils, and all 16 cores are now set to > performance governors (hence at 2600 MHz). OK, this completely resolved the problem and atlas now built fine (and quickly) on newserver (the opteron box). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Projects
On Nov 21, 10:59 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > William suggested that I wrote a paragraph or two describing what > would be involved for the S-integralpoints implementation. I have > not done so yet, but this email might contain enough to get someone > started, I spent some time yesterday looking up the literature on > this, and there is quite a lot of it. > > ... > > The simplest case is K=Q and S={}. Here I would strongly recommend > the section in Henri Cohen's new book (volume 2, last section of last > chapter) where he gives every last detail and a worked example. John, on the strength of your recommendation I bought vol 2 of Cohen's book. I think the worked example is actually in volume 1, at least according to the contents list in Vol 2. It's at the end of 'PART 2' which is in Vol 1. I'm waiting for the postman to get back after Christmas and deliver Vol 1. Bill Purvis --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: writing an interpeter for mathematica language
On Dec 26, 2007 6:01 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Dec 25, 2007 3:32 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > What are your thoughts - especially from the social point of view - is > > it a bad or good idea? > > Duh. Of course it would be a very valuable thing to have. This thread > shouldn't be about whether to do this but _how_. > > At a bare minimum such a translator is a clear gap in Sage functionality, > i.e., Sage can't do the following in total generality yet (see below for more > discussion): > > sage: z = mathematica('code') > sage: z.sage() # -- convert mathematica expression back to Sage > > > Writing a "mathematica language" --> "Python language" translator is > the key step in implementing the above command in general. > > > On Dec 25, 2007 12:04 AM, David <[EMAIL PROTECTED]> wrote: > > > From a social point of view, I think this would be a great idea. > > > However, Mathematica contains many functions that have no equivalent > > > in Sage. You might find yourself re-implementing Mathematica from > > > scratch. > > > > You mean like the language, or Mathematical functions, that should be in > > Sage, > > but are not yet implemented? > > > > If the latter, then that's exactly the reason why I think it's useful > > to write it - > > +1 > > > you would just take any user contributed opensource Mathematica program, > > run it through it and it will tell you - hey, Sage still cannot do this. And > > then you'd say - let's get this fixed in Sage. > > +1 > > > If the former, well, it needs to be written be someone more familiar with > > writing interpreters. There is going to be a summer of code soon, > > let's write it as an idea for a project. SymPy will take part and Sage > > hopefully too, so someone may pick this idea up. > > I hope this will happen. I noticed here: > >http://www.tangentspace.net/cz/archives/category/computer-algebra/ > > that somebody names Alex claims to have tried exactly this last summer. > What happened?Amusingly Alex's motivation for doing this is his dislike > of Sage :-): "Part of the > reason I'm taking this on is because I'd not like to see SymPy turn into a > melange like Sage the idea of tying together disparate CASes and > mathematical libraries with a glue language is aesthetically > unappealing to me..." > Maybe Alex much prefers to reinvent the wheel instead of building the car :-). Well, I understand him. :) I also don't like that Sage is so big and difficult to package in Debian. Let's improve Sage. Unfortunately, I didn't manage to meet him at Caltech at Scipy2007, but I think he's quite busy in school now. > > > Such a language interpreter exists already, called MockMMA, I believe. > > > Check with Richard Fateman. > > > > Thanks for the tip, yes, we checked that (see the link from my first email), > > we were thinking of using this. I don't like that it's in LISP, because > > it's difficult to call Python (=Sage functions) from LISP. But maybe > > there is some way how to reuse the code easily (I fear it's more difficult > > to reuse it, instead of just writing it from scratch). > > I think one of the design constraints for such a parser is that it > should be written > in Python or Cython, for ease of maintanence by Sage/Sympy developers, etc. > Also, should we imagine it converting Mathematics expressions into Python > expressions, that are then evaluated using Python. > > Could somebody hack up a quick demo that parses just a little of Mathematica > to Python? There is a GHOP SymPy project with some code, but it's just arithmetics: http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=307 > > By the way, we will need almost *EXACTLY* this in order to implement the > following in general: > > sage: z = mathematica('code') > sage: SR(z)# or z.sage() -- convert mathematica expression > back to Sage > > We have something fairly sophisticated for doing exactly the above for > arbitrary Maxima expressions (it is in calculus.py). For functions that > have no Sage equivalent, we basically construct a lazy Python object > that uses Maxima to do the actual work -- the same could be done for > Mathematica until everything is implemented in Sage. Exactly. Ondrej --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: "scholarly activity"?
On Dec 25, 2007 2:54 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > > On Dec 25, 2007 1:38 AM, root <[EMAIL PROTECTED]> wrote: > > > > >I just noticed this email on the jmol developer mailing list. See below. > > >[...] > > > > I've been presenting Axiom development at various locations, usually > > Carlo Traverso, head of the Department of Mathematica, in Pisa, Italy > > and I have been looking at creating a new kind of journal to address > > this problem. The journal would accept only "literate papers", that is, > > papers which contain both the research results and the associated source > > code. The programs would be published in a peer-reviewed journal with a > > requirement that the program could be run by an independent party and > > reproduce the reported research results (similar to other sciences). > > > > While this would not address the time involved in writing and debugging > > a program, it would at least give a venue for presenting open source > > code in a reproducible, peer-reviewed (and therefore tenure-approved) > > format. Something like this would be very valuable in encouraging open source mathematical software. There are numerous difficult technical issues involving how to do it in a way that satisfies a number of natural constraints. I think something like this won't happen until a very strong personality with good connections in the publishing world -- somebody like A.K. Peters but who is passionate open source math software -- pushes very hard to make it happen. That could be "me in 10 years", but definitely not now, since I'm way to busy with other things. > There is already such a journal, where I am going to publish some of > my opensource codes - > > Computer Physics Communications: > > www.sciencedirect.com/science/journal/00104655/ > > impact factor is around 0.6, so not big, but it still counts as a publication. Physicists are ahead of us pure mathematicians as usual with this sort of thing. I've added a link to the above journal here: http://www.sagemath.org/jsage/journals.html William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Projects
Sorry about that -- I think both volumes possibly have the full contents to both volumes in them. Anyway, I would recommend both volumes, and hope you do not regret your purchase. John On 26/12/2007, bill.p <[EMAIL PROTECTED]> wrote: > > On Nov 21, 10:59 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > > William suggested that I wrote a paragraph or two describing what > > would be involved for the S-integralpoints implementation. I have > > not done so yet, but this email might contain enough to get someone > > started, I spent some time yesterday looking up the literature on > > this, and there is quite a lot of it. > > > > ... > > > > The simplest case is K=Q and S={}. Here I would strongly recommend > > the section in Henri Cohen's new book (volume 2, last section of last > > chapter) where he gives every last detail and a worked example. > > John, on the strength of your recommendation I bought vol 2 of Cohen's > book. I think the worked example is actually in volume 1, at least > according > to the contents list in Vol 2. It's at the end of 'PART 2' which is in > Vol 1. > I'm waiting for the postman to get back after Christmas and deliver > Vol 1. > > Bill Purvis > > > -- John Cremona --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: writing an interpeter for mathematica language
On Dec 26, 6:22 pm, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > On Dec 26, 2007 6:01 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > > > > > On Dec 25, 2007 3:32 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > > What are your thoughts - especially from the social point of view - is > > > it a bad or good idea? > > > Duh. Of course it would be a very valuable thing to have. This thread > > shouldn't be about whether to do this but _how_. > > > At a bare minimum such a translator is a clear gap in Sage functionality, > > i.e., Sage can't do the following in total generality yet (see below for > > more > > discussion): > > > sage: z = mathematica('code') > > sage: z.sage() # -- convert mathematica expression back to Sage > > > Writing a "mathematica language" --> "Python language" translator is > > the key step in implementing the above command in general. > > > > On Dec 25, 2007 12:04 AM, David <[EMAIL PROTECTED]> wrote: > > > > From a social point of view, I think this would be a great idea. > > > > However, Mathematica contains many functions that have no equivalent > > > > in Sage. You might find yourself re-implementing Mathematica from > > > > scratch. > > > > You mean like the language, or Mathematical functions, that should be in > > > Sage, > > > but are not yet implemented? > > > > If the latter, then that's exactly the reason why I think it's useful > > > to write it - > > > +1 > > > > you would just take any user contributed opensource Mathematica program, > > > run it through it and it will tell you - hey, Sage still cannot do this. > > > And > > > then you'd say - let's get this fixed in Sage. > > > +1 > > > > If the former, well, it needs to be written be someone more familiar with > > > writing interpreters. There is going to be a summer of code soon, > > > let's write it as an idea for a project. SymPy will take part and Sage > > > hopefully too, so someone may pick this idea up. > > > I hope this will happen. I noticed here: > > >http://www.tangentspace.net/cz/archives/category/computer-algebra/ > > > that somebody names Alex claims to have tried exactly this last summer. > > What happened?Amusingly Alex's motivation for doing this is his dislike > > of Sage :-): "Part of the > > reason I'm taking this on is because I'd not like to see SymPy turn into a > > melange like Sage- the idea of tying together disparate CASes and > > mathematical libraries with a glue language is aesthetically > > unappealing to me..." > > Maybe Alex much prefers to reinvent the wheel instead of building the car > > :-). hehe, and since SymPy can now be used from Sage his next point "what's the point of dividing development effort between two Python- based metaCASes?" isn't that valid any more. > Well, I understand him. :) I also don't like that Sage is so big and > difficult to package in Debian. > Let's improve Sage. Unfortunately, I didn't manage > to meet him at Caltech at Scipy2007, but I think he's quite busy in school > now. > > > > > > > Such a language interpreter exists already, called MockMMA, I believe. > > > > Check with Richard Fateman. I just read Fateman's review paper on Mathematica 2.0 and it is a hoot :) - it was recommended on some web page while I was looking for something related to BasicCAS and it is well worth the read. > > > Thanks for the tip, yes, we checked that (see the link from my first > > > email), > > > we were thinking of using this. I don't like that it's in LISP, because > > > it's difficult to call Python (=Sage functions) from LISP. But maybe > > > there is some way how to reuse the code easily (I fear it's more difficult > > > to reuse it, instead of just writing it from scratch). > > > I think one of the design constraints for such a parser is that it > > should be written > > in Python or Cython, for ease of maintanence by Sage/Sympy developers, etc. > > Also, should we imagine it converting Mathematics expressions into Python > > expressions, that are then evaluated using Python. > > > Could somebody hack up a quick demo that parses just a little of Mathematica > > to Python? > > There is a GHOP SymPy project with some code, but it's just arithmetics: > > http://code.google.com/p/google-highly-open-participation-psf/issues/... > There is also Pythonica - see http://www.tildesoft.com/Pythonica.html - but it license status is unclear and the project seemed to have died. > > > By the way, we will need almost *EXACTLY* this in order to implement the > > following in general: > > > sage: z = mathematica('code') > > sage: SR(z)# or z.sage() -- convert mathematica expression > > back to Sage > > > We have something fairly sophisticated for doing exactly the above for > > arbitrary Maxima expressions (it is in calculus.py). For functions that > > have no Sage equivalent, we basically construct a lazy Python object > > that uses Maxima to do the actual work -- the same could be done for > > Mathematica until everythi
[sage-devel] sagemath.org metadata
When you google for "mathematica", at the top of the search results you get this a bunch of extra links ("Students", "Mathematica Home Page", "Demonstrations Project", etc.) I'm not sure how this works, I guess it's some meta-data in the html of the mathematica website. I'm sure someone on this list knows how this works. Now that Sage is #1 on google, it would be good to have some of our links like this. At the very least, we should have a "notebook" link, a "download" link, and a "tutorial" link. david --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: sagemath.org metadata
I would guess that it has to do with subpages of a site having high pagerank, and getting categorized under the main site. Also, links from the front page, and relative size of the site compared to other alternatives (i.e. the probability of it being the "right" one) seem to have an influence. The little bit of looking around I did indicates that it's still a black art, but will happen once Sage gets big enough. If there is something specific we can do (other than having clear and obvious links from the main page, which we already have) I'd be very interested to find out though! - Robert On Dec 26, 2007, at 1:02 PM, Timothy Clemans wrote: > I've tried to figure that out in the past. The best I can come up with > is that it has to do with the size of a site and Google sitemaps. > > On Dec 26, 12:43 pm, David Harvey <[EMAIL PROTECTED]> wrote: >> When you google for "mathematica", at the top of the search results >> you get this a bunch of extra links ("Students", "Mathematica Home >> Page", "Demonstrations Project", etc.) >> >> I'm not sure how this works, I guess it's some meta-data in the html >> of the mathematica website. I'm sure someone on this list knows how >> this works. >> >> Now that Sage is #1 on google, it would be good to have some of our >> links like this. At the very least, we should have a "notebook" link, >> a "download" link, and a "tutorial" link. >> >> david > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: [sage-forum] nc algebra?
I did a bit of playing around with the GAP package GBNP. It is pretty nice, but the interface is a little clunky. I think it could easily provide a lot of functionality to Sage so I am going to spend some of my time at the AMS meeting working on this. I made a very basic spkg at http://sage.math.washington.edu/home/mhansen/gbnp-0.9.5.spkg . Here is an example in the quotient algebra you mentioned: sage: gap.eval('LoadPackage("GBNP")') 'true' sage: gen = [ [[1,2],[2,1],[1]], [1,-1,-1] ] sage: relations = gap( [ gen ] ) sage: print gap.eval('PrintNPList(%s)'%relations.name()) ab - ba - a sage: GB = gap.SGrobner(relations) sage: print gap.eval('PrintNPList(%s)'%GB.name()) ba - ab + a sage: p = gap.StrongNormalFormNP( [[[1,2]],[1]], GB ); print gap.eval('PrintNP(%s)'%p.name()) ab sage: p = gap.StrongNormalFormNP( [[[2,1]],[1]], GB ); print gap.eval('PrintNP(%s)'%p.name()) ab - a sage: p = gap.StrongNormalFormNP( [[[2,1,1,2,1,2]],[1]], GB ); print gap.eval('PrintNP(%s)'%p.name()) a^3b^3 - 4a^3b^2 + 3a^3b Your quotient algebra is infinite dimensional whose dimension grows like n^2. sage: gap.FinCheck(gap.LTermsNP(GB), 2) false You can get a basis for the components of degree 0 through 4: sage: B = gap.BaseQA(GB, 2, 10) sage: print gap.eval('PrintNPList(%s)'%B.name()) 1 a b a^2 ab b^2 a^3 a^2b ab^2 b^3 a^4 a^3b a^2b^2 ab^3 b^4 Check out the examples for some more ideas of what you can do with this: http://www.mathdox.org/products/gbnp/chapA.html --Mike On Dec 26, 2007 2:57 AM, Mike Hansen <[EMAIL PROTECTED]> wrote: > Hi Kyle, > > This is one area in which Sage (and GAP4 for that matter) could use > some work -- there hasn't really been anyone been working on it. > Right now, there is a FreeAlgebraQuotient ( > http://www.sagemath.org/doc/html/ref/module-sage.algebras.free-algebra-quotient.html > ) in Sage which allows you to work with these objects assuming you > have a faithful representation for the algebra. The vector > enumeration algorithms allow one to go from a description of the > underlying two sided ideal like you have with a*b-b*a-a to a > representation that could be plugged into FreeAlgebraQuotient. There > is a free software implementation in C by Steve Linton, and we should > definitely think about including it in Sage. It comes with the GAP3 > package "ve". > > The other way to go about doing things is with noncommutative Grobner > bases which I would be pretty interested in. But, Sage does not have > any support for these at the moment. The only real algorithm that I > know of is due to Mora, but this is probably due to my relative > unfamiliarity with the area. I do know that Bergman ( > http://servus.math.su.se/bergman/ ) and the GAP4 package GBNP ( > http://www.mathdox.org/products/gbnp/ ) can carry out these > computations. I have no idea on their relative efficiency though. > > It may come as no surprise, but Magma is probably the best software > now in this area. Reading Magma's docs on this stuff is a good place > to start http://www.math.uiuc.edu/Software/magma/text433.html . > > --Mike > > P.S. I'm not sure what you (specifically) want when you say factoring > or gcd in these algebras. > > > > On Dec 26, 2007 1:03 AM, Kyle Schalm <[EMAIL PROTECTED]> wrote: > > > > > > what's the status of noncommutative algebra in sage? > > > > suppose i want to play with expressions in the free algebra Z modulo > > the relation ab=ba+a. i'd also like to factor and gcd, ideally. er... no > > pun intended. > > > > how do i do this -- or if sage can't do this (yet), what are my > > options? > > thanks > > kyle > > > > > > > > > > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: sagemath.org metadata
I've tried to figure that out in the past. The best I can come up with is that it has to do with the size of a site and Google sitemaps. On Dec 26, 12:43 pm, David Harvey <[EMAIL PROTECTED]> wrote: > When you google for "mathematica", at the top of the search results > you get this a bunch of extra links ("Students", "Mathematica Home > Page", "Demonstrations Project", etc.) > > I'm not sure how this works, I guess it's some meta-data in the html > of the mathematica website. I'm sure someone on this list knows how > this works. > > Now that Sage is #1 on google, it would be good to have some of our > links like this. At the very least, we should have a "notebook" link, > a "download" link, and a "tutorial" link. > > david --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: jmol in Sage 2.9.1
So I was going to try to understand a bit of the jmol stuff and with 2.9.1.1 I tried: search_src('jmol') and a mild sort of hell broke loose: [? 1h = [50;1H [K---\ --- | SAGE Version 2.9.1.1, Release Date: 2007-12-25 | | Type notebook() for the GUI, and license() for information.| -- plot/plot3d/texture.py:def jmol_str(self, obj): server/notebook/cell.py:elif F.endswith('.jmol'): server/notebook/cell.py:# If F ends in -size500.jmol then we make the viewer applet with size 500. server/notebook/cell.py:script = which keeps going and going. Most of it looks reasonable, but some of it is incomprehensible to me. The command show(Torus(5, 3, color=(0.7,0.3,0))) worked for me, although I also had a seperate red square popup. M. Hampton On Dec 25, 2:46 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Dec 25, 2007 1:23 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > On Dec 25, 2007 9:39 AM, Robert Miller <[EMAIL PROTECTED]> wrote: > > > > Running in a notebook, in a fresh version of 2.9.1, I can't display the > > > sphere. > > > > {{{ > > > from sage.plot.plot3d.all import Sphere > > > Sphere(1).show() > > > }}} > > I've released 2.9.1.1 which: > > (1) fixes this issue -- i.e.., now jmol *does* get installed, > > and > > (2) deprecated java3d to an optional spkg. It's no longer > in the standard distro, but it is a very easy install by doing > sage -optional > (Sorry Robert B., but we have to make a choice and jmol > is going to be much better overall for Sage.) > > William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: cremona package under Sage
-- Forwarded message -- From: John Cremona <[EMAIL PROTECTED]> Date: 26 Dec 2007 22:48 Subject: Re: cremona package under Sage To: [EMAIL PROTECTED] I cannot help with any of that since I did none of the Sage-mwrank interface myself at all, and you have already found out more about how that works than I know. I realize that it would be better if I did know about it all as then I could maintain it and add features myself, instead of (as at present) implementing desired features in my C++ code and waiting for someone else to add them to the interface. I think it is a problem that these interfaces are not well documented (hence my CC-ing the sage-devel list. The convention is not to go off list as long as the discussion involves Sage at all, as it is easy or other subscribers to ignore threads which do not interest them). It's funny what you say about "elliptic curves defined over ZZ rather than QQ". In my C++ code at present only integral models are allowed, which is what I suppose you mean by being "defined over ZZ" (though strictly speaking there are no elliptic curves defined over ZZ -- that's a theorem since such an object would have to have discriminant a unit in Z and there just aren't any!). One feature which I have been asked to add, which I was thinking about before the holiday, is how t extend at least some of the functionality I provide to non-integral models. I wlll get back to that after the holiday, but not for several days since I am tied up with family affairs. What I can easily implement is the C++ code is either of the following: an option flag integral_points_only (default 0), or alternatively a denominator_bound. Currently tha maximum denominator is set in qcurves/sieve_search.cc:89 (b_high=height) which would be instead either b_high=1 or b_high=denominator_bound. Then the Sage interface would need to amended correspondingly. John On 26/12/2007, bill purvis <[EMAIL PROTECTED]> wrote: > John, > you did say to contact you if I have difficulty understanding your code: > > My current problem is tying together the Python code with the > C++ in the cremona package. > > The code for point_search() in ell_rational_field.py contains the > following three lines: > > mwrank = mwrank.mwrank_MordellWeil(c, verbose) > mw.search(height_limit, verbose=verbose) > v = mw.points() > > I tracked down mwrank_MordellWeil to .../sage/libs/mwrank/interface.py > > and found it in turn creates a struct _mw which has .search() defined > as search. This in turn I found in .../sage/libs/mwrank/mwrank.pyx > and this invokes mw_search(). Somewhere this must tie in to the > C++ code, but I've not yet found any definition for it. > Can you speed up the process by giving me a brief outline of how > it all fits together. I had thought in terms of just adding an extra > argument but there are so many layers here that I wonder if that is > appropriate. I suppose that an alternative approach would be to > define the elliptic curve over ZZ rather than QQ, but I notice that > this would require substantial effort (which I might consider later) > as basic things like defining a point on such a curve gives a > 'NotImplementedError'. > > Bill > > -- > +---+ > | Bill Purvis, Amateur Mathematician| > | email: [EMAIL PROTECTED] | > | http://bil.members.beeb.net | > +---+ > -- John Cremona -- John Cremona --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] 2D aspect ratio
Hi, I've been looking for a plot.option that ensures a 1:1 aspect ratio for 2D plots (e.g. something like AspectRatio->Automatic in Mma). Does this exist in Sage? I'm trying to set things up so that circle((0,0),2).show() shows a circle rather than an ellipse, regardless of the plot window dimensions. Apologies if this has already been covered somewhere. Peter --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Why does sage not use Qemu?
Another option is Virtualbox http://www.virtualbox.org/ It has an open source edition, released under GNU GPL version 2 http://www.virtualbox.org/wiki/Editions Pablo > According to http://whttp://www.virtualbox.org/ww.h7.dion.ne.jp/~qemu-win/ QEMU on Windows is in > an alpha stage. So it seems unlikely that we will use it. We know that > VMware is not free, but if we were to use another virtualization > technology VirtualBox would be high on the list. > > Cheers, > > Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: 2D aspect ratio
I'm not really familiar with the plotting code, but it should be doable since we use matplotlib. Here is an example of doing what you want with matplotlib: http://matplotlib.sourceforge.net/examples/equal_aspect_ratio.py --Mike On 12/26/07, Peter <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been looking for a plot.option that ensures a 1:1 aspect ratio > for 2D plots (e.g. something like AspectRatio->Automatic in Mma). Does > this exist in Sage? I'm trying to set things up so that > > circle((0,0),2).show() > > shows a circle rather than an ellipse, regardless of the plot window > dimensions. Apologies if this has already been covered somewhere. > > Peter > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: writing an interpeter for mathematica language
>>> I am thinking for a long time already of writing an interpreter, in >>> Python of course, of the Mathematica >>> language: >> Such a language interpreter exists already, called MockMMA, I believe. >> Check with Richard Fateman. > Thanks for the tip, yes, we checked that (see the link from my first > email), we were thinking of using this. I don't like that it's in LISP, > because it's difficult to call Python (=Sage functions) from LISP. But > maybe there is some way how to reuse the code easily (I fear it's more > difficult to reuse it, instead of just writing it from scratch). I assume you know about http://common-lisp.net/project/python-on-lisp/ I've never used it, but it looks promising. Calling lisp from Python seems to be more difficult, without going to something like CLPython which probably isn't an option. Not that I'm an expert, I just hate to avoid things simply becuase they are written in lisp, since I happen to like lisp. -Ivan -- MacMail - the Webmail service especially for Mac users worldwide http://www.macmail.com --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: "noclobber" problem [with patch]
(Sent from my iPhone.) Begin forwarded message: > From: Rob Gross <[EMAIL PROTECTED]> > Date: December 26, 2007 3:53:45 PM MST > To: William Stein <[EMAIL PROTECTED]> > Subject: "noclobber" problem > Reply-To: Robert Gross <[EMAIL PROTECTED]> > > Hi, William, > > I have had trouble getting the most recent versions of sage to > compile. (This is Mac OS X 10.4.11, gcc 4.0.1, 5367.) My problem > started with 2.8.15, and continued with 2.9. Eventually, I found out > that something (I can't figure out what just yet) is returning the > string "noclobber", which in turn is being passed along as an argument > to local/bin/sage-spkg. > > After the line > >PKG_BASE=`echo "$PKG_NAME" | sed -e "s/-.*//"` > > I added > >if [ $PKG_SRC == "noclobber" ]; then > exit 0 >fi > > which cleared up the problem; otherwise, sage tries (and obviously > fails) to compile noclobber.spkg. > > I wish that I had the time to track down which environment variable or > alias is causing the problem. This has something to do with > redirecting output, and specifically 2>&1 as an option to some > command. I never quite worked out where the problem is, and I don't > think that my work-around could be harmful, so I suggest that you > include it in the next release.--Rob > > -- > Rob Gross (617) 552-3758 > Department of Mathematics http://fmwww.bc.edu/gross/ > Boston College [EMAIL PROTECTED] > Chestnut Hill, MA 02467-3806 --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: 2D aspect ratio
You can try: sage: circle((0,0),2).show(figsize=[x,y]) If x and y are the same, then you get a square figure, and the circle will look correctly This won't help you if you want to draw a rectangular window but preserve the 1:1 aspect. I guess aspect should be decoupled from the figure size in some way, but currently I don't think we can do that. -Bobby On Dec 26, 2007 3:38 PM, Mike Hansen <[EMAIL PROTECTED]> wrote: > > I'm not really familiar with the plotting code, but it should be > doable since we use matplotlib. Here is an example of doing what you > want with matplotlib: > http://matplotlib.sourceforge.net/examples/equal_aspect_ratio.py > > --Mike > > > On 12/26/07, Peter <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I've been looking for a plot.option that ensures a 1:1 aspect ratio > > for 2D plots (e.g. something like AspectRatio->Automatic in Mma). Does > > this exist in Sage? I'm trying to set things up so that > > > > circle((0,0),2).show() > > > > shows a circle rather than an ellipse, regardless of the plot window > > dimensions. Apologies if this has already been covered somewhere. > > > > Peter > > > > > > > > > -- Bobby Moretti [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: nc algebra?
Dear Mike what about the non-commutative part of Singular (formerly known as "Plural")? Certainly Singular can do non-commutative Groebner bases (one-sided or two-sided). I mainly use it to compute cohomology rings of finite p- groups in Sage (work in progress). So what i need are graded commutative algebras, which can be nicely expressed using Singular's "SuperCommutative" rings (see http://www.singular.uni-kl.de/Manual/3-0-4/sing_517.htm#SEC569). It works very well for me. > > It may come as no surprise, but Magma is probably the best software > > now in this area. I don't know concrete benchmarks, but i would be surprized if Singular wouldn't be as good as Magma in computing non-commutative Groebner bases. > I did a bit of playing around with the GAP package GBNP. It is pretty > nice, but the interface is a little clunky. What about a non-commutative version of LibSingular? As far as i understand, it would allow to do things directly without an interface. However, i don't know how difficult a "LibPlural" would be to obtain. Singular-Plural has one disadvantage though: It can not deal with free algebras. You need a PBW-basis (see http://www.singular.uni-kl.de/Manual/3-0-4/sing_417.htm#SEC457). Yours sincerely Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: "noclobber" problem
This is a followup on that noclobber email I forwarded earlier... -- Forwarded message -- From: Rob Gross <[EMAIL PROTECTED]> Date: Dec 26, 2007 5:23 PM Subject: Re: "noclobber" problem To: William Stein <[EMAIL PROTECTED]> Hi, I found out that I had the line "set noclobber" in both my .bashrc and .bash_profile files. Removing that cleared up the problem. I have no clue why I ever put added the line in the first place, nor why it would have caused a problem.--Rob > Hi, William, > > I have had trouble getting the most recent versions of sage to > compile. (This is Mac OS X 10.4.11, gcc 4.0.1, 5367.) My problem > started with 2.8.15, and continued with 2.9. Eventually, I found out > that something (I can't figure out what just yet) is returning the > string "noclobber", which in turn is being passed along as an argument > to local/bin/sage-spkg. > > After the line > > PKG_BASE=`echo "$PKG_NAME" | sed -e "s/-.*//"` > > I added > > if [ $PKG_SRC == "noclobber" ]; then > exit 0 > fi > > which cleared up the problem; otherwise, sage tries (and obviously > fails) to compile noclobber.spkg. > > I wish that I had the time to track down which environment variable or > alias is causing the problem. This has something to do with > redirecting output, and specifically 2>&1 as an option to some > command. I never quite worked out where the problem is, and I don't > think that my work-around could be harmful, so I suggest that you > include it in the next release.--Rob > > -- Rob Gross (617) 552-3758 Department of Mathematics http://fmwww.bc.edu/gross/ Boston College [EMAIL PROTECTED] Chestnut Hill, MA 02467-3806 -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: "noclobber" problem
On Dec 26, 2007 5:23 PM, Rob Gross <[EMAIL PROTECTED]> wrote: > Hi, > > I found out that I had the line "set noclobber" in both my .bashrc and > .bash_profile files. Removing that cleared up the problem. I have no > clue why I ever put added the line in the first place, nor why it > would have caused a problem.--Rob Thanks. I've made this trac #1601: http://trac.sagemath.org/sage_trac/ticket/1601 We'll either come up with a workaround or at least add something to the FAQ and/or README. William > > > Hi, William, > > > > I have had trouble getting the most recent versions of sage to > > compile. (This is Mac OS X 10.4.11, gcc 4.0.1, 5367.) My problem > > started with 2.8.15, and continued with 2.9. Eventually, I found out > > that something (I can't figure out what just yet) is returning the > > string "noclobber", which in turn is being passed along as an argument > > to local/bin/sage-spkg. > > > > After the line > > > > PKG_BASE=`echo "$PKG_NAME" | sed -e "s/-.*//"` > > > > I added > > > > if [ $PKG_SRC == "noclobber" ]; then > > exit 0 > > fi > > > > which cleared up the problem; otherwise, sage tries (and obviously > > fails) to compile noclobber.spkg. > > > > I wish that I had the time to track down which environment variable or > > alias is causing the problem. This has something to do with > > redirecting output, and specifically 2>&1 as an option to some > > command. I never quite worked out where the problem is, and I don't > > think that my work-around could be harmful, so I suggest that you > > include it in the next release.--Rob > > > > > > -- > Rob Gross (617) 552-3758 > Department of Mathematics http://fmwww.bc.edu/gross/ > Boston College [EMAIL PROTECTED] > Chestnut Hill, MA 02467-3806 > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: typo in sage tutorial
Dear Matthew, Thanks for your bug report! Dear David Joyner (cc: sage-devel): This is in some latex that you wrote. Any ideas? I've made this trac #1602: http://trac.sagemath.org/sage_trac/ticket/1602 -- Forwarded message -- From: Matthew Moelter <> Date: Dec 26, 2007 4:24 PM Subject: typo in sage tutorial To: [EMAIL PROTECTED] on this page http://www.sagemath.org/doc/html/tut/node24.html in the table there is what appears to be raw latex rather than typeset material. this appears "&vellip#vdots;" Matt Matthew Moelter, Assoc Prof Department of Physics Calif. Polytechnic State Univ. San Luis Obispo, CA 93407 -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: jmol in Sage 2.9.1.1 -- tutorial and screen shots
On Dec 26, 2007, at 6:35 PM, William Stein wrote: > On Dec 26, 2007 3:51 PM, mhampton <[EMAIL PROTECTED]> wrote: >> >> So I was going to try to understand a bit of the jmol stuff and with >> 2.9.1.1 I tried: >> >> search_src('jmol') >> >> and a mild sort of hell broke loose: > > Did you do that from the command line? You really shouldn't > bother with jmol from the command line, since they main point > of it is for embedded java applet graphics. I don't know what's going wrong with search_src, but (for the moment at least) for the moment jmol is the best option we have for 3d graphics from the command line too. - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: jmol in Sage 2.9.1.1 -- tutorial and screen shots
On Dec 26, 2007 7:39 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > > On Dec 26, 2007, at 6:35 PM, William Stein wrote: > > > On Dec 26, 2007 3:51 PM, mhampton <[EMAIL PROTECTED]> wrote: > >> > >> So I was going to try to understand a bit of the jmol stuff and with > >> 2.9.1.1 I tried: > >> > >> search_src('jmol') > >> > >> and a mild sort of hell broke loose: > > > > Did you do that from the command line? You really shouldn't > > bother with jmol from the command line, since they main point > > of it is for embedded java applet graphics. > > I don't know what's going wrong with search_src, but (for the moment Actually I don't think anything went wrong. The behavior was just unexpected. One man's hell is another's heaven. > at least) for the moment jmol is the best option we have for 3d > graphics from the command line too. Gees, you're right. That's very odd but true. It's perhaps very nice that 3d from the notebook and 3d from the command line are identical though. By the way, I can replicate the problem that Marshall reported about the "red box". This is a new problem, which wasn't in the earlier versions that I tried on the command line (from you). You should try a clean sage-2.9.1.1 install -- you'll see the problem. In addition to the jmol gui popping up, another gui window pops up with the label: "java.io.FileNotFoundException: /Users/was/Desktop/shape-size400.obj (No such file or directory)." and a big red box in it. Does this ring a bell to you? -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: [Jmol-developers] [sage-devel] Re: Jmol and Mathematics Visualization
-- Forwarded message -- From: Miguel <[EMAIL PROTECTED]> Date: Dec 26, 2007 7:36 PM Subject: Re: [Jmol-developers] [sage-devel] Re: Jmol and Mathematics Visualization To: [EMAIL PROTECTED], [EMAIL PROTECTED] > We've run into some issues, > e.g., > > http://trac.sagemath.org/sage_trac/ticket/1537 > > involving "triangulation and shadow weirdness" whose fix might involve > having > to actually change jmol. I suspect that you will encounter other issues with lighting on very flat triangles and "cracking" in triangulated surfaces. As I understand it, these are typical problems with graphics engines ... and there was never much demand for these kinds of things within Jmol. > Oh, cool, you can do translucent surfaces! Translucent surfaces were originally done through 'screening', where every-other pixel was painted. I think that Bob Hanson was did some rework in this area about 6 months ago. > Nice. The moveto is > also frickin' cool. Yes, I always thought that it was very neat. Excellent when you want to show a specific detail of a molecule. > I think it's just the first thing we thought of that would work somewhat > for drawing surfaces. Should we be using something else? Passing a string to pmesh is OK for now ... that may be all there is. But longer term you will probably want a more efficient interface that allows you to pass binary data structures ... as a display list of triangles to be rendered. > Can you create callbacks like that using the java applet? This would be > great for Sage, I think. There is a callback mechanism that works OK for many applications. Bob certainly knows more about the current state of this. >> I put together a little page for you guys to experiment with. It's at >> http://chemapps.stolaf.edu/jmol/docs/examples-11/math.htm >> Try a few things there; see what you think. The example uses 100,000 >> quadrilaterals, and it's pretty fast in terms of rendering. > > Awesome! Bob ... that is beautiful! >> Q: What do you have now in the area of Java applets? > > Essentially nothing. The Sage notebook is an Ajax app -- lots of > javascript > and server-side code (in Python, using Twisted web2). We basically > don't use java applets at all in Sage, though it's always been my plan > to do so. Jmol is a pretty good example of a relatively complex applet that runs on lots of browsers. >> Could you build that into an accompanying applet, so the two could >> talk to each other? That could be fun. > > The Sage notebook is an ajax app, and evaluating a function like this to > have the mesh built in jmol would potentially be very slow: >1. Jmol requests evaluation of a value >2. Javascript notebook code queries the Sage server for the value > of the function >3. The sage notebook server queries a running Sage compute process for > the value of a function. >4. The Sage compute process calls some library function, maybe defined > in PARI or Maxima. >5. The sage notebook server gets the value of the function >6. The javascript notebook gets the value, then returns that two > the Jmol applet. > > This would not be good for building a mesh. If the Sage notebook were a > java > app and Sage were written in Java, it would be a different story, but > that's not > what Sage is. Hmmm ... well then maybe passing pmesh strings isn't so bad after all :) Miguel -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: jmol in Sage 2.9.1.1 -- tutorial and screen shots
On Dec 26, 2007, at 6:58 PM, William Stein wrote: > On Dec 26, 2007 7:39 PM, Robert Bradshaw > <[EMAIL PROTECTED]> wrote: >> >> >> On Dec 26, 2007, at 6:35 PM, William Stein wrote: >> >>> On Dec 26, 2007 3:51 PM, mhampton <[EMAIL PROTECTED]> wrote: So I was going to try to understand a bit of the jmol stuff and with 2.9.1.1 I tried: search_src('jmol') and a mild sort of hell broke loose: >>> >>> Did you do that from the command line? You really shouldn't >>> bother with jmol from the command line, since they main point >>> of it is for embedded java applet graphics. >> >> I don't know what's going wrong with search_src, but (for the moment > > Actually I don't think anything went wrong. The behavior was just > unexpected. > One man's hell is another's heaven. > >> at least) for the moment jmol is the best option we have for 3d >> graphics from the command line too. > > Gees, you're right. That's very odd but true. It's perhaps very nice > that 3d from the notebook and 3d from the command line are > identical though. > > By the way, I can replicate the problem that Marshall reported > about the "red > box". This is a new problem, which wasn't in the earlier versions > that I > tried on the command line (from you). You should try a clean > sage-2.9.1.1 install -- you'll > see the problem. In addition to the jmol gui popping up, another > gui window > pops up with the label: > "java.io.FileNotFoundException: > /Users/was/Desktop/shape-size400.obj (No such file or directory)." > and a big red box in it. Does this ring a bell to you? No idea...I'll try and look into this. I wasn't able to upgrade Sage: /Users/robert/sage/current/local/bin/sage-update: Error downloading http://www.sagemath.org//packages/standard/python-2.5.1.p10.spkg Error getting new packages! - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: 2D aspect ratio
On Dec 26, 2007 4:20 PM, Peter <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been looking for a plot.option that ensures a 1:1 aspect ratio > for 2D plots (e.g. something like AspectRatio->Automatic in Mma). Does > this exist in Sage? I'm trying to set things up so that > > circle((0,0),2).show() > > shows a circle rather than an ellipse, regardless of the plot window > dimensions. Apologies if this has already been covered somewhere. We should just add P.show(aspect_ratio="automatic") etc., exactly as in Mathematica. The goal with 2d graphics in Sage is that they at least support all options that Mathematica has. Anyway, here is a function show11 that works exactly like show(...), but it will always show with a 1:1 aspect ratio: {{{ def show11(g, figsize=[5,4], **kwds): for k in ['xmin', 'xmax', 'ymin', 'ymax']: if kwds.has_key(k): g.__getattribute__(k)(kwds[k]) scale = (g.xmax() - g.xmin())/(g.ymax() - g.ymin()) g.show(figsize=[figsize[0], figsize[0]/scale], **kwds) }}} {{{ show11(plot(sin, 0, 5)) }}} {{{ show11(circle((0,0), 2), xmin=-3, xmax=4) }}} This is now trac #1606: http://trac.sagemath.org/sage_trac/ticket/1606 -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: jmol in Sage 2.9.1.1 -- tutorial and screen shots
On Dec 26, 2007 8:17 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > I wasn't able to upgrade Sage: > > /Users/robert/sage/current/local/bin/sage-update: Error downloading > http://www.sagemath.org//packages/standard/python-2.5.1.p10.spkg > Error getting new packages! Try again -- it will work. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: jmol in Sage 2.9.1.1 -- tutorial and screen shots
On Dec 26, 2007, at 7:20 PM, William Stein wrote: > On Dec 26, 2007 8:17 PM, Robert Bradshaw > <[EMAIL PROTECTED]> wrote: >> I wasn't able to upgrade Sage: >> >> /Users/robert/sage/current/local/bin/sage-update: Error downloading >> http://www.sagemath.org//packages/standard/python-2.5.1.p10.spkg >> Error getting new packages! > > Try again -- it will work. OK, seems to be working now. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Fwd: Re: [Jmol-developers] [sage-devel] Re: Jmol and MathematicsVisualization
Original Message Subject: Re: [Jmol-developers] [sage-devel] Re: Jmol and MathematicsVisualization Date: Tue, 25 Dec 2007 20:07:25 -0700 From: "William Stein" <[EMAIL PROTECTED]> To: sage-devel@googlegroups.com, [EMAIL PROTECTED] http://trac.sagemath.org/sage_trac/ticket/1537 involving "triangulation and shadow weirdness" whose fix might involve having to actually change jmol. I'm not sure what that URL is supposed to tell me. Can you be more specific? If lighting is the issue, realize that Jmol colors the two sides of a mesh slightly differently. So the order of vertices listed in each triangle or quadrilateral set is important. Or, if you don't want that lighting effect, you can add FULLYLIT to the pmesh command. If you are seeing cris-crossed triagnles, then you are not sending four quadrilateral corner indices in the right order. I can't think of anything else that might go wrong in a pmesh. One thing we haven't implemented in the pmesh command is vertex normal averaging. We do that with isosurface. I think the smartest thing to do would be to modify the isosurface oommand to read pmesh files -- this would allow more flexibility and better shading. Can you create callbacks like that using the java applet? This would be great for Sage, I think. Yes, there are several callback types, and we could certainly add more, such as hovering over a pmesh point or clicking on a point. Right now the callbacks are for atoms and draw objects. > A very interesting capability of Jmol that has arisen in the past year > is the capability to save and restore the current state of the applet > - everything. So if you set up a "scene" in the application you can > just write the state file to disk and open it with the applet, and you > will be right where you left off. This has been used in a variety of > contexts to good effect. I've been interested in exploring it in terms > of collaborative visualization. (I do something, save a state, send it > to you, you load it and see the exact same thing.) You might be > interested in that. Very cool. Sage also uses tachyon3d for ray-traced rendering and it would be nice to have a way to find out what angle the user selected from the applet, so we can render the same scene using tachyon. Also, it would be good that if a user closes the sage notebook then re-opens it, that all there 3d images are restored to exactly the same state. Right -- that's a nice solution -- use Jmol for a front end, and some other process for the finished product. This is what is used at some sites for producing JPG images, for example. It's easy to get orientation information from Jmol. from JavaScript: var info = getPropertyAsArray("orientationInfo") or, at math.htm site by calling up a console from the menu using right-click (PC) or control-click (Mac) type getProperty orientationInfo > http://chemapps.stolaf.edu/jmol/docs/examples-11/math.htm The Sage notebook is an ajax app, and evaluating a function like this to have the mesh built in jmol would potentially be very slow: 1. Jmol requests evaluation of a value 2. Javascript notebook code queries the Sage server for the value of the function 3. The sage notebook server queries a running Sage compute process for the value of a function. 4. The Sage compute process calls some library function, maybe defined in PARI or Maxima. 5. The sage notebook server gets the value of the function 6. The javascript notebook gets the value, then returns that two the Jmol applet. This would not be good for building a mesh. If the Sage notebook were a java app and Sage were written in Java, it would be a different story, but that's not what Sage is. Not a problem -- what the applet would want would be ALL the values at once for a specific set of u,v values. No need to work with single values. Q: what sort of "interactivity" are you interested in? I'm fairly certain we can set it up for you. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Fwd: Re: [Jmol-developers] [sage-devel] Re: Jmol and MathematicsVisualization
On Dec 26, 2007 8:45 PM, Robert Hanson <[EMAIL PROTECTED]> wrote: > Original Message > Subject: Re: [Jmol-developers] [sage-devel] Re: Jmol and > MathematicsVisualization > Date: Tue, 25 Dec 2007 20:07:25 -0700 > From: "William Stein" <[EMAIL PROTECTED]> > To: sage-devel@googlegroups.com, [EMAIL PROTECTED] > > > http://trac.sagemath.org/sage_trac/ticket/1537 > > involving "triangulation and shadow weirdness" whose fix might involve > having > to actually change jmol. > > I'm not sure what that URL is supposed to tell me. Can you be more > specific? Sorry, it's just a URL that goes into our bug tracking system. It's probably not very clear at present. Hopefully Robert Bradshaw can post more about what the issues were when he gets this email. > If lighting is the issue, realize that Jmol colors the two sides > of a mesh slightly differently. So the order of vertices listed in each > triangle or quadrilateral set is important. Or, if you don't want that > lighting effect, you can add FULLYLIT to the pmesh command. If you are > seeing cris-crossed triagnles, then you are not sending four quadrilateral > corner indices in the right order. I can't think of anything else that > might go wrong in a pmesh. > > One thing we haven't implemented in the pmesh command is vertex normal > averaging. We do that with isosurface. I think the smartest thing to do > would be to modify the isosurface oommand to read pmesh files -- this would > allow more flexibility and better shading. Cool. I read your paper http://chemapps.stolaf.edu/jmol/docs/misc/JVXL-format.pdf and now I'm pretty excited to learn more about voxels, isosurfaces, etc., and how they might help with visualization in mathematics. > > Can you create callbacks like that using the java applet? This would be > g> reat for Sage, I think. > > > Yes, there are several callback types, and we could certainly add more, > such as hovering over a pmesh point or clicking on a point. Right now the > callbacks are for atoms and draw objects. Yes, hovering over a pmesh point or clicking a point or sphere would be extremely useful. > > A very interesting capability of Jmol that has arisen in the past year > > is the capability to save and restore the current state of the applet > > - everything. So if you set up a "scene" in the application you can > > just write the state file to disk and open it with the applet, and you > > will be right where you left off. This has been used in a variety of > > contexts to good effect. I've been interested in exploring it in terms > > of collaborative visualization. (I do something, save a state, send it > > to you, you load it and see the exact same thing.) You might be > > interested in that. > >> Very cool. Sage also uses tachyon3d for ray-traced rendering and >> it would be nice to have a way to find out what angle the user selected >> from the applet, so we can render the same scene using tachyon. >>Also, it would be good that if a user closes the sage notebook then >> re-opens it, that all there 3d images are restored to exactly the same >> state. > > Right -- that's a nice solution -- use Jmol for a front end, and some other > process for the finished product. This is what is used at some sites for > producing JPG images, for example. It's easy to get orientation information > from Jmol. Excellent! > > from JavaScript: > > var info = getPropertyAsArray("orientationInfo") That seems very easy. > > or, at math.htm site by calling up a console from the menu using > right-click (PC) or control-click (Mac) type > >getProperty orientationInfo Yes, that works for me too. > > > http://chemapps.stolaf.edu/jmol/docs/examples-11/math.htm > > The Sage notebook is an ajax app, and evaluating a function like this to > have the mesh built in jmol would potentially be very slow:[...] > > Not a problem -- what the applet would want would be ALL the values at once > for a specific set of u,v values. No need to work with single values. Yes, that's what we have in mind. > Q: what sort of "interactivity" are you interested in? I'm fairly certain > we can set it up for you. Just knowing that it is possible or not too difficult is already a big plus. For now there is still a lot we have left to do just to finish implementing basic usage of jmol for sage. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Fwd: [Jmol-developers] [sage-devel] Re: Jmol and Mathematics Visualization
On Dec 26, 2007, at 7:02 PM, William Stein wrote: > -- Forwarded message -- > From: Miguel <[EMAIL PROTECTED]> > Date: Dec 26, 2007 7:36 PM > Subject: Re: [Jmol-developers] [sage-devel] Re: Jmol and Mathematics > Visualization > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > > >> We've run into some issues, >> e.g., >> >> http://trac.sagemath.org/sage_trac/ticket/1537 >> >> involving "triangulation and shadow weirdness" whose fix might >> involve >> having >> to actually change jmol. > > I suspect that you will encounter other issues with lighting on > very flat > triangles and "cracking" in triangulated surfaces. As I understand it, > these are typical problems with graphics engines ... and there was > never > much demand for these kinds of things within Jmol. Java3D seems to handle this kind of thing fine, so I'm sure it can be done with Jmol too (just that no one's needed/noticed it before). >> Oh, cool, you can do translucent surfaces! > > Translucent surfaces were originally done through 'screening', where > every-other pixel was painted. > > I think that Bob Hanson was did some rework in this area about 6 > months ago. I have to say that this is very cool. >> I think it's just the first thing we thought of that would work >> somewhat >> for drawing surfaces. Should we be using something else? > > Passing a string to pmesh is OK for now ... that may be all there > is. But > longer term you will probably want a more efficient interface that > allows > you to pass binary data structures ... as a display list of > triangles to > be rendered. I was thinking about implementing a "binary" pmesh (same exact format), unless someone's already done that. Also, it'd be nice to read in a whole bundle of files at once (I'm thinking a .zip file with a script and all associated resources). >>> I put together a little page for you guys to experiment with. >>> It's at >>> http://chemapps.stolaf.edu/jmol/docs/examples-11/math.htm >>> Try a few things there; see what you think. The example uses 100,000 >>> quadrilaterals, and it's pretty fast in terms of rendering. >> >> Awesome! > > Bob ... that is beautiful! I've been having trouble connecting to chemapps.stolaf.edu... is it just me or is anyone else having issues with this? - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Jmol and Sage
[this is a response to an earlier message from Bob Hanson...] On Dec 24, 2007 10:27 PM, Bob Hanson <[EMAIL PROTECTED]> wrote: > William, > > Ah, great. So you have been busy! I look forward to hearing about what you > have done. > Usually what happens is that projects such as yours take a snapshot of Jmol > at some > point and then diverge. (Do you know what point that was in your case?) > That's fine, > but it of course limits you to that Jmol point, and it makes integration > harder. Still, > it's what I would do as well. In Sage we try as much as possible to get all changes we make, bug fixes, etc. back upstream. There are very very few cases where this hasn't happened, and many excellent cases where it has -- one of the main social goals of Sage is uniting open source projects, and forking doesn't fit well with that. So forking is definitely *not* what we plan to do with Jmol. Plus we're incredibly busy trying to make Sage as fully functional as we can as quickly as possible, so the more work other projects do the better :-). > What we would be interested in doing, if you care to, would be to work as > much of your adaptations into core Jmol as is reasonable in terms of general > use, and, if possible set up some Java interfaces that would allow you to keep > in step with Jmol developments in the future. The way that is done is that we > start a new branch, work on it, and merge as needed. At some point we are > both running the same operation, and we are done. Think about it, anyway. Certainly. > There may of course be parts of what you are doing that are so remote > from chemistry that they are just too "out there" -- but then again, maybe > not. > I don't see that much that is so different from molecular orbitals and such. > At least not on the visualization end. Yep. It's really very cool the way chemists right code for their application, and it can easily be used for much more general problems. > If there were ANY possible way for me to go to the Sage workshop, I > would jump for the opportunity. Even if it could be for a single day, I would > do it. > That week, unfortunately, is our first week of class here, so that's probably > not possible. When's the next one? The next one will _probably_ be a small-ish workshop Feb 29 -- March 4, 2008, and it will be hosted by Enthought (www.enthought.com/) in Austin, Texas. How are those dates for you? The themes of that workshop will likely be: numerical computation, 3d visualization, the sage notebook, and improving collaboration between Sage and Enthought (which sponsors scipy/numpy). > Still, short of being there, maybe I can be a virtual participant. I would > certainly like to learn more about Sage. You can probably guess from my > recent contributions to Jmol -- mapped isosurfaces, compressed isosurface > algorithms, molecular orbitals, PovRAY ray interface, navigation mode, > quaternions -- that one of my primary interests is mathematics in the context > of chemistry. Sounds like a great opportunity to learn more. > > And, yes, the really great thing about Jmol is the interactive capabilities, > including quite a bit of in-Jmol programmability. So I can see where > capitalizing on that would suit you well. > > The more you can tell me about Sage and how you are using Jmol between now > and then, the better. I'm downloading the tar files now -- yow, 200 Mb!!! Is > this on SourceForge? > It's hosted at University of Washington and 8 other mirror sites. We were slashdotted a few weeks ago (> 5000 downloads in 2 days), and that was pretty harsh. Did you download the source or binary tarball? The optimal thing for you to do might be to download sage-2.9.1.1.tar and build from source: http://sagemath.org/dist/src/ If you have any trouble let me know asap. I set some instruction to jmol-developer a few minutes ago about how to try jmol 3d graphics from within Sage. You could also just go to http://sagenb.com and sign up for an account then look at https://sage.math.washington.edu:8101/home/pub/1647/ and click "Edit a copy". It's annoying to use though, because for some reason (any ideas?) when using jmol over https (at least as served by Sage's Twisted web server) one has to constantly click about some security certificate issues. > Also, if we really got going on this, I could imagine involving some advanced > CS/math/chem undergraduates here as well. oh, oh, oh Ha, ha. I've got it. That would be excellent. I have about 7 of them here at UW involved in Sage :-). -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: "math" and "maple" scripts on OSX?
On Dec 18, 2007 11:21 AM, G. Edgar <[EMAIL PROTECTED]> wrote: > > When someone gets around to writing an installer for SAGE in OS X, > this is something that can be tried there. > Gerald, Did you ever get the Sage <--> Maple interface to work for you on OS X? If it still isn't working, I can try again to help you. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: nc algebra?
Hello, > what about the non-commutative part of Singular (formerly known as > "Plural")? > Singular-Plural has one disadvantage though: It can not deal with free > algebras. You need a PBW-basis (see > > http://www.singular.uni-kl.de/Manual/3-0-4/sing_417.htm#SEC457). I looked at the documentation for Singular today, and it seems like there may be lots of instances where you don't have a G-algebra with PBW basis . I think each of these tools has their place, and the functionality of both should be exposed in Sage. --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: typo in sage tutorial
I added this to http://sagetrac.org/sage_trac/ticket/1544 and attached a patch. On Dec 26, 2007 8:18 PM, William Stein <[EMAIL PROTECTED]> wrote: > Dear Matthew, > > Thanks for your bug report! > > Dear David Joyner (cc: sage-devel): > > This is in some latex that you wrote. Any ideas? Simply replaced \vdots by ... > > I've made this trac #1602: > http://trac.sagemath.org/sage_trac/ticket/1602 > > > -- Forwarded message -- > From: Matthew Moelter <> > Date: Dec 26, 2007 4:24 PM > Subject: typo in sage tutorial > To: [EMAIL PROTECTED] > > > on this page > > http://www.sagemath.org/doc/html/tut/node24.html > > in the table there is what appears to be raw latex rather than > typeset material. > this appears "&vellip#vdots;" > > Matt > > > > Matthew Moelter, Assoc Prof > Department of Physics > Calif. Polytechnic State Univ. > San Luis Obispo, CA 93407 > > > > > > > -- > William Stein > Associate Professor of Mathematics > University of Washington > http://wstein.org > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE Tutorial nits #2
I added a link to a patch on the comment section of http://sagetrac.org/sage_trac/ticket/1544 It passes sage -t. + On Dec 16, 2007 10:22 PM, mabshoff <[EMAIL PROTECTED]> wrote: > > > > On Dec 17, 2:28 am, Rich Morin <[EMAIL PROTECTED]> wrote: > > As requested by WS, I'm posting these directly to the list. > > > > -r > > Thanks Rich, > > your fixes are now #1544. Keep up the great work :) > > Cheers, > > Michael > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE Tutorial nits #2
On Dec 27, 5:55 am, "David Joyner" <[EMAIL PROTECTED]> wrote: > I added a link to a patch on the comment section > ofhttp://sagetrac.org/sage_trac/ticket/1544 > It passes sage -t. > Hi David, I assume the bundle linked from #1544 also fixes #1602? If it is a single commit only could you attach a patch instead of a bundle? Cheers, Michael > + > > On Dec 16, 2007 10:22 PM, mabshoff > > <[EMAIL PROTECTED]> wrote: > > > On Dec 17, 2:28 am, Rich Morin <[EMAIL PROTECTED]> wrote: > > > As requested by WS, I'm posting these directly to the list. > > > > -r > > > Thanks Rich, > > > your fixes are now #1544. Keep up the great work :) > > > Cheers, > > > Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Client side application idea: QT/Webkit + Notebook
Instead of remaking the wheel for a sage client side application, one possibility would be to use something like QT 4 + webkit (webkit is the browser engine derived from konqueror's KHTML and used in OS X's Safari browser). Functionality from the notebook could be directly used via webkit, and additional functionality could be added elsewhere if it doesn't make sense to have it in the notebook. QT is cross platform and open source, and there is a python language binding (PyQT) that seems actively developed. Also, for what it is worth, I've never seen so many developers speak so highly of a GUI toolkit as I have seen for QT (I have little experience myself other than as a user of many great QT applications). For a recent review including QT/webkit, see: http://arstechnica.com/news.ars/post/20071226-first-look-qt-4-4-0-with-phonon-and-webkit.html I almost certainly won't have time to work on this much myself in the near future, but thought I'd pass on the idea if anyone is very eager to make a GUI that feels like an enhanced version of one of the popular CAS environments. It isn't something I really need, but I suppose quite a few people might like it. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Client side application idea: QT/Webkit + Notebook
On Dec 26, 2007 10:22 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Instead of remaking the wheel for a sage client side application, one > possibility would be to use something like QT 4 + webkit (webkit is > the browser engine derived from konqueror's KHTML and used in OS X's > Safari browser). Functionality from the notebook could be directly > used via webkit, and additional functionality could be added elsewhere > if it doesn't make sense to have it in the notebook. QT is cross > platform and open source, and there is a python language binding > (PyQT) that seems actively developed. Also, for what it is worth, > I've never seen so many developers speak so highly of a GUI toolkit as > I have seen for QT (I have little experience myself other than as a > user of many great QT applications). > > For a recent review including QT/webkit, see: > http://arstechnica.com/news.ars/post/20071226-first-look-qt-4-4-0-with-phonon-and-webkit.html > > I almost certainly won't have time to work on this much myself in the > near future, but thought I'd pass on the idea if anyone is very eager > to make a GUI that feels like an enhanced version of one of the > popular CAS environments. It isn't something I really need, but I > suppose quite a few people might like it. Any chance you could be more precise, or describe some examples of exactly what you mean? Are there any nontrivial GUI applications that are written the way you are describing above. If we don't "remake the wheel for a sage client side application," what would be the advantage of what you describe above over just using the Sage notebook via Firefox or Konqueror or Safari? I'm not being rhetorical; it's just that what you're suggesting is a bit too abstract for me. Also, does this webkit have a completely javascript interpreter? Sorry if I sound completely clueless. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Client side application idea: QT/Webkit + Notebook
On Dec 27, 7:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Dec 27, 12:29 am, "William Stein" <[EMAIL PROTECTED]> wrote: > > > On Dec 26, 2007 10:22 PM, [EMAIL PROTECTED] > > > <[EMAIL PROTECTED]> wrote: > > > > Instead of remaking the wheel for a sage client side application, one > > > possibility would be to use something like QT 4 + webkit (webkit is > > > the browser engine derived from konqueror's KHTML and used in OS X's > > > Safari browser). Functionality from the notebook could be directly > > > used via webkit, and additional functionality could be added elsewhere > > > if it doesn't make sense to have it in the notebook. QT is cross > > > platform and open source, and there is a python language binding > > > (PyQT) that seems actively developed. Also, for what it is worth, > > > I've never seen so many developers speak so highly of a GUI toolkit as > > > I have seen for QT (I have little experience myself other than as a > > > user of many great QT applications). > > > > For a recent review including QT/webkit, see: > > >http://arstechnica.com/news.ars/post/20071226-first-look-qt-4-4-0-wit... > > > > I almost certainly won't have time to work on this much myself in the > > > near future, but thought I'd pass on the idea if anyone is very eager > > > to make a GUI that feels like an enhanced version of one of the > > > popular CAS environments. It isn't something I really need, but I > > > suppose quite a few people might like it. > > > Any chance you could be more precise, or describe some examples > > of exactly what you mean? Are there any nontrivial GUI applications > > that are written the way you are describing above. > > I doubt it, since QT 4.4 hasn't been released yet and will be the > first version with webkit integration. On MS Windows I've seen a > number of applications that like to integrate Internet Explorer in > this fashion, though I can't remember any nontrivial examples.> If we don't > "remake the wheel for a sage client side application," > > what would be the advantage of what you describe above over just using the > > Sage notebook via Firefox or Konqueror or Safari? I'm not being > > rhetorical; > > it's just that what you're suggesting is a bit too abstract for me. > > Using something native like QT could provide faster widgets than AJAX, > and also allow for an integrated environment for some visualization > libraries that cannot be accessed from the notebook. You could > distribute the client side application as a separate package with the > visualization libraries and any other client side libraries/ > applications that can't be used from the notebook, then connect > remotely to a sage notebook server. I understand it is best to get as > much functionality in the notebook as possible, but usability could be > enhanced via fast widgets, menus, and extra libraries included as one > integrated application. > > > Also, does this webkit have a completely javascript interpreter? > > Looks like it isn't completely ECMAscript compliant, but is getting > there fast. Last I heard it supported some fairly complex AJAX apps > (like gmail), but I haven't tested it much myself - I usually use > firefox and opera these days. > > > Sorry if I sound completely clueless. > > Nope, I'm not sure if it would be worthwhile - I have yet to use many > of the visualization tools in sage, so I'm the clueless one here. I also see this potentially as a application that could be used more to actually debug code. It seems like the python debugger (http:// docs.python.org/lib/module-pdb.html) might be something that could be integrated. > > -- William Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Client side application idea: QT/Webkit + Notebook
On Dec 27, 12:29 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On Dec 26, 2007 10:22 PM, [EMAIL PROTECTED] > > > > <[EMAIL PROTECTED]> wrote: > > > Instead of remaking the wheel for a sage client side application, one > > possibility would be to use something like QT 4 + webkit (webkit is > > the browser engine derived from konqueror's KHTML and used in OS X's > > Safari browser). Functionality from the notebook could be directly > > used via webkit, and additional functionality could be added elsewhere > > if it doesn't make sense to have it in the notebook. QT is cross > > platform and open source, and there is a python language binding > > (PyQT) that seems actively developed. Also, for what it is worth, > > I've never seen so many developers speak so highly of a GUI toolkit as > > I have seen for QT (I have little experience myself other than as a > > user of many great QT applications). > > > For a recent review including QT/webkit, see: > >http://arstechnica.com/news.ars/post/20071226-first-look-qt-4-4-0-wit... > > > I almost certainly won't have time to work on this much myself in the > > near future, but thought I'd pass on the idea if anyone is very eager > > to make a GUI that feels like an enhanced version of one of the > > popular CAS environments. It isn't something I really need, but I > > suppose quite a few people might like it. > > Any chance you could be more precise, or describe some examples > of exactly what you mean? Are there any nontrivial GUI applications > that are written the way you are describing above. I doubt it, since QT 4.4 hasn't been released yet and will be the first version with webkit integration. On MS Windows I've seen a number of applications that like to integrate Internet Explorer in this fashion, though I can't remember any nontrivial examples. > If we don't "remake the wheel for a sage client side application," > what would be the advantage of what you describe above over just using the > Sage notebook via Firefox or Konqueror or Safari? I'm not being rhetorical; > it's just that what you're suggesting is a bit too abstract for me. Using something native like QT could provide faster widgets than AJAX, and also allow for an integrated environment for some visualization libraries that cannot be accessed from the notebook. You could distribute the client side application as a separate package with the visualization libraries and any other client side libraries/ applications that can't be used from the notebook, then connect remotely to a sage notebook server. I understand it is best to get as much functionality in the notebook as possible, but usability could be enhanced via fast widgets, menus, and extra libraries included as one integrated application. > > Also, does this webkit have a completely javascript interpreter? Looks like it isn't completely ECMAscript compliant, but is getting there fast. Last I heard it supported some fairly complex AJAX apps (like gmail), but I haven't tested it much myself - I usually use firefox and opera these days. > Sorry if I sound completely clueless. Nope, I'm not sure if it would be worthwhile - I have yet to use many of the visualization tools in sage, so I'm the clueless one here. > -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: error building sage 2.9 on cygwin 1.5.24: tmp-dive_1.s:110: Error: cannot represent relocation type BFD_RELOC_386_GOTPC
On Dec 23, 3:44 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Dec 23, 2007 4:05 AM, mabshoff > > > > <[EMAIL PROTECTED]> wrote: > > > On Dec 23, 11:58 am, Nasser Abbasi <[EMAIL PROTECTED]> wrote: > > > I just downloaded sage 2.9 source code tar > > > fromhttp://www.sagemath.org/dist/src/index.html > > > > did tar xvf on it, then did make. > > > > I get this build error below. > > > I am using cygwin > > > > $ uname -a > > > CYGWIN_NT-5.1 computer-h20djr 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 > > > Cygwin > > > > $ gcc -v > > > gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) > > > > > > Hi Nasser, > > > building Sage on Cygwin is no longer supported since the Sage 2.5. > > release. > > I've created ticket #1591 to address this sort of thing happening: > >http://trac.sagemath.org/sage_trac/ticket/1591 > > I'm actually surprised, since I thought we already wrote code to prevent it. I just tested and Sage prints a message informing the user that it isn't supported, but then goes on happily :) While I am trying to compile Sage 2.9.1.1 on Cygwin I ran into the same problem and the quite old binutils in Cygwin (2006/08) throw some kind of assertion. I am compiling binutils 2.18 as I type this to see if that solves the issue. > William Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Fwd: banner
On Dec 12, 2007 3:22 PM, mhampton <[EMAIL PROTECTED]> wrote: > I might be able to help, at least after I get the last few days of > class out of the way. > > I made a design for a mug (I'm going to order through Snapfish, > although if we wanted more merchandise something like cafepress would > be better), which is mostly made of graphics of interest to me: > http://www.d.umn.edu/~mhampton/mathmug3.jpg > ...if any of that looks interesting I could try to scale it up. I > tried to do some nice polytopes but so far they haven't come out too > well. Can you change the banner (ASAP -- i.e., in the next few days) as follows: 1. Put this image in the upper left instead of the image you have: http://sagemath.org/ss/cube5.png Note that you should use a command more like this to generate your own copy of the cube to some high resolution: sage: graphs.CubeGraph(5).show3d(iterations=300, xres=600, yres=600) with maybe more iterations. Actually I can't think of anything else to change. Fortunately you'll be on hand to explain what the heck the poster means :-). My plan is to have a big printout of your poster behind the booth. Then have lots of color fliers that look something like this. http://sagemath.org/flier2/ (click on flier.png or flier.pdf) Thoughts about the flier? I changed one of the logos based on Martin Albrecht's poster. Otherwise, this is basically a typeset version of the Sage homepage. We'll also have free DVD's to hand out and printouts of the Sage tutorial. If all goes as planned the DVD's will even be professionally labeled with the Sage logo. My plan is to not write "Free" anywhere on the poster or the handout, but tell people Sage is free when they ask how much Sage costs.(The word "free" can be confusing and misleading.) I also plan to have a shiny new imac setup with Sage running on it, and a screen saver that cycles through screenshots of Sage. We'll also have 3d glasses, so people can play around with 3d stereoscopic plots via Jmol. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] The Arizona Winter School
Hi, I'm one of the organizers of the Arizona Winter School, which will be March 15-19, 2008. If you're a US grad student doing number theory and you're reading this, you should apply for funding to come, since there will likely be a bunch of people working on Sage there (e.g., me, David Roe, Craig Citro, etc.) :-) We fully funded nearly 100 students last year, and there were some crazy intense working and coding sprints. Anyways, see http://swc.math.arizona.edu/aws/08/ and the funding application at http://swc-reg.sagemath.org/ -- William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] optional octave package
Hi, I tried to make an optional Octave-3.0.0 Sage spkg. I did *not* succeed. See http://trac.sagemath.org/sage_trac/ticket/1609 in case you're curious or want to try to pick up where I left off. -- William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Why does sage not use Qemu?
On Dec 26, 2007 4:25 PM, Pablo De Nápoli <[EMAIL PROTECTED]> wrote: > Another option is > > Virtualbox > http://www.virtualbox.org/ > > It has an open source edition, released under GNU GPL version 2 > > http://www.virtualbox.org/wiki/Editions > I just downloaded it on my OSX 10.5.1 MacbookPro, ran the nice installer, then tried to run the program and it immediately crashes with "VirtualBox - Critical Error: Failed to create the VirtualBox COM object", and the following traceback (see below). Since OSX (and Linux under virtualization or on a remote server) is my development environment, VirtualBox doesn't seem ready for me to use at all for deploying Sage. Has anybody else actually _used_ VirtualBox? Maybe it only works on OS X 10.4? Process: VBoxSVC [2142] Path:/Applications/VirtualBox.app/Contents/MacOS/VBoxSVC Identifier: VBoxSVC Version: ??? (???) Code Type: X86 (Native) Parent Process: VBoxSVC [2141] Date/Time: 2007-12-27 00:02:56.331 -0700 OS Version: Mac OS X 10.5.1 (9B18) Report Version: 6 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0002, 0x Crashed Thread: 0 Application Specific Information: *** single-threaded process forked *** Thread 0 Crashed: 0 com.apple.CoreFoundation0x9626e9c1 __CFRunLoopFindMode + 353 1 com.apple.CoreFoundation0x962706ec CFRunLoopAddSource + 124 2 com.apple.DiskArbitration 0x92845da4 DAApprovalSessionScheduleWithRunLoop + 61 3 ...ple.CoreServices.CarbonCore 0x90d3b846 _FSGetDiskArbSession(__DASession**, __DAApprovalSession**) + 646 4 ...ple.CoreServices.CarbonCore 0x90d3b58e CreateDiskArbDiskForMountPath(char const*) + 94 5 ...ple.CoreServices.CarbonCore 0x90d3a3d2 FSCacheableClient_GetVolumeCachedInfo(char const*, statfs const*, CachedVolumeInfo*, __DADisk*, __DADisk**) + 364 6 ...ple.CoreServices.CarbonCore 0x90d39d11 MountVolume(char const*, statfs*, unsigned char, unsigned char, __DADisk*, short*) + 537 7 ...ple.CoreServices.CarbonCore 0x90d39a0a MountInitialVolumes() + 258 8 ...ple.CoreServices.CarbonCore 0x90d39609 INIT_FileManager() + 219 9 ...ple.CoreServices.CarbonCore 0x90d394b6 GetRetainedVolFSVCBByVolumeID(unsigned long) + 36 10 ...ple.CoreServices.CarbonCore 0x90d37c96 PathGetObjectInfo(char const*, unsigned long, unsigned long, VolumeInfo**, unsigned long*, unsigned long*, char*, unsigned long*, unsigned char*) + 202 11 ...ple.CoreServices.CarbonCore 0x90d37b66 FSPathMakeRefInternal(unsigned char const*, unsigned long, unsigned long, FSRef*, unsigned char*) + 90 12 ...ple.CoreServices.CarbonCore 0x90d436bb FSPathMakeRef + 47 13 com.apple.CoreFoundation0x962ba524 __CFCarbonCore_FSPathMakeRef + 68 14 com.apple.CoreFoundation0x962c6ae4 _CFGetFSRefFromURL + 324 15 com.apple.CoreFoundation0x962c6f32 CFURLGetFSRef + 34 16 VBoxXPCOM.dylib 0x0036fc2e nsLocalFile::GetFSRefInternal(FSRef&, int) + 66 17 VBoxXPCOM.dylib 0x0037051d nsLocalFile::IsDirectory(int*) + 57 18 VBoxXPCOM.dylib 0x0035931e NS_InitXPCOM2 + 494 19 VBoxSVC 0x000bb3ab NS_InitXPCOM2 + 51 20 VBoxSVC 0x000bc5f6 com::Initialize() + 902 21 VBoxSVC 0x000b63ca main + 538 22 VBoxSVC 0x2292 _start + 216 23 VBoxSVC 0x21b9 start + 41 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x000f ebx: 0x9626e86e ecx: 0x1200 edx: 0x932cd8e6 edi: 0x01109430 esi: 0x0110e4e0 ebp: 0xbfffa248 esp: 0xbfffa1e0 ss: 0x001f efl: 0x0206 eip: 0x9626e9c1 cs: 0x0017 ds: 0x001f es: 0x001f fs: 0x gs: 0x0037 cr2: 0x2ea23000 Binary Images: 0x1000 - 0x11bfef +VBoxSVC ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxSVC 0x1c2000 - 0x275feb +VBoxVMM.dylib ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxVMM.dylib 0x2c - 0x2d2fe3 +VBoxDDU.dylib ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxDDU.dylib 0x2da000 - 0x331fef +VBoxRT.dylib ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib 0x354000 - 0x3fcffc +VBoxXPCOM.dylib ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxXPCOM.dylib 0x82e000 - 0xd69fcf +VBoxXML.dylib ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxXML.dylib 0x18b2000 - 0x1902ffb +VBoxREM.dylib ??? (???) /Applications/VirtualBox.app/Contents/MacOS/VBoxREM.dylib 0x8fe0 - 0x8fe2d883 dyld 95.3 (???) <81592e798780564b5d46b988f7ee1a6a> /usr/lib/dyld 0x900e3000 - 0x9013cfff libGLU.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x9014 - 0x90144fff libGIF.dylib ??? (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
[sage-devel] Re: optional octave package
On Dec 27, 2007 12:00 AM, mabshoff <[EMAIL PROTECTED]> wrote: > > > > On Dec 27, 7:43 am, "William Stein" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I tried to make an optional Octave-3.0.0 Sage spkg. I did *not* succeed. > > See > > > > http://trac.sagemath.org/sage_trac/ticket/1609 > > > > in case you're curious or want to try to pick up where I left off. > > > > Looking at the linker failure it indicates that you have a gcc 4.2 > somewhere (maybe installed into $SAGE_LOCAL via my gcc-4.2.1 spkg :)) > and the linker gets confused because it also links against a gcc 4.0.3 > runtime. If that is the case I can have a closer look. It seems that > the build failed right at the end. Thanks -- You're right; it's some sort of conflict like that though I don't think it's gcc-4.2 versus gcc-4.0.3, but gcc-4.2.1 versus gcc 4.0.3 stuff that's coming from the g95 binaries that we ship with Sage. So probably the way to build the Octave package would be to build Sage using gfortran/gcc from your gcc-4.2.1.spkg, then build Octave. I don't know if there is a way around having to do that, which basically means no optional Octave package. I don't think having an optional Octave package is critical since it takes > 1 hour to build, and the Octave developers are extremely good at making it easy to get Octave binaries for a wide range of platforms. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: optional octave package
On Dec 27, 8:14 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On Dec 27, 2007 12:00 AM, mabshoff > > > > <[EMAIL PROTECTED]> wrote: > > > On Dec 27, 7:43 am, "William Stein" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I tried to make an optional Octave-3.0.0 Sage spkg. I did *not* > > > succeed. See > > > > http://trac.sagemath.org/sage_trac/ticket/1609 > > > > in case you're curious or want to try to pick up where I left off. > > > Looking at the linker failure it indicates that you have a gcc 4.2 > > somewhere (maybe installed into $SAGE_LOCAL via my gcc-4.2.1 spkg :)) > > and the linker gets confused because it also links against a gcc 4.0.3 > > runtime. If that is the case I can have a closer look. It seems that > > the build failed right at the end. > > Thanks -- You're right; it's some sort of conflict like that though I > don't think it's > gcc-4.2 versus gcc-4.0.3, but gcc-4.2.1 versus gcc 4.0.3 stuff that's > coming from the g95 binaries that we ship with Sage. Yep, it links "-lf95" for some reason. What I also consider odd is that it links the cblas as well as the f77blas interfaces of ATLAS. > So probably > the way to build the Octave package would be to build Sage > using gfortran/gcc from your gcc-4.2.1.spkg, then build Octave. > I don't know if there is a way around having to do that, which basically > means no optional Octave package. > > I don't think having an optional Octave package is critical since > it takes > 1 hour to build, and the Octave developers are extremely > good at making it easy to get Octave binaries for a wide range > of platforms. Pretty much. > -- William Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: optional octave package
On Dec 27, 7:43 am, "William Stein" <[EMAIL PROTECTED]> wrote: > Hi, > > I tried to make an optional Octave-3.0.0 Sage spkg. I did *not* succeed. > See > > http://trac.sagemath.org/sage_trac/ticket/1609 > > in case you're curious or want to try to pick up where I left off. > Looking at the linker failure it indicates that you have a gcc 4.2 somewhere (maybe installed into $SAGE_LOCAL via my gcc-4.2.1 spkg :)) and the linker gets confused because it also links against a gcc 4.0.3 runtime. If that is the case I can have a closer look. It seems that the build failed right at the end. > -- William Cheers, Michael > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: Why does sage not use Qemu?
Thursday 27 December 2007 09:07:32 tarihinde William Stein şunları yazmıştı: > I just downloaded it on my OSX 10.5.1 MacbookPro, ran the nice > installer, then tried to run the program and it immediately crashes > with "VirtualBox - Critical Error: Failed to create the VirtualBox > COM object", and the following traceback (see below). Since OSX > (and Linux under virtualization or on a remote server) is my > development environment, VirtualBox doesn't seem ready for > me to use at all for deploying Sage. Has anybody else actually > _used_ VirtualBox? Maybe it only works on OS X 10.4? VirtualBox MacOSX port is rather experimental. We use it on Linux everyday to test our distro with different configurations. Regards, ismail -- Never learn by your mistakes, if you do you may never dare to try again. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: error building sage 2.9 on cygwin 1.5.24: tmp-dive_1.s:110: Error: cannot represent relocation type BFD_RELOC_386_GOTPC
> I just tested and Sage prints a message informing the user that it > isn't supported, but then goes on happily :) > > While I am trying to compile Sage 2.9.1.1 on Cygwin I ran into the > same problem and the quite old binutils in Cygwin (2006/08) throw some > kind of assertion. I am compiling binutils 2.18 as I type this to see > if that solves the issue. It isn't a binutils issue since updating to binutils 2.18 didn't fix the problem. We must have patched the original source of the gmp in the spkg somehow, I build 4.2.1 and 4.2.2 from vanilla sources on cygwin and both of them work. I would suggest that we investigate this once we update to gmp 4.2.2. > > William Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---