Warning, /include/opencascade/math_KronrodSingleIntegration.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 2005-12-08
0002 // Created by: Sergey KHROMOV
0003 // Copyright (c) 2005-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015
0016 #include <StdFail_NotDone.hxx>
0017
0018 //==========================================================================
0019 //function : IsDone
0020 // Returns Standard_True if computation is performed successfully.
0021 //==========================================================================
0022
0023 inline Standard_Boolean math_KronrodSingleIntegration::IsDone() const
0024 {
0025 return myIsDone;
0026 }
0027
0028 //==========================================================================
0029 //function : Value
0030 // Returns the value of the integral.
0031 //==========================================================================
0032
0033 inline Standard_Real math_KronrodSingleIntegration::Value() const
0034 {
0035 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
0036 return myValue;
0037 }
0038
0039 //==========================================================================
0040 //function : ErrorReached
0041 // Returns the value of the relative error reached.
0042 //==========================================================================
0043
0044 inline Standard_Real math_KronrodSingleIntegration::ErrorReached() const
0045 {
0046 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
0047 return myErrorReached;
0048 }
0049
0050 //=======================================================================
0051 //function : AbsolutError
0052 //purpose :
0053 //=======================================================================
0054
0055 inline Standard_Real math_KronrodSingleIntegration::AbsolutError() const
0056 {
0057 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
0058 return myAbsolutError;
0059 }
0060
0061 //==========================================================================
0062 //function : OrderReached
0063 // Returns the number of Kronrod points for which the result
0064 // is computed.
0065 //==========================================================================
0066
0067 inline Standard_Integer math_KronrodSingleIntegration::OrderReached() const
0068 {
0069 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
0070 return myNbPntsReached;
0071 }
0072
0073 //==========================================================================
0074 //function : NbIterReached
0075 // Returns the number of iterations that were made to compute result.
0076 //==========================================================================
0077
0078 inline Standard_Integer math_KronrodSingleIntegration::NbIterReached() const
0079 {
0080 StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
0081 return myNbIterReached;
0082 }