Chalkboard - v3.0.4
    Preparing search index...

    Function Taylor

    • Calculates the nth-degree Taylor series approximation of a function at a value centered around another value.

      Parameters

      • func: ChalkboardFunction

        The function

      • val: number

        The value

      • n: 0 | 1 | 2

        The degree

      • a: number

        The center

      Returns number

      const exponential = Chalkboard.real.define((x) => Math.exp(x));
      const approximation = Chalkboard.calc.Taylor(exponential, 0.1, 2, 0); // Uses the quadratic Taylor polynomial