# TITLE: Rational Division in C # AUTHOR: Roy F.A. Maclean # EMAIL: rfamgm at gmail # WEB: http://www.spiderpixel.co.uk/caspro # DATE: 21Jan1995 # MAKE: CASIO # MODEL: fx9700ge or greater # SIZE: 69 # NOTES: Use the fraction symbol for % # This program will divide one complex number by another # and return the result using rational parts instead of decimal # where possible. # # \i is the complex i @@ Program 1 "Z1"?->M:"Z2"?->N ReP M->A:ImP M->B ReP N->C:ImP N->D C^2+D^2 (AC+BD)%Ans + \i((BC-AD)%Ans)