Various functions to deal with mpoly and mpolyList objects.
is.constant(x) is.mpoly(x) is.unipoly(x) is.bernstein(x) is.bezier(x) is.chebyshev(x) is.mpolyList(x) is.linear(x)
x | object to be tested |
---|
Vector of logicals.
#> [1] TRUEis.constant(p)#> [1] TRUE#> [1] FALSE TRUE FALSE#> [1] TRUE#> [1] TRUE#> [1] TRUE#> [1] TRUE#> [1] TRUE#> [1] TRUE TRUE#> [1] FALSE#> [1] FALSE TRUE#> 10 x^2 - 30 x^3 + 30 x^4 - 10 x^5is.mpoly(p)#> [1] TRUEis.bernstein(p)#> [1] TRUE#> 5 x - 20 x^3 + 16 x^5is.mpoly(p)#> [1] TRUEis.chebyshev(p)#> [1] TRUEstr(p)#> List of 3 #> $ : Named num [1:2] 1 5 #> ..- attr(*, "names")= chr [1:2] "x" "coef" #> $ : Named num [1:2] 3 -20 #> ..- attr(*, "names")= chr [1:2] "x" "coef" #> $ : Named num [1:2] 5 16 #> ..- attr(*, "names")= chr [1:2] "x" "coef" #> - attr(*, "class")= chr [1:2] "chebyshev" "mpoly" #> - attr(*, "chebyshev")=List of 4 #> ..$ degree : num 0 #> ..$ kind : chr "t" #> ..$ indeterminate: chr "x" #> ..$ normalized : logi FALSE