Problem:

Find the gradient of the function $f(x,y,z)$ where $f(x,y,z) = \cos \left(y^2 z\right)$

from sympy.vector import *
from sympy import *

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