diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -18,18 +18,22 @@ $ make run_poly_mul guix shell qemu -- qemu-x86_64 -cpu max poly_mul Prime used for modulo operations: 127 55 + 31 mod [-63,63] = -41 -Give first polynomial to multiply: +Give first polynomial for the experiment: 12 3 4 5 Read polynomial: 5*x^3+4*x^2+3*x+12 -Give second polynomial to multiply: +Give second polynomial for the experiment: 11 1 2 3 Read polynomial: 3*x^3+2*x^2+x+11 Normal product of polynomials: 15*x^6+22*x^5+22*x^4+101*x^3+71*x^2+45*x+132 +Normal sum of polynomials: +8*x^3+6*x^2+4*x+23 Give the degree m of X^m+1 polynomial to be used as divisor in the ring: 7 Product of polynomials in the ring: 15*x^6+22*x^5+22*x^4-26*x^3-56*x^2+45*x+5 +Sum of polynomials in the ring: +8*x^3+6*x^2+4*x+23 ``` Interestingly, only modulo operations in the latter range seem to be directly |