compile1.cpp (ginac-1.7.11.tar.bz2) | : | compile1.cpp (ginac-1.8.0.tar.bz2) | ||
---|---|---|---|---|
#include <ctime> | #include <ctime> | |||
#include <iostream> | #include <iostream> | |||
#ifdef IN_GINAC | ||||
#include "ginac.h" | ||||
#else | ||||
#include <ginac/ginac.h> | #include <ginac/ginac.h> | |||
#endif | ||||
using namespace std; | using namespace std; | |||
using namespace GiNaC; | using namespace GiNaC; | |||
/* | /* | |||
* Demonstrates the use of compile_ex. | * Demonstrates the use of compile_ex. | |||
* | * | |||
* Compiles a small expression as C code via compile_ex and evaluates the | * Compiles a small expression as C code via compile_ex and evaluates the | |||
* expression numerically. The evalation speed is timed and compared to the | * expression numerically. The evalation speed is timed and compared to the | |||
* evaluation of the original GiNaC expression. | * evaluation of the original GiNaC expression. | |||
* | * | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added |