bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature request


From: Garrett Kajmowicz
Subject: Feature request
Date: Sat, 5 Oct 2002 17:03:19 -0400
User-agent: KMail/1.4.1

I would like to see the ability to do floating point exponentials with the mpf 
class.  As it stands I now have to convert to double precision, exponentiate 
and convert back.

I would also like to ask about precision.  I am doing some work (all in 
mpf_class using c++) for matrix solving.  Anyways, when I do a few matrix 
operations which usually result in something to the effect of 1/3 -1/3 the 
answer should be zero.  I am aware of the limitations of floating point 
numbers, but for some reason no matter how much I increased the precision of 
the mpf_class objects, the result was always the same, roughly 1e-24, using 
the cout << temp function to output the value.  Do you know why the value 
will not drop down further (say 1e-50) when I increate to 16k bits of 
precision?

As well, is there a possability of adding a function which will 
increase/decrease an mpf number by the minimal step size possible given the 
current precision?  This might temporarily provide an answer to the above 
problem.

Thank you for your help.

-       Garrett




reply via email to

[Prev in Thread] Current Thread [Next in Thread]