# How to compute numerical negative value for all elements in a given NumPy array in Python 
# importing library
import numpy as np


# creating a array
x = np.array([-1, -2, -3,
              1, 2, 3, 0])


print("Printing the Original array:",
      x)


# converting array elements to
# its corresponding negative value
r1 = np.negative(x)


print("Printing the negative value of the given array:",
      r1)