x = var('x')    # define a variable x
y = function('y',x)   # define y to be a function of that variable
DE = x*diff(y,x) + y == 0
print 'Differential Equation:'
show(DE)
soln = desolve(DE, [y,x], ics=(-2,2))
print 'Solution:'
show(soln)

SageDays/Kreyszig-1.3-13 (last edited 2010-08-10 13:40:46 by manojmanu)