Post Reply 
Bigs Factorials
04-11-2016, 12:34 PM (This post was last modified: 04-11-2016 12:44 PM by Dieter.)
Post: #4
RE: Bigs Factorials
(04-11-2016 09:07 AM)ggauny@live.fr Wrote:  Looking a way to duplicate a routine from my 50g wich gives all digits of an factorial, yes I say : all exacts digits, I have written this pretty smart routine :
(...)
But a issue occurs ! I dont' see all digits, only for instance : 108^255.

Sure. That's a standard factorial program that simply multiplies all integers from n down to 1. Like this one:

Code:
x=0?
INC X     // handle n=0 like n=1
#001      // set x=1 and leave n in Y
RCLx Y    // x = x*n
DSE Y     // n = n-1 and
BACK 002  // jump back as long as n>0
END

BUT: All arithmetics is done with the calculator's working precision, that is: usually 10 or 12 digits, or 16 resp. 34 on the 34s. That's all you get.

If you want more you will have to set up your own multiplication routine that returns all digits of a product, and not just the first 10, 12, 16 or 34. This is a bit tricky, but you can try the same method you would use with pencil and paper. ;-)

BTW, a simple factorial program was the very first one I ever wrote on a programmable calculator (a TI-57) or on a computer (an Apple II). ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Bigs Factorials - ggauny@live.fr - 04-11-2016, 09:07 AM
RE: Bigs Factorials - Paul Dale - 04-11-2016, 10:33 AM
RE: Bigs Factorials - ggauny@live.fr - 04-11-2016, 11:07 AM
RE: Bigs Factorials - Dieter - 04-11-2016 12:34 PM
RE: Bigs Factorials - ggauny@live.fr - 04-11-2016, 06:03 PM
RE: Bigs Factorials - ggauny@live.fr - 04-11-2016, 06:07 PM
RE: Bigs Factorials - Gerson W. Barbosa - 04-11-2016, 06:54 PM
RE: Bigs Factorials - ggauny@live.fr - 04-12-2016, 06:53 AM
RE: Bigs Factorials - Gerson W. Barbosa - 04-13-2016, 01:31 AM
RE: Bigs Factorials - ggauny@live.fr - 04-13-2016, 06:37 AM



User(s) browsing this thread: 1 Guest(s)