Skip to contents

Computes a value based on a quadratic function..

Usage

fn_quad(t, a, b, c)

Arguments

t

Numeric value.

a

Numeric value for coefficient a.

b

Numeric value for coefficient b.

c

Numeric value for coefficient c.

Value

A numeric value based on the linear function.

Details

$$ f(t; a, b, c) = a \cdot t^2 + b \cdot t + c $$

Examples

library(flexFitR)
plot_fn(fn = "fn_quad", params = c(a = 1, b = 10, c = 5))