Ask Your Question

Divergence of inverse square

asked 2021-02-07 00:15:43 +0200

curios_mind gravatar image


I tried to calculate the divergence of 1/r^2e_r, but I got zero, where it should have been 4pidirac_delta(re_r)


Results is

E^3 --> R
(r, th, ph) |--> 0

Can this be considered as a bug?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-02-07 14:24:51 +0200

eric_g gravatar image

In the current implementation, vector fields are assumed to be smooth functions on their domain. The vector field that you have defined is not (actually, it is not even defined at $r=0$), so I would say this is not a bug.

edit flag offensive delete link more


It would have been great, if it had given the dirac solution.

curios_mind gravatar imagecurios_mind ( 2021-02-08 14:54:22 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2021-02-07 00:15:43 +0200

Seen: 169 times

Last updated: Feb 07 '21