Helmholtz-Hodge decomposition in the ball » Chebfun
In the subject of vector calculus, Helmholtz's theorem states that any sufficiently smooth function in the unit ball can be expressed as a sum of a curl-free, a divergence-free, and a harmonic vector field [4]. In this Example, we show how this decomposition is computed by Ballfun and introduce the command HelmholtzDecomposition [3].
https://www.chebfun.org/examples/sphere/HelmholtzDecompositionBall.html