quadraticRoots: Roots of quadratic polynomial

View source: R/sqrt.R

quadraticRootsR Documentation

Roots of quadratic polynomial

Description

Roots of a polynomial of degree 2 as cyclotomic numbers.

Usage

quadraticRoots(a, b, c)

Arguments

a, b, c

the coefficients of the polynomial

Value

A list of two cyclotomic numbers, the roots of the polynomial ax2 + bx +c.

Examples

library(cyclotomic)
quadraticRoots(a = 1, b = 2, c = -1)

cyclotomic documentation built on Nov. 3, 2023, 1:13 a.m.