 |
My Project
debian-1:4.1.2-p1+ds-2
|
Go to the documentation of this file.
16 #define OSTREAM std::ostream
17 #elif defined(HAVE_IOSTREAM_H)
19 #define OSTREAM ostream
46 static void normalize(
const mpz_ptr,
const mpz_ptr, mpz_ptr, mpz_ptr );
51 ASSERT( 0,
"ups there is something wrong in your code" );
62 const char *
classname()
const {
return "InternalRational"; }
friend CanonicalForm make_cf(const mpz_ptr n, const mpz_ptr d)
InternalCF * subsame(InternalCF *)
InternalCF * modulocoeff(InternalCF *, bool)
InternalRational(const InternalCF &)
bool divremsamet(InternalCF *, InternalCF *&, InternalCF *&)
InternalCF * dividesame(InternalCF *)
virtual class for internal CanonicalForm's
InternalCF * mulcoeff(InternalCF *)
int comparecoeff(InternalCF *)
comparecoeff() compares the CO=a/b and the integer c using the equivalence a/b < c iff a < c*b.
InternalCF * subcoeff(InternalCF *, bool)
void print(OSTREAM &, char *)
InternalCF * divcoeff(InternalCF *, bool)
friend void gmp_numerator(const CanonicalForm &f, mpz_ptr result)
static mpz_ptr MPQNUM(const InternalCF *const c)
int comparesame(InternalCF *)
comparesame(), comparecoeff() - compare with an InternalRational.
InternalCF * normalize_myself()
reduce InternalRational to lowest terms
InternalCF * deepCopyObject() const
#define ASSERT(expression, message)
InternalCF * addcoeff(InternalCF *)
InternalCF * bextgcdsame(InternalCF *, CanonicalForm &, CanonicalForm &)
InternalCF * modsame(InternalCF *)
bool divremcoefft(InternalCF *, InternalCF *&, InternalCF *&, bool)
STATIC_VAR int initialized
InternalCF * modcoeff(InternalCF *, bool)
factory's class for rationals
const char * classname() const
InternalCF * bextgcdcoeff(InternalCF *, CanonicalForm &, CanonicalForm &)
InternalCF * neg()
InternalCF * InternalRational::neg ()
InternalCF * bgcdsame(const InternalCF *const) const
InternalCF * mulsame(InternalCF *)
void divremcoeff(InternalCF *, InternalCF *&, InternalCF *&, bool)
InternalCF * addsame(InternalCF *)
InternalCF * bgcdcoeff(const InternalCF *const)
void divremsame(InternalCF *, InternalCF *&, InternalCF *&)
static void normalize(const mpz_ptr, const mpz_ptr, mpz_ptr, mpz_ptr)
friend void gmp_denominator(const CanonicalForm &f, mpz_ptr result)
InternalCF * divsame(InternalCF *)
InternalCF * dividecoeff(InternalCF *, bool)
static mpz_ptr MPQDEN(const InternalCF *const c)
InternalCF * modulosame(InternalCF *)
factory's class for integers