Basic Python Questions - Oct. 31, 2013

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Oct 31 10:15:40 EDT 2013


On 31/10/2013 13:17, Alain Ketterlin wrote:
> "E.D.G." <edgrsprj at ix.netcom.com> writes:
>
>>        The calculation speed question just involves relatively simple
>> math such as multiplications and divisions and trig calculations such
>> as sin and tan etc.
>
> These are not "simple" computations.
>
> Any compiled language (Fortran, C, C++, typically) will probably go much
> faster than any interpreted/bytecode-based language (like python or
> perl, anything that does not use a jit).
>

 From http://docs.python.org/3/library/math.html "CPython implementation 
detail: The math module consists mostly of thin wrappers around the 
platform C math library functions."

There's only one way I know of to find if it's actually fast enough and 
that's test it.

-- 
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence




More information about the Python-list mailing list