NO DOC
#include <givaro/givgfq.h>
#include <givaro/givtimer.h>
using namespace Givaro;
int main(
int argc,
char** argv)
{
GF128.
write(std::cout, b) << std::endl;
GF128.
write(std::cout, c) << std::endl;
GF128.
write(std::cout <<
"2-adic representation of 1+X is: ", f)
<< std::endl
<< " ... while its internal representation is: "
<< f << std::endl;
GF128.
write(std::cout <<
"Indeed, we are in ") <<std::endl;
"In this field, the generator used is (in 2-adic): ", gen)
<< std::endl
<< " whose internal representation is "
<< gen << std::endl;
Poly1PadicDom< GFqDom<long>,
Dense > Padic2(Pol2);
std::cout << "Irreducible (in 2-adic): "
<< "2-adic representation of 1+X^2 is: ", g)
<< std::endl;
<< "2-adic representation of X+X^2 is: ", h)
<< std::endl;
<< "2-adic representation of 1+X+X^2+X^3 is: ", h)
<< std::endl;
<< "2-adic representation of 1+X is: ", h)
<< std::endl;
<< "2-adic representation of the moding out of X^7+X^6+X^4+X^2+1 by the irreducible is: ", j)
<< std::endl;
return 0;
}