|
Contents | Previous | Next | Subchapters |
| Syntax |
roots(p) |
| See Also | polval , pol2asc |
n-1 1
p[x] = p x + ... + p x + p
1 n-1 n
If z is the return value, it has one fewer elements
than p and p[x] evaluated at x = z(i)
is zero for each i.
2
x - 1
are -1 and +1. If you enter
p = [1., 0, -1.]
roots(p)
O-Matrix will reply
{
(-1, 0)
(1, 0)
}
or it will reply
{
(1, 0)
(-1, 0)
}
because the order of the roots is not determined.
"novalue". This should be a very rare case.