Skip to content
masterclass Buddy

NumPy · Function

np.power

numpy.power raises values in x1 to matching powers in x2, element by element. Inputs can use broadcasting, and the broadcasted shape determines the result shape.

Last updated

Syntax

numpy.power(x1, x2, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • float_power

Source: numpy.power — NumPy v2.5 Manual. Checked 2026-11-03.