Calculates the first-order derivative of a 2D scalar or parametric function at a value.
The function
The value
const cubic = Chalkboard.real.define((x) => x * x * x);const derivative = Chalkboard.calc.dfdx(cubic, 2); // Returns approximately 12 Copy
const cubic = Chalkboard.real.define((x) => x * x * x);const derivative = Chalkboard.calc.dfdx(cubic, 2); // Returns approximately 12
Calculates the first-order derivative of a 2D scalar or parametric function at a value.