As of now this package only containts the uc.check
function wich checks whether the roots of a given polynomial lie outside the Unit circle.
The function uc.check
has the following Arguments:
Argument | Description |
---|---|
pol_ | A vector of polynomial coefficients in increasing order. |
plot_output | Logical that defines whether a graphical output should be created. |
print_output | Logical that defines whether to print the results. |
library(UnitCircle)
uc.check(pol_ = c(1,0,0.99999), plot_output = FALSE)
#> real complex outside
#> 1 0 1.000005 TRUE
#> 2 0 -1.000005 TRUE
#> *Results are rounded to 6 digits.
uc.check(pol_ = c(2,0,2.2,-3), plot_output = TRUE)
#> real complex outside
#> 1 -0.232289 0.708919 FALSE
#> 2 -0.232289 -0.708919 FALSE
#> 3 1.197912 0.000000 TRUE
#> *Results are rounded to 6 digits.
You can install the official Version from CRAN:
install.packages("UnitCircle")
You can install the latest development version from github with
# install.packages("devtools")
devtools::install_github("BerriJ/UnitCircle")
- UnitCircle is licensed under GPL-3