commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriele Bulfon <gbul...@sonicle.com>
Subject Math Polynomial from specified roots
Date Fri, 03 Aug 2012 07:38:43 GMT
Hi,
while converting a Matlab source, I encountered the poly(r) function.
The Matlab documentation, says :
"
p = poly(r)
where
r
isa vector returns a row vector whose elements are the coefficientsof the polynomial whose
roots are the elements of
r
."
( http://www.mathworks.it/help/techdoc/ref/poly.html )
I tried to find a similar function in Apache Math, but I could only find the opposite: build
a polynomial
from coefficients, and then find the roots.
How can I implement the Matlab poly functions using Apache Math?
I need it only in the second form, passing a vector of roots, not a matrix.
Thanx for any help,
Gabriele.

Mime
View raw message