If I have a simple integral that I wish to solve numerically, such as
NIntegrate[x^a, {a, 1., 2., .1}]
often on the first evaluation, I just get the function back since x is undefined.
However, the second time I do this, I get: "NIntegrate::inumr: The integrand x^a has evaluated to non-numerical values for all sampling points in the region with boundaries {{1.,2.}}"
When I ClearAll or Clear x and the variable, the integral still tries to evaluate and I get the same statement as above.
Why does Mathematica try to evaluate the integral when all terms are not defined? In other more complex functions, if I miss a variable or screw up the syntax, the function does not evaluate and the function is repeated as the output, and I get no statement such as the above, which is a cue to look for a syntax error.
Also, in some cases, when I set up the accuracy and precision to be some value and set the working precision to be twice these values, I also get inane statements like "the precision in the argument is less than the working precision." Of course it is!!
These behaviors likely have an obvious cause and can likely be simply explained...I hope.
Thanks for the help.
Luther