On Sat, Jun 27, 2009 at 9:53 AM, Priit Laes<plaes...@gmail.com> wrote: > > Hey! > > I have pushed a branch which contains code to handle some forms of > separable partial equations. > > I have currently only implemented basic support for multiplicative > separate case, where u(x, t) = X(x)*T(t) > > You can view/pull and comment the code on: > http://github.com/plaes/sympy/tree/pde-separate > > > A small example (or you can find some of them in the tests): > > from sympy import * > from sympy import Derivative as D > u, X, T = map(Function, 'uXT') > x, t = symbols('xt') > c = symbols('c', Real=True) > # Define our function (one-dimensional wave equation) > eq = Eq(D(u(x, t), t, 2), D(u(x, t), x, 2)*c**2) > print pde_separate_mul(eq, u(x, t), [X(x), T(t)]) > > out >> D(T(t), t, t)/T(t) == c**2*D(X(x), x, x)/X(x)
Very cool! When will theis get rolled into the main release so I don't have to use git to try it out? Also, can you automate the solution to D(T(t), t, t)/T(t) = lambda, c**2*D(X(x), x, x)/X(x) = lambda and print those out? This is complicated since, for example, it depends on whether lambda is 0 or not. > > > PS. Has anyone examples of equations that can be separated using > additive separation: u(x, t) = X(x) + T(t) You mean like u_x = e^u*u_t? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---