System Function AV: Difference between revisions

From NARS2000
Jump to navigationJump to search
(New page: <table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" summary=""> <tr> <td valign="top"><ap...)
 
No edit summary
Line 1: Line 1:
<h1><apl>{quad}AV</apl> - Atomic Vector</h1>
<apll>{quad}TS</apll> is an ISO 13751 standard niladic system function which
<table border="1" cellpadding="5" cellspacing="0" rules="none" summary="">
<table border="1" cellpadding="5" cellspacing="0" rules="none" summary="">
<tr>
<tr>
Line 21: Line 23:


<p>Because NARS2000 is based upon Unicode (i.e., UCS-2), its Atomic Vector has one element for each possible 16-bit character value.  Moreover, the elements of the Atomic Vector are ordered such that, in index-origin zero, <apll>((⌈2⍟⍴⎕AV)⍴2)⊤⎕AV⍳'X'</apll> gives the bit representation of <apll>'X'</apll>.</p>
<p>Because NARS2000 is based upon Unicode (i.e., UCS-2), its Atomic Vector has one element for each possible 16-bit character value.  Moreover, the elements of the Atomic Vector are ordered such that, in index-origin zero, <apll>((⌈2⍟⍴⎕AV)⍴2)⊤⎕AV⍳'X'</apll> gives the bit representation of <apll>'X'</apll>.</p>
{{System Variables}}

Revision as of 23:14, 21 February 2013

⎕AV - Atomic Vector

⎕TS is an ISO 13751 standard niladic system function which

Z←⎕AV returns the Atomic Vector for the NARS2000 system.
Z is a character vector with 216 (65,536) elements.


Because NARS2000 is based upon Unicode (i.e., UCS-2), its Atomic Vector has one element for each possible 16-bit character value. Moreover, the elements of the Atomic Vector are ordered such that, in index-origin zero, ((⌈2⍟⍴⎕AV)⍴2)⊤⎕AV⍳'X' gives the bit representation of 'X'.

System Variables (A value may be assigned to these except for ⎕DM)
ALX CT DM DT ELX FC FEATURE FPC IC IO
LR LX PP PR PW RL SA WSID
Niladic System Functions (a value cannot be assigned to these)
A AV EM ET LC NNAMES NNUMS SI SYSID SYSVER
T TC TCBEL TCBS TCESC TCFF TCHT TCLF TCNL TCNUL
TS WA
Monadic or dyadic system functions (a value cannot be assigned to these)
AT CR DC DFT DL DR EA EC ERROR ES
EX FMT FX MF NAPPEND NC NCREATE NERASE NINFO NL
NLOCK NREAD NRENAME NREPLACE NRESIZE NSIZE NTIE NUNTIE STOP TF
TRACE UCS VR
Note that quad functions and variables (except for the ⎕A family of functions) are case insensitive