InterpolatingFunction::dprec
Details
-
- This message is generated when the grid spacing is zero to within the precision of the inputs.
- This message is generated while computing a value for an InterpolatingFunction expression.
- This error can occur if the grid spacing is smaller than the uncertainty in the arguments that are passed to the InterpolatingFunction expression.
- Off[message] switches off the message; On[message] switches it on. For example: Off[InterpolatingFunction::dprec].
Examples
Basic Examples (1)
The uncertainty in the machine-number argument that is passed to the InterpolatingFunction expression is larger than the width of the interval in which that number falls:
interp = Interpolation[N[{{1, 1}, {1 + 10 ^ -25, 2}, {2, 3}, {3, 4}}, 30]]interp[1.0]The interpolation can be computed without difficulty if the argument is a high-precision number or if the argument is exact:
interp[1 + 10 ^ -25 / 2]interp[1.000000000000000000000000050000]Clear[interp]