Post Reply 
(42S) Argument, Real Part, Imaginary Part, and Sign Function
12-29-2018, 05:48 AM
Post: #2
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function
What about:

Code:
LBL "SIGN"
x=0?
STO L
x=0?
RTN
ABS
x<> L
RCL/ L
RTN

Which (I think, I've no 42 to hand) sets LastX properly and doesn't impact the stack.


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


Messages In This Thread
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function - Paul Dale - 12-29-2018 05:48 AM



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