quadraticFun {virtualspecies} | R 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
Examples
x <- 1:100
y <- quadraticFun(x, a = 2, b = 2, c = 3)
plot(y ~ x, type = "l")
[Package virtualspecies version 1.6 Index]