Post Reply 
Massaging output of 50g's FACTORS command
01-07-2015, 10:12 PM (This post was last modified: 01-07-2015 10:21 PM by Han.)
Post: #9
RE: Massaging output of 50g's FACTORS command
The code below basically changes the list into an array, then converts to a list of row vectors that are reverse-sorted, and then converted back to a matrix. Finally a transpose gets the desired form.
Code:
«
  OBJ→ 2. / { 2. } + →ARRY 
  →ROW →LIST REVLIST OBJ→ ROW→  @ delete this line of code if no sorting needed
  TRN →ROW DROP
  AXL SWAP AXL SWAP             @ delete this line of code if you do not have a preference for lists
»

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Massaging output of 50g's FACTORS command - Han - 01-07-2015 10:12 PM



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