MtxIntDiff::WeightsNewtonCotes Function

void WeightsNewtonCotes(int PolyOrder, TVec *Points, TVec *Weights, const TMtxFloatPrecision FloatPrecision = TMtxFloatPrecision::mvDouble);

Newton-Cotes base points and weights.

#NameTypeDescription
1PolyOrderintDefines the interpolating polynomial order.
2PointsTVec *Returns base points coordinate.
3WeightsTVec *Returns weights.
4FloatPrecision = TMtxFloatPrecision::mvDoubleconst TMtxFloatPrecisionSpecifies the precision of the weights to be returned.
Remarks:

Uses the Newton-Cotes formulas to calculate base points and weights for numerical integration. Check the following link to learn more about Newton-Cotes formulas.

See Also: MtxIntDiff::WeightsChebyshevGauss, MtxIntDiff::WeightsGauss
Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler