2010/3/22 YURi KARADZhOV <yuri.karadz...@gmail.com>:
> I played around with sage and found some problems with desolve command.
> To solve ode diff(y(x),x)+a*y(x)+b*x+c we should first define variables and 
> functions
>
> x = var('x')
>
> a,b,c=var('a b c')
>
> y=function('y',x)
>
> eq=diff(y,x)+a*y+b*x+c
>
> but than unless it is obvious that the dependent variable is x and 
> independent is y we should write such command
>
> desolve(eq,y,ivar=x)
>
> which is really annoying. And what is worse - we get a wrong answer
>
> -((a*x - 1)*b*e^(a*x)/a^2 + c*e^(a*x)/a - c)*e^(-a*x)
>
> but the right answer is
>
> -((a*x - 1)*b*e^(a*x)/a^2 + c*e^(a*x)/a - _C1)*e^(-a*x)
>
> where _C1 - arbitrary constant.
>
> Of course, if we don't use c as a variable in equation we will get a right 
> answer, but another problem will rise. If we have a bunch of ODE and want 
> their solutions to interact somehow, than we expect different arbitrary 
> constant for each one. But sage uses one letter c in every solution, which 
> causes problems.
>
>
> Actually the first problem is easy to solve.

You should implement the change and post a patch to

   http://trac.sagemath.org/sage_trac/

for review.   That's how Sage development happens.  Hundreds of people
have done this.   It's like notices a problem in a wikipedia article,
and fixing it.

Thanks!

William

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to