View source: R/common_mathematical_functions.R

quadratic | R Documentation |

This function evaluates a quadratic function.

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

`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. |

A number or a numeric vector.

Edward Lavender

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.