import numpy as np

# 범용 함수

B = np.arange(3)
print(B)
# [0 1 2]
print(np.exp(B))
# [1.         2.71828183 7.3890561 ]
print(np.sqrt(B))
# [0.         1.         1.41421356]
C = np.array([2., -1., 4.])
print(np.add(B, C))
# [2. 0. 6.]


