View source: R/quadratic_eqn.R
quadratic_eqn | R Documentation |
General function to solve classic quadratic equation:
a x^2 + b x + c = 0
quadratic_eqn(a, b, c)
a |
Numeric value for quadratic term of x. |
b |
Numeric value for multiplicative term of x. |
c |
Numeric value for constant term. |
Vector of two values corresponding to the roots for the quadratic equation.
Guy J. Abel
Adapted from https://rpubs.com/kikihatzistavrou/80124
quadratic_eqn(a = 2, b = 4, c = -6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.