4 ms·
This is one of the reasons I annoy people by following Wolfram’s convention in Mathematica of using square braces to denote arguments passed to a function: f(x)
by qubex 6y ago
This is one of the reasons I annoy people by following Wolfram’s convention in Mathematica of using square braces to denote arguments passed to a function: f(x)=fx=f×x while f[x] means “apply the function f to the argument x”. An unusual convention it may well be, but at least it’s one devoid of ambiguity.
- mkl 6y agoNot at all. f[x] is clearly the xth component of the array f :-D
- qubex 6y agoOn the blackboard in the mathematics department it’s not. But I get your point. I have also heard the objection that [x] is a 1×1 matrix whose only element is ‘x’.
- OscarCunningham 6y agoSquare brackets can also denote the floor function (especially in old works where '⌊' and '⌋' were typographically unavailable).
- gowld 6y agoAn array is merely a function from N to some set.
- pwdisswordfish2 6y agoIt's not devoid of ambiguity, because f[A] usually means the image of the set A under f.