Re: [sympy] How to specify proprties of a constant

2016-09-23 Thread maarten . sneep
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

Re: [sympy] How to specify proprties of a constant

2016-09-22 Thread Aaron Meurer
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,

[sympy] How to specify proprties of a constant

2016-09-22 Thread maarten . sneep
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