1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-22 08:52:01 +01: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

@ -20,9 +20,9 @@ int main(int argc, char* argv[])
xMin = strTo<double>(argv[2]);
xMax = strTo<double>(argv[3]);
CompiledDoubleFunction f(1, source);
GslQagsIntegrator integrator;
double result;
DoubleFunction f = compile(source, 1);
GslQagsIntegrator integrator;
double result;
result = integrator(f, xMin, xMax);
cout << "function integral on [" << xMin << ", " << xMax << "] = ";