big_const.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002     
00003     big_const.hpp -- functions that calculates several constants.
00004 
00005     This file is a part of the Arageli library.
00006 
00007     Copyright (C) Alexander Pshenichnikov, 2005--2006
00008     Copyright (C) Nikolay Santalov, 2005--2006
00009     
00010     University of Nizhni Novgorod, Russia
00011 
00012 *****************************************************************************/
00013 
00028 #ifndef _ARAGELI_big_const_h_
00029 #define _ARAGELI_big_const_h_
00030 
00031 #include <cstddef>
00032 
00033 #include "config.hpp"
00034 #include "big_int.hpp"
00035 #include "std_import.hpp"
00036 
00037 namespace Arageli
00038 {
00040 big_int ln1_25(std::size_t nbits); 
00041 
00043 big_int ln1_25_o(std::size_t nbits);
00044 
00046 big_int ln1_25_u(std::size_t nbits);
00047 
00049 big_int ln2 (std::size_t nbits);
00050 
00052 big_int ln2_u(std::size_t nbits);
00053 
00055 big_int ln2_o(std::size_t nbits);
00056 
00058 big_int lg_2( std::size_t nbits ); 
00059 
00061 big_int lg_2_u( std::size_t nbits );
00062 
00064 big_int lg_2_o( std::size_t nbits );
00065 
00067 big_int log2_10( std::size_t nbits ) ;//Returnslog2_10
00068 
00070 big_int log2_10_o( std::size_t nbits ) ;//Returnslog2_10 with nbits significant bits with overflow  
00071 
00073 big_int log2_10_u( std::size_t nbits ) ;//Returnslog2_10 with nbits significant bits with imperfection 
00074 
00076 big_int exp ( big_int arg, std::size_t nbits,   int factor = 0 );
00077 
00079 big_int exp_u ( big_int arg, std::size_t nbits, int factor = 0 );
00080 
00082 big_int exp_o ( big_int arg, std::size_t nbits, int factor = 0 );
00083 
00085 big_int exp_2 ( big_int arg, std::size_t nbits,   int factor = 0 );
00086 
00088 big_int exp_2_u ( big_int arg, std::size_t nbits, int factor = 0 );
00089 
00091 big_int exp_2_o (big_int arg, std::size_t nbits,  int factor = 0 );
00092 
00094 big_int e (std::size_t nbits  );
00095 
00097 big_int e_u (std::size_t nbits  );
00098 
00100 big_int e_o ( std::size_t nbits  );
00101 
00103 big_int ln10 (std::size_t nbits);
00104 
00106 big_int ln10_u(std::size_t nbits);
00107 
00109 big_int ln10_o(std::size_t nbits);
00110 }
00111 
00112 #endif 

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