48GX - Silly question? mr-scorpio Junior Member Posts: 36 Threads: 14 Joined: Jun 2011 07-18-2011, 12:13 PM Hi there, Still finding my way around the 48GX. Maybe a silly question. I remember seeing on both the TI-92+ & TI-89, that if you keyed in the factorial 100! - it calculated & displayed the whole 157 digit factorial, that you could literally scroll though. It could even calculate higher values.. Putting aside the reason for a 'need' for this... Can, or is there a way that the HP 48GX can ALSO display either the details of an exponent of large calculation OR the results to such a high degree of digits, like 100! 48GX 100! = 9.33262154439E157 TI-89 100! = All 157 digits IF TI deemed this ability useful ... What is HP's response in like for like capability? Many thanks Al Vladan Dugaric Junior Member Posts: 34 Threads: 0 Joined: Jul 2008 07-18-2011, 12:49 PM HP-50G gives all digits too. You just have to use Exact mode and type the number without a decimal point. bill platt Posting Freak Posts: 2,448 Threads: 90 Joined: Jul 2005 07-18-2011, 12:50 PM You need ALG48 or Erable (I can't remember whether either will do it) or other software loaded onto the 48GX to do that. In the 49G and all later versions (49G+, 50G) HP incorporated that feature as "exact" mode. Mike Morrow Posting Freak Posts: 758 Threads: 9 Joined: Jul 2007 07-18-2011, 12:55 PM Quote: 48GX 100! = 9.33262154439E157 TI-89 100! = All 157 digits IF TI deemed this ability useful ... What is HP's response in like for like capability? It's called the HP 49g+ and the HP 50g. (Integer calculations in EXACT vs. APPROXIMATE mode. The HP 48 series has no equivalent mode.) mr-scorpio Junior Member Posts: 36 Threads: 14 Joined: Jun 2011 07-18-2011, 01:07 PM Ah.. So it's a CAS feature. that explains things. Many thanks Al Alejandro Paz (Germany) Junior Member Posts: 43 Threads: 1 Joined: Mar 2008 07-18-2011, 03:31 PM The 48GX is from 93 and the TI-92 (the first one with such a feature) is from 95 :). That may explain why they cannot be actually compared. (I like some features from the 92 but I hardly use it). Edited: 18 July 2011, 3:32 p.m. C.Ret Senior Member Posts: 260 Threads: 0 Joined: Oct 2008 07-19-2011, 05:49 AM Hi, This is not a silly question, but an interessant computing challenge on both HP28 and HP48 advanced calculators. Fortunately, and without any "Erable" add-in or any newer CAS feature, any HP-48 are able to compute and display any digits of the n! factorial by using a quite easy and not so elaborated dFACT program which was compose by myself in 1989 for the same purpose on a HP-28S. For easy reading and printing dFACT returns all digits of the n! factorial into the stack by ten-digit numbers. Printing will be easy with print stack command PRST and storing all this stuff in a list by using DEPTH ->LIST sequence. ``` « -> n @ input n from stack « n ->STR 33 CHR + 61 CHR + @ put string "n!=" on top of stack 2 ‘d’ STO @ initialize dimension d 1 @ initialize stack with 1! 1 n FOR k @ main loop n!=1*2* ... *k*...*n 0 @ zero carry 2 d FOR p @ for each of the d ten-digit-number p ROLL @ p-th ten-digit from stack k * @ multiply by k + @ add carry 1E10 MOD @ ten-digit rest LAST / IP @ set and round carry SWAP p ROLLD @ roll ten-digit back in stack NEXT IF DUP @ test last carry THEN @ if any d ROLLD @ add one more ten-digit in stack ‘d’ 1 STO+ @ increase d value ELSE DROP @ erase null carry END NEXT » » ‘dFACT’ STO ``` Examples: ```0 dFACT -->2: "0!=" 1: 1 1 dFACT -->2: "1!=" 1: 1 5 dFACT -->2: "5!=" 1: 120 13 dFACT -->2: "13!=" 1: 6227020800 14 dFACT -->3: "14!=" 2: 8 1: 7178291200 17 dFACT -->3: "17!=" 2: 35568 1: 74280960000 ``` Upto ther nothing special and results are equivalent to built-in FACT instruction. ```23 dFACT -->4: "23!=" 3: 258 2: 5201673888 1: 4976640000 100 dFACT --->17: "100!=" 16: 93326215 15: 4439441526 14: 8169923885 13: 6266700490 12: 7159682643 11: 8162146859 10: 2963895217 9: 5999932299 8: 1560894146 7: 3976156518 6: 2862536979 5: 2082722375 4: 8251185210 3: 9168640000 2: 0 1: 0 ``` Main inconvenient is exponential computation time, on HP28C/S : 10! Need only 2"00, 50! nearly 11"48, 100! is about 44"94, 150! as long as 1’45"05, . . . , 400! In nearly 16’30" and at least 446! in 21 very long minutes. Source (in Fench only): http://www.silicium.org/forum/viewtopic.php?f=46&t=20757&start=45 bill platt Posting Freak Posts: 2,448 Threads: 90 Joined: Jul 2005 07-19-2011, 12:26 PM Very Cool! mr-scorpio Junior Member Posts: 36 Threads: 14 Joined: Jun 2011 07-20-2011, 05:14 AM Excellent little program! Thank you for the suggestion Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 07-20-2011, 08:19 AM Quote: Main inconvenient is exponential computation time, Anyway, your algorithm appears to be about three times faster than the one in the last message of this old thread, for the HP-41/HP-42S: The author has used a LOG instruction somewhere in his program, which may have slowed it down a bit. Thanks for sharing it. Gerson. « Next Oldest | Next Newest »

 Possibly Related Threads... Thread Author Replies Views Last Post Silly me... I also bought a 12C and 15C Eelco Rouw 3 1,620 12-10-2013, 04:42 PM Last Post: Stephan Matthys HP-48GX & 50G Question Matt Agajanian 2 1,322 12-08-2013, 10:17 PM Last Post: Matt Agajanian 48GX Repair Question Ron 3 1,021 11-09-2006, 12:30 AM Last Post: Ron Testing an HP 48GX RAM Card - Question jbssm 7 1,492 02-24-2006, 06:38 PM Last Post: James M. Prange (Michigan) HP 48gx construction quality question Joe Edwards 7 1,528 02-12-2006, 06:16 PM Last Post: Joe Edwards Silly people in HP calculator market... Will 19 3,411 09-19-2005, 03:58 AM Last Post: tony (nz) Almost as silly as a \$28k grilled cheese Ebay Watcher 3 1,074 12-03-2004, 11:59 AM Last Post: M.Currie OK, this is just plain silly Jim Creybohm 8 1,712 06-14-2004, 04:24 AM Last Post: Meindert Kuipers 48gx question Johann 11 2,084 05-06-2004, 04:58 PM Last Post: marc Question for HP-48GX Experts john smith 6 1,438 08-19-2003, 06:36 PM Last Post: Ben Moss

Forum Jump: