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)
The diff() command gives an error here.
Thanks, John
--
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.