2 #include "../src/number.h"
7 unsigned buf[5] = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0 };
8 //unsigned buf[3] = { 0xffffffff, 0x1, 0 };
10 //number< unsigned > nu2(nu);
12 std::cout << "nu = " << nu << "\n\n";
13 std::cout << "nu2 = " << nu2 << "\n\n";
14 std::cout << "nu + nu2 = " << nu + nu2 << "\n\n";
15 std::cout << "nu * nu2 = " << nu * nu2 << "\n\n";
16 std::cout << "nu^nu2 = " << potencia(nu, nu2) << "\n\n";
20 number< unsigned > nu = 0xffffffff;
21 std::cout << "nu = " << nu << "\n\n";
24 std::cout << "nu = " << nu << "\n\n";
26 number<> n1 = 0x00000000;
27 number<> n2 = 0x00000000;
35 std::cout << "n1 es menor que n2\n";
37 std::cout << "n1 es mayor que n2\n";
39 std::cout << "n1 es igual que n2\n";
44 // for (int j=0; j<10; j++)
47 std::cout << "n1: " << n1 ;
49 std::cout << "n2: " << n2 ;
54 std::cout << "n1-n2: " << n1 ;
57 uint32_t buf[] = { 0x00000040, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 };
60 std::cout << "nu = " << nu << "\n\n";
61 std::cout << "nu2 = " << nu2 << "\n\n";
62 std::cout << "nu * nu2 = " << naif(nu, nu2) << "\n\n";