Description Usage Arguments Details Value See Also Examples
This is a convenient way to input a polynomial matrix.
1 | parse.polyMatrix(..., var = "x")
|
... |
string or strings to parse |
var |
variable character. Only lower latin characters are allowed except 'e' which is reseved for numbers |
Space and tabulation characters are ignored.
Row should be divided by new line "\n
" or backslash "\
" (TeX style).
Elements in each row can be divided by ",
", ";
" or "&
" (TeX style)
For convenience, this function can accept multiple string. In this case each string will be treated as a new row.
This function accepts TeX matrix format.
new polynomial matrix of polyMatrix class
1 2 3 4 5 6 7 8 9 10 11 12 | parse.polyMatrix(" 1, 2 + x",
"2 + 2x^2, x^3")
# The function can suggest mistake position in case of invalid format
## Not run:
parse.polyMatrix(
"1 + y & 2\\
-2 & x^2"
)
## Fail to parse polyMatrix: invalid term at position 2 in item [1, 1]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.