diff options
author | Pixel <Pixel> | 2001-05-02 22:14:21 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-05-02 22:14:21 +0000 |
commit | ecd16166cde1ffa3edfbaa897b049d532e234ab6 (patch) | |
tree | 192b47251b141e0dd0f53530e3a4a2a5f961ea0f /include | |
parent | 8626b278cdccd95e628f14c027ae8a1c47133c48 (diff) |
Pouet
Diffstat (limited to 'include')
-rw-r--r-- | include/fonctions.h | 2 | ||||
-rw-r--r-- | include/polynom.h | 4 | ||||
-rw-r--r-- | include/scalaires.h | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/include/fonctions.h b/include/fonctions.h index c4a1b18..ee3e11d 100644 --- a/include/fonctions.h +++ b/include/fonctions.h @@ -21,5 +21,7 @@ void setdisplay(polynome p1, polynome p2, polynome p3); void reinit(polynome p1, polynome p2, polynome p3); void exit_call(polynome p1, polynome p2, polynome p3); + +void setsmartprint(polynome p1, polynome p2, polynome p3); #endif
\ No newline at end of file diff --git a/include/polynom.h b/include/polynom.h index 64a9273..2078d0b 100644 --- a/include/polynom.h +++ b/include/polynom.h @@ -2,6 +2,8 @@ #define __POLYNOM_H__ #include "scalaires.h" +extern int smartprint; + typedef struct monome { rationnel coef; unsigned int degre; @@ -30,7 +32,7 @@ polynome ply_modulo(polynome poly1, polynome poly2); /* reste de la division de polynome ply_exposant(polynome poly, unsigned int exp); /* exponentiation d'un polynome */ -double ply_valuation(polynome poly, double point); /* valuation d'un polynome en un point */ +rationnel ply_valuation(polynome poly, rationnel point); /* valuation d'un polynome en un point */ char *ply_affichage(polynome poly); /* routine d'affichage d'un polynome */ diff --git a/include/scalaires.h b/include/scalaires.h index 06b798b..5fc7dd2 100644 --- a/include/scalaires.h +++ b/include/scalaires.h @@ -25,6 +25,7 @@ rationnel rat_soustraction(rationnel rat1, rationnel rat2); /* soustraction */ rationnel rat_moinsunaire(rationnel rat1); /* moins unaire */ rationnel rat_multiplication(rationnel rat1, rationnel rat2); /* multiplication */ rationnel rat_division(rationnel rat, rationnel rat2); /* division */ +rationnel rat_pow(rationnel rat, unsigned int p); /* puissance */ char *rat_to_string(rationnel rat, int first); #endif |