ESyS-Particle  2.3.2
cube_eq.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __CUBE_EQ_H
14 #define __CUBE_EQ_H
15 
16 
17 // --- STL includes ---
18 #include <set>
19 
20 using std::set;
21 
31 {
32  private:
33  double m_a,m_b,m_c;
34 
35  double bisect(double,double,double);
36  double f(double);
37 
38  public:
39  CubicEquation(double,double,double);
40 
41  set<double> getRealRoots(double);
42 };
43 
44 #endif //__CUBE_EQ_H