Go to the source code of this file.
◆ main()
Definition at line 7 of file PolynomialUtils1.cpp.
10 cout <<
"Roots: " << roots.
transpose() << endl;
13 cout <<
"Polynomial: ";
14 for(
int i=0;
i<4; ++
i ){ cout << polynomial[
i] <<
".x^" <<
i <<
"+ "; }
15 cout << polynomial[4] <<
".x^4" << endl;
17 for(
int i=0;
i<4; ++
i ){
18 evaluation[
i] =
poly_eval( polynomial, roots[i] ); }
19 cout <<
"Evaluation of the polynomial at the roots: " << evaluation.
transpose();
TransposeReturnType transpose()
static const RandomReturnType Random()
T poly_eval(const Polynomials &poly, const T &x)
void roots_to_monicPolynomial(const RootVector &rv, Polynomial &poly)