# mathDemo.py
import numpy as np
x = np.array([100,-100,60,90,-20])
print ('我们的数组是：')
print (x)

print ( '数组的绝对值是：')
result = np.abs(x)  
print (result)

print ( '数组的平方是：')
result = np.square(x)  
print (result)

print ( '数组的元素符号是：')
result = np.sign(x)  
print (result)

print ( '我们的第二个数组是：')
y = np.array([0, np.pi/2, np.pi],dtype='float')
print (y)
print ( '数组的正弦值是：')
result = np.sin(y)
print (result)
print ( '数组的余弦值是：')
result = np.cos(y)  
print (result)


