quadraticFun: Quadratic function

View source: R/sp.env.functions.R

quadraticFunR Documentation

Quadratic function

Description

A simple quadratic function of the form

ax^2+bx+c

Usage

quadraticFun(x, a, b, c)

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

Value

a numeric value or vector resulting from the function

Author(s)

Boris Leroy leroy.boris@gmail.com

Maintainer: Boris Leroy leroy.boris@gmail.com

See Also

linearFun, quadraticFun

Examples

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

virtualspecies documentation built on Sept. 27, 2023, 1:06 a.m.