Problem:

Find the gradient of the function $f(x,y,z)$ where $f(x,y,z) = \frac{1}{\frac{x^2}{y}+z^2}$

from sympy.vector import *
from sympy import *

C = CoordSys3D('C')
x, y, z = C.x, C.y, C.z
f = (1/(((x**2)/y)+z**2))
print(gradient(f))
