oILAB
Loading...
Searching...
No Matches
gbLAB::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 17 of file BestRationalApproximation.h.

Member Typedef Documentation

◆ LongIntType

Definition at line 21 of file BestRationalApproximation.h.

Constructor & Destructor Documentation

◆ BestRationalApproximation()

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

Definition at line 94 of file BestRationalApproximation.h.

Member Function Documentation

◆ rat_approx()

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

Definition at line 24 of file BestRationalApproximation.h.

Field Documentation

◆ den

const LongIntType& gbLAB::BestRationalApproximation::den

Definition at line 92 of file BestRationalApproximation.h.

◆ intPair

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

Definition at line 87 of file BestRationalApproximation.h.

◆ num

const LongIntType& gbLAB::BestRationalApproximation::num

Definition at line 91 of file BestRationalApproximation.h.


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