Roots of a quadratic function: Difference between revisions
m
→{{header|R}}
m (→{{header|R}}) |
m (→{{header|R}}) |
||
Line 1,849:
Using the builtin '''polyroot''' function (note the order of coefficients is reversed):
<lang R>polyroot(c(
[1]
polyroot(c(1, -1e9, 1))
|