Post Reply 
Help please? 20S->35S
10-02-2015, 05:39 PM
Post: #2
RE: Help please? 20S->35S
It appears to be doing something like this.

A couple of notes:

- This is 32S code. The 35S doesn't have proper rectangular/polar conversion functions.
- Registers 0, 1, and 2 have been replaced with A, B, and C respectively.
- I'm making the assumption that "R->" and "P<-" are referring to "RShift, ->R" and "LShift, ->P", the to-rectangular and to-polar conversion functions.
- Without any test cases, I can't be certain that this is actually working as intended (I don't have my 20S with me at the moment to feed arbitrary figures into and compare results).
- The 20S takes its arguments in the order x, y or r, θ (and returns them in that order, with y or θ in the display). Thus I may have messed up a swap somewhere.

Code:
LBL A
RCL C
1
θ,r->y,x
RCL B
x<>y
θ,r->y,x
RCL C
SIN
x<>y
y,x->θ,r
x<>y
RCL A
+
x<>y
θ,r->y,x
RCL C
COS
RCL B
SIN
*
x<>y
y,x->θ,r
ACOS
RTN
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Help please? 20S->35S - Tim Wessman - 10-02-2015, 02:49 PM
RE: Help please? 20S->35S - Dave Britten - 10-02-2015 05:39 PM
RE: Help please? 20S->35S - Thomas Klemm - 10-02-2015, 06:13 PM
RE: Help please? 20S->35S - Tim Wessman - 10-02-2015, 07:30 PM



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