A beginner asks what does “Line@Table” do?
I’ve been reading others code to get a idea how to plot with mathematica. I ran into this construction and
can’t find what it means. Can someone help?
Thanks in advance.
The @ sign is a shorthand for a couple of square brackets. For example
Line[Table[{n, n + 1}, {n, 1, 5}]]
can be slightly shortened to
Line@Table[{n, n + 1}, {n, 1, 5}]
When using the brackets there is the task of locating the exact end of the expression to embrace, which is error-prone in complicated code.
The @ usage is quite similar to the “\circ” notation that mathematicians use for the composition of functions.