ComplexRationalNumber Class Reference
Inheritance diagram for ComplexRationalNumber:

## Public Member Functions

ComplexRationalNumber (mpq_class _a, mpq_class _b)

ComplexRationalNumber (const ComplexRationalNumber &c)

ComplexRationalNumber (Integer c)

ComplexRationalNumber (RationalNumber c)

ComplexRationalNumber (DenseUnivariateIntegerPolynomial c)

ComplexRationalNumber (DenseUnivariateRationalPolynomial c)

ComplexRationalNumber (SparseUnivariatePolynomial< Integer > c)

ComplexRationalNumber (SparseUnivariatePolynomial< RationalNumber > c)

ComplexRationalNumber (SparseUnivariatePolynomial< ComplexRationalNumber > c)

template<class Ring >
ComplexRationalNumber (SparseUnivariatePolynomial< Ring > c)

ComplexRationalNumberoperator= (ComplexRationalNumber c)

ComplexRationalNumberoperator= (mpq_class k)

ComplexRationalNumberoperator= (int k)

ComplexRationalNumbersetRealPart (mpq_class k)

ComplexRationalNumbersetRealPart (int k)

ComplexRationalNumbersetImaginaryPart (mpq_class k)

ComplexRationalNumbersetImaginaryPart (int k)

ComplexRationalNumberset (mpq_class ka, mpq_class kb)

ComplexRationalNumberset (mpq_class ka, int kb)

ComplexRationalNumberset (int ka, mpq_class kb)

ComplexRationalNumberset (int ka, int kb)

bool isZero ()

void zero ()

bool isOne ()

void one ()

bool isNegativeOne ()

void negativeOne ()

int isConstant ()

ComplexRationalNumber gcd (ComplexRationalNumber c)

bool operator== (ComplexRationalNumber &c)

bool operator== (mpq_class k)

bool operator== (int k)

bool operator!= (ComplexRationalNumber &c)

bool operator!= (mpq_class k)

bool operator!= (int k)

ComplexRationalNumber operator+ (ComplexRationalNumber &c)

ComplexRationalNumberoperator+= (ComplexRationalNumber c)

ComplexRationalNumber operator- (ComplexRationalNumber &c)

ComplexRationalNumberoperator-= (ComplexRationalNumber c)

ComplexRationalNumber operator- ()

ComplexRationalNumber operator* (ComplexRationalNumber &c)

ComplexRationalNumberoperator*= (ComplexRationalNumber c)

ComplexRationalNumberoperator*= (mpq_class c)

ComplexRationalNumberoperator*= (int c)

ComplexRationalNumber operator/ (ComplexRationalNumber &c)

ComplexRationalNumberoperator/= (ComplexRationalNumber c)

ComplexRationalNumber operator^ (int e)

ComplexRationalNumber inverse ()

mpq_class realPart ()

mpq_class imaginaryPart ()

ComplexRationalNumber conjugate ()

Public Member Functions inherited from BPASField
BPASFieldoperator= (BPASField &)

BPASFieldoperator+ (BPASField &)

BPASFieldoperator+= (BPASField &)

BPASFieldoperator- (BPASField &)

BPASFieldoperator- ()

BPASFieldoperator-= (BPASField &)

BPASFieldoperator* (BPASField &)

BPASFieldoperator*= (BPASField &)

BPASFieldoperator/ (BPASField &)

BPASFieldoperator/= (BPASField &)

BPASFieldinverse ()

BPASFieldoperator^ (int)

bool operator== (BPASField &)

bool operator!= (BPASField &)

## Static Public Attributes

static int characteristic

static bool isPrimeField

static bool isComplexField

Static Public Attributes inherited from BPASRing
static int characteristic

static bool isPrimeField

static bool isComplexField

## Friends

std::ostream & operator<< (std::ostream &out, ComplexRationalNumber c)

## Member Function Documentation

 ComplexRationalNumber ComplexRationalNumber::gcd ( ComplexRationalNumber c )
inline

GCD(a, b)

Parameters
 b,: The other rational number
 int ComplexRationalNumber::isConstant ( )
inlinevirtual

Is a constant

Parameters

Implements BPASRing.

 bool ComplexRationalNumber::isNegativeOne ( )
inlinevirtual

Is a -1

Parameters

Implements BPASRing.

 bool ComplexRationalNumber::isOne ( )
inlinevirtual

Is a 1

Parameters

Implements BPASRing.

 bool ComplexRationalNumber::isZero ( )
inlinevirtual

Is a zero

Parameters

Implements BPASRing.

 void ComplexRationalNumber::negativeOne ( )
inlinevirtual

Assign to negative one

Parameters

Implements BPASRing.

 void ComplexRationalNumber::one ( )
inlinevirtual

Assign to one

Parameters

Implements BPASRing.

 ComplexRationalNumber ComplexRationalNumber::operator^ ( int e )
inline

Overload operator ^ replace xor operation by exponentiation

Parameters
 e,: The exponentiation
 void ComplexRationalNumber::zero ( )
inlinevirtual

Assign to zero

Parameters

Implements BPASRing.

## Friends And Related Function Documentation

 std::ostream& operator<< ( std::ostream & out, ComplexRationalNumber c )
friend