Le jeudi 11 juillet 2013 21:26:43 UTC+2, mmarco a écrit : > > > It looks very good. Just one remark: i think that the different functions > you define (Lie, xdef...) should be methods better than external functions. > In general, the use seems a bit confuding to me... i would say that it > looks much more mathematica-like than pythonic.
Actually the functions Lie and xder are shortcuts to class methods: here are their definitions: def xder(form): r""" Exterior derivative of a differential form """ return form.exterior_der() def Lie(vector, tensor): r""" Lie derivative of a tensor field with respect to a vector field """ return tensor.lie_der(vector) We thought these shortcuts are more user friendly, being closer to the standard mathematical notation. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.