![]() ![]() Moreover I would ask for a suggestion how to Sym() a single element of the matrix P in R as in Matlab. (3) Matlab - sym() each element separately -> OK I need suggestions on how to do this correctly and get the same output as, for example, in (2) Matlab. (2) R - Multiply Symbolic Matrix -> Problem sympy("P * P")ĭoes not work. (1) R - Get Symbolic Matrix -> OK library(rSymPy) (1) Matlab - Generate Symbolic Matrix -> OK P = sym('P%d%d', ) I then want to use this matrix for multiplication (with itself and other matrices) and potentially perform also other operations. ![]() In this example I wish to generate a Symbolic transition probability matrix "P", which is say 5 x 5, and has elements P11, P12., P55. To do this in Matlab I need the 'Symbolic Toolbox'. I am looking for suggestions how to do this in R and get a similar output as in Matlab. I am failing to appropriately work with a Symbolic Matrix in R, with both rSymPy and Ryacas.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |