More header pruning, use of cmath constants, etc.
[PaGMO.git] / AstroToolbox / ZeroFinder.cpp
blobc4e46ae2955dfad569f04953a04ba42d67109250
1 // ------------------------------------------------------------------------ //
2 // This source file is part of the 'ESA Advanced Concepts Team's //
3 // Space Mechanics Toolbox' software. //
4 // //
5 // The source files are for research use only, //
6 // and are distributed WITHOUT ANY WARRANTY. Use them on your own risk. //
7 // //
8 // Copyright (c) 2004-2007 European Space Agency //
9 // ------------------------------------------------------------------------ //
11 #include <cmath>
12 #include <valarray>
13 #include <vector>
14 #include "ZeroFinder.h"
16 namespace ZeroFinder {
17 void Function1D::SetParameters(double a, double b)
19 p1 = a;
20 p2 = b;
23 void Function1D_7param::SetParameters(double a, double b, double c, double d, double e, double f, double g)
25 p1 = a;
26 p2 = b;
27 p3 = c;
28 p4 = d;
29 p5 = e;
30 p6 = f;
31 p7 = g;