On Sun, Dec 4, 2016 at 5:03 PM, tomdean1939 <[email protected]> wrote:
> ## declare variables
> var('x')
> y = function('y')(x)
> ## third order deq
> deq = derivative(y,x,3) + y == 0


Sage's interface to maxima doesn't solve 3rd order constant coefficient ODEs.
You can use the interface to sympy, which does, but that involves using
the Sympy syntax (sympy.org).

> ## y(y)==0, y'(0)==0, y''(2)==1
> ics = [0,0, 0,0, 2,1]
> ## solution
> soln = desolve(deq,y)
>
> returns:
> NotImplementedError: Maxima was unable to solve this ODE. Consider to set
> option contrib_ode to True.
>
> However, maxima can solve this ODE.
> sage: maxima('desolve(deq,y(x))')
> y(x)=%e^(x/2)*(sin(sqrt(3)*x/2)*(2*(2*('at('diff(y(x),x,2),x=0))+'at('diff(y(x),x,1),x=0)-y(0))/3-('at('diff(y(x),x,2),x=0)-'at('diff(y(x),x,1),x=0)-2*y(0))/3)/sqrt(3)-cos(sqrt(3)*x/2)*('at('diff(y(x),x,2),x=0)-'at('diff(y(x),x,1),x=0)-2*y(0))/3)+%e^-x*('at('diff(y(x),x,2),x=0)-'at('diff(y(x),x,1),x=0)+y(0))/3
>
> How do I solve this equation with ics?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to