On Jan 9, 6:42 am, Matthew <[email protected]> wrote: > You could do the above by explicitly making a scalar symbol for each > of x[0], x[1], ... > Hello Matthew. I realize I could use a scalar for each x[i], but I was looking for a way to use only the vector symbol x[i]. It makes the results of differentiation much more tidy, especially when f has many terms. You can do this in Mathematica and it is a nice feature. In my example, f = Sum(5*x[i]**2, (i,0,n)), x[i] is a vector. In Mathematica you can also symbolically differentiate with matrices. For example, you can take the derivative of f = Sum(5*x[i,j]**2, (i, 0,n)) and obtain the symbolic result: df/dx = Sum(10*x[i,j], (i,0,n)) 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.
