diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Polynom.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Polynom.c b/src/Polynom.c index 6a46d4a..5878e41 100644 --- a/src/Polynom.c +++ b/src/Polynom.c @@ -28,17 +28,17 @@ int main(void) textdomain(PACKAGE); Initialise(&variables); - mute = Estrdup("x"); + mute = "x"; /* nom de la variable utilisee pour la saisie des polynomes, a recuperer en argv eventuellt */ - parse_line("P=(x^2) + x + 1;"); + parse_line("P=3*x^2+2*x +4.5;"); //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))); + //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);"); //fprintf(stderr, "soja"); - //printf("%s\n", affichage_level_1()); + printf("Resultat: %s\n", affichage_level_1()); return 0; |