# Write a NumPy program to change the sign of a given array to that of a given array, element-wise.  
import numpy as np
x1 = np.array([-1, 0, 1, 2])
print("Original array: ")
print(x1)
x2 = -2.1
print("\nSign of x1 to that of x2, element-wise:")
print(np.copysign(x1, x2))
