I am using the callable library and have two basic questions about the QuadraticExtension type.
- I create a QuadraticExtension object as follows: Is it correct that this corresponds to the element 1 + 2 sqrt(3) in Q(sqrt(3))? So if a + b sqrt(d) is a general element in Q(sqrt(d)), then a is the first parameter, b the second, and the square-free integer d the third, right?
Code: Select all
polymake::QuadraticExtension<polymake::Rational> q {1,2,3};
- Is it safe to add, multiply, etc. something of type polymake::Rational and polymake::QuadraticExtension?