Learn R Programming

PolynomF (version 2.0-8)

solve.polynom: Find Polynomial Zeros

Description

Solve polynomial equations, a(x) = b(x), or alternatively find the zeros of the polynomial a(x) - b(x)

Usage

# S3 method for polynom
solve(a, b, ...)

# S3 method for polylist solve(a, b, ...)

Value

A vector of roots, usually complex

Arguments

a, b

Polynomials for the LHS and RHS respectively

...

Currently unused

Examples

Run this code
p <- poly_calc(0:5)
solve(p)
solve(p, 1)

Run the code above in your browser using DataLab