Description Usage Arguments Details Value Examples
View source: R/solv.2dg.polynom.R
Computes real solutions of quadratic equation
1 | solv.2dg.polynom(a_fun,b_fun,c_fun)
|
a_fun |
Numeric. The quadratic coefficient applied to |
b_fun |
Numeric. The linear coefficient applied to |
c_fun |
Numeric. The free term |
Quadratic equation is a second-degree polynomial equation of type a x^2 + b x + c = 0,
where a
is the quadratic coefficient, b
the linear coefficient and c
the free term.
Three possible vectors:
Numeric vector of length 2 if there is two real roots
Numeric value if there is a double-root
NULL
if there is no real solution
1 2 3 4 5 6 7 8 | solv.2dg.polynom(3,2,1)
#result : NULL
solv.2dg.polynom(1,2,1)
#result : -1
solv.2dg.polynom(1,0,-1)
#result : c(1,-1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.