commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriele Bulfon <>
Subject Math Polynomial from specified roots
Date Fri, 03 Aug 2012 07:38:43 GMT
while converting a Matlab source, I encountered the poly(r) function.
The Matlab documentation, says :
p = poly(r)
isa vector returns a row vector whose elements are the coefficientsof the polynomial whose
roots are the elements of
( )
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,

View raw message