circuitpython/tests/float/math_constants.py
stijn dd6967202a py/modmath: Add math.tau, math.nan and math.inf constants.
Configurable by the new MICROPY_PY_MATH_CONSTANTS option.
2022-01-23 09:28:33 +11:00

12 lines
204 B
Python

# Tests various constants of the math module.
try:
import math
from math import exp, cos
except ImportError:
print("SKIP")
raise SystemExit
print(math.e == exp(1.0))
print(cos(math.pi))