How to solve differential equation with boundary conditions?

459 views
Skip to first unread message

matus.s...@privatdemail.net

unread,
Aug 26, 2016, 11:42:35 AM8/26/16
to sympy
import sympy as sp
s
,v,x=sp.symbols('s v x')
f
=sp.Function('f')
temp
=sp.dsolve(sp.diff(f(x), x,x)*s**2/2 -v*sp.diff(f(x),x)+1, f(x),  ics={f(0):0, f(a):0})

The output is equation for f(x) with variables C1, C2, v, x and s (Why?!). I want an equation in terms of x,s,v and a, that's why I supplied the boundary conditions in the first place. How can I do that?

Aaron Meurer

unread,
Aug 29, 2016, 2:12:20 PM8/29/16
to sy...@googlegroups.com
There is an open pull request to make this work https://github.com/sympy/sympy/pull/11264

For now, you will have to substitute them manually using subs. 

Aaron Meurer

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/b4b43a56-661d-43ca-b7c3-2ba66379d286%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages