SF [2159499] Full bigfloat precision for Gamma after the second call
Subject: SF [2159499] Full bigfloat precision for Gamma after the second call
From: Stavros Macrakis
Date: Mon, 13 Oct 2008 13:13:12 -0400
On Mon, Oct 13, 2008 at 1:02 PM, Raymond Toy <raymond.toy at ericsson.com>wrote:
> Stavros Macrakis wrote:
> > No! fppi takes care of calculating the value of pi *if needed* and
> > caching it. If it is not needed, it should not be calculated, as that
> > can be very expensive.
>
> Fair enough. That makes sense.
>
> Now I'm not exactly sure what is happening. I can see fppi is called
> before *fpsin is called. And fppi is called again from *fpsin (because
> *fpsin adds 8 to fpprec).
>
Sorry, I haven't looked at the code, but (fppi) should be called *every time
* the bigfloat value of %pi is wanted, not only when fpprec is known to have
changed. bigfloat%pi should be treated as a private internal variable of
fppi.
Is that what is happening?
-s