On Thursday, September 22, 2016 at 6:24:39 PM UTC+2, Aaron Meurer wrote:
>
> Use
>
> m, k = symbols("m, kappa", positive=True)
>
Thank you.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from
Use
m, k = symbols("m, kappa", positive=True)
Aaron Meurer
On Thursday, September 22, 2016, wrote:
> Hi,
>
> I'm creating an example for using SymPy, using the good old harmonic
> oscillator as an example:
>
> import sympy
> s = sympy.Function("s")
> t, zeta, m, k = sympy.symbols("t, zeta, m,
Hi,
I'm creating an example for using SymPy, using the good old harmonic
oscillator as an example:
import sympy
s = sympy.Function("s")
t, zeta, m, k = sympy.symbols("t, zeta, m, kappa")
expr = sympy.Eq(m*s(t).diff(t, t), -k*s(t))
sympy.dsolve(expr, s(t), ics={s(t).diff(t,1).subs(t,0):0})
The