Hi Isaque, The vector module has a gradient function but it works only for scalar fields. There is an implementation given in this issue <https://github.com/sympy/sympy/issues/19212>. Unfortunately, it has not been merged.
The hessian function in the matrices module also works for scalars only. You will have to iterate over each component separately. Thanks Faisal On Sat, Jul 4, 2020 at 4:54 AM Isaque Soares <isaque776...@gmail.com> wrote: > Is there a way to compute the gradient and hessian matrices of a vector > field like u = (x) i + (2yz) j + (3xy) k. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/ba1b7af0-fd4b-4b67-879a-59a0b3ffbc15o%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/ba1b7af0-fd4b-4b67-879a-59a0b3ffbc15o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAEe-xqRkprgOV78wX8et2zjr0avts6F0aCdBKaJ-pUExLnCtqw%40mail.gmail.com.