Re: pi seems not to be a constant

Pierpaolo Bernardi <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <CANY8u7H9=4SZgaV5sR=_2NV1RwtogyR0rZYoO_DUmrZoZDod_Q@mail.gmail.com>
On Sun, Oct 18, 2015 at 10:10 PM, Don Cohen
<[email protected]> wrote:

>  > The problem then is the value of CL:PI.  What do you propose it should be?
>
> I propose it should be the default value before changing
> LONG-FLOAT-DIGITS.
>
>  > If you use EXT:LONG-FLOAT-DIGITS then you are outside of portable CL,
>  > and you should take into account your uses of this function in your
>  > coding.
> Exactly.  So PI should be the constant value that it would be without
> using that.
>
>  > If you don't use EXT:LONG-FLOAT-DIGITS then the only non-confomance is
>  > that some things that should be constant variables are variables
>  > instead (but they won't in fact vary).
>
> In my solution, if you don't use long-float-digits one might
> reasonably argue that everything is compliant - there are no better
> approximations of pi available without using long-float-digits.

Yes, now it is a sound proposal. But, if implemented in plain Clisp it
would make variable precision floats a PITA to use, in addition to
invalidating all previously written Clisp programs using variable
precision floats.

One solution could be for the ansi mode to transform all these
variables in constant variables, and remove the EXT:LONG-FLOAT-DIGITS
function from the image.

Still, I don't get the need to do this work, supposing someone is
willing to do it (It seems I haven't got all the emails in this thread
and I may have missed some clarifying explanation of this point)

------------------------------------------------------------------------------
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.