Converts numbers in arabic notation to roman numerals. Does also find the minimal roman form. ROMAN v1.0 is Freeware Commercial Distribution Restricted Copyright (C) 1995 by Mikael Bonnier, Lund, Sweden. 1. System and Memory Requirements This program is for the TI-82. It consists of one main program and five subs that uses 736 bytes. It requires additionally 180 bytes for data to run. ROMAN uses or alters these variables: Real: A,C,D,E,F,J,L,M,N,S,V,W 2. Installation If you have TI-GRAPH LINK UUDecode this file, and send the resulting ROMAN.82G group file to the calculator. If you don't have a link you will have to enter the ASCII82P listings below. 3. User Instructions Example: prgmROMAN [ENTER] ROMAN - (C) 1995 MIKAEL BONNIER LUND, SWEDEN ArabIc=?1997 [ENTER] ArabIc: 1997 ROMAN 'LEGAL': MCMXCVII ROMAN MINIMAL: MVMII Done The roman symbols are: _ _ _ I=1, V=5, X=10, L=50, C=100, D=500, M=I=1000, V=5000, X=10000, etc. The symbols with one line above is worth 1000 times more than the ordinary. I have generalized this so that 5 million is written as a V with two lines above, the old romans didn't do this. Since this is difficult to represent in text mode the program writes an equal sign before the symbol to signify one line above it, and two for two lines, etc. This is inspired from LaTeX, a mathematical text processing program. Example: ArabIc: 500000 ROMAN 'LEGAL': =D ROMAN MINIMAL: =D A smaller symbol before a larger is subtracted from it and a same value or smaller after a larger symbol is added to it. To find the value of a roman numeral you may search from left for the largest symbol and then subtract the roman numeral that consists of the symbols to its left and add the roman numeral that consists of the symbols to its right. You find the sub roman numerals in the same way, until the sub roman numerals consists of zero symbols, that roman numeral has the value zero. This is a recursive algorithm. In the roman numerals that this program produces it is assumed that a sub roman numeral that is to be subtracted may only consist of a single symbol. The 'legal' roman numerals are the form that usually appears as the production year of movies. Example: 1995 = 1000 + 900 + 90 + 5 = M CM XC V. This can be written shorter as MVM = 1000 + (-5 + 1000). This short form wasn't used by the old romans. This program does not handle numbers larger than the integer precision of the calculator. 4. Anecdotes The V in five comes from halving X (ten) horizontally, an upside down V was also used as a symbol for five (in the early days). D (500) comes from halving an older symbol for a thousand vertically namely O. I suppose M comes from 'Mille' (as in millenium = 1000 years). Suggestions, improvements, 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@df.lth.se