[sage-support] Re: Idea for Sage notebooks ( question on getting funding to write these)

2010-11-14 Thread pang
On 13 nov, 00:29, Jason Grout jason-s...@creativetrax.com wrote: That was a prototype and was hand-coded, I believe (so no, I don't think there was code for it in general).  That was Rob Beezer's work, so I'll have to punt to him.  He may not be able to answer for a few days, though. It

[sage-support] Re: tell to sage do something if you can but if you can not, pass to anything else

2010-07-16 Thread pang
Another question : is it the good list to post this kind of question? I saw that there is another list : sage-users... Would it be more appropriate to post there? Are you sure? There is no such google group, and search on the sagmath website doesn't show hits on that name. This is the right

[sage-support] Re: tell to sage do something if you can but if you can not, pass to anything else

2010-07-16 Thread pang
A related question: is it possible to catch an exception if there is a time out? Or maybe there is another way to write code like this: @fork def g(...) try: a = g(10^7) except TimeOut: a = something_else ... -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Higher-level symbolic manipulations

2010-06-30 Thread pang
Can I do this in Sage? Sure. Here you have some tips: {{{id=1| #Create n variables with names x1, x2 ... xn #and store them in a list vs n = 5 vs = var(' '.join('x%d'%j for j in range(5))) vs /// (x0, x1, x2, x3, x4) }}} {{{id=6| def pot(vs,ds): return prod(v^d for v,d in zip(vs,ds))

[sage-support] Re: Higher-level symbolic manipulations

2010-06-30 Thread pang
On 30 jun, 22:45, Ryan Hinton iob...@email.com wrote: Thanks for the reply!  That's a perfect example of what I am doing now.  Can I go one level higher and define my generating function as a product of terms *while leaving the actual degrees, coefficients, and even the number of dimensions

[sage-support] Re: version control of worksheets

2009-07-25 Thread pang
On Jul 24, 6:52 pm, William Stein wst...@gmail.com wrote: I can think of no reason it would be dangerous to do that.  Just control the files of the form worksheet.txt, since they determine the worksheets. I can also not think of a simpler way to accomplish this. William Thanks them. It's

[sage-support] Re: how to get sage for ubuntu hardy

2009-07-21 Thread pang
It works once the kernels match. Thanks again --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at

[sage-support] Re: how to get sage for ubuntu hardy

2009-07-19 Thread pang
Bruce Cohenwrote: I am running sage-4.1-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux on Ubuntu 8.04.1, kernel 2.6.24-19-generic. Thanks for th tip! I tried it and it failed, but it's probably because I ran it from the chroot jail that I use to build the custom live dvd. The kernel in the

[sage-support] Re: how to get sage for ubuntu hardy

2009-07-19 Thread pang
Bruce Cohenwrote: I am running sage-4.1-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux on Ubuntu 8.04.1, kernel 2.6.24-19-generic. Thanks for th tip! I tried it and it failed, but it's probably because I ran it from the chroot jail that I use to build the custom live dvd. The kernel in the

[sage-support] Re: how to get sage for ubuntu hardy

2009-07-17 Thread pang
Unfortunately, no, there are no such up-to-date archives. I wouldn't mind to use sage 3 binaries, but I cannot find any of those either. Unfortunately, I didn't keep a sage 3 file for hardy that I used once. --~--~-~--~~~---~--~~ To post to this group, send email

[sage-support] Re: How can calculate the time of execution of a command in sage

2009-07-02 Thread pang
Watch also for cputime and walltime, which are very general and easy to use. Sometimes time and timeit are not convenient to use if you have more than one statement. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread pang
In the case where I'm using the test.sage trick, can I still import my own modules or have access to everything ? I guess the answer is Yes, isn't ? I've tried to import both sage and pygtk without success, both in python and sage console. Please tell me if you can achieve this. I guess you