Post Reply 
(35S) Number Theory Library
02-16-2019, 05:05 PM
Post: #5
RE: (35S) Number Theory Library
(02-15-2019 05:34 AM)Gerald H Wrote:  Line 92 puts the value of variable "A" on the stack at level X & subtracts 1 from stack level X.

That's not quite right. First the expression is evaluated as a whole, then the result is moved to X (and the stack is pushed). So the equation first calculates A–1 and then it returns this value to the stack. The variable A alone is never moved to X. During the calculation the whole stack is not affected.

BTW, is there a special reason why the program uses so many equations? For instance what's the advantage of "-1►R" instead of -1 STO R, or "SQRT A" instead of RCL A √x? Especially as equations are rather slow.

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


Messages In This Thread
(35S) Number Theory Library - Gerald H - 06-26-2015, 02:58 PM
RE: (35S) Number Theory Library - Gerald H - 03-02-2018, 10:37 AM
RE: (35S) Number Theory Library - fred_76 - 02-13-2019, 04:41 PM
RE: (35S) Number Theory Library - Gerald H - 02-15-2019, 05:34 AM
RE: (35S) Number Theory Library - Dieter - 02-16-2019 05:05 PM
RE: (35S) Number Theory Library - Gerald H - 02-16-2019, 06:49 PM
RE: (35S) Number Theory Library - Gerald H - 02-17-2019, 05:51 AM



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