I notice that VerificationTest
will see False
for a function in cell 1
f[x_] :=(x - 1) (x - 3) / (x + 2)
referred to in cell 2:
VerificationTest[Limit[f[x], Rule[x, -2]], \[Infinity]]
after hitting Shift+Enter in cell 2 only (in a newly-opened notebook with many, many cells) —but Evaluation > Evaluate Notebook will cause VerificationTest
to see True
. Is there some default option or something I am missing here or is this just the way it is for now?
f[x_] := (x - 1) (x - 3)/(x + 2)
since you expect a pole atx == 2
. YourLimit
is written improperly usingRightArrow[x, -2]
rather thanRule[x, -2]
See documentation forRule
TheLimit
should not successfully evaluate no matter how you initiate the evaluation. $\endgroup$ – Bob Hanlon Nov 7 '16 at 20:53Limit
syntax. Why would an error not be thrown? $\endgroup$ – rasx Nov 7 '16 at 21:32VerificationTest
outcome isFailure
this presumably covers all errors. If you extract theLimit
and evaluate it separately, it returns the error message "Limit::lim: Limit specification x[RightArrow]-2 is not of the form x -> x0." and returns theLimit
unevaluated. $\endgroup$ – Bob Hanlon Nov 7 '16 at 21:42f
, didn't evaluate it (sof
remained undefined), and only ran the verification test? $\endgroup$ – Rahul Nov 8 '16 at 6:00f
is defined in a different cell (in a notebook full of cells) from the cell with the test in it. I see now that cells are lazy loaded: i need to Shift+Enter on thef
cell as well as the test cell ---this answers my question part but does not answer the possibility that Mathematica can be configured to behave differently... $\endgroup$ – rasx Nov 8 '16 at 8:09