ARTS  2.2.66
rational.cc File Reference

Contains some additional functionality of the rational class. More...

#include "rational.h"
#include <stdexcept>
#include "mystring.h"
Include dependency graph for rational.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const Rational &a)
 
std::istream & operator>> (std::istream &is, Rational &a)
 
Rational abs (const Rational &a)
 

Detailed Description

Contains some additional functionality of the rational class.

Author
Richard Larsson
Date
2012-10-31

Definition in file rational.cc.

Function Documentation

◆ abs()

Rational abs ( const Rational a)

Definition at line 107 of file rational.cc.

References Rational::Rational().

Referenced by fac().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const Rational a 
)

Definition at line 65 of file rational.cc.

References Rational::Denom(), and Rational::Nom().

Referenced by fac().

◆ operator>>()

std::istream& operator>> ( std::istream &  is,
Rational a 
)

Definition at line 71 of file rational.cc.

References Array< base >::nelem(), and Rational::Rational().

Referenced by fac().