/// <summary>Creates a new <see cref="ClosedNewtonCotesFormula"/> object. /// </summary> /// <param name="rule">The Newton-Cotes rule, i.e. the degree of the Newton-Cotes method.</param> /// <returns>A new <see cref="ClosedNewtonCotesFormula"/> object.</returns> public static ClosedNewtonCotesFormula Create(ClosedNewtonCotesFormula.Rule rule) { return(new ClosedNewtonCotesFormula(rule)); }