quad_roots {PracTools}R Documentation

Compute the roots of a quadratic equation

Description

Compute the roots of a quadratic equation

Usage

quad_roots(a, b, c)

Arguments

a

coefficient of the quadratic term

b

coefficient of the linear term

c

coefficient of the constant term

Details

quad_roots computes the roots of a quadratic equation of the form ax^2 + bx + c = 0.

Value

vector with the two roots

Examples

    quad_roots(1, -8, 12)

[Package PracTools version 1.5 Index]