Indices on functions

Indices can be used on any function. For example, if x and y are vectors of length 10, then sin(x+y) is also a vector of length 10, and an index can be used, such as sin(x+y)[3].

The special index characters # and * cannot be used in indices on functions.

  Indices
  Indices on expressions