Todays post is in response to a good friend of mine always asking about the “Mumbo Jumbo” that I talk about or create during the course of my job. Die heutige Nachricht ist in Reaktion auf einen guten Freund von mir immer über die Frage "Mumbo Jumbo", dass ich sprechen oder im Laufe meiner Arbeit. “Mumbo Jumbo” is actually “Japanese English” for technical talk according to some. "Mumbo Jumbo" ist eigentlich "Japanisch Englisch für technische sprechen nach einigen. I have to take you all back to when I was about 14 years old, this is when I purchased my first computer. Ich habe an euch alle wieder, wenn ich war ungefähr 14 Jahre alt, das ist, wenn ich meinen ersten Computer gekauft. My first computer wasn't an IBM 486 or 386, or even a 286, my first computer was a Casio PB-100. Mein erster Computer war nicht auf einem IBM 486 oder 386, oder sogar ein 286, mein erster Computer war ein Casio PB-100.
Here are the details of my first PC. Hier sind die Details von meinem ersten PC.

The PB-100 represents Casio's step towards “real” pocket computers. Die PB-100 ist Casio's Schritt auf dem Weg zur "echten" Pocket-Computer. While its ancestor, the Während seiner Vorfahren, die FX-702P FX-702P , was still called “Programmable Calculator”, the PB-100 proudly bears the title “Personal Computer”. , War immer noch als "programmierbare Rechner", der PB-100 trägt stolz den Titel "Personal Computer".
In its standard version, it is equipped with 1 KB of RAM which results in only 544 bytes for BASIC, which is really limiting. In ihrer Standard-Version, es ist ausgestattet mit 1 KB RAM, die Ergebnisse in nur 544 Bytes für BASIC, das ist wirklich begrenzen. At least, with the memory module OR-1, it can be upgraded to 1568 bytes of user memory, so it begins to make sense that BASIC memory can be subdivided into 10 independent program areas. Zumindest mit dem Speicher-Modul oder-1, kann ein Upgrade auf 1568 Byte Speicher, so beginnt er, daß es Sinn macht, dass die BASIC-Speicher lässt sich in 10 unabhängige Programm Bereichen.
The main circuits of the PB-100 are basically made up of two chips. Die wichtigsten Schaltungen von der PB-100 sind im Wesentlichen aus zwei Chips. Processor logics, ROM, display driver, and keyboard controller are integrated in a single CMOS VLSI chip HD61913, which has an external 4-bit bus. Logik-Prozessor, ROM, Display-Treiber und Tastatur-Controller integriert in einem einzigen CMOS VLSI Chip HD61913, die ein externes 4-Bit-Bus. The second main component is a HD61914, which is a 8192-bit static RAM organized as 2048 words by 4 bits. Die zweite Komponente ist ein HD61914, das ist ein 8192-Bit-statischer RAM-Speicher organisiert als 2048 Worte von 4 Bit.
I had the lot, 1k ram upgrade for a total of 1.5k of ram, thermal printer and tape drive, needless to say it want a very powerful PC, but you would be surprised what could be done with such an underpowered PC, keep reading…. Ich hatte die Partie, 1k RAM-Upgrade für einen Gesamtbetrag von 1.5K RAM, Drucker und Bandlaufwerk, Unnötig zu sagen, sie wollen einen sehr leistungsfähigen PC, aber Sie würden überrascht sein, was getan werden könnte, eine solche Meinung nach PC, halten Lesung ....
My first program was written in BASIC, and could calculate the Factorial of any number you like. Mein erstes Programm wurde in BASIC, und könnte Berechnung der Fakultät einer Zahl, die Sie wollen. What is Factorial ? Was ist Fakultät? In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. In der Mathematik, die Fakultät einer nicht-negative ganze Zahl n, bezeichnet durch n!, Ist das Produkt aller positiven ganzen Zahlen kleiner oder gleich n. For example, 5! Zum Beispiel, 5! = 1 x 2 x 3 x 4 x 5 = 120 and 6! = 1 x 2 x 3 x 4 x 5 = 120 und 6! = 1 x 2 x 3 x 4 x 5 x 6 = 720. = 1 x 2 x 3 x 4 x 5 x 6 = 720. As you can imagine the numbers get very large very quickly. Wie Sie sich vorstellen können die Nummern sehr schnell sehr groß. Most calculators, even today, can only manage 69!, this is the point where the exponent exceeds 99. Die meisten Rechner, auch heute noch, können nur 69!, Das ist der Punkt, wo die mehr als Exponent 99.
So I had a problem I want to solve, what is the factorial of 1 million, 1,000,000! So hatte ich ein Problem, das ich lösen wollen, was die Fakultät von 1 Mio. 1000000! logarithms to the rescue. Logarithmen der Rettung. What is a 14 year old boy doing researching logarithms you ask? Was ist ein 14 Jahre alter Junge tun Erforschung Logarithmen Sie fragen? I guess thats a story for another post. Ich denke, das ist eine Geschichte für eine andere Stelle. After a few hours of reading a book, yes a book!( no internet in those days) I was able to establish that product of integers is the sum of their logs. Nach ein paar Stunden ein Buch lesen, ja ein Buch! (Kein Internet in diesen Tagen) Ich war in der Lage, dieses Produkt der Zahlen ist die Summe ihrer Protokolle.
so 1 * 2 * 3 * 4 * 5 … is equal to exp( log(1) + log(2) + log(3)+ log(4) + log(5) ) so 1 * 2 * 3 * 4 * 5 ... ist gleich exp (log (1) + log (2) + log (3) + log (4) + log (5))
Easy right… yeah right! Einfach rechts ... Ja, richtig!
So I embarked on my first programming task. Also habe ich begonnen, meine erste Aufgabe Programmierung. I was able to come up with a simple routine that broke the calculation down into small chunks easily handled by any programmable calculator or PC. Ich war in der Lage, eine einfache Routine, brach die Berechnung in kleine Stücke leicht von jedem PC oder programmierbare Taschenrechner.
10 input x 10 Eingang x
20 for a = 1 to x 20 für a = 1 bis x
30 b = b + log10(a) 30 b = b + log10 (a)
40 next a 40 Weiter ein
50 c = b – frac(b) 50 c = b - frac (b)
60 d = b – c 60 d = b - c
70 e = 10 ^ d 70 e = 10 ^ d
80 print e , “E+” , c 80 Drucken E, "E +", c
Certainly not the best way to achieve the result by todays standards, and faced with many command restrictions, still not to bad for a 14 year old boy. Sicherlich nicht der beste Weg, um das Ergebnis nach heutigen Standards, und mit vielen Einschränkungen Befehl, noch nicht zu schlecht für eine 14-jährige Jungen.
You can still use this program today, go and download Sie können mit diesem Programm noch heute, gehen Sie und laden Sie small basic kleine grundlegenden and copy/paste the code and give it a try. und kopieren Sie den Code ein und geben es zu versuchen. It took more than 12 hours on my PB-100 to calculate 1,000,000!, now it takes about 1 second, I can now appreciate how much performance my laptop has, however my little program still beats the WindowXP calculator at Factorial.. Es dauerte mehr als 12 Stunden auf meinem PB-100 für die Berechnung 1000000!, Jetzt dauert es etwa 1 Sekunde, kann ich jetzt zu schätzen, wie viel Leistung mein Laptop hat, aber mein kleines Programm noch besser an die WindowXP Rechner Fakultät .. try it and see. Probieren Sie es aus und sehen.
So what is 1 million Factorial? Also, was ist 1 Mio. Fakultät? 1,000,000! 1000000! = 8.263930499EXP5565708, that 5.5 million zeros, give or take a few. = 8.263930499EXP5565708, dass 5,5 Millionen Nullen, geben oder nehmen Sie ein paar zu nennen.
Now for all the other math heads who read this, I know it is an approximation as I am only using 16 significant digits, and there are more accurate ways to do this, blah blah blah, please remember I was only 14 at the time. Jetzt für alle anderen Tiere, die Mathematik gelesen, ich weiß, es ist eine Annäherung, wie ich bin nur mit 16 Stellen, und es gibt mehr Möglichkeiten, genau dies zu tun, blah blah blah, denken Sie bitte daran war ich nur 14 auf die Zeit.
If you have managed to maintain interest and get to the end of this post, maybe your the type who can impress their friends with some geeky code. Wenn Sie es geschafft haben, um Interesse und zum Ende der Post, vielleicht Ihre Art, die ihre Freunde beeindrucken mit einigen schlechten Code.
To get new stuff automatically subscribe to my Um neue Bestellung automatisch anmelden, um meine RSS feed RSS-Feed . . For a more personal insight Follow me on Für eine persönliche Einblicke Folgen Sie mir auf Twitter Twitter . .
This post is tagged Diese Stelle ist getaggt factorial 1 million Fakultät 1 Million , , factorial one million factorial Million , , logs Protokolle , , The First Program I Ever Wrote Das erste Programm I Ever Wrote














2 Comments 2 Kommentare
Pauly, do you remember where you got the workings from ?…… It was me who brought the Swinburne Uni PC's to a grinding hault in the early eighties with this Factorial Formulae on PUNCH CARDS… YES! Pauly, erinnern Sie sich, wenn Sie die Funktionsweise von ... ... Es war mir, die das Swinburne Uni PC's zu einem Schleifen hault in den frühen achtziger Jahren mit dieser Fakultät Formeln auf Lochkarten ... JA! punch card programming LOL Lochkartenleser Programmierung LOL
Reply To This Comment Antwort auf diese Anmerkung
Remember my Casio Calculator the FX-602P?? Meine Casio Rechner FX-602P? It computed 1,000,000 factorial in 4 minutes flat, not bad for a meek calculator Es berechnet 1000000 Fakultät in 4 Minuten flach, nicht schlecht für eine sanft-Rechner
Reply To This Comment Antwort auf diese Anmerkung
Incoming Links Eingehende Links
Leave a Reply Lassen Sie eine Antwort