Right now, I made a timevaryingsymbol class; it's diff is indeed rewritten and works. The problem is once you put that inside an add or mul, it's diff method no longer gets called.
On Jun 3, 9:28 pm, Renato Coutinho <[email protected]> wrote: > On Sat, Jun 4, 2011 at 1:18 AM, Gilbert gede <[email protected]> wrote: > > Yeah, that could work. > > I was hoping that I could make it work in a way which was hidden to > > the user; that just using diff would work. Writing a method (or > > overriding one) to do this pre- and post-substitution is the only > > solution that I currently understand how to do; but again, it is > > undesirable. > > Using a class that overrides some methods will only be visible to > users when creating the variables, it could be something like "x = > DynamicSymbol(x, t)" instead of "x = Symbol(x)". All the rest would be > just the same, I believe. Is this too "user-annoying"? > > Renato -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
