07-30-2016, 04:50 PM
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?
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?