ESyS-Particle  4.0.1
cube_eq.h
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
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