Calculates the translation of a function, which can be horizontally, vertically, or both.
The function
Horizontal translation (positive moves right)
Vertical translation (positive moves up)
const f = Chalkboard.real.translate(Chalkboard.real.define((x) => x * x), 2, 3);const y = Chalkboard.real.val(f, 2); // Returns 3 Copy
const f = Chalkboard.real.translate(Chalkboard.real.define((x) => x * x), 2, 3);const y = Chalkboard.real.val(f, 2); // Returns 3
Calculates the translation of a function, which can be horizontally, vertically, or both.