Chalkboard - v3.0.4
    Preparing search index...

    Function Fourier

    • Calculates the Fourier transform of a function at a value within an interval.

      Parameters

      • func: ChalkboardFunction

        The function

      • val: number

        The value

      • Optionalinf: number = 0

        The lower bound

      • Optionalsup: number = 10

        The upper bound

      • Optionalsteps: number = 10000

        The number of steps for numerical integration

      Returns number

      const pulse = Chalkboard.real.define((x) => Chalkboard.real.rect(x));
      const coefficient = Chalkboard.calc.Fourier(pulse, 1, -1, 1); // Returns a Fourier coefficient