Calculates the first-order gradient of a multivariable function, a parametric surface, or a vector field at a vector.
The function or vector field
The vector
const f = Chalkboard.real.define((x, y) => x * x + y * y);const gradient = Chalkboard.calc.grad(f, Chalkboard.vect.init(1, 2)); // Returns approximately (2, 4) Copy
const f = Chalkboard.real.define((x, y) => x * x + y * y);const gradient = Chalkboard.calc.grad(f, Chalkboard.vect.init(1, 2)); // Returns approximately (2, 4)
Calculates the first-order gradient of a multivariable function, a parametric surface, or a vector field at a vector.