HP Forums

Full Version: DIM and 2D print on History
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Reference URL's