Open CASCADE Technology  7.5.0
Public Member Functions

CPnts_MyRootFunction Class Reference

Implements a function for the Newton algorithm to find the solution of Integral(F) = L (compute Length and Derivative of the curve for Newton) More...

#include <CPnts_MyRootFunction.hxx>

Inheritance diagram for CPnts_MyRootFunction:
Inheritance graph
[legend]

Public Member Functions

 CPnts_MyRootFunction ()
 
void Init (const CPnts_RealFunction &F, const Standard_Address D, const Standard_Integer Order)
 F is a pointer on a function D is a client data Order is the order of integration to use. More...
 
void Init (const Standard_Real X0, const Standard_Real L)
 We want to solve Integral(X0,X,F(X,D)) = L. More...
 
void Init (const Standard_Real X0, const Standard_Real L, const Standard_Real Tol)
 We want to solve Integral(X0,X,F(X,D)) = L with given tolerance. More...
 
Standard_Boolean Value (const Standard_Real X, Standard_Real &F)
 This is Integral(X0,X,F(X,D)) - L. More...
 
Standard_Boolean Derivative (const Standard_Real X, Standard_Real &Df)
 This is F(X,D) More...
 
Standard_Boolean Values (const Standard_Real X, Standard_Real &F, Standard_Real &Df)
 Computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise. More...
 
- Public Member Functions inherited from math_FunctionWithDerivative
virtual ~math_FunctionWithDerivative ()
 
- Public Member Functions inherited from math_Function
virtual ~math_Function ()
 Virtual destructor, for safe inheritance. More...
 
virtual Standard_Integer GetStateNumber ()
 returns the state of the function corresponding to the latest call of any methods associated with the function. This function is called by each of the algorithms described later which defined the function Integer Algorithm::StateNumber(). The algorithm has the responsibility to call this function when it has found a solution (i.e. a root or a minimum) and has to maintain the association between the solution found and this StateNumber. Byu default, this method returns 0 (which means for the algorithm: no state has been saved). It is the responsibility of the programmer to decide if he needs to save the current state of the function and to return an Integer that allows retrieval of the state. More...
 

Detailed Description

Implements a function for the Newton algorithm to find the solution of Integral(F) = L (compute Length and Derivative of the curve for Newton)

Constructor & Destructor Documentation

◆ CPnts_MyRootFunction()

CPnts_MyRootFunction::CPnts_MyRootFunction ( )

Member Function Documentation

◆ Derivative()

Standard_Boolean CPnts_MyRootFunction::Derivative ( const Standard_Real  X,
Standard_Real Df 
)
virtual

This is F(X,D)

Implements math_FunctionWithDerivative.

◆ Init() [1/3]

void CPnts_MyRootFunction::Init ( const CPnts_RealFunction F,
const Standard_Address  D,
const Standard_Integer  Order 
)

F is a pointer on a function D is a client data Order is the order of integration to use.

◆ Init() [2/3]

void CPnts_MyRootFunction::Init ( const Standard_Real  X0,
const Standard_Real  L 
)

We want to solve Integral(X0,X,F(X,D)) = L.

◆ Init() [3/3]

void CPnts_MyRootFunction::Init ( const Standard_Real  X0,
const Standard_Real  L,
const Standard_Real  Tol 
)

We want to solve Integral(X0,X,F(X,D)) = L with given tolerance.

◆ Value()

Standard_Boolean CPnts_MyRootFunction::Value ( const Standard_Real  X,
Standard_Real F 
)
virtual

This is Integral(X0,X,F(X,D)) - L.

Implements math_FunctionWithDerivative.

◆ Values()

Standard_Boolean CPnts_MyRootFunction::Values ( const Standard_Real  X,
Standard_Real F,
Standard_Real D 
)
virtual

Computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.

Implements math_FunctionWithDerivative.


The documentation for this class was generated from the following file: