#include "config.hpp"
#include <sstream>
#include "powerest.hpp"
#include "logarithm.hpp"
#include "big_float.hpp"
Go to the source code of this file.
Namespaces | |
namespace | Arageli |
Defines | |
#define | CHECK_PREC(p) |
#define | CHECK_MODE(m) |
Functions | |
void | Arageli::big_float_warning (const char *s) |
void | Arageli::big_float_error (const char *s) |
void | Arageli::big_float_fatal_error (const char *s) |
unsigned | Arageli::fracsion (int n, unsigned m) |
int | Arageli::get_exponent_of_double (double d) |
_Internal::digit * | Arageli::get_mantissa_of_double (double d) |
int | Arageli::get_sign (big_int s) |
int | Arageli::cmp (const big_float &a, const big_float &b) |
int | Arageli::operator== (const big_float &a, const big_float &b) |
int | Arageli::operator!= (const big_float &a, const big_float &b) |
int | Arageli::operator> (const big_float &a, const big_float &b) |
int | Arageli::operator>= (const big_float &a, const big_float &b) |
int | Arageli::operator< (const big_float &a, const big_float &b) |
int | Arageli::operator<= (const big_float &a, const big_float &b) |
big_float | Arageli::operator+ (const big_float &a) |
big_float | Arageli::operator- (const big_float &a) |
big_float | Arageli::operator+ (const big_float &b, const big_float &c) |
big_float | Arageli::operator- (const big_float &b, const big_float &c) |
big_float | Arageli::operator * (const big_float &b, const big_float &c) |
big_float | Arageli::operator/ (const big_float &b, const big_float &c) |
big_float | Arageli::add (const big_float &b, const big_float &c) |
big_float | Arageli::sub (const big_float &b, const big_float &c) |
big_float | Arageli::mul (const big_float &b, const big_float &c) |
big_float | Arageli::div (const big_float &b, const big_float &c) |
big_float | Arageli::add (const big_float &b, const big_float &c, long prec) |
big_float | Arageli::sub (const big_float &b, const big_float &c, long prec) |
big_float | Arageli::mul (const big_float &b, const big_float &c, long prec) |
big_float | Arageli::div (const big_float &b, const big_float &c, long prec) |
big_float | Arageli::add (const big_float &b, const big_float &c, long prec, int mode) |
big_float | Arageli::sub (const big_float &b, const big_float &c, long prec, int mode) |
big_float | Arageli::mul (const big_float &b, const big_float &c, long prec, int mode) |
big_float | Arageli::div (const big_float &b, const big_float &c, long prec, int mode) |
big_float | Arageli::divnu (const big_float &b, const big_float &c, long prec, int mode) |
big_float | Arageli::div_i (const big_int &c) |
void | Arageli::reduce_final_zeros (std::basic_string< char > &str) |
std::istream & | Arageli::operator>> (std::istream &is, big_float &fnum) |
std::ostream & | Arageli::operator<< (std::ostream &os, const big_float &fnum) |
big_float | Arageli::ceil (const big_float &a) |
big_float | Arageli::floor (const big_float &a) |
big_float | Arageli::frac (const big_float &a) |
big_int | Arageli::iceil (const big_float &a) |
big_int | Arageli::ifloor (const big_float &a) |
big_float | Arageli::fsqrt (const big_float &b) |
big_float | Arageli::fsqrt (const big_float &bf, long prec) |
big_float | Arageli::fsqrt (const big_float &bf, long prec, int mode) |
big_float | Arageli::nfsqrt (const big_float &bf, long prec, int mode) |
big_float | Arageli::frandom (long prec) |
big_float | Arageli::frandom () |
big_float | Arageli::frandom1 (long bits, const big_int &exp) |
#define CHECK_MODE | ( | m | ) |
Value:
if ( m < EXACT || m > TO_INF ) \ {\ big_float_warning ( "attempt to set illegal rounding mode. TO_NEAREST is used as default rounding mode" );\ m = TO_NEAREST;\ }\
Definition at line 58 of file big_float.cpp.
#define CHECK_PREC | ( | p | ) |
Value:
if ( p < PREC_MIN || p > PREC_MAX ) \ {\ std::cout << p;\ big_float_warning ( "attempt to use illegal precision. PREC_MIN is used as default precision" );\ p = PREC_MIN;\ }\
Definition at line 51 of file big_float.cpp.