oILAB
Loading...
Searching...
No Matches
oILAB::BestRationalApproximation Class Reference

#include <BestRationalApproximation.h>

Public Types

typedef long long int LongIntType
 

Public Member Functions

 BestRationalApproximation (const double &f, const LongIntType &md)
 

Data Fields

const LongIntTypenum
 
const LongIntTypeden
 

Static Private Member Functions

static std::pair< LongIntType, LongIntTyperat_approx (double f, LongIntType md)
 

Private Attributes

const std::pair< LongIntType, LongIntTypeintPair
 

Detailed Description

Definition at line 16 of file BestRationalApproximation.h.

Member Typedef Documentation

◆ LongIntType

Definition at line 19 of file BestRationalApproximation.h.

Constructor & Destructor Documentation

◆ BestRationalApproximation()

oILAB::BestRationalApproximation::BestRationalApproximation ( const double &  f,
const LongIntType md 
)
inline

Definition at line 86 of file BestRationalApproximation.h.

Member Function Documentation

◆ rat_approx()

static std::pair< LongIntType, LongIntType > oILAB::BestRationalApproximation::rat_approx ( double  f,
LongIntType  md 
)
inlinestaticprivate

Definition at line 22 of file BestRationalApproximation.h.

Field Documentation

◆ den

const LongIntType& oILAB::BestRationalApproximation::den

Definition at line 84 of file BestRationalApproximation.h.

◆ intPair

const std::pair<LongIntType, LongIntType> oILAB::BestRationalApproximation::intPair
private

Definition at line 80 of file BestRationalApproximation.h.

◆ num

const LongIntType& oILAB::BestRationalApproximation::num

Definition at line 83 of file BestRationalApproximation.h.


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