1 // Created on: 2005-12-08
2 // Created by: Sergey KHROMOV
3 // Copyright (c) 2005-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <StdFail_NotDone.hxx>
18 //==========================================================================
20 // Returns Standard_True if computation is performed successfully.
21 //==========================================================================
23 inline Standard_Boolean math_KronrodSingleIntegration::IsDone() const
28 //==========================================================================
30 // Returns the value of the integral.
31 //==========================================================================
33 inline Standard_Real math_KronrodSingleIntegration::Value() const
35 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
39 //==========================================================================
40 //function : ErrorReached
41 // Returns the value of the relative error reached.
42 //==========================================================================
44 inline Standard_Real math_KronrodSingleIntegration::ErrorReached() const
46 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
47 return myErrorReached;
50 //=======================================================================
51 //function : AbsolutError
53 //=======================================================================
55 inline Standard_Real math_KronrodSingleIntegration::AbsolutError() const
57 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
58 return myAbsolutError;
61 //==========================================================================
62 //function : OrderReached
63 // Returns the number of Kronrod points for which the result
65 //==========================================================================
67 inline Standard_Integer math_KronrodSingleIntegration::OrderReached() const
69 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
70 return myNbPntsReached;
73 //==========================================================================
74 //function : NbIterReached
75 // Returns the number of iterations that were made to compute result.
76 //==========================================================================
78 inline Standard_Integer math_KronrodSingleIntegration::NbIterReached() const
80 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
81 return myNbIterReached;