sympy / sympy

A computer algebra system written in pure Python
https://sympy.org/
Other
12.99k stars 4.44k forks source link

sympy.vector missing gradient of vector and divergence of dyadic #23651

Open 2vdba2 opened 2 years ago

2vdba2 commented 2 years ago

the function gradient from sympy.vector import gradient only works on scalar fields, it is missing the gradient of vector. Besides that, the divergence from sympy.vector import divergence only works on vectors, it is missing the divergence of dyadics.

2vdba2 commented 2 years ago

I think we could solve it easily by implementing it manually for cylindrical and spherical coordinates. How can I check if the vector is in cylindrical or spherical coordinates?