zero_finder.hpp
Go to the documentation of this file.
1 #pragma once
2 // ------------------------------------------------------------------------ //
3 // This source file is part of the 'ESA Advanced Concepts Team's //
4 // Space Mechanics Toolbox' software. //
5 // //
6 // The source files are for research use only, //
7 // and are distributed WITHOUT ANY WARRANTY. Use them on your own risk. //
8 // //
9 // Copyright (c) 2004-2007 European Space Agency //
10 // ------------------------------------------------------------------------ //
11 
12 namespace zero_finder
13 {
23 {
24 public:
25  // virtual double Compute(double x)=0;
26  virtual double operator()(double x) = 0;
27  // parameters
28  double p1, p2;
29  void SetParameters(double a, double b);
30 };
31 
33 {
34 public:
35  // virtual double Compute(double x)=0;
36  virtual double operator()(double x) = 0;
37  // parameters
38  double p1, p2, p3, p4, p5, p6, p7;
39  void SetParameters(double a, double b, double c, double d, double e, double f,
40  double g);
41 };
42 
43 class FZero
44 {
45 private:
46  double a, c; // lower and upper bound
47 
48 public:
49  FZero(double a, double b); // constructor
50  // fzero procedure
51  double FindZero(Function1D &f);
52  double FindZero7(Function1D_7param &f);
53  void SetBounds(double a, double b);
54 };
55 } // namespace zero_finder
FZero(double a, double b)
Definition: zero_finder.cpp:40
double p6
Definition: zero_finder.hpp:38
double FindZero7(Function1D_7param &f)
Definition: zero_finder.cpp:276
double p1
Definition: zero_finder.hpp:28
Definition: zero_finder.hpp:22
double p1
Definition: zero_finder.hpp:38
void SetParameters(double a, double b, double c, double d, double e, double f, double g)
Definition: zero_finder.cpp:26
double p7
Definition: zero_finder.hpp:38
void SetBounds(double a, double b)
Definition: zero_finder.cpp:43
Definition: zero_finder.hpp:12
double p2
Definition: zero_finder.hpp:38
double p2
Definition: zero_finder.hpp:28
double p5
Definition: zero_finder.hpp:38
Definition: zero_finder.hpp:43
double a
Definition: zero_finder.hpp:46
virtual double operator()(double x)=0
double p3
Definition: zero_finder.hpp:38
void SetParameters(double a, double b)
Definition: zero_finder.cpp:20
double p4
Definition: zero_finder.hpp:38
virtual double operator()(double x)=0
Definition: zero_finder.hpp:32
double c
Definition: zero_finder.hpp:46
double FindZero(Function1D &f)
Definition: zero_finder.cpp:58