Migration from SVN

This commit is contained in:
quemy 2012-08-30 11:30:11 +02:00
commit 8cd56f37db
29069 changed files with 0 additions and 4096888 deletions

View file

@ -0,0 +1,21 @@
#include <FunDef.h>
using namespace std;
int main() {
Sym c1 = SymConst(0.4);
Sym c2 = SymConst(0.3);
Sym v1 = SymVar(0);
Sym expr = (c1 + c2) * ( (c1 + c2) * v1);
cout << expr << endl;
cout << simplify(expr) << endl;
Sym dv = differentiate( exp(expr) , v1.token());
cout << dv << endl;
cout << simplify(dv) << endl;
}