powered by
A standard quadratic function of the form f(t) = a * t^2 + b * t + c, where a controls curvature, b is the linear coefficient, and c is the intercept.
f(t) = a * t^2 + b * t + c
a
b
c
fn_quad(t, a, b, c)
A numeric vector of the same length as t, representing the quadratic function values.
t
A numeric vector of input values (e.g., time).
The quadratic coefficient (curvature).
The linear coefficient (slope at the origin).
The intercept (function value when t = 0).
t = 0
$$ f(t; a, b, c) = a \cdot t^2 + b \cdot t + c $$
This function represents a second-degree polynomial. The sign of a determines whether the parabola opens upward (a > 0) or downward (a < 0).
a > 0
a < 0
library(flexFitR) plot_fn(fn = "fn_quad", params = c(a = 1, b = 10, c = 5))
Run the code above in your browser using DataLab