This program converts real/imaginary answers into proper fractions.

Reason for program
The >Frac function on the calculator gives improper fractions.  For instance,
if you are given the function x^2+x-3 and you are to evaluate the funtion at
x=1/9.  The answer is -2.8765....  You can convert that to a fraction very
easily.  Ans>Frac does that.  The only problem is that it gives you -233/81.
Yes, that is right, but a proper fraction gives a better idea of what the
number is.  So, use AFrac.  It gives the result [-2 -71/81]  which in normal
math would be -2 71/81.

The program does the same thing for imaginary numbers.  Suppose the answer
to something is (-2.75,3.6554).  AFrac would give the answer
[-2 -3/4]+[3 3277/5000]*i (which is -2 3/4 + 3 3277/5000i)  The same
answer, just easier to deal with.

This program could be used in other programs to display proper fractions.
It has a Return command at the end of the program so that it will return to
the other program once it is finished.

Suppose you wanted to Display 3.23 on the screen as a proper fraction.
     [program]
     ....
     3.23           ;putting the number on a blank line puts the # in Ans
     AFrac          ;Calls AFrac.  This displays the # on the current line.
     ....
     [more program]

The same thing would work if you are using imaginary variables, too.

This program uses the variable Ans.  It does not ruin Ans, so can continue
to do calculations without having to save Ans in a variable before running
the program.

If you are wondering about the name, the letter  (that is an a with an
accent mark.) means 'to' in French.  I would rather call this program Frac
but once you name it that, the program is placed at the end of the program
list.  Naming it AFrac puts it in the very first blank on the program menu.
(At least on my calc)

If you can use this program, send me a note.

garthjohnson@bigfoot.com

Garth Johnson
visit my homepage at:   www.bigfoot.com/~garthjohnson
