Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.4K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Failure trying to implement a basic function

Posted 2 years ago

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?

2 Replies
Posted 2 years ago

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[] <> "*"]].

POSTED BY: Rohit Namjoshi

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.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard