Skip to content

Commit c885c01

Browse files
committed
clean docs
1 parent f7a11fa commit c885c01

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

examples/example7.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
22
* @file example7.c
3-
* @brief Example 7: Simple operations with polynomial arithmetic in Fm[x]/P
3+
* @brief Example 7: Simple operations with polynomial arithmetic in Fm[x]/(P)
44
*/
55
#include <stdio.h>
66
#include "modpolyp.h"
77

88
/**
9-
* Simple operations with polynomial arithmetic in Fm[x]/P.
9+
* Simple operations with polynomial arithmetic in Fm[x]/(P).
1010
*/
1111
int main()
1212
{

examples/example8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
22
* @file example8.c
3-
* @brief Example 8: Advanced operations with polynomial arithmetic in Fm[x]/P
3+
* @brief Example 8: Advanced operations with polynomial arithmetic in Fm[x]/(P)
44
*/
55
#include <stdio.h>
66
#include "modpolyp.h"
77

88
/**
9-
* Advanced operations with polynomial arithmetic in Fm[x]/P.
9+
* Advanced operations with polynomial arithmetic in Fm[x]/(P).
1010
*/
1111
int main()
1212
{

lib/fps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ typedef unsigned int prec;
1919
void fps_print(const fps s, prec n, char *name);
2020
int fps_is_invertible(const fps s);
2121
void fps_newton_inverse(const fps s, prec n, fps u, modulus m);
22+
/* void fps_hensel_lifting(const fps s, const polynomial p, prec n); */ /* TODO */

lib/modpolyp.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file modpolyp.c
3-
* @brief Polynomial arithmetic implementation in Fm[x]/P
3+
* @brief Polynomial arithmetic implementation in Fm[x]/(P)
44
*/
55
#include <stdio.h>
66
#include <stdlib.h>
@@ -9,13 +9,13 @@
99
#include "extendedGcdPoly.h"
1010

1111
/**
12-
* Computes r = (p + q) in Fm[x]/P.
12+
* Computes r = (p + q) in Fm[x]/(P).
1313
*
1414
* @param p first polynomial
1515
* @param dp degree of p
1616
* @param q second polynomial
1717
* @param dq degree of q
18-
* @param r polynomial (p + q) in Fm[x]/P
18+
* @param r polynomial (p + q) in Fm[x]/(P)
1919
* @param m modulus for coefficients
2020
* @param P modulus polynomial
2121
* @param dP degree of P
@@ -31,13 +31,13 @@ degree mpp_add(const polynomial p, degree dp, const polynomial q, degree dq, pol
3131
}
3232

3333
/**
34-
* Computes r = (p - q) in Fm[x]/P.
34+
* Computes r = (p - q) in Fm[x]/(P).
3535
*
3636
* @param p first polynomial
3737
* @param dp degree of p
3838
* @param q second polynomial
3939
* @param dq degree of q
40-
* @param r polynomial (p - q) in Fm[x]/P
40+
* @param r polynomial (p - q) in Fm[x]/(P)
4141
* @param m modulus for coefficients
4242
* @param P modulus polynomial
4343
* @param dP degree of P
@@ -53,13 +53,13 @@ degree mpp_sub(const polynomial p, degree dp, const polynomial q, degree dq, pol
5353
}
5454

5555
/**
56-
* Computes r = (p * q) in Fm[x]/P.
56+
* Computes r = (p * q) in Fm[x]/(P).
5757
*
5858
* @param p first polynomial
5959
* @param dp degree of p
6060
* @param q second polynomial
6161
* @param dq degree of q
62-
* @param r polynomial (p * q) in Fm[x]/P
62+
* @param r polynomial (p * q) in Fm[x]/(P)
6363
* @param m modulus for coefficients
6464
* @param P modulus polynomial
6565
* @param dP degree of P
@@ -75,11 +75,11 @@ degree mpp_mul(const polynomial p, degree dp, const polynomial q, degree dq, pol
7575
}
7676

7777
/**
78-
* Computes r = p^-1 in Fm[x]/P.
78+
* Computes r = p^-1 in Fm[x]/(P).
7979
*
8080
* @param p polynomial
8181
* @param dp degree of p
82-
* @param r polynomial p^-1 in Fm[x]/P
82+
* @param r polynomial p^-1 in Fm[x]/(P)
8383
* @param m modulus for coefficients
8484
* @param P modulus polynomial
8585
* @param dP degree of P
@@ -115,13 +115,13 @@ degree mpp_inv(const polynomial p, degree dp, polynomial r, modulus m, const pol
115115
}
116116

117117
/**
118-
* Computes r = (p / q) in Fm[x]/P.
118+
* Computes r = (p / q) in Fm[x]/(P).
119119
*
120120
* @param p first polynomial
121121
* @param dp degree of p
122122
* @param q second polynomial
123123
* @param dq degree of q
124-
* @param r polynomial (p / q) in Fm[x]/P
124+
* @param r polynomial (p / q) in Fm[x]/(P)
125125
* @param m modulus for coefficients
126126
* @param P modulus polynomial
127127
* @param dP degree of P

lib/modpolyp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file modpolyp.h
3-
* @brief Header file for polynomial arithmetic in Fm[x]/P
3+
* @brief Header file for polynomial arithmetic in Fm[x]/(P)
44
*/
55
#pragma once
66

0 commit comments

Comments
 (0)