Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium Solvers

New issue 2671 by asmeurer: constantsimp() isn't working for dsolve(w(t).diff(t, 6) - k**6*w(t), w(t))
http://code.google.com/p/sympy/issues/detail?id=2671

In [100]: k = Symbol("k", real=True)

In [101]: w = Function('w')

In [102]: print dsolve(w(t).diff(t, 6) - k**6*w(t), w(t))
w(t) == C1*exp(t*Abs(k)) + C6*exp(-t*Abs(k)) + (C10*sin(t*Abs(sqrt(3)*Abs(k))/2) + C7*cos(sqrt(3)*t*Abs(k)/2) + C8*cos(sqrt(3)*t*Abs(k)/2) + C9*sin(t*Abs(sqrt(3)*Abs(k))/2))*exp(-t*Abs(k)/2) + (C2*cos(sqrt(3)*t*Abs(k)/2) + C3*cos(sqrt(3)*t*Abs(k)/2) + C4*sin(t*Abs(sqrt(3)*Abs(k))/2) + C5*sin(t*Abs(sqrt(3)*Abs(k))/2))*exp(t*Abs(k)/2)

Some of those terms should have been absorbed into the same constant by constantsimp() (like C7*cos(sqrt(3)*t*Abs(k)/2) + C8*cos(sqrt(3)*t*Abs(k)/2)).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to