While we do have basic non-commutative differentiation implemented, we
don't have the rules involving things like transposes and norms
implemented yet.  See
http://code.google.com/p/sympy/issues/detail?id=2759.

Aaron Meurer

2012/1/7 Ondřej Čertík <ondrej.cer...@gmail.com>:
> Hi John,
>
> On Sat, Jan 7, 2012 at 1:52 PM, John B <j200...@gmail.com> 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 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.
>

-- 
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