(41/42) AGM - Arithmetic-Geometric Mean
|
06-10-2020, 11:23 AM
Post: #7
|
|||
|
|||
RE: (41/42) AGM - Arithmetic-Geometric Mean
(06-10-2020 08:02 AM)Werner Wrote: If you don't like that the global label gets excuted in the loop, put it before LBL 02 and place a Rv in between, again at the expense of 1 byte No, that’s not an issue. But I would like the program to preserve the previous content of stack register X so that chained calculations involving AGM are possible without the use of numbered registers to store intermediate results. Example: agm(1, 2) + agm(3, 4) 1 ENTER 2 XEQ AGM 3 ENTER 4 XEQ AGM + → 4.938818707406477275808395332421768 Anyway, the low byte count and least number of steps are very nice! Gerson. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41/42) AGM - Arithmetic-Geometric Mean - Werner - 06-09-2020, 06:48 AM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Albert Chan - 06-09-2020, 01:14 PM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Albert Chan - 06-09-2020, 03:51 PM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Albert Chan - 06-09-2020, 11:55 PM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Gerson W. Barbosa - 06-10-2020, 04:10 AM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Werner - 06-10-2020, 08:02 AM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Gerson W. Barbosa - 06-10-2020 11:23 AM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Werner - 06-10-2020, 01:16 PM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Gerson W. Barbosa - 06-10-2020, 02:14 PM
RE: (41/42) AGM - Arithmetic-Geometric Mean - Werner - 06-10-2020, 02:24 PM
|
User(s) browsing this thread: 1 Guest(s)