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. 오늘의 게시물 좋은 친구에 대한 응답은 항상 내 "말미잘"나는 내 직업의 과정에 대한 얘기를 만들거나 도중에 대해 질문입니다. “Mumbo Jumbo” is actually “Japanese English” for technical talk according to some. "말미잘"사실 "에 따르면 몇 가지 기술적인 얘기를 일본어, 영어"입니다. I have to take you all back to when I was about 14 years old, this is when I purchased my first computer. 나는 다시 내가 14 살 때 당신을 데려갈 경우,이 때 내가 처음으로 컴퓨터를 구입한 경우입니다. My first computer wasn't an IBM 486 or 386, or even a 286, my first computer was a Casio PB-100. 내 최초의 컴퓨터 아니었 IBM은 486이나 386, 혹은 286, 나의 첫 번째 컴퓨터 카시오 PB에 - 100했다.
Here are the details of my first PC. 여기 내 첫 PC의 세부 정보입니다.

The PB-100 represents Casio's step towards “real” pocket computers. 샌드위치 - 100 진짜 "포켓 컴퓨터"를 향해 카시오의 단계를 나타냅니다. While its ancestor, the 그러나 자사의 조상, FX-702P 로 FX - 702P , was still called “Programmable Calculator”, the PB-100 proudly bears the title “Personal Computer”. 아직도 "프로그램 계산기", PB에 전화를했습니다 - 100을 자랑 제목이 "곰 개인용 컴퓨터".
In its standard version, it is equipped with 1 KB of RAM which results in only 544 bytes for BASIC, which is really limiting. 표준 버전에서는, RAM의 1킬로바이트의 기본, 어떤 사실에 대해서만 제한이 544 바이트에서 어떤 결과를 갖추고있다. 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. 적어도, 또는 메모리 모듈과 함께 1, 그것을 사용자의 메모리를 1568 바이트로, 그래서 그것을 이해 기본 메모리가 10 일 독자적인 프로그램 영역으로 세분화 될 수 있도록하는 시작 업그레이드할 수있습니다.
The main circuits of the PB-100 are basically made up of two chips. 샌드위치의 기본 회로 - 100은 기본적으로 두 개의 칩을 최대 만들어집니다. Processor logics, ROM, display driver, and keyboard controller are integrated in a single CMOS VLSI chip HD61913, which has an external 4-bit bus. 프로세서 로직, ROM과, 디스플레이 드라이버 및 키보드 컨트롤러는 외부 4 비트 버스 단일 CMOS VLSI는 HD61913 칩에 통합되어있습니다. The second main component is a HD61914, which is a 8192-bit static RAM organized as 2048 words by 4 bits. 두 번째의 주요 구성 요소는 8192 비트 정적 RAM이 4 비트로 2,048 단어로 구성됩니다 HD61914입니다.
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…. 난 개 1.5K 숫양의 총, 써멀 프린터, 테이프 드라이브, 그것은 매우 강력한 PC를 원하는 말할 대한 1k RAM을 업그레이 드를 많이했지만, 당신은 무엇과 같은 underpowered PC와, 읽기, 계속 할 수 놀라게 될 것이라고 ....
My first program was written in BASIC, and could calculate the Factorial of any number you like. 나의 첫 번째 프로그램은 기본에서 작성되었습니다 계승 원하는 숫자를 계산 수있습니다. What is Factorial ? 계승 무엇입니까? 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. 수학에서 계승이 아닌 음수 정수 A를로 표시된!, 모든 긍정적인 정수의 제품보다 적거나 같다 아니길 For example, 5! 예를 들어, 5! = 1 x 2 x 3 x 4 x 5 = 120 and 6! = 1 × 2 x 3 × 4 × 5 = 120 6! = 1 x 2 x 3 x 4 x 5 x 6 = 720. = 1 × 2 x 3 × 4 × 5 × 6 = 720. As you can imagine the numbers get very large very quickly. 마찬가지로 당신이 상상할 수있는 숫자를 아주 빨리 큽니다. Most calculators, even today, can only manage 69!, this is the point where the exponent exceeds 99. 대부분의 계산기, 오늘도 69를 관리할 수있습니다!, 이곳은 지수 99을 초과하는 시점입니다.
So I had a problem I want to solve, what is the factorial of 1 million, 1,000,000! 그래서 내가 해결하고 싶은 문제가 있었는지, 무엇을 1 백만의 계승은 1,000,000입니다! logarithms to the rescue. 구조 logarithms. What is a 14 year old boy doing researching logarithms you ask? 무슨 14 살짜리 소년이 자네에게 물어 logarithms 연구 뭐하는거야? I guess thats a story for another post. 아마 다른 게시물에 대한 이야기를 이잖아. 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. 책을 읽는 몇 시간 후, 그 사이에 난 정수의 제품을 설정할 수있었습니다 예 책이요! (인터넷에) 자신의 기록의 합계입니다.
so 1 * 2 * 3 * 4 * 5 … is equal to exp( log(1) + log(2) + log(3)+ log(4) + log(5) ) 그래서 1 * 2 * 3 * 4 * 5 ... 애썼는데에 ((1) + 로그 (2) + 로그 (3) + 로그 (4) + 로그 (5)) 로그를 걸만한 가치가있다
Easy right… yeah right! 간편한 좋아 ... 그래 좋아!
So I embarked on my first programming task. 그래서 제가 처음으로 프로그래밍 작업에 착수. 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. 그 아래로 작은 덩어리가 쉽게 프로그램 계산기 또는 PC에 의해 처리로 계산 부러 간단한 루틴을 함께 올 수있었습니다.
10 input x 10 입력 x
20 for a = 1 to x 20 = 1 x를
30 b = b + log10(a) 30 b = b + log10 ()
40 next a 40 다음
50 c = b – frac(b) 50 C = b - (b)는 frac
60 d = b – c 60 D 조 = b - 코
70 e = 10 ^ d 70 전자 = 10 ^ d 개
80 print e , “E+” , c 80 인쇄 전자, "전자 +"는 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. 오늘날의 기준으로 결과를 얻을 2006/11/22 최선의 방법은, 많은 명령을 제약에 직면하고, 그래도 안 아니라 14 년 동안 소년.
You can still use this program today, go and download 당신은 여전히 오늘,이 프로그램을 사용할 수있는 이동 및 다운로드 small basic 기본 작은 and copy/paste the code and give it a try. 복사 / 붙여넣은 코드를주고 그것을 시도하십시오. 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.. 그것은 12 시간 이상 내 샌드위치를했다 - 100 1,000,000 계산!, 지금은 그것에 대해 1 초 걸립니다, 난 지금 내 노트북의 성능을 어느 정도 이해할 수 있지만 내 작은 프로그램이 여전히 계승 ...에서 뛰고 WindowXP 계산기 try it and see. 그것을 참조하십시오.
So what is 1 million Factorial? 그래서 1 백만 계승은 무엇입니까? 1,000,000! 1,000,000! = 8.263930499EXP5565708, that 5.5 million zeros, give or take a few. = 8.263930499EXP5565708, 그 550 만 제곱, 줄 또는 몇 가져가라.
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. 다른 모든 수학은 이제 누구를 위해이 글을 머리, 내가 말하는대로 16 중요한 자리를 사용하고 그것을 근사치이며, 아는 이렇게, 어쩌구 저쩌구, 제발 기억에만 14 시간이 있었 더 정확한 방법이있습니다.
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. 만약 당신이 관심을 유지하기 위해 해당 게시물의 끝까지 관리해야, 어쩌면 당신의 유형을 몇 가지 엽기 코드와 함께 자신의 친구들에게 감동을 수있습니다.
To get new stuff automatically subscribe to my 자동으로 구독하기 새로운 물건을 얻으려면 내 RSS feed RSS 피드 . . For a more personal insight Follow me on 더 많은 개인적인 통찰력 나를 따를 사람들을 위해 Twitter 트위터 . .
This post is tagged 이 게시물 태그입니다 factorial 1 million 계승 1 백만 , , factorial one million 계승 만 , , logs 로그 , , The First Program I Ever Wrote 첫번째 프로그램은 내가 쓴














