uc.check: Check if Roots of a Polynomial Lie Outside the Unit Circle

Description Usage Arguments Examples

Description

This function outputs the roots of a given polynomial. It also checks whether they lie outside the unit circle and creates a plot to illustrate the results in an intuitive way.

Usage

1
uc.check(pol_, plot_output = T, print_output = T)

Arguments

pol_

the vector of polynomial coefficients in increasing order.

plot_output

Logical that defines whether to create a plot.

print_output

Logical that defines whether to print the results.

Examples

1
2
3
uc.check(pol_ = c(1,0,0.999999999), plot_output = FALSE)

uc.check(pol_ = c(2,0,2.2,-3), plot_output = TRUE)

Example output

  real complex outside
1    0       1    TRUE
2    0      -1    TRUE
*Results are rounded to 6 digits.       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.

UnitCircle documentation built on May 2, 2019, 2:10 a.m.