Double factorial [wp34s]
|
02-12-2016, 02:21 PM
(This post was last modified: 02-12-2016 02:24 PM by Gerson W. Barbosa.)
Post: #6
|
|||
|
|||
RE: Double factorial [wp34s]
(02-12-2016 07:49 AM)Dieter Wrote:(02-12-2016 06:27 AM)Paul Dale Wrote: cos(pi x) can be replaced by (-1)^x which should save a few steps at the start and be faster and more accurate. 7/12th shorter, actually! The following preverves the Y register, but I need two more steps: Code:
Ideally, both Y and Z stack registers should be saved. Thus I would not need the alternative definition in program 01. The implementation of the rising and falling factorials might be more interesting, but they are defined in terms of the ordinary factorial and would take just a few steps each. Walter's Blue Book is worth looking at sometimes. If I only knew the whereabouts of mine... (hidden somewhere in the house). Thank you all for the optimization suggestions, formula rearrangement and comments. Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)