quadratic: A quadratic function

View source: R/common_mathematical_functions.R

quadraticR Documentation

A quadratic function

Description

This function evaluates a quadratic function.

Usage

quadratic(x, a, b, h, k)

Arguments

x

A numeric vector which defines the values at which the quadratic function will be evaluated.

a

A numeric value which defines the vertical stretch of the function.

b

A numeric value which defines the horizontal stretch of the function.

h

The x coordinate of the vertex.

k

The y coordinate of the vertex.

Value

A number or a numeric vector.

Author(s)

Edward Lavender

Examples

quadratic(x = 1:10, a = 1, b = 1, h = 0.5, k = 0.25)


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.