Debian Codegraph @

docs/manual/Formulas_1_4__Array_expressions.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Formulas 1.4. Array expressions</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Formulas 1.4. Array expressions
13 </b></font></table></table>
14 <p>A numeric vector expression is an expression whose value is a numeric vector.</p>
15 <p>You can check the outcomes of the following examples with the <a href="Calculator.html">calculator</a>.</p>
16 <dl>
17 <dt><b>{ 11, 13, 17 } + 0.5</b>
18 <dd>adds 0.5 to each element of a vector with three elements, giving a new vector with three elements. Praat writes the outcome to the Info window as three lines, containing the numbers 11.5, 13.5 and 17.5:</dd>
19 </dl>
20 <code> 11.5<br></code>
21 <code> 13.5<br></code>
22 <code> 17.5<br></code>
23 <dl>
24 <dt><a href="_zero-H_.html"><b><code><font size=+1>zero#</font></code></b></a> (5)
25 <dd>creates a vector with 5 zeroes. Praat writes them on five lines:</dd>
26 </dl>
27 <code> 0<br></code>
28 <code> 0<br></code>
29 <code> 0<br></code>
30 <code> 0<br></code>
31 <code> 0<br></code>
32 <dl>
33 <dt><a href="_repeat-H_.html"><b><code><font size=+1>repeat#</font></code></b></a> ({ 1, 5 }, 6)
34 <dd>creates a vector with 12 elements, in which the sequence { 1, 5 } is repeated 6 times. Outcome:</dd>
35 </dl>
36 <code> 1<br></code>
37 <code> 5<br></code>
38 <code> 1<br></code>
39 <code> 5<br></code>
40 <code> 1<br></code>
41 <code> 5<br></code>
42 <code> 1<br></code>
43 <code> 5<br></code>
44 <code> 1<br></code>
45 <code> 5<br></code>
46 <code> 1<br></code>
47 <code> 5<br></code>
48 <h3>Links to this page</h3>
49 <ul>
50 <li><a href="Formulas.html">Formulas</a>
51 <li><a href="Formulas_1__My_first_formulas.html">Formulas 1. My first formulas</a>
52 </ul>
53 <hr>
54 <address>
55 <p>© ppgb 20170916</p>
56 </address>
57 </body>
58 </html>