[CLN-list] Floating point overflow for cl_R ln (const cl_R& x)

Johnny Fundalewicz JohnnyFu at web.de
Sat Jan 8 02:15:04 CET 2005


Hi,


I'm getting some floating point overflow errors when using logarithmic 
functionc l_R ln (const cl_R& x) with big Numbers ( > 20 Stellen).


My code looks like this:

--------------------------------
#include <cln/cln.h>

int main(){

cln::cl_R number_one = 
"41234123412341234123157311812341234124312359123412341";

cln::cl_R number_two = cln::ln (number_one);

std::cout << number_two << std::endl;

return 0;
}
--------------------------------


I compiled with gcc-Version 3.3.5 (Debian 1:3.3.5-4):

	g++ -g -o test -lcln test.cpp


Have I done a mistake or whats the reason why I can't compute those 
values - Is the number too large?
I'm getting a floating point overflow and my debugger tells about 
'Program exited with code 01'


Or is there any other solution?


Thx, Johnny



More information about the CLN-list mailing list