Variable

From NARS2000
Revision as of 11:44, 26 November 2014 by Paul Robinson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

A variable is a named location which can be assigned a value which can be retrieved and modified if desired. Like functions, variables in APL in general, and NARS2000 in particular, come in two flavors: user variables and system variables.

User variables

User variables come into existence when the creator of a workspace sets the value of the variable. Th rules for naming a user variable are as follows:

-- Do later --

System variables

System variables are created by NARS2000 when the program starts. They begin with the quad symbol , and one or more letters. The current list of system variables is as follows:


System Variables
⎕ALX Attention Latent Expression
⎕CT Comparison Tolerance
⎕DM Diagnostic Message (Read-only)
⎕DT Distribution Type
⎕ELX Error Latent Expression
⎕FC Format Control
⎕FEATURE Feature Control
⎕FPC Floating Point Control
⎕IC Indeterminate Control
⎕IO Index Origin
⎕LR Left-Right Direction Choice
⎕LX Latent Expression
⎕PP Print Precision
⎕PR Prompt Replacement
⎕PW Print Width
⎕RL Random Link
⎕SA Stop Action
⎕WSID Workspace Identifier



See Also
System Commands System Variables and Functions Operators


Keyboard
A+S
Alt ¨ ¯ < > × ÷
Sh ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
A+S
Alt ? § π
Sh Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
A+S
Alt
Sh A S D F G H J K L : "
Key a s d f g h j k l ; '
A+S χ
Alt
Sh Z X C V B N M < > ?
Key z x c v b n m , . /
{{#ifeq:{{{1}}}|4||title="match" style="border-width:thick; border-color:blue; background-color:yellow;"| {{#ifeq:{{{1}}}|7||title="iota" style="border-width:thick; border-color:blue; background-color:yellow;" | {{#ifeq:{{{1}}}|9||title="slash" style="border-width:thick; border-color:blue; background-color:yellow;" |/ {{#ifeq:{{{1}}}|11||title="diamond" style="border-width:thick; border-color:blue; background-color:yellow;" | {{#switch: {{{1}}}
NARS 2000 Lang
Tool
Bar

{{#ifeq:{{{1}}}|1||title="assign" style="border-width:thick; border-color:blue; background-color:yellow;" |

bgcolor=cyan title="assign" | }}

{{#ifeq:{{{1}}}|2||title="plus" style="border-width:thick; border-color:blue; background-color:yellow;" |+

- × ÷ * ! ? bgcolor=cyan title="plus" |+ - × ÷ * ! ? }}

{{#ifeq:{{{1}}}|3||title="mod" style="border-width:thick; border-color:blue; background-color:yellow;" ||

< = > bgcolor=cyan title="match" | < = > }}

{{#ifeq:{{{1}}}|5||title="down caret" style="border-width:thick; border-color:blue; background-color:yellow;" |

bgcolor=cyan title="down caret" | }}

{{#ifeq:{{{1}}}|6||title="take" style="border-width:thick; border-color:blue; background-color:yellow;" |

~ § π .. bgcolor=cyan title="iota" | ~ § π .. }}

{{#ifeq:{{{1}}}|8||title="comma" style="border-width:thick; border-color:blue; background-color:yellow;" |,

\ ¨ . bgcolor=cyan title="slash" |/ \ ¨ . }}

{{#ifeq:{{{1}}}|10||title="quotequad" style="border-width:thick; border-color:blue; background-color:yellow;" |

_ bgcolor=cyan title="diamond" | _ }}

{{#ifeq:{{{1}}}|12||title="neg" style="border-width:thick; border-color:blue; background-color:yellow;" |¯

title="neg" |¯
colspan=8 |Second Row i j k a b e g p r v x z colspan=8 |Second Row i j k a b e g p r v x z colspan=8 |Second Row i j k a b e g p r v x z colspan=6 |Second Row i j k i j k l g p r v x

}}

{{#ifeq:{{{1}}}|0| |[[Category:Mouse Group {{{1}}}|{{{2}}}]]}}




This NARS2000 article is a stub and needs further work.