Against PEP 240
Roman Suzi
rnd at onego.ru
Tue May 29 13:01:15 EDT 2001
On Tue, 29 May 2001, Alex Martelli wrote:
>"Oleg Broytmann" <phd at phd.fep.ru> wrote in message
>news:mailman.991147483.2093.python-list at python.org...
> ...
>> > > > I wonder, why at all need such things? Are there any standard
>library
>> > for
>> > > > inf-precision in current Python version? If so, was it tested long
> ...
>> I don't know. The question was "is there are infinite-precision
>> arithmetics". And the answer is "yes, there is".
>
>True, I suspect Roman had badly placed the question, relying
>on context (long since snipped away:-) to avoid any possible
>misinterpretation. As Python's longs "obviously" (to any
>Pythonista:-) provide infinite-precision INTEGRAL arithmetic,
>what Roman was asking, I'm pretty sure, is whether there was
>inf-precision on NON-INTEGRAL numbers:-).
Yes. I want to be able to do:
a = cos(Pi * 2) + sin(Pi*1.2)
with infinite precision ;-)
>Alex
Quantum computing anyone?
*
Why not to calculate floats with more precision than doubles?
(Not infinite precision, of course - but there is nothing
bad if Python will have world-class SymbolicAlgebra one day:
everything is syntactically ready for this).
So, rationale type will help. BUT NOT AS A REPLACEMENT FOR
FLOAT.
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Tuesday, May 29, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "He does the work of three men: Larry, Moe and Curly." _/
More information about the Python-list
mailing list