Python: Standard Library - Mathematics

The math module provides access to the underlying C library for floating-point operations:

import math
math.cos(math.pi / 4)
0.70710678118654757

math.log(1024, 2)
10.0

Guess you like

Origin blog.csdn.net/weixin_44523387/article/details/92163285