python - how to perform square root without using math module? -


I want to find the square root of a number without using the math module, because I have to call the function 20k times and the function Every time the function is called when want to slow performance down by adding mathematical modules

Is there a fast and easy way to find the square root ??

Importing the math module only happens once, and you probably are not much faster than the math module Will find There is also an old stack overflow question about it. It is not clear which method is fast.

Do not ignore the probation for the SQLRT, but if you are doing some heavy calculations then it can be easy.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -