Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages | Search for

# test_diff.cpp

    00001 #include <Sym.h>
    00002 #include <FunDef.h>
    00003 #include <iostream>
    00004
    00005 using namespace std;
    00006
    00007 int main() {
    00008
    00009     Sym v = SymConst(1.2);
    00010
    00011     Sym g = exp(-sqr(v));
    00012
    00013     cout << g << endl;
    00014     cout << differentiate(g, v.token()) << endl;
    00015
    00016 }
    00017