from math import sqrt sqrt(121) import math print(math.pi) print(math.tau) print(math.tau) math.inf -math.inf math.nan math.factorial(7) math.ceil(6) math.floor(4) math.trunc(12.32) math.isclose(6.999999999, 7, rel_tol=0.2) math.isclose(1, 1.00000001, abs_tol=1e-08) math.pow(2, 5) math.exp(21) math.log(4) math.log2(math.pi) math.log(math.pi, 2) math.log10(math.pi) math.log(math.pi, 10) # math.sqrt() # math.fsum() # math.prod() # math.radians() # math.degrees() # math.comb(n, k) # math.perm(n, k) """ abs() Returns absolute value of a number divmod() Returns quotient and remainder of integer division max() Returns the largest of the given arguments or items in an iterable min() Returns the smallest of the given arguments or items in an iterable pow() Raises a number to a power round() Rounds a floating-point value sum() Sums the items of an iterable """ import numpy as np b = [0, np.pi / 2, np.pi] print(b) a = np.cos(np.array(b)) print(a)