Lesson 10 of 60
pythonMathematical Operations with NumPy
25 minutes
Course progress17%
Mathematical Operations
NumPy provides a rich set of universal functions (ufuncs) for element‑wise math.
Basic arithmetic
x = np.array([1, 2, 3])
y = np.array([4, 5, 6])
print(x + y)
(x * y)
(x ** )