ex8.3

等我刷把宗师發表於2024-11-12
import sympy as sp

sp.var('x'); y=sp.Function('y')
eq=y(x).diff(x)+2*y(x)-2*x**2-2*x
s=sp.dsolve(eq, ics={y(0):1})
s=sp.simplify(s); print(s)