void WeightsNewtonCotes(int PolyOrder, TVec *Points, TVec *Weights, const TMtxFloatPrecision FloatPrecision = TMtxFloatPrecision::mvDouble);
Newton-Cotes base points and weights.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | PolyOrder | int | Defines the interpolating polynomial order. |
| 2 | Points | TVec * | Returns base points coordinate. |
| 3 | Weights | TVec * | Returns weights. |
| 4 | FloatPrecision = TMtxFloatPrecision::mvDouble | const TMtxFloatPrecision | Specifies 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.
Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler