My Project
Data Structures | Functions
GMPrat.h File Reference
#include "coeffs/si_gmp.h"

Go to the source code of this file.

Data Structures

class  Rational
 
struct  Rational::rep
 

Functions

Rational operator+ (const Rational &, const Rational &)
 
Rational operator- (const Rational &, const Rational &)
 
Rational operator* (const Rational &, const Rational &)
 
Rational operator/ (const Rational &, const Rational &)
 

Function Documentation

◆ operator*()

Rational operator* ( const Rational a,
const Rational b 
)

Definition at line 403 of file GMPrat.cc.

404 {
405  Rational
406  erg(a);
407 
408  return erg*=b;
409 }
CanonicalForm b
Definition: cfModGcd.cc:4103

◆ operator+()

Rational operator+ ( const Rational a,
const Rational b 
)

Definition at line 385 of file GMPrat.cc.

386 {
387  Rational
388  erg(a);
389 
390  return erg+=b;
391 }

◆ operator-()

Rational operator- ( const Rational a,
const Rational b 
)

Definition at line 394 of file GMPrat.cc.

395 {
396  Rational
397  erg(a);
398 
399  return erg-=b;
400 }

◆ operator/()

Rational operator/ ( const Rational a,
const Rational b 
)

Definition at line 422 of file GMPrat.cc.

423 {
424  Rational
425  erg(a);
426 
427  return erg/=b;
428 }