why sqrt is not a built-in function?
2QdxY4RzWzUUiLuE at potatochowder.com
2QdxY4RzWzUUiLuE at potatochowder.com
Thu Jan 14 13:55:26 EST 2021
On 2021-01-14 at 17:54:55 +0000,
Alan Gauld via Python-list <python-list at python.org> wrote:
> My question is: why do we even have a sqrt() in the
> math module given that pow() and ** are already there?
Probably because the standard C math library has such a function, and
Python's math module is (or at least was) supposed be a thin wrapper
around that library.
For completeness, C doesn't have a exponentiation operator.
More information about the Python-list
mailing list