"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/examples/archive1.cpp" between
ginac-1.7.11.tar.bz2 and ginac-1.8.0.tar.bz2

About: GiNaC (GiNaC is Not a CAS (Computer Algebra System)) is a C++ library for symbolic calculations.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)