13 cout <<
"Print mode: normal" << endl << endl;
19 cout <<
"x = " << x << endl;
20 cout <<
"y = " << y << endl;
21 cout <<
"z = " << z << endl << endl;
23 cout <<
"x+y = " << x + y << endl;
24 cout <<
"y+z = " << y + z << endl;
25 cout <<
"y-z = " << y - z << endl;
26 cout <<
"y*z = " << y * z << endl;
27 cout <<
"y/z = " << y / z << endl << endl;
29 cout <<
"x+3 = " << x + 3 << endl;
30 cout <<
"x-3 = " << x - 3 << endl;
31 cout <<
"x*3 = " << x * 3 << endl;
32 cout <<
"x/3 = " << x / 3 << endl << endl;
34 cout <<
"4+x = " << 4 + x << endl;
35 cout <<
"4-x = " << 4 - x << endl;
36 cout <<
"4*x = " << 4 * x << endl;
37 cout <<
"4/x = " << 4 / x << endl << endl;
39 cout <<
"-x = " << -x << endl << endl;
41 cout <<
"x^9 = " << x.
pow(9) << endl;
42 cout <<
"x^(-9) = " << x.
pow(-9) << endl << endl;
45 cout <<
"-1+y^10 = " << -1 + y.
pow(10) << endl << endl;
48 cout <<
"Print mode: short" << endl << endl;
50 cout <<
"y^2 = " << y.
pow(2) << endl;
51 cout <<
"y^(-2)+1 = " << y.
pow(-2) + 1 << endl << endl;
53 cout <<
"x == 17\t" << (x == 17) << endl;
54 cout <<
"x != 17\t" << (x != 17) << endl;
55 cout <<
"17 == x\t" << (17 == x) << endl;
56 cout <<
"17 != x\t" << (17 != x) << endl;
static void set_default_modulus(int _def_mod)
Default modulus beállítása.
static void set_short_print_mode()
Kiírás módjának beállítása.
static void set_normal_print_mode()
Kiírás módjának beállítása.
Mod pow(int k) const
Hatványozás.
a mod n maradékosztályok gyűrűjét reprezentáló osztály