quad: Solve Quadratic Equation

Description Usage Arguments Value

View source: R/fun.R

Description

General function to solve classic quadratic equation:

a x^2 + b x + c = 0

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

Usage

1
quad(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

Returns the root/s fo the quadratic equation.


jeksterslabds/jeksterslabRds documentation built on July 16, 2020, 3:41 p.m.