Go to the source code of this file.
Classes
Namespaces
Defines
- #define rational_new(n, d)   rational(n)/d
 - #define integer_pow(i, j)   (j>=0?as<generic>(pow(i,j)):as<generic>(1/rational(pow(i,-j))))
 
Functions
- rational copy (const rational &i)
 - INDIRECT_IMPL (rational, rational_rep) template<> struct symbolic_type_information< rational >
 - UNARY_RETURN_TYPE (STMPL, numerator_op, rational, integer)
 - UNARY_RETURN_TYPE (STMPL, denominator_op, rational, integer)
 - syntactic flatten (const rational &x)
 - template<typename F > rational promote (const F &x, const rational &)
 - generic construct (const rational &x)
 - template<> rational duplicate (const rational &x)
 - void set_nan (rational &r)
 - TRUE_TO_EXACT_IDENTITY_SUGAR (, rational) ARITH_INT_SUGAR(
 - rational GCD_SUGAR (, rational) POOR_MAN_ELEMENTARY_SUGAR(
 
Define Documentation
      
        
          | #define integer_pow | 
          ( | 
            | 
          i,  | 
        
        
           | 
           | 
            | 
          j  | 
        
        
           | 
          ) | 
           |    (j>=0?as<generic>(pow(i,j)):as<generic>(1/rational(pow(i,-j)))) | 
        
      
 
 
      
        
          | #define rational_new | 
          ( | 
            | 
          n,  | 
        
        
           | 
           | 
            | 
          d  | 
        
        
           | 
          ) | 
           |    rational(n)/d |