Lines Matching defs:roots
89 std::vector<std::complex<double> > roots;
90 //roots.resize(p.degree());
98 roots.push_back(std::complex<double> (z[2*i] ,z[2*i+1]));
102 return roots;
106 std::vector<std::complex<double> > roots = solve(p);
109 for(unsigned int i = 0; i < roots.size(); i++) {
110 if(roots[i].imag() == 0) // should be more lenient perhaps
111 real_roots.push_back(roots[i].real());
241 // two roots
251 // no roots otherwise
295 // 3 real roots, 2 of which are equal
302 // 3 distinct real roots