This commit is contained in:
Luis Peñaranda 2009-12-17 16:11:42 +00:00
parent 4c90c8af9a
commit ee98a2db3a
1 changed files with 2 additions and 2 deletions

View File

@ -35,14 +35,14 @@ int main(){
// of which the first constructed number is root // of which the first constructed number is root
std::pair<Bound,Bound> isolation1 = isolate_1(frominterval,pol); std::pair<Bound,Bound> isolation1 = isolate_1(frominterval,pol);
std::cout << "Isolating the second algebraic number gives: [" std::cout << "Isolating the second algebraic number gives: ["
<< isolation1.first << "," << isolation1.second << "\n"; << isolation1.first << "," << isolation1.second << "]\n";
// isolate again the same algebraic number, this time with respect to // isolate again the same algebraic number, this time with respect to
// the polynomial 10*x-14 (which has root 1.4, close to this algebraic // the polynomial 10*x-14 (which has root 1.4, close to this algebraic
// number) // number)
std::pair<Bound,Bound> isolation2 = isolate_1(frominterval,10*x-14); std::pair<Bound,Bound> isolation2 = isolate_1(frominterval,10*x-14);
std::cout << "Isolating again the second algebraic number gives: [" std::cout << "Isolating again the second algebraic number gives: ["
<< isolation2.first << "," << isolation2.second << "\n"; << isolation2.first << "," << isolation2.second << "]\n";
return 0; return 0;
} }