version 1.1, 2011/06/23 13:03:39
|
version 1.2, 2011/06/23 13:41:16
|
Line 19
|
Line 19
|
================================================================================ |
================================================================================ |
*/ |
*/ |
|
|
|
|
|
#include "giac.h" |
|
|
extern "C" |
extern "C" |
{ |
{ |
|
|
|
# undef PACKAGE |
|
# undef PACKAGE_NAME |
|
# undef PACKAGE_STRING |
|
# undef PACKAGE_TARNAME |
|
# undef PACKAGE_VERSION |
|
# undef VERSION |
|
|
# undef _GNU_SOURCE |
# undef _GNU_SOURCE |
|
# undef _POSIX_C_SOURCE |
|
|
# include "rpl-conv.h" |
# include "rpl-conv.h" |
} |
} |
|
|
#include <iostream> |
#include <iostream> |
#include "giac.h" |
|
|
|
using namespace std; |
using namespace std; |
|
using namespace giac; |
|
|
|
|
/* |
/* |
================================================================================ |
================================================================================ |
Line 44 using namespace std;
|
Line 58 using namespace std;
|
|
|
unsigned char * |
unsigned char * |
interface_cas(struct_processus *s_etat_processus, |
interface_cas(struct_processus *s_etat_processus, |
unsigned char *commande, unsigned char *argument) |
unsigned char *commande, const char *argument) |
{ |
{ |
gen e(string("x^2-1")); |
gen e(string(argument), giac::context0); |
cout << factor(e) << endl; |
//cout << factor(e) << endl; |
|
|
return(NULL); |
return(NULL); |
} |
} |