Use Inactive for Debugging a Program
By activating parts of a program in stages, Inactive can assist the debugging process.
The following program contains an error.
Multiple messages are produced, and the integral returns unevaluated.
Out[2]= | |
Create an inactive version of the program.
Out[4]= | |
Everything looks fine, so try activating the function .
Out[5]= | |
A message is produced, and the inner NIntegrate shows failed to evaluate—it is missing its second argument. Correct the definition.
Now evaluation proceeds correctly.
Out[7]= | |
Out[8]= | |