v1.0 of a practical complex number calculator for the TI-82.
Menu-driven. ASCII listings included. Written by Mikael Bonnier.
 
    COMPLEX is Freeware
    Commercial Distribution Restricted
    Copyright (C) 1994 by Mikael Bonnier, Lund, Sweden.
 
1. System and Memory Requirements
This program is for the TI-82. It consists of one main- and one
subprogram, and uses 652 bytes. It requires an additional 112
bytes for data to execute.
 
2. Installation
If you have TI-GRAPH LINK UUDecode this file, and send the 
resulting COMPLEX.82G group to the calculator. Two programs,
COMPLEX and ZCOMPLEX, will be transfered. If you don't have the 
link you will have to enter the two ASCII82P listings below. 
 
4. User Instructions
For a good popular introduction to complex numbers see "The 
Emperor's New Mind", ch 3, by Roger Penrose.
 
The complex numbers are simulated using lists: eg 2.3-i71, is
displayed as {2.3 -71}.
 
Before you start the program check your Radian or Degree mode, and
select the preferred one (usually Radian).
 
Start the program by entering: prgmCOMPLEX
 
The main menu COMPLEX is displayed. First you must enter a complex 
number, select 'ENTER...', a new menu is displayed, here you can 
select 'RECTANGULAR' or 'POLAR' to enter a number in the selected form.
You can not use 'RETRIEVE' yet because you have not 'STORE'd a number.
 
When you have selected, you will be prompted to enter the real and 
the imaginary part, or the absolute (also called modulus, or radius),
and the argument (also called phase, or angle) if you selected the 
polar form. The program then displays the rectangular form and 
pauses, and you can use the arrow keys to view the number. When the 
calculator is pausing the busy indicator is blinking, and you 
continue by pressing ENTER. This version of COMPLEX is not stack 
oriented, so if you enter several numbers only the last will be 
remembered.
 
Now you arrive at the main menu and you can select what you want to 
do with your entered number, say you want to subtract a second
number from it and divide the result by a third number. Select 
'Ans-' and you come to the enter menu again, and enter the second
number using the same technique as when you entered the first number. 
The result of this calculation is diplayed. When you return to the
main menu select 'Ans/' and enter your third number, and now the 
result of the division is displayed.
 
If you want to use unary operators like taking the absolute value 
of a number then you should select 'UNARY...', in the unary menu you
can also select to 'STORE' your number. After you have stored a number
you may use 'RETRIEVE' in the enter menu, instead of entering the
number by hand. A feature of the unary menu is that if you select a 
calculation that results in a real number, say 'abs Ans' the result is 
diplayed but the complex number is still held in Ans, so you can 
follow this by 'ARG Ans' to get the argument of the complex number. 
Another feature is that if you did not find the operation you were 
looking for you can select Return.
 
When you are finished you can select 'QUIT' and the last result is 
displayed. You can resume calculation immediately by just pressing
ENTER, even.
 
5. Variables Used
The program alters \L1\,\L2\,A,B,R,\@\ (theta), and Ans.
'STORE' and 'RETRIEVE' uses \L1\.
 
6. Possible Future Extensions
Another unary function: 'ARGAND DIAG', that displays an Argand 
diagram (also called complex plane), perhaps using Split mode.
More unary operations eg '\sqrt\ Ans'.
A stack to store complex numbers, so that it will be a Reverse 
Polish Notation Complex Calculator.
 
Suggestions, bug and bad-English-in-doc reports are always welcome to:
                    Mikael Bonnier
                    Osten Undens gata 88
                    S-227 62  LUND
                    SWEDEN
                             
Or use my internet address:
                    mikaelb@loglady.df.lth.se
 
// Mikael Bonnier
/////////////////////////////////////////////////////////////////////
