Yeah, I got it. Thanks On Monday, March 17, 2014 12:45:38 AM UTC+5:30, Aaron Meurer wrote: > > Did you figure this out? > > Aaron Meurer > > On Thu, Mar 13, 2014 at 4:26 PM, Kundan Kumar > <[email protected] <javascript:>> wrote: > > Hi, > > I am implementing nth order euler non homogeneous equation (homogeneous > has > > already been implemented). But I am unable to understand what is key of > > "match" used in each function. From already implemented homogeneous > euler > > equation, I got to know that match.keys also contain the order of each > > differential term (like shown in code below) along with the matching > terms > > of type of ODEs. > > > > for i in r.keys(): > > if not isinstance(i, str) and i >= 0: > > chareq += (r[i]*diff(x**symbol, x, i)*x**-symbol).expand() > > (this is for converting a differential eq to polynomial and then > simplifying > > it by replacing f(x) by x**symbol, where symbol = Dummy('x')) > > > > homogeneous eq: a*x^2*f(x).diff(x,2) + b*x*f(x).diff(x) + c*f(x) = > 0 > > non homogeneous eq: a*x^2*f(x).diff(x,2) + b*x*f(x).diff(x) + c*f(x) = > g(x) > > > > this is the code under "ode_nth_linear_euler_eq_homogeneous" under L3178 > > I am using the same code for non homogeneous but there I have extra g(x) > > term and I am unable to decide what r.keys() has in itself for g(x) as > g(x) > > has x**(power) term. > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "sympy" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/sympy. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/sympy/652037c1-ee37-4c8c-a222-c49241a40c21%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. >
-- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/1f7d0bad-bffb-4b63-b423-ee28d3b81252%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
