Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    $\begingroup$ "Another option would have been to have Mathematica "know" what was a variable and what was a function. This turns out to have serious consequences, and it's really not a good idea." Can someone elaborate on this? $\endgroup$ Commented Jun 12, 2018 at 8:16
  • 1
    $\begingroup$ @daniatic In countPos[list_, a_, k_] := Total@Table[Boole[Positive[k(x - a)]], {x, list}], is k a function or a scalar? It depends on what I, the user, have in mind, which cannot be determined from the code. $\endgroup$ Commented Aug 11, 2019 at 22:06
  • $\begingroup$ "If you use one of the variations you suggested above, Mathematica will warn you that you are probably making a mistake." -- not sure about that (see some of the questions that arise here every day) $\endgroup$ Commented Jan 18, 2021 at 3:11
  • $\begingroup$ @Chris, I haven't looked at 2.2 (the version they were using when that book was written) in a long while to prove or disprove that, but I do agree we still get a lot of those basic syntax questions every so often... o well. $\endgroup$ Commented Jan 18, 2021 at 3:21