"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/examples/mystring.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.

mystring.cpp  (ginac-1.7.11.tar.bz2):mystring.cpp  (ginac-1.8.0.tar.bz2)
/** /**
* @file mystring.cpp Example of extending GiNaC: writing new classes * @file mystring.cpp Example of extending GiNaC: writing new classes
*/ */
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#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;
class mystring : public basic class mystring : public basic
{ {
GINAC_DECLARE_REGISTERED_CLASS(mystring, basic) GINAC_DECLARE_REGISTERED_CLASS(mystring, basic)
public: public:
mystring(const string &s); mystring(const string &s);
ex eval() const override; ex eval() const override;
private: private:
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

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