Post Reply 
DIM and 2D print on History
07-30-2016, 04:50 PM (This post was last modified: 08-08-2016 03:06 AM by compsystems.)
Post: #1
DIM and 2D print on History
Hello mathematical programmers and hpprime calc user

mat1 := [[a,b],[c,d]] [Enter] returns [[a,b],[c,d]] Matrix (2rowsx2cols) OK
vec1 := [[1],[2]] [Enter] returns [[1],[2]] Matrix (2rowsx1col) or AKA Column Vector (2 Elements) OK


APPEND CAS FUNCTION

append(mat1,vec1) [Enter] returns [ [a,b], [c,d], [[1],[2]] ] OK a list of 3 elements
But it shows in history as a matrix, you must be a list
string(append(mat1,vec1) ) [Enter] returns "[ [a,b], [c,d], [[1],[2]] ]" OK ALGEBRAIC VIEW
dim(append(mat1,vec1)) [Enter] returns 3 elements OK

PREPEND CAS FUNCTION

prepend(mat1,vec1) [Enter] returns [ [[1],[2]], [a,b], [c,d] ] ok a list of 3 elements
But it shows in history as a matrix, you must be a list
string(prepend(mat1,vec1)) returns "[ [[1],[2]], [a,b], [c,d] ]" ALGEBRAIC VIEW
dim(prepend(mat1,vec1)) [Enter] returns [3,2]??? It should be 3 elements

You agree?
Find all posts by this user
Quote this message in a reply
Post Reply 




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