quadratic_eqn: Solutions from the quadratic equation

View source: R/quadratic_eqn.R

quadratic_eqnR Documentation

Solutions from the quadratic equation

Description

General function to solve classic quadratic equation:

a x^2 + b x + c = 0

Usage

quadratic_eqn(a, b, c)

Arguments

a

Numeric value for quadratic term of x.

b

Numeric value for multiplicative term of x.

c

Numeric value for constant term.

Value

Vector of two values corresponding to the roots for the quadratic equation.

Author(s)

Guy J. Abel

Source

Adapted from https://rpubs.com/kikihatzistavrou/80124

Examples

quadratic_eqn(a = 2, b = 4, c = -6)

migest documentation built on Nov. 18, 2023, 9:06 a.m.