In [27]: f = Function('f')
In [28]: t = Symbol('t')
In [29]: dsolve(f(t).diff(t, 2)-f(t))
Out[29]:
-t t
f(t) = C₁⋅ℯ + C₂⋅ℯ
In [30]: dsolve(f(t).diff(t, 2)-f(t), ics={f(0):0, f(1):0})
Out[30]: f(t) = 0
In [31]: dsolve(f(t).diff(t, 2)-f(t), ics={f(0):0, f(1):1})
Out[31]:
t -t
ℯ ℯ
f(t) = ───────── - ─────────
2⋅sinh(1) 2⋅sinh(1)
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/2b9ec46d-a049-4bf8-b24b-e4cc17742928%40googlegroups.com.