MathGroup Archive 2014

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Part Function

  • To: mathgroup at
  • Subject: [mg132257] Re: Part Function
  • From: Tomas Garza <tgarza10 at>
  • Date: Fri, 24 Jan 2014 04:20:58 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • References: <>

As you say, Q1 is a 96 x 96 matrix, i.e., a list of 96 lists, each of which has 96 elements. Hence Part[Q1[[k]],1] (which you may also write as Q1[[k,1]] or even Q1[[k]][[1]]) has a clear meaning. The expression Q1[k,1] is meaningless (since Q1 is not a function) and will return exactly the same thing you typed as input. (Unless, of course, you have previously defined an Array (q.v.) with the name Q1, but that is another matter). By the way, use of uppercase is not recommended for the first letter in the names of variables, as they may be confused with Mathematica symbols.

> From: fnajmy at
> Subject: Part Function
> To: mathgroup at
> Date: Thu, 23 Jan 2014 03:34:45 -0500
> I have a Mathematica script containing the following line:
> v[k_] := SetAccuracy(2*(Part[Q1[[k]],1]),45]
> where Q1 is a 96 x 96 matrix.
> Is Part[Q1[[k]],1] the same as Q1[k,1]?  If not, what is it returning?
> Any help appreciated.

  • Prev by Date: Re: Part Function
  • Next by Date: Re: How does TensorReduce use assumptions?
  • Previous by thread: Re: Part Function
  • Next by thread: Re: Part Function