SageMath is a free open-source mathematics software system. You can use a SageMath cell online by going here.
xvar("x,y")f = x*exp(-3*y) + sin(2*x-5*y)grad = vector([diff(f,x),diff(f,y)])grad
xvar("x,y")f = x*exp(-3*y) + sin(2*x-5*y)grad = vector([diff(f,x),diff(f,y)])v=vector([1,2])grad(x=0,y=0).dot_product(v.normalized())
xxxxxxxxxxvar("x,y,z")g = x^2+y^3+z^4grad = vector([diff(g,x),diff(g,y),diff(g,z)])grad