NO DOC.
#include <givaro/gfq.h>
#include <givaro/givtimer.h>
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;
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;
}
Degree type for polynomials.
Definition givdegree.h:28
Definition givcategory.h:51
class GFqDom
Definition gfq.h:44
Rep & mul(Rep &r, const Rep a, const Rep b) const
Definition gfq.inl:309
Rep Element
Definition gfq.h:81
Rep & init(Rep &r) const
Definition gfq.h:204
Rep & div(Rep &r, const Rep a, const Rep b) const
Definition gfq.inl:319
Rep & add(Rep &r, const Rep a, const Rep b) const
Definition gfq.inl:332
UTT irreducible() const
Definition gfq.inl:258
Rep & generator(Rep &) const
Definition gfq.inl:232
std::ostream & write(std::ostream &s) const
Definition gfq.inl:606
This is the Integer class.
Definition gmp++_int.h:160
Definition givpoly1padic.h:24
Field::Element Element
Definition f4n3.cpp:12
int main()
Definition f4n3.cpp:22
Namespace in which the whole Givaro library resides.
Definition all_field.C:23