NIntegrate::nlim
Details
-
- This message is generated when non-numerical limits of integration are encountered in NIntegrate.
- Off[message] switches off the message; On[message] switches it on. For example: Off[NIntegrate::nlim].
Examples
Basic Examples (2)
If the symbol b in this example does not evaluate to a number, a warning message is generated and the integral is returned unevaluated:
NIntegrate[x Exp[x], {x, 0, b}]This shows a correct use of NIntegrate:
NIntegrate[x Exp[x], {x, 0, 3}]In a multidimensional integral, the warning message will include a point on the boundary of the region of integration:
NIntegrate[x y, {x, 0, 1}, {y, 0, b}]If a symbolic limit of integration is needed in a definition, you can use a pattern to prevent the rule from being applied until a numerical value is inserted for the limit:
f[b_ ? NumberQ] := NIntegrate[x Exp[x], {x, 0, b}]f[3]Unset[f[b_ ? NumberQ]]