News for hackers. Stuff that matters.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by mkl on Tuesday May 26, 2020 @09:15AM (#23310705)
I think x(3) would more commonly mean x times 3. f(3) would be function application. Even more context dependence.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by wcarey on Tuesday May 26, 2020 @09:19AM (#23310746)
Right.

Of course, if you write x(3), other mathematicians should frown at you because you're making bad notational choices.

It's a bit like explaining to students that the real way to know which 3rd declension nouns are i-stems in Latin is to say the genitive plural both ways. The one that doesn't sound wrong is correct. But you have to have a lot of time in the language for that to work.

Re:Can 1/3 and 1/3 = 2/6? It seemed so by mkl on Tuesday May 26, 2020 @09:24AM (#23310800)
Well unnecessary parentheses are often used to indicate a substitution has happened. E.g. in a topic I just taught I would write things like ∫_{y=0}^3 x dy = [xy]_{y=0}^3 = x(3) - x(0) = 3x. In context I think it's perfectly clear and a good notational choice.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by wcarey on Tuesday May 26, 2020 @09:27AM (#23310822)
And so it is.

edit: I suppose, what I'm trying to get at, perhaps too glibly, is that audience matters terribly much in mathematical writing. In the same way that Latin students don't start with Tacitus or Sallust, famous for their idiosyncratic grammar, math students shouldn't jump into the full context-dependent mess of the notation that experienced mathematicians use.

But I think we often thrown them in unintentionally because we're so used to it.

Re:Can 1/3 and 1/3 = 2/6? It seemed so by jacobush on Tuesday May 26, 2020 @09:40AM (#23310964)
You used too little context when arguing with an audience who isn't used to that style of writing...
Re:Can 1/3 and 1/3 = 2/6? It seemed so by C4stor on Wednesday May 27, 2020 @02:34AM (#23320019)
Also, there are actual quite reasonable rules to know which 3rd declension nouns are i-stems, so it doesn't seem too right too just say "follow your gut".

Btw, I wouldn't abuse latin comparisons on an american forum, I don't think it's quite in the culture ^^

Re:Can 1/3 and 1/3 = 2/6? It seemed so by jerf on Tuesday May 26, 2020 @09:19AM (#23310750)
x(3) is a function "x" being applied to the number 3, because "three times x" is 3x.

Of course context would help resolve this if you have a function named x or not, or a variable named x or not, and if you have both a function and a variable named x, well, you worked for your confusion and you have obtained it; congratulations. :)

Re:Can 1/3 and 1/3 = 2/6? It seemed so by jki275 on Tuesday May 26, 2020 @09:30AM (#23310840)
I'm sure some would take it that way as "x" isn't commonly used in mathematical notation as a function name, the norm is to use f, g, etc.

However, the notation is relatively clear notwithstanding. It almost has to be x as a function with an input of 3.

Re:Can 1/3 and 1/3 = 2/6? It seemed so by wycy on Tuesday May 26, 2020 @09:44AM (#23311007)
I think x(3) would more commonly imply a function of 3, since you'd virtually always otherwise just write 3x.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by mkl on Tuesday May 26, 2020 @09:57AM (#23311159)
It depends on the context. As an intermediate step I definitely write things like x (3) meaning multiplication, as it can more clearly indicate what's just happened (see my other comment in this thread).

There's other context too, based on what is known. Up to a certain point in first year at my university, most engineering students haven't ever seen functions named x and y, and so they'd mostly interpret x(3) as multiplication. Then we show them parametric curves, and suddenly x(3) looks like the x coordinate of a point on the (x(t), y(t)) curve.

Re:Can 1/3 and 1/3 = 2/6? It seemed so by qubex on Tuesday May 26, 2020 @09:51AM (#23311088)
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.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by pwdisswordfish2 on Tuesday May 26, 2020 @10:06AM (#23311257)
It's not devoid of ambiguity, because f[A] usually means the image of the set A under f.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by mkl on Tuesday May 26, 2020 @09:58AM (#23311174)
Not at all. f[x] is clearly the xth component of the array f :-D
Re:Can 1/3 and 1/3 = 2/6? It seemed so by qubex on Tuesday May 26, 2020 @10:03AM (#23311217)
On 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’.

Re:Can 1/3 and 1/3 = 2/6? It seemed so by OscarCunningham on Tuesday May 26, 2020 @11:07AM (#23312093)
Square brackets can also denote the floor function (especially in old works where '⌊' and '⌋' were typographically unavailable).
Re:Can 1/3 and 1/3 = 2/6? It seemed so by gowld on Tuesday May 26, 2020 @11:12AM (#23312142)
An array is merely a function from N to some set.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by Wowfunhappy on Tuesday May 26, 2020 @03:05PM (#23315172)
If you meant "function", would you generally write 𝑓(3) instead of f(3)?

(I have no mathematics background past K-12)