include/numerix/rational.hpp File Reference
#include <numerix/integer.hpp>
Go to the source code of this file.
Classes
Namespaces
Defines
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_default (rational &r)
- void set_nan (rational &r)
- TRUE_TO_EXACT_IDENTITY_SUGAR (, rational) ARITH_INT_SUGAR(
- rational GCD_SUGAR (, rational) POOR_MAN_ELEMENTARY_SUGAR(
- rational integer_pow (const integer &a, const int &i)
- rational integer_pow (const integer &a, const integer &i)
Define Documentation
#define old_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 |