Chalkboard - v3.0.4
    Preparing search index...

    Function translate

    • Calculates the translation of a function, which can be horizontally, vertically, or both.

      Parameters

      • func: ChalkboardFunction

        The function

      • h: number = 0

        Horizontal translation (positive moves right)

      • v: number = 0

        Vertical translation (positive moves up)

      Returns ChalkboardFunction

      const f = Chalkboard.real.translate(Chalkboard.real.define((x) => x * x), 2, 3);
      const y = Chalkboard.real.val(f, 2); // Returns 3