ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 14 Jul 2012 01:59:09 -0500How to extract coefficient terms from a differential equation, as for polynomial?http://ask.sagemath.org/question/9154/how-to-extract-coefficient-terms-from-a-differential-equation-as-for-polynomial/Hello all. As title, I want to extract from a differential equation the term coefficients with respect to a variable. For example:
var('x, u')
y = function('y', x)
DE = y.diff(x)*u^2 + 2*u + x
from DE I want to create a new symbolic expression with the coefficient of u^2, in this case y.diff(x).
Must I convert DE to a polynomial ring? And how can I do it?Lucas_MalorSat, 14 Jul 2012 01:59:09 -0500http://ask.sagemath.org/question/9154/