Beautify the source code

This commit is contained in:
Weisheng Si 2015-06-23 13:43:21 +10:00
parent 74b8893cb0
commit ac3b9ab57f
1 changed files with 4 additions and 4 deletions

View File

@ -166,13 +166,13 @@ public:
//std::cout << "Specialization is called!" << std::endl;
// We actually use -x instead of x since CGAL::root_of() will give the k-th
// smallest root but we want the second largest one without counting.
// here -x is actually used instead of x, since CGAL::root_of() gives the
// k-th smallest root, but we want the second largest one with no need to count.
Polynomial<FT> x(CGAL::shift(Polynomial<FT>(-1), 1));
Polynomial<FT> twox(2*x);
Polynomial<FT> double_x(2*x);
Polynomial<FT> a(1), b(x);
for (unsigned int i = 2; i <= cone_number; ++i) {
Polynomial<FT> c = twox*b - a;
Polynomial<FT> c = double_x*b - a;
a = b;
b = c;
}