Post Reply 
newbie question: how to take element from an array on command line
12-27-2017, 09:05 PM
Post: #6
RE: newbie question: how to take element from an array on command line
(12-27-2017 08:57 PM)Arno K Wrote:  I totally forgot about that as I ususally always work in CAS. So here a solution is:
L1:=iquorem(63,23);
L1(1), recalls the first element of the result, that is 2
Arno

Right...
Maybe it is useful a more general way, that would be valid both in CAS and Home, to extract elements from matrices and vectors [].
i.e. in Home M1(2,3) is ok but [[1,2,3],[4,5,6],[7,8,9]] [2,3] tries to multiply, instead of extracting elements (in CAS that's ok).

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newbie question: how to take element from an array on command line - salvomic - 12-27-2017 09:05 PM



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