ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 07 Feb 2021 00:15:43 +0100Divergence of inverse squarehttps://ask.sagemath.org/question/55608/divergence-of-inverse-square/ Hello,
I tried to calculate the divergence of 1/r^2*e_r, but I got zero, where it should have been 4*pi*dirac_delta(r*e_r)
E.<r,th,ph>=EuclideanSpace(coordinates="spherical")
v=E.vector_field([1/r^2,0,0])
v.div().display()
Results is
E^3 --> R
(r, th, ph) |--> 0
Can this be considered as a bug?
curios_mindSun, 07 Feb 2021 00:15:43 +0100https://ask.sagemath.org/question/55608/