Hi John, On Sat, Jan 7, 2012 at 1:52 PM, John B <[email protected]> wrote: > Hello. I am new to sympy and have been searching the docs for an hour > or so looking for a way to symbolically differentiate matrices or > vectors. Am I correct that there is currently no way to do this? As > an example, I would like to symbolically differentiate as follows: > > n, i, j = symbols('n m i j k dim', integer=True) > i = Idx('i', n) > x = IndexedBase('x', shape=(n,1)) > s = Sum(1/x[j,1]**2, (j, 0, n)) > pprint(s) > ds = s.diff(x) > pprint(ds)
I think it's not implemented with IndexedBase. What should the result be in this particular case? You can differentiate each element of a Matrix class, but I guess that's not what you want. Ondrej -- 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.
