Post Reply 
HP35s Entering complex number arguments
08-21-2015, 10:03 PM
Post: #4
RE: HP35s Entering complex number arguments
(08-21-2015 09:05 PM)Merwedv Wrote:  
Code:
A001 LBL A
A002 REGYxCOS(REGX)
A003 ixREGZxSIN(REGY)
A004 +
A005 RTN

Why don't you simply put it on a single line (and save one stack register)?

Code:
REGY*COS(REGX)+i*REGY*SIN(REGX)

You may also define this as an equation, so a simple EQN ENTER will turn X and Y into a complex number.

However, I would prefer a stack drop like this:

Code:
T          T
Z   XEQ A  T
Y    =>    Z
X         (complex number)

Which may be implemented in a short program this way:

Code:
LBL A
R↓
REGX*COS(REGT)+i*REGX*SIN(REGT)
X<>Y
CLx
+
RTN

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


Messages In This Thread
RE: HP35s Entering complex number arguments - Dieter - 08-21-2015 10:03 PM



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