This repository has been archived on 2026-03-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
eodev/eo/contrib/mathsym/test/test_diff.cpp
2005-10-11 08:15:29 +00:00

17 lines
233 B
C++

#include <Sym.h>
#include <FunDef.h>
#include <iostream>
using namespace std;
int main() {
Sym v = SymConst(1.2);
Sym g = exp(-sqr(v));
cout << g << endl;
cout << differentiate(g, v.token()) << endl;
}