power

power(x, n)[source]

Calculates the (elementwise) n-th power of a number or array.

Parameters:
  • x (int, float, numpy.ndarray, cas.MS, cas.SX or cas.DM) – Number or array of which the n-th power should be computed.

  • n (int or float) – Number defining the exponent.