NIntegrate::grpar
Details
-
- This message is generated when NIntegrate's method "GeneralRule" is given an incorrect value for its sub-option "RuleData".
- Off[message] switches off the message; On[message] switches it on. For example: Off[NIntegrate::grpar].
Examples
Basic Examples (1)
This example shows specification of Simpson's rule abscissas and weights without error weights:
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> {"GeneralRule", "RuleData" -> {{0, 1 / 2, 1}, {1 / 6, 2 / 3, 1 / 6}, {}}}]This example shows specification of Simpson's rule abscissas and weights, and error weights that utilize the weights of the trapezoidal rule:
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> {"GeneralRule", "RuleData" -> {{0, 1 / 2, 1}, {1 / 6, 2 / 3, 1 / 6}, {1 / 6, 2 / 3, 1 / 6} - {1 / 4, 1 / 2, 1 / 4}}}]