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
 compsystems Senior Member Posts: 1,384 Joined: Dec 2013
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
 « Next Oldest | Next Newest »

 Messages In This Thread CONCAT/APPEND/PREPEND CAS FUNCTION - compsystems - 07-30-2016, 03:08 AM RE: [Request] fill zeros in vectors and matrices with empty elements - parisse - 07-30-2016, 07:51 AM RE: - compsystems - 07-30-2016, 12:37 PM RE: - compsystems - 07-30-2016, 12:33 PM RE: [Request] fill zeros in vectors and matrices with empty elements - parisse - 07-30-2016, 01:33 PM RE: - compsystems - 07-30-2016, 02:12 PM RE: - compsystems - 07-30-2016, 02:47 PM RE: CONCAT/APPEND/PREPEND CAS FUNCTION - parisse - 07-30-2016, 04:50 PM RE: CONCAT/APPEND/PREPEND CAS FUNCTION - Tim Wessman - 08-01-2016, 08:46 PM RE: CONCAT/APPEND/PREPEND CAS FUNCTION - compsystems - 08-01-2016 11:40 PM RE: CONCAT/APPEND/PREPEND CAS FUNCTION - Tim Wessman - 08-02-2016, 04:04 PM

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