Re: [sympy] Re: Autowrapping expression with long variable names

2013-11-06 Thread Aaron Meurer
Great to hear. Aaron Meurer On Mon, Oct 28, 2013 at 3:55 AM, Federico Vaggi wrote: > Hey - I'm working on a PR now. I'll write up some tests too. > > Fede > > On Friday, 25 October 2013 10:07:46 UTC+2, Øyvind Jensen wrote: >> >> >> >> On Thursday, October 24, 2013 4:48:36 PM UTC+2, Federico Vag

[sympy] Re: Autowrapping expression with long variable names

2013-10-28 Thread Federico Vaggi
Hey - I'm working on a PR now. I'll write up some tests too. Fede On Friday, 25 October 2013 10:07:46 UTC+2, Øyvind Jensen wrote: > > > > On Thursday, October 24, 2013 4:48:36 PM UTC+2, Federico Vaggi wrote: >> >> Got it. Thanks for the suggestion. >> > > Great! How did you fix it? Would you mi

[sympy] Re: Autowrapping expression with long variable names

2013-10-25 Thread Øyvind Jensen
On Thursday, October 24, 2013 4:48:36 PM UTC+2, Federico Vaggi wrote: > > Got it. Thanks for the suggestion. > Great! How did you fix it? Would you mind to place pull request? > > As to the second point - is there a way to determine the order in which > the parameters are referenced in the

Re: [sympy] Re: Autowrapping expression with long variable names

2013-10-24 Thread Federico Vaggi
Yes, that's exactly right. I want to repeatedly evaluate that function. If you look into my next post, I had two lambdify solutions - one involved partially closing the function using subs, and using lambdify each cycle, but that added a lot of overhead. The other involved using lambdify out

Re: [sympy] Re: Autowrapping expression with long variable names

2013-10-24 Thread Ondřej Čertík
On Thu, Oct 24, 2013 at 1:45 AM, Federico Vaggi wrote: > https://gist.github.com/FedericoV/7132880 here you go. I see --- the line is just too long. If you write it like this: REAL*8 function autofunc(Gal, empty, fullbound_RE, fullbound_closed_RE, & k_base_synt_p53, k_bindleft_p53_RE, &

[sympy] Re: Autowrapping expression with long variable names

2013-10-24 Thread Federico Vaggi
Got it. Thanks for the suggestion. As to the second point - is there a way to determine the order in which the parameters are referenced in the function? The problem I'm dealing with is something like this: where sympy_equations are a series of symbolic sympy expressions, that have a number o

[sympy] Re: Autowrapping expression with long variable names

2013-10-24 Thread Øyvind Jensen
On Thursday, October 24, 2013 9:45:43 AM UTC+2, Federico Vaggi wrote: > > https://gist.github.com/FedericoV/7132880 here you go. > It looks like the function statment line needs to be continued on several lines, and it should be quite easy to fix. If you look at line 693 of the file sympy/utili

[sympy] Re: Autowrapping expression with long variable names

2013-10-24 Thread Federico Vaggi
https://gist.github.com/FedericoV/7132880 here you go. This equation is passed to odeint to numerically integrate. Originally, I tried using .subs() to close the function over all the parameters, and to them pass a function where only the variables were open to odeint, but the overhead from us