diff options
author | biouman <biouman> | 2001-04-30 01:21:20 +0000 |
---|---|---|
committer | biouman <biouman> | 2001-04-30 01:21:20 +0000 |
commit | 51a7864b4b789583ea445af47324a9b613336162 (patch) | |
tree | 3c786d88388db0a88f65f1fe7acbe9125280fa08 /src | |
parent | a578580b607c8cadf22b457d51431042e3896271 (diff) |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/Polynom.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Polynom.c b/src/Polynom.c index 433da7b..d96d1a4 100644 --- a/src/Polynom.c +++ b/src/Polynom.c @@ -29,17 +29,20 @@ int main(void) Initialise(&variables); mute = "x"; - /* nom de la variable utilisee pour la saisie des polynomes, a recuperer en argv eventuellt */ - parse_line("P=3*x^2+2*x +4.5;"); + /* nom de la variable utilisee pour la saisie des polynomes, a recuperer en argv eventuellt + ATTENTION: elle est case sensitive*/ + parse_line("P=-4.5+2*x+3*x^2;"); //parse_line("P(2);"); //AfficheTableau(variables); //printf("%p\n",(polynome)NomVarToVar("P",variables,&valid)); //printf("-- affichage:%s\n",ply_affichage((polynome)NomVarToVar("P",variables,&valid))); parse_line("P(2);"); + pop_pile(1); parse_line("Q=6*x^3+4*x^2+x;"); - parse_line("soja=P*Q+2;"); + parse_line("soja=P-Q+2;"); parse_line("soja;"); + parse_line("soja^3;"); //fprintf(stderr, "soja"); printf("Resultat: %s\n", affichage_level_1()); return 0; |