In a dynamic system my base values are all functions of time, d(t)
. I create the variable d
using d = Function('d')(t)
where t = S('t')
Obviously it's very common to have derivatives of d (rates of change like velocity etc.). However the default printing of diff(d(t))
gives:-
Derivative(d(t), t)
and using pretty printing in ipython (for e.g.) gives a better looking version of:-
d/dt (d(t))
The functions which include the derivatives of d(t)
are fairly long in my problems however, and I'd like the printed representation to be something like d'(t)
or \dot(d)(t)
(Latex).
Is this possible in sympy? I can probably workaround this using subs
but would prefer a generic sympy_print function or something I could tweak.