ΣLIST, ΠLIST and ΔLIST with vectors [SOLVED]

01302016, 11:29 AM
(This post was last modified: 10232016 09:10 AM by JMB.)
Post: #1




ΣLIST, ΠLIST and ΔLIST with vectors [SOLVED]
Are these three functions intended to work also with vectors?
I've found that they have the following behavior, using firmware (8151):


01302016, 01:02 PM
Post: #2




RE: ΣLIST, ΠLIST and ΔLIST with vectors
Do you have examples that don't work?
These vectors seem to work ok: M1:=[1 2 3 4]; M2:=2*M1; ΣLIST({M1,M2}); ==> [3,6,9,12] ΠLIST({M1,transpose(M2)}); ==> [60] ΔLIST({M1,M2}); ==> {[1 2 3 4]} 

01302016, 01:17 PM
Post: #3




RE: ΣLIST, ΠLIST and ΔLIST with vectors
ΣLIST(M1); ==> 10
ΠLIST(M1); ==> restart but: ΠLIST(mat2list(M1)); ==> 24 

01302016, 03:45 PM
Post: #4




RE: ΣLIST, ΠLIST and ΔLIST with vectors
In my case, the direct use of a vector produces the error:
ΠLIST([1 2 3]) ==> restart ΔLIST ([1 2 3]) ==> error 

01302016, 03:46 PM
Post: #5




RE: ΣLIST, ΠLIST and ΔLIST with vectors
(01302016 01:17 PM)Didier Lachieze Wrote: ΠLIST(M1); ==> restart Well, that's not very graceful, is it? To be fair, the help description does specify a list as the argument. Also, the function, "calculates the product of all elements in a list," and since there is no list, there are no elements to calculate, but one could surely imagine better ways to exit than simply, crashing... 

01302016, 03:57 PM
Post: #6




RE: ΣLIST, ΠLIST and ΔLIST with vectors
I agree with DrR, but the help description for ΣLIST says: "calculates the sum of all elements in a list", and the function also works for vectors.
ΣLIST({1 2 3}) ==> 6 ΣLIST([1 2 3]) ==> 6 

01302016, 05:23 PM
Post: #7




RE: ΣLIST, ΠLIST and ΔLIST with vectors
I think I read somewhere that the treatment of vectors and lists is generally the same. So ΣLIST([1 2 3]); should be the same as ΣLIST(mat2list([1 2 3])); and by extension, so should ΠLIST([1 2 3]) be the same as ΠLIST(mat2list([1 2 3])); so this seems like a valid bug and I know the team is aware of it.
Dale 

02012016, 04:55 PM
Post: #8




RE: ΣLIST, ΠLIST and ΔLIST with vectors
Is on the list. Thanks!
TW Although I work for HP, the views and opinions I post here are my own. 

04292016, 04:14 PM
(This post was last modified: 06182016 07:24 PM by JMB.)
Post: #9




RE: ΣLIST, ΠLIST and ΔLIST with vectors
Corrected in firmware 10077.
Thanks to the HP Prime Team! 

« Next Oldest  Next Newest »

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