import numpy as np

x = np.array([1, 4, 9])

y = np.array([1, 2, 3])

print("x     = ", x)
print("y     = ", y)
print("x + y = ", x + y)
print("x - y = ", x - y)
print("x * y = ", x * y)
print("x / y = ", x / y)

print("x     = ", x)
print("x + 2 = ", x + 2)
print("x - 2 = ", x - 2)
print("x * 2 = ", x * 2)
print("x / 2 = ", x / 2)

x2 = np.random.randint(1, 10, (2, 3))

x2

x

x2 + x

print("x        = ", x)
print("x ** 2   = ", x ** 2)
print("x ** 0.5 = ", x ** 0.5)

print("x     = ", x)
print("x % 3 = ", x % 3)

print("x     = ", x)
print("x + 2 = ", np.add(x, 2))
print("x - 2 = ", np.subtract(x, 2))
print("x * 2 = ", np.multiply(x, 2))
print("x / 2 = ", np.divide(x, 2))

print("x        = ", x)
print("x ** 2   = ", np.square(x))
print("x ** 0.5 = ", np.sqrt(x))

print("x      = ", x)
print("x ** 2 = ", np.power(x, 2))
print("x ** 3 = ", np.power(x, 3))

print("x     = ", x)
print("x % 3 = ", np.mod(x, 3))

((-x + 3) * 0.5) ** 2

