I have the following Mathematica code where I create a linearly spaced array of numbers and try to retrieve the third element:
tN = 48;
linearmesh[a_, b_, n_Integer /; n > 1] := Range[a, b, (b - a)/(n - 1)]
a = linearmesh[0, 2*Pi, tN + 1] // N // Short
a[[3]]
This code results in the following output:
{0.,0.1309,0.261799,<<43>>,6.02139,6.15229,6.28319}
Part::partw: Part 3 of {0.,0.1309,0.261799,<<43>>,6.02139,6.15229,6.28319} does not exist.
I don't understand why this doesn't give me the third element of the array but instead gives me an error message?