4 Comments 4 개의 댓글
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! 폴리, 당신은 어디에서 동작있어? 기억하니 ... ... 그것은 내가 누군지 Swinburne 곳의 PC를 가져온 것이 계승 Formulae 펀치 카드에 ... 예와 함께 80 년대 초반의 연삭 hault합니다! punch card programming LOL 펀치 카드를 프로그래밍 LOL
Reply To This Comment 이 댓글 회신하려면
Remember my Casio Calculator the FX-602P?? 로 FX - 602P 카시오 계산기를 기억해?? It computed 1,000,000 factorial in 4 minutes flat, not bad for a meek calculator 그것은 1,000,000 4 분 평평하고 온순 계산기 치고는 그리 나쁜 편이 아니 계승 계산
Reply To This Comment 이 댓글 회신하려면
Thanks! 감사합니다! Believe it or not, I was actually trying to solve 1000000! 믿거나 말거나, 난 사실 1000000 해결하기 위해 노력했다! , but, yes, my sci calculator was only good for 69! 하지만, 단 69 좋아, 그래, 내 공상 과학 계산기 였어! . . My windows sci calculator was much better. 내 Windows 계산기 과학 훨씬 더했다. It took me up to (10^5)! 그것은 (10 ^ 5) 나를 갔어! , but it wouldn't give me (10^6)! 하지만, 날 (10 ^ 6)주지 못할 것이다! . .
I tried some online calculators , but they couldn't even come close to the windows sci calculator. 좀 온라인 계산기를했지만, 그들은 심지어 창문 가까이 올 수가 계산기 과학. For now, and for my purposes, all I needed was that answer. 지금 내 목적을 위해 내가 필요한 전부 대답했다. I'll search for a calculator later. 내가 계산기를 나중에 검색합니다. Thank you, again, you have saved me a lot of search time. 당신을 다시 감사합니다, 당신은 내 검색 시간을 많이 저장했습니다. As I am rural, I only have dial-up. 내가 시골 오전, 난 단지 다이얼업있다. Yes, it only feels like it would be faster to just 1 x 2 x 3 x 4 x 5 x ………….with pencil and paper (how many life-times????). 그래, 그건 단지 느낌이 좋아 그것이 빨라 1 x는 2 x 3 × 4 x를 5 x ... ... ... ... .... 연필과 종이 (얼마나 많은 삶과 시대 ????). than to search for the answer. 답변 찾기보다. and wait for the snail-speed downloads!!!! 그리고 달팽이 속도로 다운로드 기다려!!
Appreciatively, 정중히,
Chris Aristides Pappas 크리스 아리스 티 데스 파파스
Reply To This Comment 이 댓글 회신하려면
-Paul - 폴 Reply: 답글 :
September 8th, 2009 at 8:34 am 9 월 8 일 오전 2009 8시 34분
I'm glad you found it useful. 당신이 그것을 유용하게 찾을 수있어서 다행이야. I'm also glad I'm not the only geek who has an interest in factorial of large numbers. 나는 또한 내가 유일한 사람에 관심을 갖고 찌질이가 아니 기뻐요 큰 숫자의 계승.
Reply To This Comment 이 댓글 회신하려면
Incoming Links 들어오는 링크
Leave a Reply 답글 남겨주세요