1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-12-17 07:04:41 +00:00

overhaul of the function class

This commit is contained in:
2015-02-24 17:00:19 +00:00
parent b061e9093f
commit 465499626b
23 changed files with 326 additions and 103 deletions

View File

@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
maxOrder = strTo<Index>(argv[2]);
x = strTo<double>(argv[3]);
CompiledDoubleFunction f(1, source);
DoubleFunction f = compile(source, 1);
CentralDerivative df(f);
for (Index i = 1; i <= 4; ++i)
@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
for (Index j = 0; j <= maxOrder; ++j)
{
df.setOrder(j, i);
cout << "d^" << j << "f(" << x << ")= " << df(x) << endl;
cout << "d^" << j << "f(" << x << ")= " << df(&x) << endl;
}
}