[pypy-dev] Pure Python Math Library

Alex Gaynor alex.gaynor at gmail.com
Wed Nov 16 18:29:50 CET 2011


On Wed, Nov 16, 2011 at 12:26 PM, Blaine <frikker at gmail.com> wrote:

> I think that python's math module (which I use) is a compiled C extension,
> right? I'm looking for pure python that berp can use.
>
> Blaine
>
>
>
> On Wed, Nov 16, 2011 at 12:25 PM, Benjamin Peterson <benjamin at python.org>wrote:
>
>> 2011/11/16 Blaine <frikker at gmail.com>:
>> > Does anyone know of a pure python math library? I've been playing around
>> > with berp, which is a python3 to haskell translator and compiler, and it
>> > works great as long as you don't go crazy with C extensions. It's highly
>> > experimental but fun to play around with. The only thing that I really
>> miss
>> > is being able to use the math module. I asked the maintainer if it is
>> > possible to map into haskell's math library, but in the mean time a pure
>> > python math library would fit nicely since it would be compiled along
>> with
>> > the rest of the python.
>> > I'm looking for log, log10, ceil, and pow mostly for my personal needs.
>>
>> Well, python has a math module too:
>>
>> >>> import math
>> >>> math.log(23)
>> 3.1354942159291497
>>
>>
>>
>> --
>> Regards,
>> Benjamin
>>
>
>
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> http://mail.python.org/mailman/listinfo/pypy-dev
>
>
It's a part of the standard library, it's implemented however the Python VM
provides it.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20111116/163fef10/attachment.html>


More information about the pypy-dev mailing list