SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Original Poster
Rep:
... founded Londinium, built some nice roads, built the baths at Bath, brought civilization, learning, language (well, thankfully, that didn't stick, English is Germanic), clean water, sewers (there's one at York that is still draining the Minster).
Oh, you need something to go along with this to do Arabic to Roman conversion? Here's a handy little program for that:
....
Save it as roman.cob and compile it with: cobc -x roman.cob
Enjoy!
I tested it with 487-> THE CORRESPONDING ROMAN NUMBER IS CCCCLXXXVII as result instead of CDLXXXVII (the right result), ENTER ANY NUMBER: 99
THE CORRESPONDING ROMAN NUMBER IS LXXXXVIIII (should be XCIX),
ENTER ANY NUMBER: 9
THE CORRESPONDING ROMAN NUMBER IS VIIII (should be IX, but maybe I did some mistake, who knows?) But I think this was not the main cause of the fall of the Roman Empire...
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Original Poster
Rep:
Quote:
Originally Posted by neymac
I tested it with 487-> THE CORRESPONDING ROMAN NUMBER IS CCCCLXXXVII as result instead of CDLXXXVII (the right result), ENTER ANY NUMBER: 99
THE CORRESPONDING ROMAN NUMBER IS LXXXXVIIII (should be XCIX),
ENTER ANY NUMBER: 9
THE CORRESPONDING ROMAN NUMBER IS VIIII (should be IX, but maybe I did some mistake, who knows?) But I think this was not the main cause of the fall of the Roman Empire...
Yup, same results with two separate converters. Maybe that's why nobody uses COBOL anymore -- maybe something to do with the year 2000 problem, eh?
However, the "wrong" conversions are actually correct, they're just too danged long (they convert to the correct integers properly).
When I was in school, those columns were used for sequence numbering of the cards. If you happened to drop your stack of cards then you could run them through a sorting machine that would arrange them based on the numbers in those columns. The keypunch would automatically add the sequence numbers as you created your code, or you could generate new sequence numbers when you made a copy of your card deck.
*chuckles* I had a collegue once who had a box of cards (3000 of'em) which were to be run through a card-punch to add sequence numbers. The cards contained numeric data. He stumbled over the threshhold and lost the box with the content spewing out - took him a week or so to get them all back in proper order!!
Another collegue was going to a shipyard in Canada with a huge bunch of cards containing data for a vessel-build (numeric description of all the different steel-plates making up a vessel). He was stopped in custom and asked what he was bringing into the country. The custom officer picked up some cards and looked at them, then said: "Oh - they are all used! - please proceed"
I think they missed what you're refering to. I caught it instantly and got a nice chuckle out of it and sure enough even started to try and remember all the things they went through in the movie(s), heh heh.
"I mean....if I went 'round sayin' I was an emperor just because some moistened
bint lobbed a scimitar at me, they'd put me away!" -Dennis from Monty Python and
the Holy Grail
What's funny about your question is that word algorithm is derived from that of Persian mathematician عَبْدَالله مُحَمَّد بِن مُوسَى اَلْخْوَارِزْمِي (in English Al-Khawarizmi), who introduced in Middle East then in Europe the so-called arabic numerals.
Also, word algebra is taken from part of the Arabic title of his best known book.
PS Now I'm sure NSA is watching me
Very interesting.
I'd like to mention that the numerals that we use today are not Arabic, although that is what everyone mistakenly believes. They are Hindu numerals. An Indian mathemetician invented it 800 years before the Arabs are claimed to have.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.