mirror of https://github.com/CGAL/cgal
Fixed exceptional case of y-degree 0
This commit is contained in:
parent
add980ff77
commit
e78b316615
|
|
@ -1519,23 +1519,24 @@ private:
|
||||||
bool speed_up=false;
|
bool speed_up=false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(! speed_up) {
|
if(polynomial_2().degree() == 0) {
|
||||||
|
|
||||||
// Compute resultant using the Sturm-Habicht sequence
|
|
||||||
if(polynomial_2().degree() == 0) {
|
|
||||||
this->ptr()->resultant_of_primitive_and_derivative_y
|
this->ptr()->resultant_of_primitive_and_derivative_y
|
||||||
= Polynomial_1(1);
|
= Polynomial_1(1);
|
||||||
} else {
|
|
||||||
this->ptr()->resultant_of_primitive_and_derivative_y
|
|
||||||
= principal_sturm_habicht_of_primitive(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this->ptr()->resultant_of_primitive_and_derivative_y
|
if(! speed_up) {
|
||||||
= CGAL::CGALi::resultant
|
|
||||||
(primitive_polynomial_2(),
|
// Compute resultant using the Sturm-Habicht sequence
|
||||||
CGAL::diff(primitive_polynomial_2()));
|
this->ptr()->resultant_of_primitive_and_derivative_y
|
||||||
|
= principal_sturm_habicht_of_primitive(0);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
this->ptr()->resultant_of_primitive_and_derivative_y
|
||||||
|
= CGAL::CGALi::resultant
|
||||||
|
(primitive_polynomial_2(),
|
||||||
|
CGAL::diff(primitive_polynomial_2()));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue