summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiouman <biouman>2001-05-02 23:24:53 +0000
committerbiouman <biouman>2001-05-02 23:24:53 +0000
commit2f24e11cb53c348b48eb977912371797d8ece06b (patch)
tree7232fb9f57fca3bdd7f2689145bad5a705b9c286
parent4b21f0cbce53ea81021b55b1a9f178b41e2b0e7d (diff)
*** empty log message ***
-rw-r--r--doc/manuel.tex4
-rw-r--r--doc/outils.tex5
-rw-r--r--lib/pile.c4
-rw-r--r--po/cat-id-tbl.c47
4 files changed, 29 insertions, 31 deletions
diff --git a/doc/manuel.tex b/doc/manuel.tex
index ff471fa..46c0f9b 100644
--- a/doc/manuel.tex
+++ b/doc/manuel.tex
@@ -42,11 +42,11 @@ On invoque alors le programe comme suit: % FIXME ligne de commande
./src/Polynom
\end{verbatim}
Le programme propose alors son propre interpréteur de commandes, bien entendu dévoué au calcul polynomial.
-Les opérateurs reconnus sont les opérateurs classiques sur les polynomes à savoir $'+', '-', '*', '/', '\%', '^', '='$.
+Les opérateurs reconnus sont les opérateurs classiques sur les polynomes à savoir $'+'$, $'-'$, $'*'$, $'/'$, $'\%'$, '\^\ ', $'='$.
De plus nous avons implémenté quelques fonctions utiles, soit au calcul polynomial, soit à l'uilisation du
programme lui même :
\begin{itemize}
-\item les fonctions mathématiques deriv, derivn et int pour le calcul de la dérivée, de la dérivée $n^{ième}$ et de la primitive.
+\item les fonctions mathématiques deriv, derivn et int pour le calcul de la dérivée, de la dérivée $n^{ieme}$ et de la primitive.
\item les fonctions auxiliaires : printvars() pour l'affichage des variables, help() pour l'aide en ligne,
setdisplay(n) pour le mode d'affichage des scalaires, reinit() pour la réinitialisation su calculateur et exit() pour quitter le programme.
\end{itemize}
diff --git a/doc/outils.tex b/doc/outils.tex
index 69bbc53..33bb5df 100644
--- a/doc/outils.tex
+++ b/doc/outils.tex
@@ -15,7 +15,4 @@ les binaires des exécutables produit par la compilation du projet.
En dehors de autoconf \& automake, nous avons utilisé un serveur CVS (Concurrent Version System) qui nous a permis
de travailler à plusieurs sur ce projet, sans avoir à nous soucier de rapatrier et de fusionner les codes sources
de tout le monde.
-\paragraph{}
-Enfin, pour pouvoir compiler ce projet, il suffit de taper la commande './configure' au shell et de suivre les instructions.
-Les binaires seront placés dans le répertoire src. Pour générer cette documentation, il suffit d'aller dans le répertoire doc
-et de taper 'make ps'.
+
diff --git a/lib/pile.c b/lib/pile.c
index 11f1327..2920139 100644
--- a/lib/pile.c
+++ b/lib/pile.c
@@ -352,7 +352,9 @@ void act_pile(int func)
exception(1, _("act_pile: OP_EXP invalid power"));
}
} else {
- exception(1, _("act_pile: OP_EXP empty polynom"));
+ push_pile_poly(ply_constr(rat_constr(1,1),0));
+ if (operande2.poly)
+ ply_destruct(operande2.poly);
}
} else {
exception(1, _("act_pile: OP_EXP invalid arguments"));
diff --git a/po/cat-id-tbl.c b/po/cat-id-tbl.c
index 7cfa119..695b377 100644
--- a/po/cat-id-tbl.c
+++ b/po/cat-id-tbl.c
@@ -44,38 +44,37 @@ const struct _msg_ent _msg_tbl[] = {
{"act_pile: OP_DIV invalid arguments", 35},
{"act_pile: OP_MOD invalid arguments", 36},
{"act_pile: OP_EXP invalid power", 37},
- {"act_pile: OP_EXP empty polynom", 38},
- {"act_pile: OP_EXP invalid arguments", 39},
- {"act_pile: OP_ASSIGN empty string", 40},
- {"act_pile: OP_ASSIGN invalid arguments", 41},
- {"act_pile: OP_MOINS_UNARY invalid argument", 42},
- {"act_pile: OP_FUNC_CALL incorrect argument type", 43},
- {"act_pile: OP_FUNC_CALL invalid operand type", 44},
- {"act_pile: OP_FUNC_CALL need only one argument for a polynom evaluation", 45},
- {"act_pile: OP_FUNC_CALL incorrect value for 2nd arg", 46},
- {"act_pile: OP_FUNC_CALL arg2 is an empty polynom", 47},
- {"act_pile: OP_FUNC_CALL incorrect argument number", 48},
- {"act_pile: Unknown operator", 49},
- {"\t-- Printing Stack\n", 50},
- {"\t-- End Printing Stack\n", 51},
- {"ply_affichage: strcat error, not enough space in buffer", 52},
- {"rat_constr: division by zero", 53},
- {"division by zero", 54},
- {"Signal received: segfault", 55},
- {"Signal received: break", 56},
+ {"act_pile: OP_EXP invalid arguments", 38},
+ {"act_pile: OP_ASSIGN empty string", 39},
+ {"act_pile: OP_ASSIGN invalid arguments", 40},
+ {"act_pile: OP_MOINS_UNARY invalid argument", 41},
+ {"act_pile: OP_FUNC_CALL incorrect argument type", 42},
+ {"act_pile: OP_FUNC_CALL invalid operand type", 43},
+ {"act_pile: OP_FUNC_CALL need only one argument for a polynom evaluation", 44},
+ {"act_pile: OP_FUNC_CALL incorrect value for 2nd arg", 45},
+ {"act_pile: OP_FUNC_CALL arg2 is an empty polynom", 46},
+ {"act_pile: OP_FUNC_CALL incorrect argument number", 47},
+ {"act_pile: Unknown operator", 48},
+ {"\t-- Printing Stack\n", 49},
+ {"\t-- End Printing Stack\n", 50},
+ {"ply_affichage: strcat error, not enough space in buffer", 51},
+ {"rat_constr: division by zero", 52},
+ {"division by zero", 53},
+ {"Signal received: segfault", 54},
+ {"Signal received: break", 55},
{"\
\n\
Performing initialisation...\n\
-\n", 57},
+\n", 56},
{"\
\n\
Starting interface...\n\
-\n", 58},
+\n", 57},
{"\
\n\
Performing shutdown...\n\
-\n", 59},
- {"Exiting, bye!\n", 60},
+\n", 58},
+ {"Exiting, bye!\n", 59},
};
-int _msg_tbl_length = 60;
+int _msg_tbl_length = 59;