On 4 Jun., 19:48, Gilbert gede <gilbertg...@gmail.com> wrote:
> Adding Symbol('t') to the free_symbols property of my class worked!
> Here's what it can do now:
>
> In [1]: run kinematics.py
>
> In [2]: x = TVS('x')
>
> In [3]: y = TVS('y')
>
> In [4]: t = Symbol('t')
>
> In [5]: diff(2 * x**2 + 4 + y,t)
> Out[5]: 4*x*xdt + ydt
>
> In [7]: diff(diff(2 * x**2 + 4 + y,t),TVS('xdt'))
> Out[7]: 4*x
>
> TVS is timevaryingsymbol, athough I think Renato's DynamicSymbol
> sounds better.
> I think this is exactly what I wanted; Thanks!

You can also make it pretty print unicode with dots above the symbol:

>>> print u"x\u0307"
ẋ
>>> print u"x\u0308"
ẍ

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to