mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-19 01:39:00 +08:00
37 lines
766 B
Plaintext
Executable File
37 lines
766 B
Plaintext
Executable File
// File math_FunctionRoot.lxx
|
|
|
|
#include <StdFail_NotDone.hxx>
|
|
|
|
inline Standard_Boolean math_FunctionRoot::IsDone() const { return Done; }
|
|
|
|
inline Standard_OStream& operator<<(Standard_OStream& o,
|
|
const math_FunctionRoot& F)
|
|
{
|
|
F.Dump(o);
|
|
return o;
|
|
}
|
|
|
|
inline Standard_Real math_FunctionRoot::Root () const {
|
|
StdFail_NotDone_Raise_if(!Done, " ");
|
|
return TheRoot;
|
|
}
|
|
|
|
|
|
inline Standard_Real math_FunctionRoot::Derivative () const {
|
|
StdFail_NotDone_Raise_if(!Done, " ");
|
|
return TheDerivative;
|
|
}
|
|
|
|
|
|
inline Standard_Real math_FunctionRoot::Value () const {
|
|
StdFail_NotDone_Raise_if(!Done, " ");
|
|
return TheError;
|
|
}
|
|
|
|
|
|
inline Standard_Integer math_FunctionRoot::NbIterations () const {
|
|
StdFail_NotDone_Raise_if(!Done, " ");
|
|
return NbIter;
|
|
}
|
|
|