| Program: | Comments: |
|
|
|
| NEXT | Repeat loop for the next row. |
| n →LIST | Gather rows into a list, forming a list of lists |
|
| (symbolic |
| » | Close the local variable structure and end the |
| END 1 CF | IFERR…THEN…END structure. Clear flag 1 |
|
| before exiting the program. |
| » |
|
| » |
|
| `OAPLY K | Stores the program in APLY. |
|
| |
Checksum: # 11132d |
| |
Bytes: | 314 |
|
Example: Apply the function, f(x) =
!Ô3†2W†4` ‚Å 3 QA *7 -
`J%APLY% H#DISP ˜˜
(select small stack display to see all vector elements.)
Converting Between Number BasesnBASE converts a positive decimal number (x) into a tagged string representation of the equivalent value in a different number base (b). Both x and b must be real numbers. nBASE automatically rounds both arguments to the nearest integer.
Level 2 | Level 1 | → | Level 1 |
|
|
|
|
x | b | → | x baseb: "string" |
|
|
|
|
Techniques used in nBASE
String Concatenation and Character Manipulation. nBASE makes use of several string and character manipulation techniques to build up the result string.
Tagged Output. nBASE labels (“tags”) the output string with its original arguments so that the output is a complete record of the command.
Indefinite Loops. nBASE accomplishes most of its work using indefinite loops — both DO...UNTIL...END and WHILE...REPEAT...END loops.