Centrifugal compressor: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Dicklyon
rm spurious br tags
en>Wavelength
inserting 1 hyphen: —> "Three-dimensional"—wikt:three-dimensional
Line 1: Line 1:
{{for|'''"index notation"''', or '''"indicial notation"''' in relativity theory|Einstein notation}}
Fascinated to meet you! A few name is Eusebio Ledbetter. To drive is a thing that I'm completely addicted to. South Carolina is where this is my home is and don't plan on shifting it. I used regarding be unemployed but I am a cashier but the [http://Browse.deviantart.com/?q=promotion promotion] never comes. I'm not good at web development but you might feel the need to check my website: http://[http://www.sharkbayte.com/keyword/prometeu.net prometeu.net]<br><br>Feel free to surf to my web site - clash of clans hack cydia ([http://prometeu.net mouse click the next site])
In [[mathematics]] and [[computer programming]], '''Index notation''' is used to specify the elements of an array of numbers. The formalism of how indices are used varies according to the subject. In particular, there are different methods for referring to the elements of a list, a vector, or a matrix, depending on whether one is writing a formal mathematical paper for publication, or when one is writing a [[computer program]].
 
==Index notation in mathematics==
 
{{Main|Ricci calculus|tensor}}
 
It is frequently helpful in mathematics to refer to the elements of an array using subscripts. The subscripts can be [[integer]]s or [[Variable (mathematics)|variables]]. The array takes the form of [[tensors]] in general, since these can be treated as multi-dimensional arrays. Special (and more familiar) cases are [[vector (geometry)|vectors]] (1d arrays) and [[matrix (mathematics)|matrices]] (2d arrays).
 
The following is only an introduction to the concept: index notation is used in more detail in mathematics (particularly in the representation and manipulation of [[tensor#Operations|tensor operations]]). See the main article for further details.
 
===One-dimensional arrays (vectors)===
 
{{main|Vector (mathematics and physics)}}
 
A vector treated as an array of numbers by writing as a [[row vector]] or [[column vector]] (whichever is used depends on convenience or context):
 
:<math>\mathbf{a} = \begin{pmatrix}
a_1 \\
a_2 \\
\vdots \\
a_n  
\end{pmatrix}, \quad \mathbf{a} = \begin{pmatrix}
a_1 & a_2 & \cdots & a_n \\
\end{pmatrix}</math>
 
Index notation allows indication of the elements of the array by simply writing ''a<sub>i</sub>'', where the index ''i'' is known to run from 1 to ''n''.<ref>An introduction to Tensor Analysis: For Engineers and Applied Scientists, J.R. Tyldesley, Longman, 1975, ISBN 0-582-44355-5</ref>
For example, given the vector:
 
:<math>\mathbf{a} = \begin{pmatrix}
10 & 8 & 9 & 6 & 3 & 5 \\
\end{pmatrix}</math>
 
then some entries are
 
:<math>a_1= 10, \, a_2 = 8 \cdots a_6=5 </math>.
 
The notation can be applied to [[vectors in mathematics and physics]]. The following [[vector equation]]
 
:<math>\mathbf{a} + \mathbf{b} = \mathbf{c}</math>
 
can also be written in terms of the elements of the vector (aka components), that is
 
:<math> a_i + b_i = c_i </math>
 
where the indices take a given range of values. This expression represents a set of equations, one for each index. If the vectors each have ''n'' elements, meaning ''i'' = 1,2...''n'', then the equations are explicitly
 
:<math> \begin{align}
a_1 + b_1 & = & c_1 \\
a_2 + b_2 & = & c_2 \\
& \vdots & \\
a_n + b_n & = & c_n \\
\end{align}</math>
 
Hence, index notation serves as an efficient shorthand for
#representing the general structure to an equation,
#while applicable to individual components.
 
===Two-dimensional arrays===
 
{{main|matrix (mathematics)}}
{{see also|Dyadics}}
 
[[Image:Matrix.svg|thumb|247px|right|Elements of matrix '''A''' are described with two subscripts or indices.]]
 
More than one index is used to describe arrays of numbers, in two or more dimensions, such as the elements of a matrix, (see also image to right);
 
:<math>\mathbf{A} = \begin{pmatrix}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m1} & a_{m2} & \cdots & a_{mn} \\
\end{pmatrix}</math>
 
The entry of a matrix '''A''' is written using two indices, say ''i'' and ''j'' with or without commas to separate the indices: ''a<sub>ij</sub>'' or ''a<sub>i,j</sub>'', where the first subscript is the row number and the second is the column number. The notation "''ij''" should not be confused with "''i'' multiplied by ''j''", it is read as "''i - j''".  For example, if
 
:<math>\mathbf{A} = \begin{pmatrix}
9 & 8 & 6 \\
1 & 2 & 7 \\
4 & 9 & 2 \\
6 & 0 & 5
\end{pmatrix}</math>
 
then some entries are
 
:<math>a_{11}= 9, \, a_{12}= 8, a_{21}= 1, \, \cdots \, \, a_{23}= 7 \, \cdots </math>.
 
[[Matrix equation]]s are written similarly to vector equations, such as
 
:<math> \mathbf{A} + \mathbf{B} = \mathbf{C} </math>
 
in terms of the elements of the matrices (aka components)
 
:<math> A_{ij} + B_{ij} = C_{ij} </math>
 
for all values of ''i'' and ''j''. Again this expression represents a set of equations, one for each index. If the matrices each have ''m'' rows and ''n'' columns, meaning ''i'' = 1,2...''m'' and ''j'' = 1,2...''n'', then there are ''mn'' equations.
 
===Multi-dimensional arrays===
 
{{main|tensors}}
{{see also|classical treatment of tensors}}
 
The notation allows a clear generalization to multi-dimensional arrays of elements: tensors. For example
 
:<math> A_{i_1 i_2 \cdots } + B_{i_1 i_2 \cdots} = C_{i_1 i_2 \cdots} </math>
 
representing a set of many equations.
 
In tensor analysis, superscripts are used instead of subscripts to distinguish covariant from contravariant entities, see [[covariance and contravariance of vectors]] and [[raising and lowering indices]].
 
==Index notation in computing==
In several programming languages, index notation is a way of addressing elements of an array. This method is used since it is closest to how it is implemented in [[assembly language]] whereby the address of the first element is used as a base, and a multiple (the index) of the element size is used to address inside the array.
 
For example, if an array of integers is stored in a region of the computer's memory starting at the memory cell with address 3000 (the [[base address]]), and each integer occupies four cells (bytes), then the elements of this array are at memory locations 3000, 3004, 3008, ..., 0x3000 + 4(''n''-1). In general, the address of the ''i''th element of an array with [[base address]] ''b'' and element size ''s'' is ''b''+''is''.
 
==C implementation details==
In the [[C (programming language)|C programming language]], we can write the above as <tt>*(base + i)</tt> (pointer form) or base[i] (array indexing form), which is exactly equivalent because the C standard defines the array indexing form as a transformation to pointer form. Coincidentally, since pointer addition is commutative, this allows for obscure expressions such as <tt>3[base]</tt> which is equivalent to <tt>base[3]</tt>.<ref>Programming with C++, J. Hubbard, Schaum’s Outlines, McGraw Hill (USA), 1996, ISBN 0-07-114328-9</ref>
 
===Multidimensional arrays===
Things become more interesting when we consider arrays with more than one index, for example, a two-dimensional table. We have three possibilities:
* make the two-dimensional array one-dimensional by computing a single index from the two
* consider a one-dimensional array where each element is another one-dimensional array, i.e. an array of arrays
* use additional storage to hold the array of addresses of each row of the original array, and store the rows of the original array as separate one-dimensional arrays
In C, all three methods can be used. When the first method is used, the programmer decides how the elements of the array are laid out in the computer's memory, and provides the formulas to compute the location of each element. The second method is used when the number of elements in each row is the same and known at the time the program is written. The programmer declares the array to have, say, three columns by writing e.g. <tt>elementtype tablename[][3];</tt>. One then refers to a particular element of the array by writing <tt>tablename[first index][second index]</tt>. The compiler computes the total number of memory cells occupied by each row, uses the first index to find the address of the desired row, and then uses the second index to find the address of the desired element in the row. When the third method is used, the programmer declares the table to be an array of pointers, like in <tt>elementtype *tablename[];</tt>. When the programmer subsequently specifies a particular element <tt>tablename[first index][second index]</tt>, the compiler generates instructions to look up the address of the row specified by the first index, and use this address as the base when computing the address of the element specified by the second index.
 
===Example===
This function multiplies two 3x3 floating point matrices together.
 
void mult3x3f(float result[][3], const float A[][3], const float B[][3])
{
  int i, j, k;
  for (i = 0; i < 3; ++i) {
    for (j = 0; j < 3; ++j) {
      result[i][j] = 0;
      for (k = 0; k < 3; ++k)
        result[i][j] += A[i][k] * B[k][j];
    }
  }
}
 
==In other languages==
In other programming languages such as Pascal, indices may start at 1, so indexing in a block of memory can be changed to fit a start-at-1 addressing scheme by a simple linear transformation - in this scheme, the memory location of the ''i''th element with [[base address]] ''b'' and element size ''s'' is ''b''+(''i''-1)''s''.
 
==References==
{{reflist}}
* ''Programming with C++'', J. Hubbard, Schaum’s Outlines, McGraw Hill (USA), 1996, ISBN 0-07-114328-9
* ''Tensor Calculus'', D.C. Kay, Schaum’s Outlines, McGraw Hill (USA), 1988, ISBN 0-07-033484-6
* ''Mathematical methods for physics and engineering'', K.F. Riley, M.P. Hobson, S.J. Bence, Cambridge University Press, 2010, ISBN 978-0-521-86153-3
 
{{DEFAULTSORT:Index Notation}}
[[Category:Mathematical notation]]
[[Category:Programming constructs]]

Revision as of 20:09, 25 February 2014

Fascinated to meet you! A few name is Eusebio Ledbetter. To drive is a thing that I'm completely addicted to. South Carolina is where this is my home is and don't plan on shifting it. I used regarding be unemployed but I am a cashier but the promotion never comes. I'm not good at web development but you might feel the need to check my website: http://prometeu.net

Feel free to surf to my web site - clash of clans hack cydia (mouse click the next site)