Thank you for your comment and suggestion.There are helpful. Overloading operator is definitely great idea. It would be great to implement this feature.
Proposal looks good. Only one comment and one suggestion. - > > Comment: You need to be very careful when taking the square root of an > expression. Check the degree to which assumptions propagate such as if u > and v are declared real does sqrt() know that sqrt(u**2+v**2) is also real. > > Suggestion: Consider a vector differential operator class (del operator) > and then overloading * and ^ so that if f is a scalar field and V a vector > field you can write - > > gradient of scalar field = del * f > divergence of vector field = del * V > curl of vector field = del ^ V > Laplacian of scalar field = del * (del * f) > > In the future vector differential operators could be more general than del > and an algebra of differential operators could be defined. For example if > L is a linear transformation (possibly a function of the coordinates) and > overload * so that L(V) = L * V then possible differential operator could > be - > > (del * L) * V > > or if M is another linear transformation > > (del * L + M) * V > > If defined correctly the Laplacian could be del * del. > > > > > On 04/01/2017 05:08 PM, szymon.m...@gmail.com <javascript:> wrote: > > Hi, > I just put my proposal on wiki page: > https://github.com/sympy/sympy/wiki/GSoC-2017-Application-Szymon-Mieszczak:-Implementation-of-multiple-types-of-coordinate-systems-for-vectors > > If someone review it, I would be grateful. > > Szymon > > -- > 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+un...@googlegroups.com <javascript:>. > To post to this group, send email to sy...@googlegroups.com <javascript:>. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/7a6bd606-015b-4946-b965-049f82bc3f10%40googlegroups.com > > <https://groups.google.com/d/msgid/sympy/7a6bd606-015b-4946-b965-049f82bc3f10%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- 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 post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/27e63e49-b99a-45c2-b5d6-614a8ba8d60d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.