Migration from SVN
This commit is contained in:
parent
d7d6c3a217
commit
8cd56f37db
29069 changed files with 0 additions and 4096888 deletions
17
eo/contrib/mathsym/test/test_diff.cpp
Normal file
17
eo/contrib/mathsym/test/test_diff.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#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;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue