[sympy] Express Dervivative in terms of finite differences.

2014-04-07 Thread Björn Dahlgren
After reading Aaron's recommendation about looking for unanswered sympy questions at stackoverflow I stumbled upon: http://stackoverflow.com/questions/18701290/derivatives-discretization-with-sympy I implemented a solution for this and it is available as a WIP PR over here: https://github.com/sy

Re: [sympy] Express Dervivative in terms of finite differences.

2014-04-07 Thread Alexey U. Gudchenko
On 07.04.2014 19:34, Björn Dahlgren wrote: After reading Aaron's recommendation about looking for unanswered sympy questions at stackoverflow I stumbled upon: http://stackoverflow.com/questions/18701290/derivatives-discretization-with-sympy I implemented a solution for this and it is available

Re: [sympy] Express Dervivative in terms of finite differences.

2014-04-07 Thread Björn Dahlgren
h is Symbol('h') (and given how sympy cache works - yes it is global). I was unsure whether I should use this or force the user to pass at least one parameter. Maybe I should let it default to 1 instead of Symbol('h')? I'm starting to lean towards that the more I think of it.. On Monday, 7 Apri

Re: [sympy] Express Dervivative in terms of finite differences.

2014-04-07 Thread Björn Dahlgren
On Monday, 7 April 2014 19:25:59 UTC+2, Björn Dahlgren wrote: > > h is Symbol('h') (and given how sympy cache works - yes it is global). > I was unsure whether I should use this or force the user to pass at least > one parameter. > Maybe I should let it default to 1 instead of Symbol('h')? I'm s

Re: [sympy] Express Dervivative in terms of finite differences.

2014-04-07 Thread Alexey U. Gudchenko
On 07.04.2014 21:25, Björn Dahlgren wrote: h is Symbol('h') (and given how sympy cache works - yes it is global). I was unsure whether I should use this or force the user to pass at least one parameter. Maybe I should let it default to 1 instead of Symbol('h')? I'm starting to lean towards that

Re: [sympy] Express Dervivative in terms of finite differences.

2014-04-07 Thread Aaron Meurer
That's awesome. Stackoverflow questions are great sources of things that should be implemented. Aaron Meurer On Mon, Apr 7, 2014 at 10:34 AM, Björn Dahlgren wrote: > After reading Aaron's recommendation about looking for unanswered sympy > questions at stackoverflow I stumbled upon: > > > http