Class PythagoreanTheorem

A procedure for the Pythagorean Theorem.

Hierarchy

  • Procedures.Procedure<{
        values: number[];
    }, {
        distance: number;
    }>
    • PythagoreanTheorem

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Performs the evaluation. Should be a pure function.

    Parameters

    • input: {
          values: number[];
      }

      The input data.

      • values: number[]

    Returns {
        distance: number;
    }

    The output data.

    • distance: number
  • Performs the procedure.

    Parameters

    • input: {
          values: number[];
      }
      • values: number[]

    Returns {
        distance: number;
    }

    • distance: number

Generated using TypeDoc