Re: [sage-support] Creating Repeating Composite Functions

2009-12-19 Thread Minh Nguyen
Hi Christopher, On Sun, Dec 20, 2009 at 6:14 AM, Christopher Olah wrote: > PS. If your wondering why I'm doing this, have a look at > http://christopherolah.wordpress.com/2009/12/19/formation-of-escape-time-fractals/ > , I'm making some really neat pictures of the formation of escape time > fr

Re: [sage-support] Creating Repeating Composite Functions

2009-12-19 Thread Christopher Olah
> The following is better.   It is longer, but it will work even if n >= > 1000, whereas the above will fail spectacularly due to Python's stack > limit.  Also, the following is a bit faster than the above: > > def compose(f, n, a): >    """ >    Return f(f(...f(a)...)), where the composition occur

Re: [sage-support] Creating Repeating Composite Functions

2009-12-19 Thread William Stein
On Sat, Dec 19, 2009 at 11:53 AM, Robert Bradshaw wrote: > On Dec 19, 2009, at 11:14 AM, Christopher Olah wrote: > >> Greetings! >> >> I can't seem to figure out how (elegantly) to make a function that is >> the repeated composite of another. eg. Suppose I have a function f, >> how do I get f*f*f*

Re: [sage-support] Creating Repeating Composite Functions

2009-12-19 Thread Robert Bradshaw
On Dec 19, 2009, at 11:14 AM, Christopher Olah wrote: > Greetings! > > I can't seem to figure out how (elegantly) to make a function that is > the repeated composite of another. eg. Suppose I have a function f, > how do I get f*f*f*f... > > In math, I could just f^n, One difficulty with supportin

[sage-support] Closest Vector Problem

2009-12-19 Thread Santanu Sarkar
Dear all, How can I find an approximately closest vector problem of Lattice in Sage (app. shortest v p can be solved by LLL)? With regards, Santanu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@google

Re: [sage-support] Polynomial Prolem

2009-12-19 Thread Santanu Sarkar
Thanks. 2009/12/9 Martin Albrecht > On Wednesday 09 December 2009, Santanu Sarkar wrote: > > Dear all, > > Suppose I have polynomials over rational(Q) field although coefficients > > are integer. > > I want to transform these polynomials over some finite field say GF(7). > > Try: > > sage: R.

[sage-support] Creating Repeating Composite Functions

2009-12-19 Thread Christopher Olah
Greetings! I can't seem to figure out how (elegantly) to make a function that is the repeated composite of another. eg. Suppose I have a function f, how do I get f*f*f*f... In math, I could just f^n, in normal lambda calculus, I'd just use n.f (church numeral), but in sage the only way I could co

[sage-support] Installing version 4.2.1 fails

2009-12-19 Thread James Fennell
I currently have sage-4.2 installed on my lenovo netbook. In the past, I have been able to successfully install sage binaries, but the latest version 4.2.1 fails with the message "ImportError: No module named _md5". Checking web for similar errors suggests that this may simply

RE: [sage-support] Easiest method to solve a PDE

2009-12-19 Thread Jorge E . ´Sanchez Sanchez
Hi Carlos, there is a very good library to solve these partial differential equations in C++, which I recommend you you can google: dealII, which stands for "differential equations library II", it is very general and with a very wide range of applications Regards Jorge From: ccordob...@gmail.

[sage-support] Re: Easiest method to solve a PDE

2009-12-19 Thread Jason Grout
William Stein wrote: > On Fri, Dec 18, 2009 at 11:53 PM, Thierry Dumont > wrote: >> Carlos Córdoba a écrit : >>> Hi, >>> >>> I know this is not a general mathematical forum, but I hope you can help me. >>> I have this PDE: >>> >>> \frac{dB}{dt} = F(x,y,z)B(x,y,z) - G(x,y,z)\nabla B(x,y,z) >>> >>>

[sage-support] Re: Easiest method to solve a PDE

2009-12-19 Thread Marshall Hampton
I had hoped to work on integrating pydstool, and briefly corresponded with the author. Unfortunately I have a lot of other projects that have to take priority over that, so I haven't done anything of substance. The difficult thing, I think, is agreeing on how to merge the class architecture of py

Re: [sage-support] Easiest method to solve a PDE

2009-12-19 Thread Thierry Dumont
William Stein a écrit : > On Fri, Dec 18, 2009 at 11:53 PM, Thierry Dumont > wrote: >> Carlos Córdoba a écrit : >>> Hi, >>> >>> I know this is not a general mathematical forum, but I hope you can help me. >>> I have this PDE: >>> >>> \frac{dB}{dt} = F(x,y,z)B(x,y,z) - G(x,y,z)\nabla B(x,y,z) >>> >

Re: [sage-support] Easiest method to solve a PDE

2009-12-19 Thread William Stein
On Fri, Dec 18, 2009 at 11:53 PM, Thierry Dumont wrote: > Carlos Córdoba a écrit : >> Hi, >> >> I know this is not a general mathematical forum, but I hope you can help me. >> I have this PDE: >> >> \frac{dB}{dt} = F(x,y,z)B(x,y,z) - G(x,y,z)\nabla B(x,y,z) >> >> and I don't know how to solve it n