General::ovfl
更多信息
-
- This message is generated when the scale of a result exceeds the scale of numbers that can be represented in the version of the Wolfram Language that is in use.
- This message is generated by arithmetic overflow within numerical functions.
- The largest number that can be represented in a particular version of the Wolfram Language can be found by evaluating $MaxNumber.
- Off[message] switches off the message; On[message] switches it on. For example: Off[General::ovfl].
范例
基本范例 (2)
An error occurs because the result is larger than the value of $MaxNumber on this computer:
Overflow often occurs as a result of arithmetic within functions such as FindRoot:
In this example the problem can be resolved by choosing a better starting value: