View on GitHub
import math

# constants
print(math.pi)                      # 3.14159265359
print(math.e)                       # 2.71828182846

# numerical operations
print(math.floor(2.945))            # 2
print(math.trunc(2.945))            # 2
print(math.factorial(5))            # 120
print(math.exp(1))                  # 2.71828182846
print(math.sqrt(16))                # 4.0

# example
print(math.sin(4 * math.pi / 180))
# 0.0697564737441
      

Updated on May 27, 2023 Changelog