HP 50g Double factorial
|
01-27-2024, 09:33 PM
Post: #22
|
|||
|
|||
RE: HP 50g Double factorial
(01-27-2024 05:51 PM)FLISZT Wrote: << In this case, you don't actually need the "1 +" after the LWHL command, since multiplying by 1 has no impact on the final result. It doesn't hurt anything for it to be there, of course. But it's not needed. Note that this method isn't particularly good with large n, since it requires enough free memory for the entire list of multiplicands to be created en masse, and also the program essentially has to iterate the large list twice behind the scenes (once when building, then a second time for computing the product). John Keith's example covers most everything you could want here, and is much more efficient. I just wanted to point out the use of LWHL and LPROD in this context, which shortens the code significantly. As is frequently the case, though, large lists take lots of memory and can be slow to process. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)