Entering programs

The easiest way to enter a program is to open the program editor (Alt-F1), click the Record button, and then operate XCALC normally. Most clicks and keypresses (make sure XCALC has keyboard focus!) will then be executed normally, but also recorded as program instructions. The Undo operation is also supported, but the logic there isn't very smart and will sometimes fail.

The program editor is a normal edit field, and you can also edit your progam manually. The function names from the instruction list are generally keyed in (case is insignificant) as words separated by spaces or newlines. Lines starting with a # will be ignored. Any unknown words will also be ignored. Example:

    # Pi square subtraction
    PI SQR
    -

Numbers can be collapsed, as in

    1.23e9 (you must use comma (,) if XCALC is configured to use the decimal comma from the keyboard)

They du not need to be collapsed, so 1 . 2 3 e 9 means exactly the same. This also means that you cannot enter two numbers on the stack by entering 12 34 - to separate the numbers the sequence is 12 ENTER 34.

To enter negative numbers or negative exponents, use the CHS command, like this:

    1.23 CHS e9 CHS (to enter -1.23e-9)

To key in complex numbers (complex mode only), use a comma to separate the real and imaginary part, or point, (.) if XCALC is such configured:

    1.23,4.56 (to key in 1.23+4.56i)

See also