Problem:
Find the divergence of the vector field $f(x,y,z)\uvec{i} + g(x,y,z)\uvec{j} + h(x,y,z)\uvec{k}$ where $f(x,y,z) = \tanh \left(x^3\right)$, $g(x,y,z) = e^{z \left(x^3+y\right)}$, and $h(x,y,z) = \frac{1}{z^2}$
import math

from sympy import *
from sympy.vector import *

C = CoordSys3D('C')
x, y, z = C.x, C.y, C.z
f = tanh(x**3)
g = math.e**(z*(x**3+y))
h = (1/(z**2))
field = f * C.i + g * C.j + h * C.k
print(divergence(field))
