Chalkboard - v3.0.4
    Preparing search index...

    Function fnds

    • Calculates the flux (line/surface integration over a vector field) of a parametric curve or a parametric surface through a 2D or 3D vector field, respectively.

      Parameters

      • vectfield: ChalkboardFunction

        The vector field

      • func: ChalkboardFunction

        The function

      • tinf: number

        The lower t-bound (for both 2D and 3D)

      • tsup: number

        The upper t-bound (for both 2D and 3D)

      • Optionalsinf: number

        The lower s-bound (only for 3D)

      • Optionalssup: number

        The upper s-bound (only for 3D)

      Returns number

      const field = Chalkboard.vect.field((x, y, z) => x, (x, y, z) => y, (x, y, z) => z);
      const surface = Chalkboard.real.define((t, s) => t, (t, s) => s, (t, s) => 1);
      const flux = Chalkboard.calc.fnds(field, surface, 0, 1, 0, 1); // Computes the surface flux