big_const.hpp File Reference

#include <cstddef>
#include "config.hpp"
#include "big_int.hpp"
#include "std_import.hpp"

Go to the source code of this file.

Namespaces

namespace  Arageli

Functions

big_int Arageli::ln1_25 (std::size_t nbits)
 Returns ln(1.25) with nbits significant bits.
big_int Arageli::ln1_25_o (std::size_t nbits)
 Returns ln(1.25) with nbits significant bits with overflow.
big_int Arageli::ln1_25_u (std::size_t nbits)
 Returns ln(1.25) with nbits significant bits with imperfection.
big_int Arageli::ln2 (std::size_t nbits)
 Returns ln(2) with nbits significant bits.
big_int Arageli::ln2_u (std::size_t nbits)
 Returns ln(2) with nbits significant bits with imperfection.
big_int Arageli::ln2_o (std::size_t nbits)
 Returns ln(2) with nbits significant bits with oveflow.
big_int Arageli::lg_2 (std::size_t nbits)
 Returns lg2 with nbits significant bits.
big_int Arageli::lg_2_u (std::size_t nbits)
 Returns lg2 with nbits significant bits with imperfection.
big_int Arageli::lg_2_o (std::size_t nbits)
 Returns lg2 with nbits significant bits with oveflow.
big_int Arageli::log2_10 (std::size_t nbits)
 Returns log2_10 with nbits significant bits.
big_int Arageli::log2_10_o (std::size_t nbits)
 Returns log2_10 with nbits significant bits with oveflow.
big_int Arageli::log2_10_u (std::size_t nbits)
 Returns log2_10 with nbits significant bits with imperfection.
big_int Arageli::exp (big_int arg, std::size_t nbits, int factor=0)
 Returns exp(arg/2^factor) with nbits significant bits.
big_int Arageli::exp_u (big_int arg, std::size_t nbits, int factor=0)
 Returns exp(arg/2^factor) with nbits significant bits with imperfection.
big_int Arageli::exp_o (big_int arg, std::size_t nbits, int factor=0)
 Returns exp(arg/2^factor) with nbits significant bits with oveflow.
big_int Arageli::exp_2 (big_int arg, std::size_t nbits, int factor=0)
 Returns 2^(arg/2^factor) with nbits significant bits.
big_int Arageli::exp_2_u (big_int arg, std::size_t nbits, int factor=0)
 Returns 2^(arg/2^factor) with nbits significant bits with imperfection.
big_int Arageli::exp_2_o (big_int arg, std::size_t nbits, int factor=0)
 Returns 2^(arg/2^factor) with nbits significant bits with oveflow.
big_int Arageli::e (std::size_t nbits)
 Returns e number with nbits significant bits.
big_int Arageli::e_u (std::size_t nbits)
 Returns e number with nbits significant bits with imperfection.
big_int Arageli::e_o (std::size_t nbits)
 Returns e number with nbits significant bits with oveflow.
big_int Arageli::ln10 (std::size_t nbits)
 Returns ln10 with nbits significant bits.
big_int Arageli::ln10_u (std::size_t nbits)
 Returns ln10 with nbits significant bits with imperfection.
big_int Arageli::ln10_o (std::size_t nbits)
 Returns ln10 with nbits significant bits with oveflow.


Detailed Description

All fuctions return integer result. But the sought value equal result / 2 ^ (nbits + 1) Functions terminating by _o return result with 0 <= error <= (1/2) ^ ( nbits ). Functions terminating by _u return result with -(1/2 )^ ( nbits ) <= error <=0 Functions without termination return result with -(1/2 )^ ( nbits + 1 ) <= error <= -(1/2 )^ ( nbits + 1 ) It means that (sought value) * 2 ^ ( nbits + 1) is in range [ res, res + 2 ] where res is result returned by "_u" function.

Definition in file big_const.hpp.


Generated on Thu Aug 31 17:38:17 2006 for Arageli by  doxygen 1.4.7