Problem:

Find the gradient of the function $f(x,y,z)$ where $f(x,y,z) = \left(\frac{x}{y^3}-z\right)^3$

from sympy.vector import *
from sympy import *

C = CoordSys3D('C')
x, y, z = C.x, C.y, C.z
f = ((x/(y**3))-z)**3
print(gradient(f))
