Post Reply 
CONCAT/APPEND/PREPEND CAS FUNCTION
08-01-2016, 11:40 PM (This post was last modified: 08-01-2016 11:56 PM by compsystems.)
Post: #10
RE: CONCAT/APPEND/PREPEND CAS FUNCTION
Example

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

append(mat1,vec1) [Enter] returns [ [a,b], [c,d], [[1],[2]] ] OK a LIST of 3 elements but not a matrix array
dim(append(mat1,vec1)) [Enter] returns 3 elements OK, Confirms that it is a list

firts element: [a,b]
Second: [c,d]
Third: [[1],[2]]

This would be the true fit to an array
[
[a,b],
[c,d],
[1,0],
[2,0]
]

but not

[
[a,b],
[c,d],
[1],[2]
]

there is a problem

rref(append(mat1,vec1)) [enter] "Error: Bad Argument Value"
true. the NEXT matrix is a matrix wrong

[
[a,b],
[c,d],
[1],[2]
] this is a matrix? not

Simply, if the list has no matrix dimension, should not be set to a matrix, because in most cases is not feasible
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: - compsystems - 07-30-2016, 12:37 PM
RE: - compsystems - 07-30-2016, 12:33 PM
RE: - compsystems - 07-30-2016, 02:12 PM
RE: - compsystems - 07-30-2016, 02:47 PM
RE: CONCAT/APPEND/PREPEND CAS FUNCTION - compsystems - 08-01-2016 11:40 PM



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