list functions sugestion
|
09-23-2015, 05:48 AM
Post: #12
|
|||
|
|||
RE: list functions sugestion
hello
>L1:={4, 6, 9, 3}; >FOREACH L1 AS it if(it MOD 2 == 0) it=it-1; END; >// now L1 is { 3, 5, 9, 3 } L1-((L1 MOD 2)==0) does that L1 MOD 2 does a modulo 2 of each element of L1 the ==0 will return a list of 0 and 1, with 1 for every element of L1 that is 0 and the final - removes that 1 in cases of equality mod 0 from L1 Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)