Difference between revisions of "Typographic conventions in this guide"
(Tables) |
|||
Line 42: | Line 42: | ||
'''Array examples''': We use these typographic conventions to show Analytica arrays. | '''Array examples''': We use these typographic conventions to show Analytica arrays. | ||
* An index or list and its values | * An index or list and its values | ||
− | N: | + | <code>'''N:'''</code> |
{| class="wikitable" | {| class="wikitable" | ||
− | |1 | + | |<code>1</code> |
− | |2 | + | |<code>2</code> |
− | |3 | + | |<code>3</code> |
− | |4 | + | |<code>4</code> |
− | |5 | + | |<code>5</code> |
|} | |} | ||
* A one-dimensional array, <code>Squares</code> | * A one-dimensional array, <code>Squares</code> | ||
Line 56: | Line 56: | ||
|- | |- | ||
! | ! | ||
− | !1 | + | !<code>1</code> |
− | !2 | + | !<code>2</code> |
− | !3 | + | !<code>3</code> |
− | !4 | + | !<code>4</code> |
− | !5 | + | !<code>5</code> |
|- | |- | ||
| | | | ||
− | |1 | + | |<code>1</code> |
− | |4 | + | |<code>4</code> |
− | |9 | + | |<code>9</code> |
− | |16 | + | |<code>16</code> |
− | |25 | + | |<code>25</code> |
|} | |} | ||
* A two-dimensional array | * A two-dimensional array | ||
{| | {| | ||
! | ! | ||
− | ! | + | ! colspan="3" |<code>'''Index_b'''</code> ▶ |
− | |||
− | |||
|- | |- | ||
− | !Index'''_a ▼''' | + | !<code>Index'''_a'''</code>''' ▼''' |
− | !'''a''' | + | !'''''a''''' |
− | !'''b''' | + | !'''''b''''' |
− | !'''c''' | + | !'''''c''''' |
|- | |- | ||
− | !'''x''' | + | !'''''x''''' |
− | |value | + | |<code>value</code> |
− | |value | + | |<code>value </code> |
− | |value | + | |<code>value</code> |
|- | |- | ||
− | !'''y''' | + | !'''''y''''' |
− | |value | + | |<code>value</code> |
− | |value | + | |<code>value</code> |
− | |value | + | |<code>value</code> |
|- | |- | ||
− | !'''z''' | + | !'''''z''''' |
− | |value | + | |<code>value</code> |
− | |value | + | |<code>value</code> |
− | |value | + | |<code>value</code> |
|} | |} | ||
− | * A three-dimensional array | + | * A three-dimensional array<br> {| ! ! colspan="3" |<code>Index'''_b'''</code> ▶ <code>Index'''_c = '''</code>''<nowiki/>'displayed value''' |- !<code>Index'''_a'''</code>''' ▼''' !'''''a''''' !'''''b''''' !'''''c''''' |- !'''''x''''' |<code>value</code> |<code>value </code> |<code>value</code> |- !'''''y''''' |<code>value</code> |<code>value</code> |<code>value</code> |- !'''''z''''' |<code>value</code> |<code>value</code> |<code>value</code> |} |
− | |||
− | |||
− | |||
− | |||
==See Also== | ==See Also== | ||
<footer>Normally, usually, and defaults / {{PAGENAME}} / User guide Examples folder </footer> | <footer>Normally, usually, and defaults / {{PAGENAME}} / User guide Examples folder </footer> |
Revision as of 00:10, 6 November 2015
Example | Meaning |
behavior analysis | Key terms when introduced. Most of these terms are included in the Glossary. |
Diagram | Menus and menu commands, window names, panel names, dialog box names, function parameters. |
Sequence() | Name of a variable or function in Analytica. |
Price - DownPmt
|
Expressions, definitions, example code. |
10^7 → 10M
|
In example code, this means that the variable or expression before the “→” generates the result after it. |
Enter, Control+a | A key or key-combination on the keyboard. A letter, such as “a”, can be lower- or uppercase. |
Code examples: This guide includes snippets of code to illustrate features, for example:
Index N := [1, 2, 3, 4, 5]
Variable Squares := N^2
Sum(Squares, N) → 55
This code says that there are two objects, an index N
and a variable Squares
. You would create these objects in a Diagram window by dragging from the node toolbar into the diagram (see “Creating and editing nodes”). You would enter the expressions, [1, 2, 3, 4, 5]
and N^2
into their definitions (see “Creating or editing a definition”). You would not enter the assignment “:=
”. The last line says that the expression Sum(Squares, N)
evaluates to the result 55
after the →. You might include that expression in the definition of third variable.
Array examples: We use these typographic conventions to show Analytica arrays.
- An index or list and its values
N:
1
|
2
|
3
|
4
|
5
|
- A one-dimensional array,
Squares
Squares ▶
| |||||
---|---|---|---|---|---|
1
|
2
|
3
|
4
|
5
| |
1
|
4
|
9
|
16
|
25
|
- A two-dimensional array
Index_b ▶
| |||
---|---|---|---|
Index_a ▼
|
a | b | c |
x | value
|
value
|
value
|
y | value
|
value
|
value
|
z | value
|
value
|
value
|
- A three-dimensional array
{| ! ! colspan="3" |Index'_b
▶Index
_c =
'displayed value |- !Index_a
▼ !a !b !c |- !x |value
|value
|value
|- !y |value
|value
|value
|- !z |value
|value
|value
|}
See Also
Comments
Enable comment auto-refresher