Home | History | Annotate | Download | only in examples

Lines Matching defs:roots

12   Vector5d roots = Vector5d::Random();
13 cout << "Roots: " << roots.transpose() << endl;
15 roots_to_monicPolynomial( roots, polynomial );
18 cout << "Complex roots: " << psolve.roots().transpose() << endl;
23 cout << "Real roots: " << mapRR.transpose() << endl;
33 cout << "Complex roots: " << psolvef.roots().transpose() << endl;
35 for( int i=0; i<6; ++i ){ evals[i] = std::abs( poly_eval( hardCase_polynomial, psolvef.roots()[i] ) ); }
36 cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl << endl;
41 cout << "Complex roots: " << psolve6d.roots().transpose() << endl;
44 std::complex<float> castedRoot( psolve6d.roots()[i].real(), psolve6d.roots()[i].imag() );
47 cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl << endl;
50 cout << "The last root in float then in double: " << psolvef.roots()[5] << "\t" << psolve6d.roots()[5] << endl;
51 std::complex<float> castedRoot( psolve6d.roots()[5].real(), psolve6d.roots()[5].imag() );
52 cout << "Norm of the difference: " << std::abs( psolvef.roots()[5] - castedRoot ) << endl;