# NOT RUN {
# numerical
degree(1) ## 0
# numerical matrix
degree(matrix(1:6, 3, 2)) ## 0
# polinomial
degree(parse.polynomial("1")) ## 0
degree(parse.polynomial("1 + x")) ## 1
degree(parse.polynomial("1 + x^3")) ## 3
# polynomial matrices
degree(parse.polyMatrix(
"x; x^2 + 1",
"0; 2x"))
## 2
# }
Run the code above in your browser using DataLab