archive1.cpp (ginac-1.7.11.tar.bz2) | : | archive1.cpp (ginac-1.8.0.tar.bz2) | ||
---|---|---|---|---|
/* | /* | |||
* Archiving code example from the tutorial | * Archiving code example from the tutorial | |||
*/ | */ | |||
#include <fstream> | #include <fstream> | |||
#include <ginac/ginac.h> | ||||
#ifdef IN_GINAC | ||||
#include "ginac.h" | ||||
#else | ||||
#include <ginac/ginac.h> | ||||
#endif | ||||
using namespace std; | using namespace std; | |||
using namespace GiNaC; | using namespace GiNaC; | |||
int main() | int main() | |||
{ | { | |||
symbol x("x"), y("y"), z("z"); | symbol x("x"), y("y"), z("z"); | |||
// do some math | // do some math | |||
ex foo = sin(x + 2*y) + 3*z + 41; | ex foo = sin(x + 2*y) + 3*z + 41; | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added |