Learn R Programming

virtualspecies (version 1.6)

quadraticFun: Quadratic function

Description

A simple quadratic function of the form $$ax^2+bx+c$$

Usage

quadraticFun(x, a, b, c)

Value

a numeric value or vector resulting from the function

Arguments

x

a numeric value or vector

a

a numeric value or vector

b

a numeric value or vector

c

a numeric value or vector

Author

Boris Leroy leroy.boris@gmail.com

Maintainer: Boris Leroy leroy.boris@gmail.com

See Also

linearFun, quadraticFun

Examples

Run this code
x <- 1:100
y <- quadraticFun(x, a = 2, b = 2, c = 3)
plot(y ~ x, type = "l")

Run the code above in your browser using DataLab