Apply function to elements of a matrix column

08312015, 10:58 AM
(This post was last modified: 08312015 11:09 AM by DrD.)
Post: #4




RE: Apply function to elements of a matrix column
(08302015 09:06 PM)roadrunner Wrote: M0(5):=abs(M0(5)) This format can result in "Error: Bad argument type," because the command line parser converts M0(5):=abs(M0(5)) to M0(5):=M0(5). When M0(5):=abs(M0(5)) is recalled to the command line via Ans, (or even by copy/paste from the above posting), the command line parser converts from abs() to  , which fails. I'm sure authors are aware of this potential bug, but negative indices are not supported in CAS at this time. So this inconsistent behavior isn't likely to get fixed soon. Dale Update Note: I suppose one could transpose the matrix and apply a function to rows, instead of columns. This idea further complicates what should be a simple process. Working with matrices as a data field, such as when performing Kirchhoff network solutions (my current interest in the subject), makes (transpose  apply row changes  transpose  further processing) not a very pleasant solution. 

« Next Oldest  Next Newest »

Messages In This Thread 
Apply function to elements of a matrix column  DrD  08302015, 10:54 AM
RE: Apply function to elements of a matrix column  roadrunner  08302015, 09:06 PM
RE: Apply function to elements of a matrix column  DrD  08312015 10:58 AM
RE: Apply function to elements of a matrix column  leprechaun  08312015, 08:26 AM
RE: Apply function to elements of a matrix column  roadrunner  08312015, 03:07 PM
RE: Apply function to elements of a matrix column  roadrunner  08312015, 02:08 PM

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