#include <CGAL/Polynomial.h>
#include <CGAL/Polynomial_traits_d.h>
#include <CGAL/Polynomial_type_generator.h>
int main(){
Poly_2 x = PT_2::Shift()(Poly_2(1),1,0);
Poly_2 y = PT_2::Shift()(Poly_2(1),1,1);
Poly_2 F
= 11 * CGAL::ipower(y,4) * CGAL::ipower(x,2)
+ 5 * CGAL::ipower(y,4) * CGAL::ipower(x,1)
+ 7 * CGAL::ipower(y,3) * CGAL::ipower(x,2);
std::cout << "The bivariate polynomial F: " << F <<"\n"<< std::endl;
std::cout <<
"The degree of F with respect to y: "<<
degree(F)
<< std::endl;
std::cout <<
"The degree of F with respect to x: "<<
degree(F,0)
<< std::endl;
<< std::endl;
<< std::endl;
}