Best Pol/Rect and Complex Number Decomp for 35S
01-26-2019, 08:49 PM (This post was last modified: 01-26-2019 09:16 PM by Dieter.)
Post: #10
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Best Pol/Rect and Complex Number Decomp for 35S
(01-26-2019 12:43 AM)Matt Agajanian Wrote:  I would like to know what program(s) are best for Complex Number and Polar/Rectangular and related forms decomposition for the 35S.

Here is my attempt at a complex decomposition routine:

Code:
C001  LBL C C002  FS? 10 C003  GTO C014 C004  ABS C005  x≠0? C006  GTO C009 C007  ENTER C008  RTN C009: eqn SGN(SIN(ARG(LASTx)))*ABS(LASTx-SQ(REGX)/LASTx)/2 C010  X<>Y C011  R↓ C012  eqn SGN(COS(ARG(LASTx)))*ABS(LASTx+SQ(REGT)/LASTx)/2 C013  RTN C014: CF 10 C015  XEQ C004 C016  SF 10 C017  RTN

Stack diagram:
Code:
T:  t        z Z:  z        y Y:  y   =>   im X:  re+i·im  re L:  ?        re+i·im

The code has not seen much testing, so please try it, see what you get and report any errors and problems here.
Edit: added a few steps to make the routine also work for 0+0i.

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 12:43 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - rprosperi - 01-26-2019, 02:21 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 03:37 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - ijabbott - 01-26-2019, 10:40 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - rprosperi - 01-26-2019, 01:04 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Dieter - 01-26-2019, 04:23 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - rprosperi - 01-27-2019, 03:47 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 03:29 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Gene - 01-26-2019, 07:02 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 07:17 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Dieter - 01-26-2019 08:49 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Gerald H - 01-27-2019, 08:26 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Dieter - 01-27-2019, 09:14 AM

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