Post Reply 
expanding list to objects
06-19-2016, 07:05 PM
Post: #5
RE: expanding list to objects
Helo

I am not an expert.
In my opinion HP prime with RPN is not the best mode to program.
In HOME or CAS you have direct functions to manipulate lists, such as:

ROTATE({1,2,3},1) will give {2,3,1}
ROTATE({1,2,3},-1) will give {3,1,2}

or you can get a part of the list and then manipulate and put it again in place:
mid({1,0,-3,4},2,3) will give {0,-3}
you can rotate this to {-3,0} and the put in place
REPLACE({1,0,-3,4},2,{-3,0}) to obtain {1,-3,0,4}

etc.

by the way if somebody knows a command to eliminate repetitions in a list tell me {1,2,2,3} to give {1,2,3}
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
expanding list to objects - poznavatelj - 06-16-2016, 01:58 PM
RE: expanding list to objects - DrD - 06-16-2016, 02:16 PM
RE: expanding list to objects - retoa - 06-20-2016, 07:36 AM
RE: expanding list to objects - roadrunner - 06-20-2016, 11:08 AM
RE: expanding list to objects - Stevetuc - 06-21-2016, 10:10 AM
RE: expanding list to objects - Joe Horn - 06-21-2016, 09:12 AM
RE: expanding list to objects - Wes Loewer - 06-21-2016, 09:13 AM
RE: expanding list to objects - Tonig00 - 06-19-2016 07:05 PM



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