I'm trying to create a compact little function call for use in generating a table, but instead I get an error and the mention of a variable x that I didn't define. What am I doing wrong, and how should I do it right?
Most likely there was another definition for Φ.
Φ
Note that ClearAll does not evaluate, should be ClearAll["Global`*"] to clear symbols in the Global context. If you use notebook specific contexts then ClearAll[Evaluate[Context[] <> "*"]].
ClearAll
ClearAll["Global`*"]
Global
ClearAll[Evaluate[Context[] <> "*"]]
Working now, I'm not certain why. My guess is that I didn't press Evaluate Notebook, because there's only one cell, and just did the Shift-Enter thing. Perhaps some sort of initialization had to be done.